diff options
author | Lucas De Marchi <[email protected]> | 2023-09-27 12:39:00 -0700 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:41:20 -0500 |
commit | fcd75139cd3c76467c8495c750fd6e27787f7e37 (patch) | |
tree | 51620e4cb7821476e41c3fce409c5c3ce88ff2fa /lib/crypto/mpi/mpiutil.c | |
parent | 0d68247efcdbf7791122071323719310207354f3 (diff) |
drm/xe: Use pat_index to encode pde/pte
Change the xelp_pte_encode() and xelp_pde_encode() functions to use the
platform-dependent pat_index. The same function can be used for all
platforms as they only need to encode the pat_index bits in the same
pte/pde layout. For platforms that don't have the most significant bit,
as long as they don't return a bogus index they should be fine.
v2: Use the same logic to encode pde as it's compatible with previous
logic, it's more future proof and also fixes the cache setting for
PVC (Matt Roper)
Reviewed-by: Matt Roper <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions