public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/amd/display: Look at firmware version to determine using dmub on dcn21
@ 2021-11-15 15:36 Mario Limonciello
  2021-11-15 15:45 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Mario Limonciello @ 2021-11-15 15:36 UTC (permalink / raw)
  To: stable; +Cc: Mario Limonciello, Alex Deucher

commit 91adec9e0709 ("drm/amd/display: Look at firmware version to
determine using dmub on dcn21")

Newer DMUB firmware on Renoir and Green Sardine do not need to disable
dmcu and this actually causes problems with DP-C alt mode for a number of
machines.

Backport the fix from this from hand modified backport because mainline
switched to IP version checking which doesn't exist in linux-stable.

BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1772
BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1735
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
Changes from v1->v2:
 * Update commit message syntax for hand modified commit
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 1ea31dcc7a8b..084491afe540 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1141,8 +1141,15 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 	case CHIP_RAVEN:
 	case CHIP_RENOIR:
 		init_data.flags.gpu_vm_support = true;
-		if (ASICREV_IS_GREEN_SARDINE(adev->external_rev_id))
+		switch (adev->dm.dmcub_fw_version) {
+		case 0: /* development */
+		case 0x1: /* linux-firmware.git hash 6d9f399 */
+		case 0x01000000: /* linux-firmware.git hash 9a0b0f4 */
+			init_data.flags.disable_dmcu = false;
+			break;
+		default:
 			init_data.flags.disable_dmcu = true;
+		}
 		break;
 	case CHIP_VANGOGH:
 	case CHIP_YELLOW_CARP:
-- 
2.25.1


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

* Re: [PATCH v2] drm/amd/display: Look at firmware version to determine using dmub on dcn21
  2021-11-15 15:36 [PATCH v2] drm/amd/display: Look at firmware version to determine using dmub on dcn21 Mario Limonciello
@ 2021-11-15 15:45 ` Greg KH
  2021-11-15 15:47   ` Limonciello, Mario
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2021-11-15 15:45 UTC (permalink / raw)
  To: Mario Limonciello; +Cc: stable, Alex Deucher

On Mon, Nov 15, 2021 at 09:36:55AM -0600, Mario Limonciello wrote:
> commit 91adec9e0709 ("drm/amd/display: Look at firmware version to
> determine using dmub on dcn21")
> 
> Newer DMUB firmware on Renoir and Green Sardine do not need to disable
> dmcu and this actually causes problems with DP-C alt mode for a number of
> machines.
> 
> Backport the fix from this from hand modified backport because mainline
> switched to IP version checking which doesn't exist in linux-stable.
> 
> BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1772
> BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1735
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> Changes from v1->v2:
>  * Update commit message syntax for hand modified commit
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)

What tree(s) are you wanting this backported to?

thanks,

greg k-h

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

* RE: [PATCH v2] drm/amd/display: Look at firmware version to determine using dmub on dcn21
  2021-11-15 15:45 ` Greg KH
@ 2021-11-15 15:47   ` Limonciello, Mario
  2021-11-15 16:16     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Limonciello, Mario @ 2021-11-15 15:47 UTC (permalink / raw)
  To: Greg KH; +Cc: stable@vger.kernel.org, Deucher, Alexander

[AMD Official Use Only]

> -----Original Message-----
> From: Greg KH <gregkh@linuxfoundation.org>
> Sent: Monday, November 15, 2021 09:46
> To: Limonciello, Mario <Mario.Limonciello@amd.com>
> Cc: stable@vger.kernel.org; Deucher, Alexander
> <Alexander.Deucher@amd.com>
> Subject: Re: [PATCH v2] drm/amd/display: Look at firmware version to
> determine using dmub on dcn21
> 
> On Mon, Nov 15, 2021 at 09:36:55AM -0600, Mario Limonciello wrote:
> > commit 91adec9e0709 ("drm/amd/display: Look at firmware version to
> > determine using dmub on dcn21")
> >
> > Newer DMUB firmware on Renoir and Green Sardine do not need to
> disable
> > dmcu and this actually causes problems with DP-C alt mode for a number of
> > machines.
> >
> > Backport the fix from this from hand modified backport because mainline
> > switched to IP version checking which doesn't exist in linux-stable.
> >
> > BugLink:
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitla
> b.freedesktop.org%2Fdrm%2Famd%2F-
> %2Fissues%2F1772&amp;data=04%7C01%7Cmario.limonciello%40amd.com%
> 7C6601c50631344fa7148208d9a84f050a%7C3dd8961fe4884e608e11a82d994e1
> 83d%7C0%7C0%7C637725879609631767%7CUnknown%7CTWFpbGZsb3d8eyJ
> WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> 7C3000&amp;sdata=jIGJARLqpAL6Vc6AyK8qVj1yZ7qFm5sXFj%2FerhoMEUc
> %3D&amp;reserved=0
> > BugLink:
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitla
> b.freedesktop.org%2Fdrm%2Famd%2F-
> %2Fissues%2F1735&amp;data=04%7C01%7Cmario.limonciello%40amd.com%
> 7C6601c50631344fa7148208d9a84f050a%7C3dd8961fe4884e608e11a82d994e1
> 83d%7C0%7C0%7C637725879609631767%7CUnknown%7CTWFpbGZsb3d8eyJ
> WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> 7C3000&amp;sdata=t8iG0MlBgncmZ5Py%2FhWuWBHMbSCCK%2BtFTV4faxcl
> N3c%3D&amp;reserved=0
> > Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> > Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> > ---
> > Changes from v1->v2:
> >  * Update commit message syntax for hand modified commit
> >  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 ++++++++-
> >  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> What tree(s) are you wanting this backported to?

5.13+

Thanks,

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

* Re: [PATCH v2] drm/amd/display: Look at firmware version to determine using dmub on dcn21
  2021-11-15 15:47   ` Limonciello, Mario
@ 2021-11-15 16:16     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2021-11-15 16:16 UTC (permalink / raw)
  To: Limonciello, Mario; +Cc: stable@vger.kernel.org, Deucher, Alexander

On Mon, Nov 15, 2021 at 03:47:24PM +0000, Limonciello, Mario wrote:
> [AMD Official Use Only]
> 
> > -----Original Message-----
> > From: Greg KH <gregkh@linuxfoundation.org>
> > Sent: Monday, November 15, 2021 09:46
> > To: Limonciello, Mario <Mario.Limonciello@amd.com>
> > Cc: stable@vger.kernel.org; Deucher, Alexander
> > <Alexander.Deucher@amd.com>
> > Subject: Re: [PATCH v2] drm/amd/display: Look at firmware version to
> > determine using dmub on dcn21
> > 
> > On Mon, Nov 15, 2021 at 09:36:55AM -0600, Mario Limonciello wrote:
> > > commit 91adec9e0709 ("drm/amd/display: Look at firmware version to
> > > determine using dmub on dcn21")
> > >
> > > Newer DMUB firmware on Renoir and Green Sardine do not need to
> > disable
> > > dmcu and this actually causes problems with DP-C alt mode for a number of
> > > machines.
> > >
> > > Backport the fix from this from hand modified backport because mainline
> > > switched to IP version checking which doesn't exist in linux-stable.
> > >
> > > BugLink:
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitla
> > b.freedesktop.org%2Fdrm%2Famd%2F-
> > %2Fissues%2F1772&amp;data=04%7C01%7Cmario.limonciello%40amd.com%
> > 7C6601c50631344fa7148208d9a84f050a%7C3dd8961fe4884e608e11a82d994e1
> > 83d%7C0%7C0%7C637725879609631767%7CUnknown%7CTWFpbGZsb3d8eyJ
> > WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> > 7C3000&amp;sdata=jIGJARLqpAL6Vc6AyK8qVj1yZ7qFm5sXFj%2FerhoMEUc
> > %3D&amp;reserved=0
> > > BugLink:
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitla
> > b.freedesktop.org%2Fdrm%2Famd%2F-
> > %2Fissues%2F1735&amp;data=04%7C01%7Cmario.limonciello%40amd.com%
> > 7C6601c50631344fa7148208d9a84f050a%7C3dd8961fe4884e608e11a82d994e1
> > 83d%7C0%7C0%7C637725879609631767%7CUnknown%7CTWFpbGZsb3d8eyJ
> > WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> > 7C3000&amp;sdata=t8iG0MlBgncmZ5Py%2FhWuWBHMbSCCK%2BtFTV4faxcl
> > N3c%3D&amp;reserved=0
> > > Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> > > Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> > > ---
> > > Changes from v1->v2:
> > >  * Update commit message syntax for hand modified commit
> > >  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 ++++++++-
> > >  1 file changed, 8 insertions(+), 1 deletion(-)
> > 
> > What tree(s) are you wanting this backported to?
> 
> 5.13+

Now queued up, thanks.

greg k-h

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

end of thread, other threads:[~2021-11-15 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-15 15:36 [PATCH v2] drm/amd/display: Look at firmware version to determine using dmub on dcn21 Mario Limonciello
2021-11-15 15:45 ` Greg KH
2021-11-15 15:47   ` Limonciello, Mario
2021-11-15 16:16     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox