Skip to contentSkip to conversation

drm/amdgpu: Temparary disable the sdma use pollmem feature for sriov.

PATCH In review Emily Deng 2 participants 3 messages Jan 19, 2018 – Jan 22, 2018 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Emily Deng

author
#0 lore raw

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
index 3e22ae4..0f8f614 100644
@@ -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

#2 lore raw

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.

---
  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
index 3e22ae4..0f8f614 100644

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 -0
  			ring->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

#4 lore raw

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.

---
  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
index 3e22ae4..0f8f614 100644

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) */)

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 -0
  			ring->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