drm/amdgpu: Temparary disable the sdma use pollmem feature for sriov.
Subsystems (2)
PATCH 1/1 drm/amdgpu: Temparary disable the sdma use pollmem feature for sriov.
It still has some serious issues(guest driver reload fail, etc), when use pollmem feature for sdma3.
--- drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +1 -1
@@ -1209,7 +1209,7 @@ static int sdma_v3_0_sw_init(void *handle)for (i =0 ; i < adev->sdma.num_instances; i++) { ring = &adev->sdma.instance[i].ring; ring->ring_obj =NULL ; -if (!amdgpu_sriov_vf (adev)) { +if (1 ) { ring->use_doorbell = true; ring->doorbell_index = (i ==0 ) ? AMDGPU_DOORBELL_sDMA_ENGINE0 : AMDGPU_DOORBELL_sDMA_ENGINE1;
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1516356864-2622-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Am 19.01.2018 um 11:14 schrieb Emily Deng:
Quoted 13 lines
It still has some serious
issues(guest driver reload fail, etc), when use pollmem feature for sdma3.Signed-off-by Emily Deng <[email protected]>--- drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c static int sdma_v3_0_sw_init(void *handle) · line 1212
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +1
-1@@ -1209,7 +1209,7 @@ static int sdma_v3_0_sw_init(void *handle)for (i =0 ; i < adev->sdma.num_instances; i++) { ring = &adev->sdma.instance[i].ring; ring->ring_obj =NULL ; -if (!amdgpu_sriov_vf (adev)) { +if (1 ) {
That needs a comment why we have it and I suggest writing this as:
/* Disabled for now because... */
if (true /* !amdgpu_sriov_vf(adev) */)
Regards,
Christian.
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c static int sdma_v3_0_sw_init(void *handle) · line 1215
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0
-0ring->use_doorbell = true; ring->doorbell_index = (i ==0 ) ? AMDGPU_DOORBELL_sDMA_ENGINE0 : AMDGPU_DOORBELL_sDMA_ENGINE1;
_______________________________________________
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): ea823ba5-5bf5-8ef2-40eb-bf763e9300f8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Hi Christian,
Thanks your comment, please ignore this patch. Will find out the root cause about why the pollmem doesn't work.
Best Wishes,
Emily Deng
Quoted 33 lines
-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Friday, January 19, 2018 6:22 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Temparary disable the sdma use pollmem feature for sriov.Am 19.01.2018 um 11:14 schrieb Emily Deng:
Quoted 14 lines
It still has some serious
issues(guest driver reload fail, etc), when use pollmem feature for sdma3.Signed-off-by Emily Deng <[email protected]>--- drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0
-0drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c static int sdma_v3_0_sw_init(void *handle) · line 1212
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +1
-1@@ -1209,7 +1209,7 @@ static int sdma_v3_0_sw_init(void *handle)for (i =0 ; i < adev->sdma.num_instances; i++) { ring = &adev->sdma.instance[i].ring; ring->ring_obj =NULL ; -if (!amdgpu_sriov_vf (adev)) { +if (1 ) {That needs a comment why we have it and I suggest writing this as:
/* Disabled for now because... */
if (true /* !amdgpu_sriov_vf(adev) */)
Quoted 7 lines
Regards,
Christian.drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c static int sdma_v3_0_sw_init(void *handle)
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +0
-0ring->use_doorbell = true; ring->doorbell_index = (i ==0 ) ? AMDGPU_DOORBELL_sDMA_ENGINE0 :
AMDGPU_DOORBELL_sDMA_ENGINE1;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx