<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Hawking Zhang <Hawking.Zhang@amd.com><br>
<b>Sent:</b> Saturday, December 4, 2021 6:24 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Zhang, Hawking <Hawking.Zhang@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: don't override default ECO_BITs setting</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Leave this bit as hardware default setting<br>
<br>
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c | 1 -<br>
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 2 --<br>
8 files changed, 9 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c<br>
index 480e41847d7c..ec4d5e15b766 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c<br>
@@ -162,7 +162,6 @@ static void gfxhub_v1_0_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC);/* XXX for emulation. */<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ATC_EN, 1);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c<br>
index 14c1c1a297dd..6e0ace2fbfab 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c<br>
@@ -196,7 +196,6 @@ static void gfxhub_v2_0_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, GCMC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, GCMC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, GCMC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC); /* UC, uncached */<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c<br>
index e80d1dc43079..b4eddf6e98a6 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c<br>
@@ -197,7 +197,6 @@ static void gfxhub_v2_1_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, GCMC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, GCMC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, GCMC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC); /* UC, uncached */<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c<br>
index a99953833820..b3bede1dc41d 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c<br>
@@ -145,7 +145,6 @@ static void mmhub_v1_0_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC);/* XXX for emulation. */<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ATC_EN, 1);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c<br>
index f80a14a1b82d..f5f7181f9af5 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c<br>
@@ -165,7 +165,6 @@ static void mmhub_v1_7_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC);/* XXX for emulation. */<br>
tmp = REG_SET_FIELD(tmp, MC_VM_MX_L1_TLB_CNTL, ATC_EN, 1);<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c<br>
index 25f8e93e5ec3..3718ff610ab2 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c<br>
@@ -267,7 +267,6 @@ static void mmhub_v2_0_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, MMMC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, MMMC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, MMMC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC); /* UC, uncached */<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c<br>
index a11d60ec6321..9e16da28505a 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c<br>
@@ -194,7 +194,6 @@ static void mmhub_v2_3_init_tlb_regs(struct amdgpu_device *adev)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, MMMC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, MMMC_VM_MX_L1_TLB_CNTL, ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, MMMC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC); /* UC, uncached */<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c<br>
index c4ef822bbe8c..ff49eeaf7882 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c<br>
@@ -189,8 +189,6 @@ static void mmhub_v9_4_init_tlb_regs(struct amdgpu_device *adev, int hubid)<br>
ENABLE_ADVANCED_DRIVER_MODEL, 1);<br>
tmp = REG_SET_FIELD(tmp, VMSHAREDVC0_MC_VM_MX_L1_TLB_CNTL,<br>
SYSTEM_APERTURE_UNMAPPED_ACCESS, 0);<br>
- tmp = REG_SET_FIELD(tmp, VMSHAREDVC0_MC_VM_MX_L1_TLB_CNTL,<br>
- ECO_BITS, 0);<br>
tmp = REG_SET_FIELD(tmp, VMSHAREDVC0_MC_VM_MX_L1_TLB_CNTL,<br>
MTYPE, MTYPE_UC);/* XXX for emulation. */<br>
tmp = REG_SET_FIELD(tmp, VMSHAREDVC0_MC_VM_MX_L1_TLB_CNTL,<br>
-- <br>
2.17.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>