summaryrefslogtreecommitdiff
path: root/lib/zstd/common/compiler.h
diff options
context:
space:
mode:
authorSui Jingfeng <sui.jingfeng@linux.dev>2024-10-26 04:43:55 +0800
committerLucas Stach <l.stach@pengutronix.de>2024-10-28 16:41:54 +0100
commit68786b7f49873c69ec332a045a9bf4337d71ec20 (patch)
treedebc93f0d945e06bfbe52424a84c3daf91633fea /lib/zstd/common/compiler.h
parentb5f1eed853c6ea6a99149fd97fe179f3ebd96a02 (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