Re: [Intel-gfx] [PATCH 2/2] iosys-map: Add per-word write

2022-06-27 Thread Thomas Zimmermann
Hi Lucas Am 26.06.22 um 23:01 schrieb Lucas De Marchi: On Fri, Jun 17, 2022 at 01:52:04AM -0700, Lucas De Marchi wrote: 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() -

Re: [Intel-gfx] [PATCH 2/2] iosys-map: Add per-word write

2022-06-26 Thread Lucas De Marchi
On Fri, Jun 17, 2022 at 01:52:04AM -0700, Lucas De Marchi wrote: 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 iosy

[PATCH 2/2] iosys-map: Add per-word write

2022-06-17 Thread Lucas De Marchi
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 po