Skip to content

Commit 4fb5076

Browse files
alexdeuchergregkh
authored andcommitted
drm/radeon: properly set vm fragment size for TN/RL
commit a124d06 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 83108f2 commit 4fb5076

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
@@ -753,9 +753,11 @@ static void radeon_vm_frag_ptes(struct radeon_device *rdev,
753753
*/
754754

755755
/* NI is optimized for 256KB fragments, SI and newer for 64KB */
756-
uint64_t frag_flags = rdev->family == CHIP_CAYMAN ?
756+
uint64_t frag_flags = ((rdev->family == CHIP_CAYMAN) ||
757+
(rdev->family == CHIP_ARUBA)) ?
757758
R600_PTE_FRAG_256KB : R600_PTE_FRAG_64KB;
758-
uint64_t frag_align = rdev->family == CHIP_CAYMAN ? 0x200 : 0x80;
759+
uint64_t frag_align = ((rdev->family == CHIP_CAYMAN) ||
760+
(rdev->family == CHIP_ARUBA)) ? 0x200 : 0x80;
759761

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

0 commit comments

Comments
 (0)