Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe: Remove unused xe parameter

Remove the xe parameter from the pde_encode_pat_index and
pte_encode_pat_index functions, as it is no longer used.

Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240813104419.2958046-1-himal.prasad.ghimiray@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>

authored by

Himal Prasad Ghimiray and committed by
Lucas De Marchi
4b498d19 1d734a3e

+6 -11
+6 -11
drivers/gpu/drm/xe/xe_vm.c
··· 1191 1191 .vm_free = xe_vm_free, 1192 1192 }; 1193 1193 1194 - static u64 pde_encode_pat_index(struct xe_device *xe, u16 pat_index) 1194 + static u64 pde_encode_pat_index(u16 pat_index) 1195 1195 { 1196 1196 u64 pte = 0; 1197 1197 ··· 1204 1204 return pte; 1205 1205 } 1206 1206 1207 - static u64 pte_encode_pat_index(struct xe_device *xe, u16 pat_index, 1208 - u32 pt_level) 1207 + static u64 pte_encode_pat_index(u16 pat_index, u32 pt_level) 1209 1208 { 1210 1209 u64 pte = 0; 1211 1210 ··· 1245 1246 static u64 xelp_pde_encode_bo(struct xe_bo *bo, u64 bo_offset, 1246 1247 const u16 pat_index) 1247 1248 { 1248 - struct xe_device *xe = xe_bo_device(bo); 1249 1249 u64 pde; 1250 1250 1251 1251 pde = xe_bo_addr(bo, bo_offset, XE_PAGE_SIZE); 1252 1252 pde |= XE_PAGE_PRESENT | XE_PAGE_RW; 1253 - pde |= pde_encode_pat_index(xe, pat_index); 1253 + pde |= pde_encode_pat_index(pat_index); 1254 1254 1255 1255 return pde; 1256 1256 } ··· 1257 1259 static u64 xelp_pte_encode_bo(struct xe_bo *bo, u64 bo_offset, 1258 1260 u16 pat_index, u32 pt_level) 1259 1261 { 1260 - struct xe_device *xe = xe_bo_device(bo); 1261 1262 u64 pte; 1262 1263 1263 1264 pte = xe_bo_addr(bo, bo_offset, XE_PAGE_SIZE); 1264 1265 pte |= XE_PAGE_PRESENT | XE_PAGE_RW; 1265 - pte |= pte_encode_pat_index(xe, pat_index, pt_level); 1266 + pte |= pte_encode_pat_index(pat_index, pt_level); 1266 1267 pte |= pte_encode_ps(pt_level); 1267 1268 1268 1269 if (xe_bo_is_vram(bo) || xe_bo_is_stolen_devmem(bo)) ··· 1273 1276 static u64 xelp_pte_encode_vma(u64 pte, struct xe_vma *vma, 1274 1277 u16 pat_index, u32 pt_level) 1275 1278 { 1276 - struct xe_device *xe = xe_vma_vm(vma)->xe; 1277 - 1278 1279 pte |= XE_PAGE_PRESENT; 1279 1280 1280 1281 if (likely(!xe_vma_read_only(vma))) 1281 1282 pte |= XE_PAGE_RW; 1282 1283 1283 - pte |= pte_encode_pat_index(xe, pat_index, pt_level); 1284 + pte |= pte_encode_pat_index(pat_index, pt_level); 1284 1285 pte |= pte_encode_ps(pt_level); 1285 1286 1286 1287 if (unlikely(xe_vma_is_null(vma))) ··· 1298 1303 1299 1304 pte = addr; 1300 1305 pte |= XE_PAGE_PRESENT | XE_PAGE_RW; 1301 - pte |= pte_encode_pat_index(xe, pat_index, pt_level); 1306 + pte |= pte_encode_pat_index(pat_index, pt_level); 1302 1307 pte |= pte_encode_ps(pt_level); 1303 1308 1304 1309 if (devmem)