diff options
author | Sui Jingfeng <sui.jingfeng@linux.dev> | 2024-10-26 04:43:55 +0800 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2024-10-28 16:41:54 +0100 |
commit | 68786b7f49873c69ec332a045a9bf4337d71ec20 (patch) | |
tree | debc93f0d945e06bfbe52424a84c3daf91633fea /lib/zstd/common/compiler.h | |
parent | b5f1eed853c6ea6a99149fd97fe179f3ebd96a02 (diff) |
drm/etnaviv: Map and unmap GPUVA range with respect to the GPUVA size
Etnaviv assumes that GPU page size is 4KiB, however, GPUVA ranges collision
when using softpin capable GPUs on a non 4KiB CPU page size configuration.
The root cause is that kernel side BO takes up bigger address space than
userspace expect, the size of backing memory of GEM buffer objects are
required to align to the CPU PAGE_SIZE. Therefore, results in userspace
allocated GPUVA range fails to be inserted to the specified hole exactly.
To solve this problem, record the GPU visiable size of a BO firstly, then
map and unmap the SG entry strictly with respect to the total GPUVA size.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'lib/zstd/common/compiler.h')
0 files changed, 0 insertions, 0 deletions