diff options
author | Christian König <christian.koenig@amd.com> | 2014-05-10 06:17:56 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-06-02 10:25:03 -0400 |
commit | 1c89d27fb9f169003c5a82561ffeb8adb980ebfb (patch) | |
tree | 5d5541d1c768e6dd7ce4ce16e33109860fb734b7 /drivers/gpu/drm/radeon/ni.c | |
parent | ec3dbbcbd7a6ee165ca7eeafec8dbc733901ab2f (diff) |
drm/radeon: add proper support for RADEON_VM_BLOCK_SIZE v2
This patch makes it possible to decide how many address
bits are spend on the page directory vs the page tables.
v2: remove unintended change
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r-- | drivers/gpu/drm/radeon/ni.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 5e8db9bccba1..1d3209ffbbdc 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c | |||
@@ -1268,6 +1268,7 @@ static int cayman_pcie_gart_enable(struct radeon_device *rdev) | |||
1268 | (u32)(rdev->dummy_page.addr >> 12)); | 1268 | (u32)(rdev->dummy_page.addr >> 12)); |
1269 | WREG32(VM_CONTEXT1_CNTL2, 4); | 1269 | WREG32(VM_CONTEXT1_CNTL2, 4); |
1270 | WREG32(VM_CONTEXT1_CNTL, ENABLE_CONTEXT | PAGE_TABLE_DEPTH(1) | | 1270 | WREG32(VM_CONTEXT1_CNTL, ENABLE_CONTEXT | PAGE_TABLE_DEPTH(1) | |
1271 | PAGE_TABLE_BLOCK_SIZE(RADEON_VM_BLOCK_SIZE - 9) | | ||
1271 | RANGE_PROTECTION_FAULT_ENABLE_INTERRUPT | | 1272 | RANGE_PROTECTION_FAULT_ENABLE_INTERRUPT | |
1272 | RANGE_PROTECTION_FAULT_ENABLE_DEFAULT | | 1273 | RANGE_PROTECTION_FAULT_ENABLE_DEFAULT | |
1273 | DUMMY_PAGE_PROTECTION_FAULT_ENABLE_INTERRUPT | | 1274 | DUMMY_PAGE_PROTECTION_FAULT_ENABLE_INTERRUPT | |