Skip to content

Commit a124d06

Browse files
committed
drm/radeon: properly set vm fragment size for TN/RL
Should be the same as cayman. We don't use VM by default on NI parts so this isn't critical. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 544143f commit a124d06

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/gpu/drm/radeon/radeon_vm.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,11 @@ static void radeon_vm_frag_ptes(struct radeon_device *rdev,
743743
*/
744744

745745
/* NI is optimized for 256KB fragments, SI and newer for 64KB */
746-
uint64_t frag_flags = rdev->family == CHIP_CAYMAN ?
746+
uint64_t frag_flags = ((rdev->family == CHIP_CAYMAN) ||
747+
(rdev->family == CHIP_ARUBA)) ?
747748
R600_PTE_FRAG_256KB : R600_PTE_FRAG_64KB;
748-
uint64_t frag_align = rdev->family == CHIP_CAYMAN ? 0x200 : 0x80;
749+
uint64_t frag_align = ((rdev->family == CHIP_CAYMAN) ||
750+
(rdev->family == CHIP_ARUBA)) ? 0x200 : 0x80;
749751

750752
uint64_t frag_start = ALIGN(pe_start, frag_align);
751753
uint64_t frag_end = pe_end & ~(frag_align - 1);

0 commit comments

Comments
 (0)