Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen

Martin Babutzka martin.babutzka at online.de
Thu Oct 5 18:26:44 UTC 2017


@Steven Falco: This behavior was EXACTLY the same with my R9 380 caused
by commit e37a7b4088da ("drm/amd/powerplay: tidy up ret checks in
amd_powerplay.c"). This is reverted now since a few days - are you sure
your kernel build already includes commit adc6af2349f0
("drm/amd/powerplay: fix ret checks in amd_powerplay.c")?

@AMD Devs/Alex: It would be nice if you push "Revert drm/amd/powerplay:
Add support for CI asics to hwmgr (Deucher, Alexander)" to agd5f. Then
I can try to build a non-crashing, flicker-free and hopefully overall
decent 4.13.5 kernel based on amd-staging-drm-next tomorrow.

Thanks & best regards,
Martin


Am Donnerstag, den 05.10.2017, 15:25 +0000 schrieb amd-gfx-
request at lists.freedesktop.org:
> Send amd-gfx mailing list submissions to
> 	amd-gfx at lists.freedesktop.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> or, via email, send a message with subject or body 'help' to
> 	amd-gfx-request at lists.freedesktop.org
> 
> You can reach the person managing the list at
> 	amd-gfx-owner at lists.freedesktop.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of amd-gfx digest..."
> 
> 
> Today's Topics:
> 
>    1. Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
>       (Steven Falco)
>    2. Re: Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
>       (Tom St Denis)
>    3. RE: Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
>       (Deucher, Alexander)
>    4. [PATCH libdrm v2 1/2] tests/amdgpu: add new uvd enc support
>       check (James Zhu)
> 
> 
> -------------------------------------------------------------------
> ---
> 
> Message: 1
> Date: Thu, 5 Oct 2017 10:45:59 -0400
> From: Steven Falco <stevenfalco at gmail.com>
> To: amd-gfx at lists.freedesktop.org
> Subject: Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
> Message-ID: <93ad0081-4ceb-f389-e900-6eb114ea0ee9 at gmail.com>
> Content-Type: text/plain; charset=utf-8
> 
> I have a Radeon R9 285/380 video card in a machine that is running
> Fedora 26.  When I run with Fedora kernel version 4.11.11 the video
> card works properly, using the amdgpu kernel driver.
> 
> However, once I upgrade to a newer kernel in the 4.12 or 4.13 series,
> my display goes blank during boot and stays that way.  The monitor
> appears to be getting sync, because it doesn't go to sleep, however
> there is nothing visible on the screen.
> 
> What information should I post to this list to help diagnose the
> problem?
> 
> 	Thanks,
> 	Steve
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 5 Oct 2017 11:15:27 -0400
> From: Tom St Denis <tom.stdenis at amd.com>
> To: amd-gfx at lists.freedesktop.org
> Subject: Re: Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
> Message-ID: <662dc623-7b77-e3d3-faaa-fc7b2b8ccc43 at amd.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Hi Steve,
> 
> A dmesg log for starters would help.  Could be as simple as a
> firmware 
> file missing or being the wrong version.
> 
> Cheers,
> Tom
> 
> On 05/10/17 10:45 AM, Steven Falco wrote:
> > I have a Radeon R9 285/380 video card in a machine that is running
> > Fedora 26.  When I run with Fedora kernel version 4.11.11 the video
> > card works properly, using the amdgpu kernel driver.
> > 
> > However, once I upgrade to a newer kernel in the 4.12 or 4.13
> > series, my display goes blank during boot and stays that way.  The
> > monitor appears to be getting sync, because it doesn't go to sleep,
> > however there is nothing visible on the screen.
> > 
> > What information should I post to this list to help diagnose the
> > problem?
> > 
> > 	Thanks,
> > 	Steve
> > _______________________________________________
> > amd-gfx mailing list
> > amd-gfx at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> > 
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 5 Oct 2017 15:16:27 +0000
> From: "Deucher, Alexander" <Alexander.Deucher at amd.com>
> To: 'Steven Falco' <stevenfalco at gmail.com>,
> 	"amd-gfx at lists.freedesktop.org" <amd-gfx at lists.freedesktop.org>
> Subject: RE: Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
> Message-ID:
> 	<BN6PR12MB1652C0A1337626E55C459EA8F7700 at BN6PR12MB1652.namprd12.
> prod.outlook.com>
> 	
> Content-Type: text/plain; charset="utf-8"
> 
> > -----Original Message-----
> > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On
> > Behalf
> > Of Steven Falco
> > Sent: Thursday, October 05, 2017 10:46 AM
> > To: amd-gfx at lists.freedesktop.org
> > Subject: Tonga PRO [Radeon R9 285/380] [1002:6939] blank screen
> > 
> > I have a Radeon R9 285/380 video card in a machine that is running
> > Fedora 26.
> > When I run with Fedora kernel version 4.11.11 the video card works
> > properly,
> > using the amdgpu kernel driver.
> > 
> > However, once I upgrade to a newer kernel in the 4.12 or 4.13
> > series, my
> > display goes blank during boot and stays that way.  The monitor
> > appears to
> > be getting sync, because it doesn't go to sleep, however there is
> > nothing
> > visible on the screen.
> > 
> > What information should I post to this list to help diagnose the
> > problem?
> 
> Please file a bug report (https://bugs.freedesktop.org) and attach
> your xorg log and dmesg output.
> 
> Thanks!
> 
> Alex
> 
> > 
> > 	Thanks,
> > 	Steve
> > _______________________________________________
> > amd-gfx mailing list
> > amd-gfx at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> 
> ------------------------------
> 
> Message: 4
> Date: Thu,  5 Oct 2017 11:24:49 -0400
> From: James Zhu <James.Zhu at amd.com>
> To: amd-gfx at lists.freedesktop.org,	dri-devel at lists.freedesktop
> .org
> Subject: [PATCH libdrm v2 1/2] tests/amdgpu: add new uvd enc support
> 	check
> Message-ID: <1507217090-10669-1-git-send-email-James.Zhu at amd.com>
> Content-Type: text/plain
> 
> Query hardware IP information to find out if there are uvd encode
> rings
> ready for use in kernel driver.
> 
> Signed-off-by: James Zhu <James.Zhu at amd.com>
> ---
>  tests/amdgpu/uvd_enc_tests.c | 27 +++++++++++++++++++++------
>  1 file changed, 21 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/amdgpu/uvd_enc_tests.c
> b/tests/amdgpu/uvd_enc_tests.c
> index 6c19f7b..7518103 100644
> --- a/tests/amdgpu/uvd_enc_tests.c
> +++ b/tests/amdgpu/uvd_enc_tests.c
> @@ -79,6 +79,8 @@ static void amdgpu_cs_uvd_enc_session_init(void);
>  static void amdgpu_cs_uvd_enc_encode(void);
>  static void amdgpu_cs_uvd_enc_destroy(void);
>  
> +static bool uvd_enc_support(void);
> +
>  CU_TestInfo uvd_enc_tests[] = {
>  	{ "UVD ENC create",  amdgpu_cs_uvd_enc_create },
>  	{ "UVD ENC session init",  amdgpu_cs_uvd_enc_session_init },
> @@ -98,7 +100,7 @@ int suite_uvd_enc_tests_init(void)
>  
>  	family_id = device_handle->info.family_id;
>  
> -	if (family_id < AMDGPU_FAMILY_AI || family_id >=
> AMDGPU_FAMILY_RV) {
> +	if (!uvd_enc_support()) {
>  		printf("\n\nThe ASIC NOT support UVD ENC, all sub-
> tests will pass\n");
>  		return CUE_SUCCESS;
>  	}
> @@ -121,7 +123,7 @@ int suite_uvd_enc_tests_clean(void)
>  {
>  	int r;
>  
> -	if (family_id < AMDGPU_FAMILY_AI || family_id >=
> AMDGPU_FAMILY_RV) {
> +	if (!uvd_enc_support()) {
>  
>  		r = amdgpu_device_deinitialize(device_handle);
>  		if (r)
> @@ -238,11 +240,24 @@ static void free_resource(struct
> amdgpu_uvd_enc_bo *uvd_enc_bo)
>  	memset(uvd_enc_bo, 0, sizeof(*uvd_enc_bo));
>  }
>  
> +static bool uvd_enc_support(void)
> +{
> +	int r;
> +	struct drm_amdgpu_info_hw_ip info;
> +
> +	r = amdgpu_query_hw_ip_info(device_handle,
> AMDGPU_HW_IP_UVD_ENC, 0, &info);
> +
> +	if (r)
> +		return false;
> +	else
> +		return (info.available_rings?true:false);
> +}
> +
>  static void amdgpu_cs_uvd_enc_create(void)
>  {
>  	int len, r;
>  
> -	if (family_id < AMDGPU_FAMILY_AI || family_id >=
> AMDGPU_FAMILY_RV)
> +	if (!uvd_enc_support())
>  		return;
>  
>  	enc.width = 160;
> @@ -281,7 +296,7 @@ static void amdgpu_cs_uvd_enc_session_init(void)
>  {
>  	int len, r;
>  
> -	if (family_id < AMDGPU_FAMILY_AI || family_id >=
> AMDGPU_FAMILY_RV)
> +	if (!uvd_enc_support())
>  		return;
>  
>  	len = 0;
> @@ -339,7 +354,7 @@ static void amdgpu_cs_uvd_enc_encode(void)
>  	vbuf_size = ALIGN(enc.width, align) * ALIGN(enc.height, 16)
> * 1.5;
>  	cpb_size = vbuf_size * 10;
>  
> -	if (family_id < AMDGPU_FAMILY_AI || family_id >=
> AMDGPU_FAMILY_RV)
> +	if (!uvd_enc_support())
>  		return;
>  
>  	num_resources  = 0;
> @@ -472,7 +487,7 @@ static void amdgpu_cs_uvd_enc_destroy(void)
>  	struct amdgpu_uvd_enc_bo sw_ctx;
>  	int len, r;
>  
> -	if (family_id < AMDGPU_FAMILY_AI || family_id >=
> AMDGPU_FAMILY_RV)
> +	if (!uvd_enc_support())
>  		return;
>  
>  	num_resources  = 0;


More information about the amd-gfx mailing list