All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314
@ 2022-07-19 18:26 Roman.Li
  2022-07-19 18:26 ` [PATCH 2/2] drm/amdgpu: add dm ip block for dcn 3.1.4 Roman.Li
  2022-07-19 19:02 ` [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314 Harry Wentland
  0 siblings, 2 replies; 4+ messages in thread
From: Roman.Li @ 2022-07-19 18:26 UTC (permalink / raw)
  To: amd-gfx, Alexander.Deucher, nicholas.kazlauskas; +Cc: Roman Li

From: Roman Li <roman.li@amd.com>

[Why]
DCN 3.1.4 uses dmub not dmcu. Attempt to identify
dmcu firmware for dcn314 results in dm init error:
"Unsupported ASIC type"

[How]
Add dcn314 to the list of asics that don't require dmcu

Signed-off-by: Roman Li <roman.li@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
 1 file changed, 1 insertion(+)

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 dae998e014b0..9fff5aa86567 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1893,6 +1893,7 @@ static int load_dmcu_fw(struct amdgpu_device *adev)
 		case IP_VERSION(3, 0, 1):
 		case IP_VERSION(3, 1, 2):
 		case IP_VERSION(3, 1, 3):
+		case IP_VERSION(3, 1, 4):
 		case IP_VERSION(3, 1, 5):
 		case IP_VERSION(3, 1, 6):
 		case IP_VERSION(3, 2, 0):
-- 
2.17.1


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

* [PATCH 2/2] drm/amdgpu: add dm ip block for dcn 3.1.4
  2022-07-19 18:26 [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314 Roman.Li
@ 2022-07-19 18:26 ` Roman.Li
  2022-07-19 18:31   ` Alex Deucher
  2022-07-19 19:02 ` [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314 Harry Wentland
  1 sibling, 1 reply; 4+ messages in thread
From: Roman.Li @ 2022-07-19 18:26 UTC (permalink / raw)
  To: amd-gfx, Alexander.Deucher, nicholas.kazlauskas; +Cc: Roman Li

From: Roman Li <Roman.Li@amd.com>

Adding dm ip block to enable display on dcn 3.1.4.

Signed-off-by: Roman Li <Roman.Li@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index 0ba56e2ebf09..242d1847c4aa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -1716,6 +1716,7 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)
 		case IP_VERSION(3, 0, 1):
 		case IP_VERSION(3, 1, 2):
 		case IP_VERSION(3, 1, 3):
+		case IP_VERSION(3, 1, 4):
 		case IP_VERSION(3, 1, 5):
 		case IP_VERSION(3, 1, 6):
 		case IP_VERSION(3, 2, 0):
-- 
2.17.1


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

* Re: [PATCH 2/2] drm/amdgpu: add dm ip block for dcn 3.1.4
  2022-07-19 18:26 ` [PATCH 2/2] drm/amdgpu: add dm ip block for dcn 3.1.4 Roman.Li
@ 2022-07-19 18:31   ` Alex Deucher
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Deucher @ 2022-07-19 18:31 UTC (permalink / raw)
  To: Roman.Li; +Cc: Alexander.Deucher, nicholas.kazlauskas, amd-gfx

Series is:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

On Tue, Jul 19, 2022 at 2:26 PM <Roman.Li@amd.com> wrote:
>
> From: Roman Li <Roman.Li@amd.com>
>
> Adding dm ip block to enable display on dcn 3.1.4.
>
> Signed-off-by: Roman Li <Roman.Li@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> index 0ba56e2ebf09..242d1847c4aa 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> @@ -1716,6 +1716,7 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)
>                 case IP_VERSION(3, 0, 1):
>                 case IP_VERSION(3, 1, 2):
>                 case IP_VERSION(3, 1, 3):
> +               case IP_VERSION(3, 1, 4):
>                 case IP_VERSION(3, 1, 5):
>                 case IP_VERSION(3, 1, 6):
>                 case IP_VERSION(3, 2, 0):
> --
> 2.17.1
>

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

* Re: [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314
  2022-07-19 18:26 [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314 Roman.Li
  2022-07-19 18:26 ` [PATCH 2/2] drm/amdgpu: add dm ip block for dcn 3.1.4 Roman.Li
@ 2022-07-19 19:02 ` Harry Wentland
  1 sibling, 0 replies; 4+ messages in thread
From: Harry Wentland @ 2022-07-19 19:02 UTC (permalink / raw)
  To: Roman.Li, amd-gfx, Alexander.Deucher, nicholas.kazlauskas

On 2022-07-19 14:26, Roman.Li@amd.com wrote:
> From: Roman Li <roman.li@amd.com>
> 
> [Why]
> DCN 3.1.4 uses dmub not dmcu. Attempt to identify
> dmcu firmware for dcn314 results in dm init error:
> "Unsupported ASIC type"
> 
> [How]
> Add dcn314 to the list of asics that don't require dmcu
> 
> Signed-off-by: Roman Li <roman.li@amd.com>

Reviewed-by: Harry Wentland <harry.wentland@amd.com>

Might be easier going forward if we simply return 0 in the
outside case statement instead of explicitly calling out
IPs that don't support DMCU. The default (any new ASIC) won't
support DMCU.

Harry

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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 dae998e014b0..9fff5aa86567 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -1893,6 +1893,7 @@ static int load_dmcu_fw(struct amdgpu_device *adev)
>  		case IP_VERSION(3, 0, 1):
>  		case IP_VERSION(3, 1, 2):
>  		case IP_VERSION(3, 1, 3):
> +		case IP_VERSION(3, 1, 4):
>  		case IP_VERSION(3, 1, 5):
>  		case IP_VERSION(3, 1, 6):
>  		case IP_VERSION(3, 2, 0):


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

end of thread, other threads:[~2022-07-19 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-19 18:26 [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314 Roman.Li
2022-07-19 18:26 ` [PATCH 2/2] drm/amdgpu: add dm ip block for dcn 3.1.4 Roman.Li
2022-07-19 18:31   ` Alex Deucher
2022-07-19 19:02 ` [PATCH 1/2] drm/amd/display: Disable dmcu fw loading for dcn314 Harry Wentland

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.