diff options
author | Jay Cornwall <Jay.Cornwall@amd.com> | 2018-05-02 00:56:03 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2018-05-02 00:56:03 +0300 |
commit | 2774c63ef3dbb6052dd1d224b38a9decf89be61c (patch) | |
tree | d8f8c48e6aeb4c71dc921e082ffc198b9cc43140 /drivers/gpu/host1x/syncpt.c | |
parent | 87e6d4e0777daf774ed9aa59ed25b6ebaaad7052 (diff) | |
download | linux-2774c63ef3dbb6052dd1d224b38a9decf89be61c.tar.xz |
drm/amdkfd: Use volatile MTYPE in default/alternate apertures
MTYPE_NC_NV (0) marks scalar/vector L1 cache lines as non-volatile.
Cache lines loaded through these apertures are intended to be
invalidated before (and sometimes during) a dispatch. The non-volatile
qualifier prevents these cache lines from being distinguished from
those loaded through the private aperture.
Use MTYPE_NC (1) instead on both Gfx7 and Gfx8. This allows the
compiler to use the BUFFER_WBINVL1_VOL instruction and is a precursor
to automatic per-dispatch scalar/vector L1 volatile invalidation.
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/host1x/syncpt.c')
0 files changed, 0 insertions, 0 deletions