* [PATCH] drm/amdgpu: set firmware loading type as direct by default for raven
@ 2017-07-04 8:35 Huang Rui
[not found] ` <1499157314-28393-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Huang Rui @ 2017-07-04 8:35 UTC (permalink / raw)
To: Alex Deucher, Christian König,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Cc: Jerry Zhang, Huang Rui, Hawking Zhang
In previous case, driver can't enable psp via the kernel parameter for raven.
We should open this path and set it as direct by default till psp firmware
loading is workable.
Signed-off-by: Huang Rui <ray.huang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index 17a935d..fcfb9d4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@ -275,14 +275,10 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
else
return AMDGPU_FW_LOAD_PSP;
case CHIP_RAVEN:
-#if 0
- if (!load_type)
+ if (load_type != 2)
return AMDGPU_FW_LOAD_DIRECT;
else
return AMDGPU_FW_LOAD_PSP;
-#else
- return AMDGPU_FW_LOAD_DIRECT;
-#endif
default:
DRM_ERROR("Unknow firmware load type\n");
}
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amdgpu: set firmware loading type as direct by default for raven
[not found] ` <1499157314-28393-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
@ 2017-07-04 9:39 ` Zhang, Jerry (Junwei)
[not found] ` <595B6267.9040600-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Jerry (Junwei) @ 2017-07-04 9:39 UTC (permalink / raw)
To: Huang Rui, Alex Deucher, Christian König,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Cc: Hawking Zhang
Hi Ray,
Thanks for your initial patch to enable PSP option for Raven.
To simplify it, we may leverage VEGA10 case for Raven directly.
And remove all Raven existing code under "case CHIP_RAVEN"
How do you think about it?
Jerry
On 07/04/2017 04:35 PM, Huang Rui wrote:
> In previous case, driver can't enable psp via the kernel parameter for raven.
> We should open this path and set it as direct by default till psp firmware
> loading is workable.
>
> Signed-off-by: Huang Rui <ray.huang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> index 17a935d..fcfb9d4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> @@ -275,14 +275,10 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
> else
> return AMDGPU_FW_LOAD_PSP;
> case CHIP_RAVEN:
> -#if 0
> - if (!load_type)
> + if (load_type != 2)
> return AMDGPU_FW_LOAD_DIRECT;
> else
> return AMDGPU_FW_LOAD_PSP;
> -#else
> - return AMDGPU_FW_LOAD_DIRECT;
> -#endif
> default:
> DRM_ERROR("Unknow firmware load type\n");
> }
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amdgpu: set firmware loading type as direct by default for raven
[not found] ` <595B6267.9040600-5C7GfCeVMHo@public.gmane.org>
@ 2017-07-04 9:59 ` Huang Rui
2017-07-04 10:11 ` Zhang, Jerry (Junwei)
0 siblings, 1 reply; 4+ messages in thread
From: Huang Rui @ 2017-07-04 9:59 UTC (permalink / raw)
To: Zhang, Jerry
Cc: Deucher, Alexander, Koenig, Christian,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
Zhang, Hawking
On Tue, Jul 04, 2017 at 05:39:51PM +0800, Zhang, Jerry wrote:
> Hi Ray,
>
> Thanks for your initial patch to enable PSP option for Raven.
>
> To simplify it, we may leverage VEGA10 case for Raven directly.
> And remove all Raven existing code under "case CHIP_RAVEN"
> How do you think about it?
>
Probably not. Vega10 enabled psp fw loading by default, but not for raven.
My mainly idea here is
default:
modprobe amdgpu -> use direct fw loading.
debugging psp:
modprobe amdgpu fw_load_type=2 -> use psp fw loading.
It doesn't impact other guys use and we can debug it more smoothly. :-)
Thanks,
Ray
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/amdgpu: set firmware loading type as direct by default for raven
2017-07-04 9:59 ` Huang Rui
@ 2017-07-04 10:11 ` Zhang, Jerry (Junwei)
0 siblings, 0 replies; 4+ messages in thread
From: Zhang, Jerry (Junwei) @ 2017-07-04 10:11 UTC (permalink / raw)
To: Huang Rui
Cc: Deucher, Alexander, Koenig, Christian,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
Zhang, Hawking
On 07/04/2017 05:59 PM, Huang Rui wrote:
> On Tue, Jul 04, 2017 at 05:39:51PM +0800, Zhang, Jerry wrote:
>> Hi Ray,
>>
>> Thanks for your initial patch to enable PSP option for Raven.
>>
>> To simplify it, we may leverage VEGA10 case for Raven directly.
>> And remove all Raven existing code under "case CHIP_RAVEN"
>> How do you think about it?
>>
>
> Probably not. Vega10 enabled psp fw loading by default, but not for raven.
>
> My mainly idea here is
>
> default:
> modprobe amdgpu -> use direct fw loading.
>
> debugging psp:
> modprobe amdgpu fw_load_type=2 -> use psp fw loading.
>
> It doesn't impact other guys use and we can debug it more smoothly. :-)
Thanks to explain it in detail.
Got it.
Feel free to add my RB and we can improve it when everything is settled down.
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
>
> Thanks,
> Ray
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-04 10:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-04 8:35 [PATCH] drm/amdgpu: set firmware loading type as direct by default for raven Huang Rui
[not found] ` <1499157314-28393-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-07-04 9:39 ` Zhang, Jerry (Junwei)
[not found] ` <595B6267.9040600-5C7GfCeVMHo@public.gmane.org>
2017-07-04 9:59 ` Huang Rui
2017-07-04 10:11 ` Zhang, Jerry (Junwei)
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.