Skip to contentSkip to conversation

drm/amdgpu/gmc12: drop duplicate gmc.init_pte_flags

PATCH In review Alex Deucher 3 participants 3 messages Sep 2 – Sep 3

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/gmc12: drop duplicate gmc.init_pte_flags

This is now set for all GMC 12.x variants in
early_init() so drop the duplicate setting.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +0 -1
index 0cc73982ed6f9..b6cd6babb035a 100644
@@ -861,7 +861,6 @@ static int gmc_v12_0_sw_init(struct amdgpu_ip_block *ip_block)
 		pte_addr_mask = 0x000FFFFFFFFFF000ULL; /* 52 bit PA */
 		dma_addr_bits = 52;
 		adev->gmc.translate_further = adev->vm_manager.num_level > 1;
-		adev->gmc.init_pte_flags = AMDGPU_PTE_IS_PTE;
 		break;
 	default:
 		dev_warn(adev->dev, "Unrecognized GC IP version: 0x%08x\n",
Signature · 1 line
2.55.0
Reviewed-by on v1 1/1
#1 lore raw

AMD General

Quoted 8 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Wednesday, September 2, 2026 5:43 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/gmc12: drop duplicate gmc.init_pte_flags

Quoted 4 lines

This is now set for all GMC 12.x variants in
early_init() so drop the duplicate setting.

Quoted 22 lines
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +0 -1
index 0cc73982ed6f9..b6cd6babb035a 100644
@@ -861,7 +861,6 @@ static int gmc_v12_0_sw_init(struct amdgpu_ip_block
 *ip_block)
              pte_addr_mask = 0x000FFFFFFFFFF000ULL; /* 52 bit PA */
              dma_addr_bits = 52;
              adev->gmc.translate_further = adev->vm_manager.num_level
 > 1;
-             adev->gmc.init_pte_flags = AMDGPU_PTE_IS_PTE;
              break;
      default:
              dev_warn(adev->dev, "Unrecognized GC IP version:

0x%08x\n",
--
2.55.0

Reviewed-by on v1 1/1
#2 lore raw
In reply to Alex Deucher

AMD General

Regards,
Prike

Quoted 32 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, September 3, 2026 5:43 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/gmc12: drop duplicate gmc.init_pte_flags

This is now set for all GMC 12.x variants in
early_init() so drop the duplicate setting.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +0 -1
index 0cc73982ed6f9..b6cd6babb035a 100644
@@ -861,7 +861,6 @@ static int gmc_v12_0_sw_init(struct amdgpu_ip_block
 *ip_block)
              pte_addr_mask = 0x000FFFFFFFFFF000ULL; /* 52 bit PA */
              dma_addr_bits = 52;
              adev->gmc.translate_further = adev->vm_manager.num_level > 1;
-             adev->gmc.init_pte_flags = AMDGPU_PTE_IS_PTE;
              break;
      default:
              dev_warn(adev->dev, "Unrecognized GC IP version: 0x%08x\n",

--
2.55.0