Skip to contentSkip to conversation

drm/amdgpu: fix vm pte pde flags to 640bit for sdma of CI/SI

PATCH In review Junwei Zhang 3 participants 3 messages Mar 30, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: fix vm pte pde flags to 640bit for sdma of CI/SI

Missing the flags fixing for CI/SI

---
 drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 4 ++--
 drivers/gpu/drm/amd/amdgpu/si_dma.c   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/cik_sdma.c +2 -2
index 6fce52f..5f90a81 100644
@@ -755,8 +755,8 @@ static void cik_sdma_vm_set_pte_pde(struct amdgpu_ib *ib, uint64_t pe,
 	ib->ptr[ib->length_dw++] = SDMA_PACKET(SDMA_OPCODE_GENERATE_PTE_PDE, 0, 0);
 	ib->ptr[ib->length_dw++] = lower_32_bits(pe); /* dst addr */
 	ib->ptr[ib->length_dw++] = upper_32_bits(pe);
-	ib->ptr[ib->length_dw++] = flags; /* mask */
-	ib->ptr[ib->length_dw++] = 0;
+	ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
+	ib->ptr[ib->length_dw++] = upper_32_bits(flags);
 	ib->ptr[ib->length_dw++] = lower_32_bits(addr); /* value */
 	ib->ptr[ib->length_dw++] = upper_32_bits(addr);
 	ib->ptr[ib->length_dw++] = incr; /* increment size */
drivers/gpu/drm/amd/amdgpu/si_dma.c +2 -2
index 8715de2..c570e96 100644
@@ -417,8 +417,8 @@ static void si_dma_vm_set_pte_pde(struct amdgpu_ib *ib,
 		ib->ptr[ib->length_dw++] = DMA_PTE_PDE_PACKET(ndw);
 		ib->ptr[ib->length_dw++] = pe; /* dst addr */
 		ib->ptr[ib->length_dw++] = upper_32_bits(pe) & 0xff;
-		ib->ptr[ib->length_dw++] = flags; /* mask */
-		ib->ptr[ib->length_dw++] = 0;
+		ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
+		ib->ptr[ib->length_dw++] = upper_32_bits(flags);
 		ib->ptr[ib->length_dw++] = value; /* value */
 		ib->ptr[ib->length_dw++] = upper_32_bits(value);
 		ib->ptr[ib->length_dw++] = incr; /* increment size */
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): 1490839880-2806-1-git-send-email-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org

Reviewed-by Alex Deucher
#2 lore raw
Quoted 9 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Junwei Zhang
Sent: Wednesday, March 29, 2017 10:11 PM
To: [email protected]; Deucher, Alexander
Cc: Zhang, Jerry
Subject: [PATCH] drm/amdgpu: fix vm pte pde flags to 640bit for sdma of CI/SI

Quoted 3 lines

Missing the flags fixing for CI/SI

Quoted 43 lines
---
 drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 4 ++--
 drivers/gpu/drm/amd/amdgpu/si_dma.c   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/cik_sdma.c +2 -2
index 6fce52f..5f90a81 100644
@@ -755,8 +755,8 @@ static void cik_sdma_vm_set_pte_pde(struct
 amdgpu_ib *ib, uint64_t pe,
 	ib->ptr[ib->length_dw++] =
 SDMA_PACKET(SDMA_OPCODE_GENERATE_PTE_PDE, 0, 0);
 	ib->ptr[ib->length_dw++] = lower_32_bits(pe); /* dst addr */
 	ib->ptr[ib->length_dw++] = upper_32_bits(pe);
-	ib->ptr[ib->length_dw++] = flags; /* mask */
-	ib->ptr[ib->length_dw++] = 0;
+	ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
+	ib->ptr[ib->length_dw++] = upper_32_bits(flags);
 	ib->ptr[ib->length_dw++] = lower_32_bits(addr); /* value */
drivers/gpu/drm/amd/amdgpu/cik_sdma.c +0 -0
 	ib->ptr[ib->length_dw++] = upper_32_bits(addr);
 	ib->ptr[ib->length_dw++] = incr; /* increment size */
drivers/gpu/drm/amd/amdgpu/si_dma.c +2 -2
index 8715de2..c570e96 100644
@@ -417,8 +417,8 @@ static void si_dma_vm_set_pte_pde(struct
 amdgpu_ib *ib,
 		ib->ptr[ib->length_dw++] = DMA_PTE_PDE_PACKET(ndw);
 		ib->ptr[ib->length_dw++] = pe; /* dst addr */
 		ib->ptr[ib->length_dw++] = upper_32_bits(pe) & 0xff;
-		ib->ptr[ib->length_dw++] = flags; /* mask */
-		ib->ptr[ib->length_dw++] = 0;
+		ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
+		ib->ptr[ib->length_dw++] = upper_32_bits(flags);
 		ib->ptr[ib->length_dw++] = value; /* value */
 		ib->ptr[ib->length_dw++] = upper_32_bits(value);

ib->ptr[ib->length_dw++] = incr; /* increment size */
--
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

Reviewed-by
#3 lore raw
In reply to a message not in the archive

Am 30.03.2017 um 04:11 schrieb Junwei Zhang:

Quoted 3 lines

Missing the flags fixing for CI/SI

Quoted 25 lines
---
  drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 4 ++--
  drivers/gpu/drm/amd/amdgpu/si_dma.c   | 4 ++--
  2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/cik_sdma.c +2 -2
index 6fce52f..5f90a81 100644
@@ -755,8 +755,8 @@ static void cik_sdma_vm_set_pte_pde(struct amdgpu_ib *ib, uint64_t pe,
  	ib->ptr[ib->length_dw++] = SDMA_PACKET(SDMA_OPCODE_GENERATE_PTE_PDE, 0, 0);
  	ib->ptr[ib->length_dw++] = lower_32_bits(pe); /* dst addr */
  	ib->ptr[ib->length_dw++] = upper_32_bits(pe);
-	ib->ptr[ib->length_dw++] = flags; /* mask */
-	ib->ptr[ib->length_dw++] = 0;
+	ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
+	ib->ptr[ib->length_dw++] = upper_32_bits(flags);
  	ib->ptr[ib->length_dw++] = lower_32_bits(addr); /* value */
  	ib->ptr[ib->length_dw++] = upper_32_bits(addr);
  	ib->ptr[ib->length_dw++] = incr; /* increment size */
drivers/gpu/drm/amd/amdgpu/si_dma.c +0 -0
index 8715de2..c570e96 100644

drivers/gpu/drm/amd/amdgpu/si_dma.c static void si_dma_vm_set_pte_pde(struct amdgpu_ib *ib, · line 424

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/si_dma.c +2 -2
@@ -417,8 +417,8 @@ static void si_dma_vm_set_pte_pde(struct amdgpu_ib *ib,
  		ib->ptr[ib->length_dw++] = DMA_PTE_PDE_PACKET(ndw);
  		ib->ptr[ib->length_dw++] = pe; /* dst addr */
  		ib->ptr[ib->length_dw++] = upper_32_bits(pe) & 0xff;
-		ib->ptr[ib->length_dw++] = flags; /* mask */
-		ib->ptr[ib->length_dw++] = 0;
+		ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
+		ib->ptr[ib->length_dw++] = upper_32_bits(flags);
  		ib->ptr[ib->length_dw++] = value; /* value */
  		ib->ptr[ib->length_dw++] = upper_32_bits(value);
  		ib->ptr[ib->length_dw++] = incr; /* increment size */

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx