Change the hw ip initialize sequence
Subsystems (2)
cover Change the hw ip initialize sequence
we are suggested to initialize gfx/sdma before power feature enabled. and On Vi, the gfx/sdma fw will be loaded by smu, Export load_firmware interface to gfx/sdma, so gfx/sdma can trigger fw loading if they were initialized before smu.
Rex Zhu (5):
drm/amdgpu: Don't reallocate ucode bo when suspend drm/amd/pp: Allocate ucode bo in request_smu_load_fw drm/amd/pp: Implement load_firmware interface drm/amdgpu: Add fw load in gfx_v8 and sdma_v3 drm/amdgpu: Change VI gfx/sdma/smu init sequence
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 11 ++++++++++ drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 8 ++++++++ drivers/gpu/drm/amd/amdgpu/vi.c | 24 +++++++++++----------- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 18 +++++++++++++--- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 2 ++ drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 2 ++ 7 files changed, 51 insertions(+), 16 deletions(-)
Signature · 6 lines
1.9.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): 1538565000-30532-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
PATCH 1/5 drm/amdgpu: Don't reallocate ucode bo when suspend
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1 -1
@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev)return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size, PAGE_SIZE, amdgpu_sriov_vf(adev) ? AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT, &adev->firmware.fw_buf,
Signature · 6 lines
1.9.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): 1538565000-30532-2-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 14 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device *adev) · line 440
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev)return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size, PAGE_SIZE, amdgpu_sriov_vf(adev) ? AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT, &adev->firmware.fw_buf,
Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Alex
Quoted 7 lines
--
1.9.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
A message that is not in the archive (sent off-list or not yet received): CADnq5_MvoNsbMCxxv7QNg7Xd1Ufp2y_Tzb=Ls11R_0gaeFwxOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 33 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspenddrivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device
Quoted 15 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device *adev)
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
Quoted 7 lines
PAGE_SIZE,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device · line 439
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device *adev) · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if in SRIOV case?
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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
A message that is not in the archive (sent off-list or not yet received): BYAPR12MB2775AA30E68EEE0FFE883492FBE60-ZGDeBxoHBPmJeBUhB162ZQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 46 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 35 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspenddrivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device
Quoted 15 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device *adev)
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct amdgpu_device · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if in SRIOV case?
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
Alex
Quoted 8 lines
Rex
Quoted 5 lines
Alex
Quoted 3 lines
--
1.9.1
Quoted 8 lines
Quoted 4 lines
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
_______________________________________________
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): BN6PR12MB18090E11A7EE4A4E6901C3A1F7E60-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 62 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 29 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 18 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 9 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 16 lines
Quoted 15 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Quoted 6 lines
Quoted 3 lines
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if in SRIOV case?
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
The gart table was unpinned when suspend.so don't need to create the bo again. we still copy the ucode to the bo. And in baremetal, this function can return directly for S3.
Rex
Quoted 18 lines
Alex
Quoted 16 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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
_______________________________________________
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): BYAPR12MB2775299C03A4F9BCFF6B9F2BFBE60-ZGDeBxoHBPmJeBUhB162ZQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Am 08.10.2018 um 18:30 schrieb Zhu, Rex:
Quoted 58 lines
Quoted 58 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 28 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 17 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 8 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 14 lines
Quoted 14 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if in SRIOV case?
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
The gart table was unpinned when suspend.so don't need to create the bo again. we still copy the ucode to the bo. And in baremetal, this function can return directly for S3.
That's irrelevant.
The whole code is buggy since amdgpu_ucode_fini_bo() will drop the BO independent if we are in reset or in suspend.
The correct handling here is to remove the if all together and make sure amdgpu_bo_create_kernel() is ALWAYS called.
Cause then it is always re-created if it isn't there already.
Alternatively we could fix up the callers of amdgpu_ucode_init_bo() and amdgpu_ucode_fini_bo() to be correctly balanced.
Christian.
Quoted 17 lines
Rex
Quoted 13 lines
Alex
Quoted 11 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.1_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines
Quoted 4 lines
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
_______________________________________________
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): 37f64613-0ae4-df1e-b306-00abdb71eb11-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 77 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, October 9, 2018 1:32 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 18:30 schrieb Zhu, Rex:
Quoted 5 lines
Quoted 5 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex DeucherQuoted 48 lines
Quoted 48 lines
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 28 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 17 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 8 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 9 lines
Quoted 9 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if in SRIOV
case?
Quoted 2 lines
Quoted 2 lines
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
Quoted 8 lines
Quoted 1 line
The gart table was unpinned when suspend.so don't need to create the bo
again. we still copy the ucode to the bo.
Quoted 1 line
And in baremetal, this function can return directly for S3.
That's irrelevant.
The whole code is buggy since
amdgpu_ucode_fini_bo()will drop the BO independent if we are in reset or in suspend.
We don't call amdgpu_ucode_fini_bo when suspend/sriov_reset.
Rex
Quoted 35 lines
The correct handling here is to remove the if all together and make sure
amdgpu_bo_create_kernel()is ALWAYS called.Cause then it is always re-created if it isn't there already.
Alternatively we could fix up the callers of
amdgpu_ucode_init_bo()andamdgpu_ucode_fini_bo()to be correctly balanced.Christian.
Quoted 25 lines
Rex
Quoted 17 lines
Alex
Quoted 15 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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_______________________________________________
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): BYAPR12MB2775618E156FC2AFC3ACAEDEFBE60-ZGDeBxoHBPmJeBUhB162ZQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Am 08.10.2018 um 19:58 schrieb Zhu, Rex:
Quoted 75 lines
Quoted 75 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, October 9, 2018 1:32 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 18:30 schrieb Zhu, Rex:
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex DeucherQuoted 48 lines
Quoted 48 lines
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 28 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 17 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 8 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 9 lines
Quoted 9 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if in SRIOV
case?
Quoted 2 lines
Quoted 2 lines
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
Quoted 8 lines
Quoted 7 lines
Quoted 1 line
The gart table was unpinned when suspend.so don't need to create the bo
again. we still copy the ucode to the bo.
Quoted 1 line
And in baremetal, this function can return directly for S3.
That's irrelevant.
The whole code is buggy since
amdgpu_ucode_fini_bo()will drop the BO independent if we are in reset or in suspend.We don't call
amdgpu_ucode_fini_bowhen suspend/sriov_reset.
Yeah and exactly that's the bug which should be fixed instead.
Christian.
Quoted 37 lines
Rex
Quoted 34 lines
The correct handling here is to remove the if all together and make sure
amdgpu_bo_create_kernel()is ALWAYS called.Cause then it is always re-created if it isn't there already.
Alternatively we could fix up the callers of
amdgpu_ucode_init_bo()andamdgpu_ucode_fini_bo()to be correctly balanced.Christian.
Quoted 24 lines
Rex
Quoted 17 lines
Alex
Quoted 15 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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_______________________________________________
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): dfa9ab3d-56f9-33d5-39e2-04a5cd6269d3-5C7GfCeVMHo@public.gmane.org
RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 93 lines
-----Original Message-----
From: Koenig, Christian
Sent: Tuesday, October 9, 2018 2:03 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 19:58 schrieb Zhu, Rex:
Quoted 15 lines
Quoted 15 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, October 9, 2018 1:32 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 18:30 schrieb Zhu, Rex:
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex DeucherQuoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 2 lines
-----Original Message-----
From: amd-gfx <[email protected]> On BehalfOf
Quoted 58 lines
Quoted 58 lines
Quoted 45 lines
Quoted 45 lines
Quoted 26 lines
Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 17 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 8 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 12 lines
Quoted 12 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if
in SRIOVcase?
Quoted 4 lines
Quoted 2 lines
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
The gart table was unpinned when suspend.so don't need to create the bo
again. we still copy the ucode to the bo.
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
And in baremetal, this function can return directly for S3.
That's irrelevant.
The whole code is buggy since
amdgpu_ucode_fini_bo()will drop the BO independent if we are in reset or in suspend.We don't call
amdgpu_ucode_fini_bowhen suspend/sriov_reset.Yeah and exactly that's the bug which should be fixed instead.
Sorry, I don't understand.
Why we need to release the bo when suspend?
In amdgpu, we create a bunch of bo(vram_scratch.robj, e.g), we only free them when driver unload.
Rex
Quoted 41 lines
Christian.
Quoted 39 lines
Rex
Quoted 36 lines
The correct handling here is to remove the if all together and make sure
amdgpu_bo_create_kernel()is ALWAYS called.Cause then it is always re-created if it isn't there already.
Alternatively we could fix up the callers of
amdgpu_ucode_init_bo()andamdgpu_ucode_fini_bo()to be correctly balanced.Christian.
Quoted 24 lines
Rex
Quoted 17 lines
Alex
Quoted 15 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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_______________________________________________
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): BYAPR12MB27754292CE2CA3E542075A01FBE60-ZGDeBxoHBPmJeBUhB162ZQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Am 08.10.2018 um 20:15 schrieb Zhu, Rex:
Quoted 93 lines
Quoted 93 lines
-----Original Message-----
From: Koenig, Christian
Sent: Tuesday, October 9, 2018 2:03 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 19:58 schrieb Zhu, Rex:
Quoted 14 lines
Quoted 14 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, October 9, 2018 1:32 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 18:30 schrieb Zhu, Rex:
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex DeucherQuoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 2 lines
-----Original Message-----
From: amd-gfx <[email protected]> On BehalfOf
Quoted 60 lines
Quoted 60 lines
Quoted 43 lines
Quoted 43 lines
Quoted 26 lines
Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 17 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 8 lines · Rex Zhu
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 10 lines
Quoted 10 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend if
in SRIOVcase?
Quoted 4 lines
Quoted 2 lines
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages that.
The gart table was unpinned when suspend.so don't need to create the bo
again. we still copy the ucode to the bo.
Quoted 1 line
And in baremetal, this function can return directly for S3.
That's irrelevant.
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
The whole code is buggy since
amdgpu_ucode_fini_bo()will drop the BO independent if we are in reset or in suspend.We don't call
amdgpu_ucode_fini_bowhen suspend/sriov_reset.Yeah and exactly that's the bug which should be fixed instead.
Sorry, I don't understand.
Why we need to release the bo when suspend?
In amdgpu, we create a bunch ofbo(vram_scratch.robj, e.g), we only free them when driver unload.
You should not release the BO while suspending, but the amdgpu_ucode_fini_bo() and amdgpu_ucode_init_bo() should be called under the same conditions.
This means we should either separate filling the BO from allocating it (e.g. split amdgpu_ucode_init_bo into two functions) and then only call the filling function during GPU reset and resume.
Or we add the same "if (!adev->in_gpu_reset && !adev->in_suspend)" into the amdgpu_ucode_fini_bo() function as well.
I consider the first one more cleaner.
Christian.
Quoted 39 lines
Rex
Quoted 36 lines
Christian.
Quoted 34 lines
Rex
Quoted 32 lines
The correct handling here is to remove the if all together and make sure
amdgpu_bo_create_kernel()is ALWAYS called.Cause then it is always re-created if it isn't there already.
Alternatively we could fix up the callers of
amdgpu_ucode_init_bo()andamdgpu_ucode_fini_bo()to be correctly balanced.Christian.
Quoted 20 lines
Rex
Quoted 17 lines
Alex
Quoted 15 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
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
_______________________________________________
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): 872987e6-57a0-ff6f-c39e-b75c98fd6ecd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspend
Quoted 3 lines
This means we should either separate filling the BO from allocating it (e.g. split
amdgpu_ucode_init_bointo two functions) and then only call the filling function during GPU reset and resume.
Got it. Thanks.
I will refine this function.
Regards
Rex
Quoted 124 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, October 9, 2018 2:22 AM
To: Zhu, Rex <[email protected]>; Koenig, Christian <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 20:15 schrieb Zhu, Rex:
Quoted 10 lines
Quoted 10 lines
-----Original Message-----
From: Koenig, Christian
Sent: Tuesday, October 9, 2018 2:03 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 6 lines
Quoted 6 lines
Am 08.10.2018 um 19:58 schrieb Zhu, Rex:
Quoted 5 lines
Quoted 5 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, October 9, 2018 1:32 AM
To: Zhu, Rex <[email protected]>; Deucher, Alexander <[email protected]>; Alex DeucherQuoted 35 lines
Quoted 35 lines
Quoted 9 lines
Quoted 9 lines
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendAm 08.10.2018 um 18:30 schrieb Zhu, Rex:
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Deucher, Alexander
Sent: Tuesday, October 9, 2018 12:21 AM
To: Zhu, Rex <[email protected]>; Alex DeucherQuoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 2 lines
-----Original Message-----
From: amd-gfx <[email protected]> On BehalfOf
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Zhu, Rex
Sent: Monday, October 8, 2018 11:57 AM
To: Alex Deucher <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: RE: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendQuoted 9 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:35 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 1/5] drm/amdgpu: Don't reallocate ucode bo when suspendOn Wed, Oct 3, 2018 at 7:11 AM Rex Zhu <[email protected]>
Quoted 29 lines · wrote:
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
driver don't release the ucode memory when suspend. so don't need to allocate bo when resume back.
Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0@@ -434,7 +434,7 @@ int amdgpu_ucode_init_bo(struct
amdgpu_deviceQuoted 14 lines
Quoted 14 lines
*adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 439
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1
-1return 0 ; } -if (!adev->in_gpu_reset) { +if (!adev->in_gpu_reset && !adev->in_suspend) { err = amdgpu_bo_create_kernel(adev, adev->firmware.fw_size,
PAGE_SIZE,drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c int amdgpu_ucode_init_bo(struct · line 440
Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0
-0amdgpu_sriov_vf(adev) ?
AMDGPU_GEM_DOMAIN_VRAM:AMDGPU_GEM_DOMAIN_GTT,Quoted 1 line
&adev->firmware.fw_buf,Not sure if we support S3 in SR-IOV, but I think this will break it because we'll lose vram contents and not re-init it.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Confirm with SR-IOV team, S3 was not supported in SR-IOV.
But I still confused why this patch will break the suspend
if in SRIOVcase?
Quoted 2 lines
Quoted 2 lines
Pinned buffers don't get evicted so if we lose VRAM due to a gpu reset or S3, the data is lost. GTT is retained since the OS manages
that.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
The gart table was unpinned when suspend.so don't need to create the bo
again. we still copy the ucode to the bo.
Quoted 1 line
And in baremetal, this function can return directly for S3.
That's irrelevant.
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
The whole code is buggy since
amdgpu_ucode_fini_bo()will drop the BO independent if we are in reset or in suspend.We don't call
amdgpu_ucode_fini_bowhen suspend/sriov_reset.Yeah and exactly that's the bug which should be fixed instead.
Sorry, I don't understand.
Why we need to release the bo when suspend?
In amdgpu, we create a bunch ofbo(vram_scratch.robj, e.g), we only freethem when driver unload.
You should not release the BO while suspending, but the
amdgpu_ucode_fini_bo()andamdgpu_ucode_init_bo()should be called under the same conditions.This means we should either separate filling the BO from allocating it (e.g. split
amdgpu_ucode_init_bointo two functions) and then only call the filling function during GPU reset and resume.
Quoted 54 lines
Or we add the same "if (!adev->in_gpu_reset && !adev->in_suspend)" into the
amdgpu_ucode_fini_bo()function as well.I consider the first one more cleaner.
Christian.
Quoted 47 lines
Rex
Quoted 40 lines
Christian.
Quoted 38 lines
Rex
Quoted 36 lines
The correct handling here is to remove the if all together and make sure
amdgpu_bo_create_kernel()is ALWAYS called.Cause then it is always re-created if it isn't there already.
Alternatively we could fix up the callers of
amdgpu_ucode_init_bo()andamdgpu_ucode_fini_bo()to be correctly balanced.Christian.
Quoted 24 lines
Rex
Quoted 17 lines
Alex
Quoted 15 lines
Rex
Quoted 9 lines
Alex
Quoted 7 lines
--
1.9.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_______________________________________________
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
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/5 drm/amd/pp: Allocate ucode bo in request_smu_load_fw
In reply to a message not in the archiveucode bo is needed by request_smu_load_fw, the request_smu_load_fw maybe called by gfx/sdma before smu hw init.
so move amdgpu_ucode_bo_init to request_smu_lowd_fw from smu hw init.
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 --- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 2 ++ drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +0 -3
@@ -124,9 +124,6 @@ static int pp_hw_init(void *handle)struct amdgpu_device *adev = handle;struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; -if (adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU ) -amdgpu_ucode_init_bo (adev); - ret =hwmgr_hw_init (hwmgr);if (ret)
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +2 -0
@@ -346,6 +346,8 @@ int smu7_request_smu_load_fw(struct pp_hwmgr *hwmgr)if (!hwmgr->reload_fw)return 0 ; +amdgpu_ucode_init_bo (hwmgr->adev); +if (smu_data->soft_regs_start)cgs_write_ind_register (hwmgr->device,CGS_IND_REG__SMC , smu_data->soft_regs_start + smum_get_offsetof(hwmgr,
drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c +2 -0
@@ -664,6 +664,8 @@ static int smu8_request_smu_load_fw(struct pp_hwmgr *hwmgr)if (!hwmgr->reload_fw)return 0 ; +amdgpu_ucode_init_bo (hwmgr->adev); +smu8_smu_populate_firmware_entries (hwmgr);smu8_smu_construct_toc (hwmgr);
Signature · 6 lines
1.9.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): 1538565000-30532-3-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byRe: [PATCH 2/5] drm/amd/pp: Allocate ucode bo in request_smu_load_fw
Quoted 9 lines · Rex Zhu
ucode bo is needed by
request_smu_load_fw, therequest_smu_load_fwmaybe called by gfx/sdma before smu hw init.
so moveamdgpu_ucode_bo_inittorequest_smu_lowd_fwfrom smu hw init.Reviewed-by Evan Quan <[email protected]>Signed-off-by Rex Zhu <[email protected]>
Quoted 49 lines
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 --- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 2 ++ drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/powerplay/amd_powerplay.c +0
-3@@ -124,9 +124,6 @@ static int pp_hw_init(void *handle)struct amdgpu_device *adev = handle;struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle; -if (adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU ) -amdgpu_ucode_init_bo (adev); - ret =hwmgr_hw_init (hwmgr);if (ret)drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +2
-0@@ -346,6 +346,8 @@ int smu7_request_smu_load_fw(struct pp_hwmgr *hwmgr)if (!hwmgr->reload_fw)return 0 ; +amdgpu_ucode_init_bo (hwmgr->adev); +if (smu_data->soft_regs_start)cgs_write_ind_register (hwmgr->device,CGS_IND_REG__SMC , smu_data->soft_regs_start + smum_get_offsetof(hwmgr,drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c +2
-1@@ -664,6 +664,8 @@ static int smu8_request_smu_load_fw(struct pp_hwmgr *hwmgr)if (!hwmgr->reload_fw)return 0 ; +amdgpu_ucode_init_bo (hwmgr->adev); +smu8_smu_populate_firmware_entries (hwmgr);smu8_smu_construct_toc (hwmgr); --1.9.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
PATCH 3/5 drm/amd/pp: Implement load_firmware interface
In reply to a message not in the archivewith this interface, gfx/sdma can be initialized
before smu.
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +15 -0
@@ -270,8 +270,23 @@ static int pp_set_clockgating_state(void *handle, .funcs = &pp_ip_funcs, }; +/* This interface only be supported On Vi, +* because only smu7/8 can help to load gfx/sdma fw, +* smu need to be enabled before load other ip's fw. +* so call start smu to load smu7 fw and other ip's fw +*/ static int pp_dpm_load_fw (void *handle) { +struct pp_hwmgr *hwmgr = handle; + +if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu) +return -EINVAL ; + +if (hwmgr->smumgr_funcs->start_smu (hwmgr)) { +pr_err ("fw load failed\n" ); +return -EINVAL ; + } +return 0 ; }
Signature · 6 lines
1.9.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): 1538565000-30532-4-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byRe: [PATCH 3/5] drm/amd/pp: Implement load_firmware interface
Quoted 5 lines · Rex Zhu
with this interface, gfx/sdma can be initialized
before smu.Signed-off-by Rex Zhu <[email protected]>
Quoted 35 lines
--- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)drivers/gpu/drm/amd/powerplay/amd_powerplay.c +15
-1@@ -270,8 +270,23 @@ static int pp_set_clockgating_state(void *handle, .funcs = &pp_ip_funcs, }; +/* This interface only be supported On Vi, +* because only smu7/8 can help to load gfx/sdma fw, +* smu need to be enabled before load other ip's fw. +* so call start smu to load smu7 fw and other ip's fw +*/ static int pp_dpm_load_fw (void *handle) { +struct pp_hwmgr *hwmgr = handle; + +if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu) +return -EINVAL ; + +if (hwmgr->smumgr_funcs->start_smu (hwmgr)) { +pr_err ("fw load failed\n" ); +return -EINVAL ; + } +return 0 ; } --1.9.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
PATCH 4/5 drm/amdgpu: Add fw load in gfx_v8 and sdma_v3
In reply to a message not in the archivegfx and sdma can be initialized before smu.
--- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 11 +++++++++++ drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 8 ++++++++ 2 files changed, 19 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +11 -0
@@ -4180,9 +4180,20 @@ static void gfx_v8_0_rlc_start(struct amdgpu_device *adev)static int gfx_v8_0_rlc_resume (struct amdgpu_device *adev) { +int r; +gfx_v8_0_rlc_stop (adev);gfx_v8_0_rlc_reset (adev);gfx_v8_0_init_pg (adev); + +if (adev->powerplay.pp_funcs->load_firmware) { + r = adev->powerplay.pp_funcs->load_firmware (adev->powerplay.pp_handle); +if (r) { +pr_err ("firmware loading failed\n" ); +return r; + } + } +gfx_v8_0_rlc_start (adev);return 0 ;
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +8 -0
@@ -788,6 +788,14 @@ static int sdma_v3_0_start(struct amdgpu_device *adev) {int r; +if (adev->powerplay.pp_funcs->load_firmware) { + r = adev->powerplay.pp_funcs->load_firmware (adev->powerplay.pp_handle); +if (r) { +pr_err ("firmware loading failed\n" ); +return r; + } + } +/* disable sdma engine before programing it */ sdma_v3_0_ctx_switch_enable (adev, false);sdma_v3_0_enable (adev, false);
Signature · 6 lines
1.9.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): 1538565000-30532-5-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byRe: [PATCH 4/5] drm/amdgpu: Add fw load in gfx_v8 and sdma_v3
Quoted 4 lines · Rex Zhu
gfx and sdma can be initialized before smu.
Signed-off-by Rex Zhu <[email protected]>
I think sdma_v2_4.c needs a similar update for iceland. With that fixed:
Quoted 52 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 11 +++++++++++ drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 8 ++++++++ 2 files changed, 19 insertions(+)drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +11
-0@@ -4180,9 +4180,20 @@ static void gfx_v8_0_rlc_start(struct amdgpu_device *adev)static int gfx_v8_0_rlc_resume (struct amdgpu_device *adev) { +int r; +gfx_v8_0_rlc_stop (adev);gfx_v8_0_rlc_reset (adev);gfx_v8_0_init_pg (adev); + +if (adev->powerplay.pp_funcs->load_firmware) { + r = adev->powerplay.pp_funcs->load_firmware (adev->powerplay.pp_handle); +if (r) { +pr_err ("firmware loading failed\n" ); +return r; + } + } +gfx_v8_0_rlc_start (adev);return 0 ;drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +8
-1@@ -788,6 +788,14 @@ static int sdma_v3_0_start(struct amdgpu_device *adev) {int r; +if (adev->powerplay.pp_funcs->load_firmware) { + r = adev->powerplay.pp_funcs->load_firmware (adev->powerplay.pp_handle); +if (r) { +pr_err ("firmware loading failed\n" ); +return r; + } + } +/* disable sdma engine before programing it */ sdma_v3_0_ctx_switch_enable (adev, false);sdma_v3_0_enable (adev, false); --1.9.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): CADnq5_N5A9rkwkTJQSuvb1O=B+c3CD=siTVU6uDc6FRMgkzeow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
RE: [PATCH 4/5] drm/amdgpu: Add fw load in gfx_v8 and sdma_v3
Thanks.
I will fix this error in a following patch.
Best Regards
Rex
Quoted 72 lines
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, October 4, 2018 11:33 AM
To: Zhu, Rex <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH 4/5] drm/amdgpu: Add fw load ingfx_v8andsdma_v3Quoted 4 lines · Rex Zhu
gfx and sdma can be initialized before smu.
Signed-off-by Rex Zhu <[email protected]>I think
sdma_v2_4.cneeds a similar update for iceland. With that fixed:Reviewed-by Alex Deucher <[email protected]>Quoted 56 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 11 +++++++++++ drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 8 ++++++++ 2 files changed, 19 insertions(+)drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +11
-0@@ -4180,9 +4180,20 @@ static void gfx_v8_0_rlc_start(struct amdgpu_device *adev)static int gfx_v8_0_rlc_resume (struct amdgpu_device *adev) { +int r; +gfx_v8_0_rlc_stop (adev);gfx_v8_0_rlc_reset (adev);gfx_v8_0_init_pg (adev); + +if (adev->powerplay.pp_funcs->load_firmware) { + r = adev->powerplay.pp_funcs->load_firmware (adev- powerplay.pp_handle); +if (r) { +pr_err ("firmware loading failed\n" ); +return r; + } + } +gfx_v8_0_rlc_start (adev);return 0;drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +8
-0@@ -788,6 +788,14 @@ static int sdma_v3_0_start(struct amdgpu_device *adev) {int r; +if (adev->powerplay.pp_funcs->load_firmware) { + r = adev->powerplay.pp_funcs->load_firmware (adev- powerplay.pp_handle); +if (r) { +pr_err ("firmware loading failed\n" ); +return r; + } + } +/* disable sdma engine before programing it */ sdma_v3_0_ctx_switch_enable (adev, false);sdma_v3_0_enable(adev, false);--
1.9.1
Quoted 4 lines
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
PATCH 5/5 drm/amdgpu: Change VI gfx/sdma/smu init sequence
In reply to a message not in the archiveinitialize gfx/sdma before dpm features enabled.
--- drivers/gpu/drm/amd/amdgpu/vi.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/amdgpu/vi.c +12 -12
@@ -1596,16 +1596,18 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &vi_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v7_4_ip_block);amdgpu_device_ip_block_add (adev, &iceland_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v2_4_ip_block);amdgpu_device_ip_block_add (adev, &pp_smu_ip_block);if (adev->enable_virtual_display)amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v2_4_ip_block);break ;case CHIP_FIJI :amdgpu_device_ip_block_add (adev, &vi_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v8_5_ip_block);amdgpu_device_ip_block_add (adev, &tonga_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &pp_smu_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);
@@ -1615,8 +1617,6 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)#endif else amdgpu_device_ip_block_add(adev, &dce_v10_1_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);if (!amdgpu_sriov_vf (adev)) {amdgpu_device_ip_block_add (adev, &uvd_v6_0_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_0_ip_block);
@@ -1626,6 +1626,8 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &vi_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v8_0_ip_block);amdgpu_device_ip_block_add (adev, &tonga_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &pp_smu_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);
@@ -1635,8 +1637,6 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)#endif else amdgpu_device_ip_block_add(adev, &dce_v10_0_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);if (!amdgpu_sriov_vf (adev)) {amdgpu_device_ip_block_add (adev, &uvd_v5_0_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_0_ip_block);
@@ -1649,6 +1649,8 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &vi_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v8_1_ip_block);amdgpu_device_ip_block_add (adev, &tonga_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v3_1_ip_block);amdgpu_device_ip_block_add (adev, &pp_smu_ip_block);if (adev->enable_virtual_display)amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);
@@ -1658,8 +1660,6 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)#endif else amdgpu_device_ip_block_add(adev, &dce_v11_2_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v3_1_ip_block);amdgpu_device_ip_block_add (adev, &uvd_v6_3_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_4_ip_block);break ;
@@ -1667,6 +1667,8 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &vi_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v8_0_ip_block);amdgpu_device_ip_block_add (adev, &cz_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &pp_smu_ip_block);if (adev->enable_virtual_display)amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);
@@ -1676,8 +1678,6 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)#endif else amdgpu_device_ip_block_add(adev, &dce_v11_0_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &uvd_v6_0_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_1_ip_block);#if defined(CONFIG_DRM_AMD_ACP )
@@ -1688,6 +1688,8 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &vi_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v8_0_ip_block);amdgpu_device_ip_block_add (adev, &cz_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v8_1_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &pp_smu_ip_block);if (adev->enable_virtual_display)amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);
@@ -1697,8 +1699,6 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)#endif else amdgpu_device_ip_block_add(adev, &dce_v11_0_ip_block); -amdgpu_device_ip_block_add (adev, &gfx_v8_1_ip_block); -amdgpu_device_ip_block_add (adev, &sdma_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &uvd_v6_2_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_4_ip_block);#if defined(CONFIG_DRM_AMD_ACP )
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx