All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: Fix GPU lockups for the R7 M270
@ 2017-03-11 16:21 Umang Raghuvanshi
  2017-03-13 19:30   ` Alex Deucher
  0 siblings, 1 reply; 6+ messages in thread
From: Umang Raghuvanshi @ 2017-03-11 16:21 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David Airlie, amd-gfx,
	dri-devel, linux-kernel
  Cc: Umang Raghuvanshi

Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed
quirks for Oland but also caused a regression where M270 GPUs
would go into a lock-up when OpenGL intensive applications were used.
This reverts the change only for the M270 and fixes the lock-ups.

Signed-off-by: Umang Raghuvanshi <u@umangis.me>
---
 drivers/gpu/drm/radeon/si_dpm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c
index d12b8978142f..c2c129eef3c4 100644
--- a/drivers/gpu/drm/radeon/si_dpm.c
+++ b/drivers/gpu/drm/radeon/si_dpm.c
@@ -2984,6 +2984,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
 		    (rdev->pdev->device == 0x6667)) {
 			max_sclk = 75000;
 		}
+	} else if (rdev->family == CHIP_OLAND && rdev->pdev->device == 0x6604 &&
+		   rdev->pdev->revision == 0) {
+		// Fix max_sclk and max_mclk for the Radeon R7 M270
+		max_sclk = 75000;
+		max_mclk = 80000;
 	}
 
 	if (rps->vce_active) {
-- 
2.12.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270
@ 2017-03-13 19:30   ` Alex Deucher
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Deucher @ 2017-03-13 19:30 UTC (permalink / raw)
  To: Umang Raghuvanshi
  Cc: Alex Deucher, Christian König, David Airlie, amd-gfx list,
	Maling list - DRI developers, LKML

On Sat, Mar 11, 2017 at 11:21 AM, Umang Raghuvanshi <u@umangis.me> wrote:
> Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed
> quirks for Oland but also caused a regression where M270 GPUs
> would go into a lock-up when OpenGL intensive applications were used.
> This reverts the change only for the M270 and fixes the lock-ups.

Does your kernel have this patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325

Alex

>
> Signed-off-by: Umang Raghuvanshi <u@umangis.me>
> ---
>  drivers/gpu/drm/radeon/si_dpm.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c
> index d12b8978142f..c2c129eef3c4 100644
> --- a/drivers/gpu/drm/radeon/si_dpm.c
> +++ b/drivers/gpu/drm/radeon/si_dpm.c
> @@ -2984,6 +2984,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
>                     (rdev->pdev->device == 0x6667)) {
>                         max_sclk = 75000;
>                 }
> +       } else if (rdev->family == CHIP_OLAND && rdev->pdev->device == 0x6604 &&
> +                  rdev->pdev->revision == 0) {
> +               // Fix max_sclk and max_mclk for the Radeon R7 M270
> +               max_sclk = 75000;
> +               max_mclk = 80000;
>         }
>
>         if (rps->vce_active) {
> --
> 2.12.0
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270
@ 2017-03-13 19:30   ` Alex Deucher
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Deucher @ 2017-03-13 19:30 UTC (permalink / raw)
  To: Umang Raghuvanshi
  Cc: David Airlie, LKML, Maling list - DRI developers, amd-gfx list,
	Alex Deucher, Christian König

On Sat, Mar 11, 2017 at 11:21 AM, Umang Raghuvanshi <u@umangis.me> wrote:
> Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed
> quirks for Oland but also caused a regression where M270 GPUs
> would go into a lock-up when OpenGL intensive applications were used.
> This reverts the change only for the M270 and fixes the lock-ups.

Does your kernel have this patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325

Alex

>
> Signed-off-by: Umang Raghuvanshi <u@umangis.me>
> ---
>  drivers/gpu/drm/radeon/si_dpm.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c
> index d12b8978142f..c2c129eef3c4 100644
> --- a/drivers/gpu/drm/radeon/si_dpm.c
> +++ b/drivers/gpu/drm/radeon/si_dpm.c
> @@ -2984,6 +2984,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
>                     (rdev->pdev->device == 0x6667)) {
>                         max_sclk = 75000;
>                 }
> +       } else if (rdev->family == CHIP_OLAND && rdev->pdev->device == 0x6604 &&
> +                  rdev->pdev->revision == 0) {
> +               // Fix max_sclk and max_mclk for the Radeon R7 M270
> +               max_sclk = 75000;
> +               max_mclk = 80000;
>         }
>
>         if (rps->vce_active) {
> --
> 2.12.0
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270
  2017-03-13 19:30   ` Alex Deucher
  (?)
@ 2017-03-14  2:42   ` Umang Raghuvanshi
  2017-03-14 14:34       ` Alex Deucher
  -1 siblings, 1 reply; 6+ messages in thread
From: Umang Raghuvanshi @ 2017-03-14  2:42 UTC (permalink / raw)
  To: Alex Deucher
  Cc: Alex Deucher, Christian König, David Airlie, amd-gfx list,
	Maling list - DRI developers, LKML


[-- Attachment #1.1: Type: text/plain, Size: 319 bytes --]



On 03/14/2017 01:00 AM, Alex Deucher wrote:

> Does your kernel have this patch:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325

Yes, my kernel has this patch (this issue first occurred in v4.10).

-- 
Cheers,
Umang Raghuvanshi.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270
@ 2017-03-14 14:34       ` Alex Deucher
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Deucher @ 2017-03-14 14:34 UTC (permalink / raw)
  To: Umang Raghuvanshi
  Cc: Alex Deucher, Christian König, David Airlie, amd-gfx list,
	Maling list - DRI developers, LKML

On Mon, Mar 13, 2017 at 10:42 PM, Umang Raghuvanshi <u@umangis.me> wrote:
>
>
> On 03/14/2017 01:00 AM, Alex Deucher wrote:
>
>> Does your kernel have this patch:
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325
>
> Yes, my kernel has this patch (this issue first occurred in v4.10).


Can you send me the dmesg output from your system?

Thanks,

Alex

>
> --
> Cheers,
> Umang Raghuvanshi.
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270
@ 2017-03-14 14:34       ` Alex Deucher
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Deucher @ 2017-03-14 14:34 UTC (permalink / raw)
  To: Umang Raghuvanshi
  Cc: David Airlie, LKML, Maling list - DRI developers, amd-gfx list,
	Alex Deucher, Christian König

On Mon, Mar 13, 2017 at 10:42 PM, Umang Raghuvanshi <u@umangis.me> wrote:
>
>
> On 03/14/2017 01:00 AM, Alex Deucher wrote:
>
>> Does your kernel have this patch:
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325
>
> Yes, my kernel has this patch (this issue first occurred in v4.10).


Can you send me the dmesg output from your system?

Thanks,

Alex

>
> --
> Cheers,
> Umang Raghuvanshi.
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-14 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-11 16:21 [PATCH] drm/radeon: Fix GPU lockups for the R7 M270 Umang Raghuvanshi
2017-03-13 19:30 ` Alex Deucher
2017-03-13 19:30   ` Alex Deucher
2017-03-14  2:42   ` Umang Raghuvanshi
2017-03-14 14:34     ` Alex Deucher
2017-03-14 14:34       ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.