aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorLucas De Marchi <[email protected]>2022-06-28 12:10:16 -0700
committerLucas De Marchi <[email protected]>2022-06-29 17:42:28 -0700
commit6fb5ee7cec06266a29f25ecc01a23b9d107f64e1 (patch)
tree286b3ec743d32cac4efdae9630b01980afe8728c /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent5f278dbd540b7548bc5193552e6d478255c14c2d (diff)
iosys-map: Add per-word write
Like was done for read, provide the equivalent for write. Even if current users are not in the hot path, this should future-proof it. v2: - Remove default from _Generic() - callers wanting to write more than u64 should use iosys_map_memcpy_to() - Add WRITE_ONCE() cases dereferencing the pointer when using system memory v3: - Fix precedence issue when casting inside WRITE_ONCE(). By not using () around vaddr__ the offset was not part of the cast, but rather added to it, producing a wrong address - Remove compiletime_assert() as WRITE_ONCE() already contains it Signed-off-by: Lucas De Marchi <[email protected]> Reviewed-by: Reviewed-by: Christian König <[email protected]> # v1 Reviewed-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions