drm/radeon: properly program gart on rv740, juniper, cypress, barts
Subsystems (2)
PATCH 1/1 drm/radeon: properly program gart on rv740, juniper, cypress, barts
From: Alex Deucher <[email protected]>
Need to program an additional VM register. This doesn't not currently cause any problems, but allows us to program the proper backend map in a subsequent patch which should improve performance on these asics.
--- drivers/gpu/drm/radeon/evergreen.c | 5 +++++ drivers/gpu/drm/radeon/evergreend.h | 1 + drivers/gpu/drm/radeon/rv770.c | 2 ++ drivers/gpu/drm/radeon/rv770d.h | 1 + 4 files changed, 9 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +5 -0
@@ -1029,6 +1029,11 @@ int evergreen_pcie_gart_enable(struct radeon_device *rdev)WREG32 (MC_VM_MD_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB1_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB2_CNTL , tmp); +if ((rdev->family ==CHIP_JUNIPER ) || + (rdev->family ==CHIP_CYPRESS ) || + (rdev->family ==CHIP_HEMLOCK ) || + (rdev->family ==CHIP_BARTS )) +WREG32 (MC_VM_MD_L1_TLB3_CNTL , tmp); }WREG32 (MC_VM_MB_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MB_L1_TLB1_CNTL , tmp);
drivers/gpu/drm/radeon/evergreend.h +1 -0
@@ -452,6 +452,7 @@#define MC_VM_MD_L1_TLB0_CNTL 0x2654#define MC_VM_MD_L1_TLB1_CNTL 0x2658#define MC_VM_MD_L1_TLB2_CNTL 0x265C +#define MC_VM_MD_L1_TLB3_CNTL 0x2698#define FUS_MC_VM_MD_L1_TLB0_CNTL 0x265C#define FUS_MC_VM_MD_L1_TLB1_CNTL 0x2660
drivers/gpu/drm/radeon/rv770.c +2 -0
@@ -151,6 +151,8 @@ int rv770_pcie_gart_enable(struct radeon_device *rdev)WREG32 (MC_VM_MD_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB1_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB2_CNTL , tmp); +if (rdev->family ==CHIP_RV740 ) +WREG32 (MC_VM_MD_L1_TLB3_CNTL , tmp);WREG32 (MC_VM_MB_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MB_L1_TLB1_CNTL , tmp);WREG32 (MC_VM_MB_L1_TLB2_CNTL , tmp);
drivers/gpu/drm/radeon/rv770d.h +1 -0
@@ -174,6 +174,7 @@#define MC_VM_MD_L1_TLB0_CNTL 0x2654#define MC_VM_MD_L1_TLB1_CNTL 0x2658#define MC_VM_MD_L1_TLB2_CNTL 0x265C +#define MC_VM_MD_L1_TLB3_CNTL 0x2698#define MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR 0x203C#define MC_VM_SYSTEM_APERTURE_HIGH_ADDR 0x2038#define MC_VM_SYSTEM_APERTURE_LOW_ADDR 0x2034
Signature · 1 line
1.7.7.5
Am Donnerstag, den 31.05.2012, 18:54 -0400 schrieb [email protected]:
Quoted 21 lines
From: Alex Deucher <[email protected]>
Need to program an additional VM register. This doesn't not currently cause any problems, but allows us to program the proper backend map in a subsequent patch which should improve performance on these asics.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/radeon/evergreen.c | 5 +++++ drivers/gpu/drm/radeon/evergreend.h | 1 + drivers/gpu/drm/radeon/rv770.c | 2 ++ drivers/gpu/drm/radeon/rv770d.h | 1 + 4 files changed, 9 insertions(+), 0 deletions(-)drivers/gpu/drm/radeon/evergreen.c +0
-0
drivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct radeon_device *rdev) · line 1034
Quoted 6 lines
drivers/gpu/drm/radeon/evergreen.c +3
-0@@ -1029,6 +1029,11 @@ int evergreen_pcie_gart_enable(struct radeon_device *rdev)WREG32 (MC_VM_MD_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB1_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB2_CNTL , tmp); + if ((rdev->family == CHIP_JUNIPER) || + (rdev->family == CHIP_CYPRESS) || + (rdev->family == CHIP_HEMLOCK) ||
Is rv740 in the commit summary Hemlock?
drivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct radeon_device *rdev) · line 1037
Quoted 3 lines
drivers/gpu/drm/radeon/evergreen.c +2
-0+ (rdev->family == CHIP_BARTS)) +WREG32 (MC_VM_MD_L1_TLB3_CNTL , tmp); }
[…]
Thanks,
Paul
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Dave Airlie
maintainerQuoted 17 lines · Paul Menzel
Am Donnerstag, den 31.05.2012, 18:54 -0400 schrieb [email protected]:
Quoted 16 lines
From: Alex Deucher <[email protected]>
Need to program an additional VM register. This doesn't not currently cause any problems, but allows us to program the proper backend map in a subsequent patch which should improve performance on these asics.
Signed-off-by Alex Deucher <[email protected]>---
drivers/gpu/drm/radeon/evergreen.c | 5 +++++
drivers/gpu/drm/radeon/evergreend.h | 1 +
drivers/gpu/drm/radeon/rv770.c | 2 ++
drivers/gpu/drm/radeon/rv770d.h | 1 +4 files changed, 9 insertions(+), 0 deletions(-)
Quoted 14 lines
drivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct radeon_device *rdev) · line 1034
Quoted 11 lines
drivers/gpu/drm/radeon/evergreen.c +3
-0@@ -1029,6 +1029,11 @@ int evergreen_pcie_gart_enable(struct radeon_device *rdev) WREG32(MC_VM_MD_L1_TLB0_CNTL, tmp); WREG32(MC_VM_MD_L1_TLB1_CNTL, tmp); WREG32(MC_VM_MD_L1_TLB2_CNTL, tmp); + if ((rdev->family == CHIP_JUNIPER) || + (rdev->family == CHIP_CYPRESS) || + (rdev->family == CHIP_HEMLOCK) ||Is rv740 in the commit summary Hemlock?
If you look further down you'll see the RV740 being programmed separately in the rv770.c file.
Dave.
Am Freitag, den 01.06.2012, 08:46 +0100 schrieb Dave Airlie:
Quoted 32 lines · Paul Menzel
Quoted 17 lines
Am Donnerstag, den 31.05.2012, 18:54 -0400 schrieb [email protected]:
Quoted 16 lines
From: Alex Deucher <[email protected]>
Need to program an additional VM register. This doesn't not currently cause any problems, but allows us to program the proper backend map in a subsequent patch which should improve performance on these asics.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/radeon/evergreen.c | 5 +++++ drivers/gpu/drm/radeon/evergreend.h | 1 + drivers/gpu/drm/radeon/rv770.c | 2 ++ drivers/gpu/drm/radeon/rv770d.h | 1 + 4 files changed, 9 insertions(+), 0 deletions(-)Quoted 13 lines
drivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct radeon_device *rdev) · line 1034
Quoted 11 lines
drivers/gpu/drm/radeon/evergreen.c +3
-0@@ -1029,6 +1029,11 @@ int evergreen_pcie_gart_enable(struct radeon_device *rdev)WREG32 (MC_VM_MD_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB1_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB2_CNTL , tmp); + if ((rdev->family == CHIP_JUNIPER) || + (rdev->family == CHIP_CYPRESS) || + (rdev->family == CHIP_HEMLOCK) ||Is rv740 in the commit summary Hemlock?
Quoted 2 lines
If you look further down you'll see the RV740 being programmed separately in the
rv770.cfile.
Alright. Thanks. My point was more that Hemlock is missing in the commit summary.
Thanks,
Paul
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Deucher, Alexander
maintainerQuoted 36 lines
-----Original Message-----
From: Paul Menzel [mailto:[email protected]]
Sent: Friday, June 01, 2012 3:37 AM
To: [email protected]
Cc: [email protected]; [email protected]; Deucher, Alexander; [email protected]
Subject: Re: [PATCH] drm/radeon: properly program gart on rv740, juniper, cypress, bartsAm Donnerstag, den 31.05.2012, 18:54 -0400 schrieb [email protected]:
Quoted 9 lines
From: Alex Deucher <[email protected]>
Need to program an additional VM register. This doesn't not currently cause any problems, but allows us to program the proper backend map in a subsequent patch which should improve performance on these asics.
Signed-off-by Alex Deucher <[email protected]>Review
Quoted 8 lines
--- drivers/gpu/drm/radeon/evergreen.c | 5 +++++ drivers/gpu/drm/radeon/evergreend.h | 1 + drivers/gpu/drm/radeon/rv770.c | 2 ++ drivers/gpu/drm/radeon/rv770d.h | 1 + 4 files changed, 9 insertions(+), 0 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/radeon/evergreen.cdrivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct
Quoted 4 lines
index 5d9c2c6..0408ac2 100644
drivers/gpu/drm/radeon/evergreen.c +0
-0@@ -1029,6 +1029,11 @@ int evergreen_pcie_gart_enable(struct
radeon_device*rdev)
Quoted 8 lines
drivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct radeon_device *rdev) · line 1034
Quoted 6 lines
drivers/gpu/drm/radeon/evergreen.c +3
-0WREG32 (MC_VM_MD_L1_TLB0_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB1_CNTL , tmp);WREG32 (MC_VM_MD_L1_TLB2_CNTL , tmp); + if ((rdev->family == CHIP_JUNIPER) || + (rdev->family == CHIP_CYPRESS) || + (rdev->family == CHIP_HEMLOCK) ||Is rv740 in the commit summary Hemlock?
Hemlock is just a dual gpu variant of a cypress. Rv740 is programmed separately in rv770.c as Dave mentioned.
Alex
Quoted 11 lines
drivers/gpu/drm/radeon/evergreen.c int evergreen_pcie_gart_enable(struct radeon_device *rdev) · line 1037
Quoted 4 lines
drivers/gpu/drm/radeon/evergreen.c +2
-0+ (rdev->family == CHIP_BARTS)) +WREG32 (MC_VM_MD_L1_TLB3_CNTL , tmp); }[…]
Thanks,
Paul
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel