drm/amdgpu:skip ASIC_INIT when posting card on vg20
Subsystems (2)
PATCH 1/1 drm/amdgpu:skip ASIC_INIT when posting card on vg20
On vega20, the job of executing the ASIC_INIT table when posting card is moved to psp. Skip the atombios's ASIC_INIT on vega20 when posting card.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
@@ -2513,8 +2513,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,/* detect if we are with an SRIOV vbios */ amdgpu_device_detect_sriov_bios (adev); +DRM_INFO ("skip posting card using ASIC INIT table in vbios on vega20\n" );/* Post card if necessary */ -if (amdgpu_device_need_post (adev)) { +if ((adev->asic_type !=CHIP_VEGA20 ) &&amdgpu_device_need_post (adev)) {if (!adev->bios) {dev_err (adev->dev,"no vBIOS found\n" ); r = -EINVAL ;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Tested on pro stack vega20.
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Feifei Xu
Sent: Monday, December 10, 2018 12:46 PM
To: [email protected]
Cc: Xu, Feifei <[email protected]>
Subject: [PATCH] drm/amdgpu:skip ASIC_INIT when posting card on vg20
On vega20, the job of executing the ASIC_INIT table when posting card is moved to psp. Skip the atombios's ASIC_INIT on vega20 when posting card.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -1
@@ -2513,8 +2513,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,/* detect if we are with an SRIOV vbios */ amdgpu_device_detect_sriov_bios (adev); +DRM_INFO ("skip posting card using ASIC INIT table in vbios on + vega20\n");/* Post card if necessary */ -if (amdgpu_device_need_post (adev)) { +if ((adev->asic_type !=CHIP_VEGA20 ) &&amdgpu_device_need_post (adev)) +{if (!adev->bios) {
dev_err(adev->dev, "no vBIOS found\n"); r = -EINVAL;
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Is the DRM_INFO print necessary?
And it will get printed even running on other ASIC.
Regards,
Evan
Quoted 40 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Feifei Xu
Sent: 2018年12月10日 12:46
To: [email protected]
Cc: Xu, Feifei <[email protected]>
Subject: [PATCH] drm/amdgpu:skipASIC_INITwhen posting card on vg20On vega20, the job of executing the
ASIC_INITtable when posting card is moved to psp. Skip the atombios'sASIC_INITon vega20 when posting card.Change-Id Id1d3c0a0d19296d5ed804de7edf5b09b8d38c0a5Signed-off-by Feifei Xu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4
-2@@ -2513,8 +2513,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,/* detect if we are with an SRIOV vbios */ amdgpu_device_detect_sriov_bios (adev); +DRM_INFO ("skip posting card using ASIC INIT table in vbios on + vega20\n");/* Post card if necessary */ -if (amdgpu_device_need_post (adev)) { +if ((adev->asic_type !=CHIP_VEGA20 ) &&amdgpu_device_need_post (adev)) +{if (!adev->bios) {dev_err (adev->dev,"no vBIOS found\n" ); r = -EINVAL ; --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): SN6PR12MB2656B901136B1A5B9333A70EE4A50-kxOKjb6HO/FeL/[email protected]
I will remove the DRM_INFO and send v2. Thanks.
-----Original Message-----
From: Quan, Evan <[email protected]>
Sent: Monday, December 10, 2018 1:10 PM
To: Xu, Feifei <[email protected]>; [email protected]
Cc: Xu, Feifei <[email protected]>
Subject: RE: [PATCH] drm/amdgpu:skip ASIC_INIT when posting card on vg20
Is the DRM_INFO print necessary?
And it will get printed even running on other ASIC.
Regards,
Evan
Quoted 40 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Feifei Xu
Sent: 2018年12月10日 12:46
To: [email protected]
Cc: Xu, Feifei <[email protected]>
Subject: [PATCH] drm/amdgpu:skipASIC_INITwhen posting card on vg20On vega20, the job of executing the
ASIC_INITtable when posting card is moved to psp. Skip the atombios'sASIC_INITon vega20 when posting card.Change-Id Id1d3c0a0d19296d5ed804de7edf5b09b8d38c0a5Signed-off-by Feifei Xu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4
-2@@ -2513,8 +2513,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,/* detect if we are with an SRIOV vbios */ amdgpu_device_detect_sriov_bios (adev); +DRM_INFO ("skip posting card using ASIC INIT table in vbios on + vega20\n");/* Post card if necessary */ -if (amdgpu_device_need_post (adev)) { +if ((adev->asic_type !=CHIP_VEGA20 ) &&amdgpu_device_need_post (adev)) +{if (!adev->bios) {dev_err (adev->dev,"no vBIOS found\n" ); r = -EINVAL ; --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
vbios asic init will still work. It will wait on the psp init so I'd suggest we just drop this patch to keep the code consistent. There are also possibly some registers that are handled by vbios asic init rather than psp.
Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Feifei Xu <[email protected]>
Sent: Sunday, December 9, 2018 11:45:52 PM
To: [email protected]
Cc: Xu, Feifei
Subject: [PATCH] drm/amdgpu:skip ASIC_INIT when posting card on vg20
On vega20, the job of executing the ASIC_INIT table when posting card is moved to psp. Skip the atombios's ASIC_INIT on vega20 when posting card.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
@@ -2513,8 +2513,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,/* detect if we are with an SRIOV vbios */ amdgpu_device_detect_sriov_bios (adev); +DRM_INFO ("skip posting card using ASIC INIT table in vbios on vega20\n" );/* Post card if necessary */ -if (amdgpu_device_need_post (adev)) { +if ((adev->asic_type !=CHIP_VEGA20 ) &&amdgpu_device_need_post (adev)) {if (!adev->bios) {dev_err (adev->dev,"no vBIOS found\n" ); r = -EINVAL ;
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx