coreboot-kgpe-d16/payloads/libpayload/drivers
Julius Werner 6c1a669b44 libpayload: xhci: Do not memcpy registers
memcpy() is meant to be used on normal memory and often implemented with
architecture-specific optimizations to make that as performant as
possible. MMIO registers often have special access restrictions that may
be incompatible with whatever memcpy() does. For example, on arm64 it
uses the LDP (load pair) to load 16 bytes at a time, which makes 4-byte
MMIO registers unhappy.

This patch removes the caching of the XHCI capreg registers and changes
it back to a pointer. The CAP_GET() macro is still accessing a full
(non-bitfield) uint32_t at the end so this should still generate a
4-byte access (which was the goal of the original change in CB:39838).

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Id058c8813087a8e8cb85f570399e07fb8a597108
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40895
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2020-04-30 01:57:05 +00:00
..
i8042 payloads: Fix typos 2020-02-17 16:01:50 +00:00
serial libpayload: Make 8250 UART driver relocation safe 2020-04-20 10:09:59 +00:00
storage
timer Remove MIPS architecture 2019-11-20 10:10:48 +00:00
udc treewide: capitalize 'USB' 2020-02-26 17:06:40 +00:00
usb libpayload: xhci: Do not memcpy registers 2020-04-30 01:57:05 +00:00
video libpayload/corebootfb: Replace obsolete macros FI and CHARS 2020-03-10 09:00:35 +00:00
Makefile.inc libpayload: Add uart/serial driver support for trogdor 2020-03-09 22:58:56 +00:00
cbmem_console.c libpayload: Implement reading from CBMEM console 2019-12-16 09:47:38 +00:00
hid.c
mouse_cursor.c
nvram.c libpayload/drivers/nvram: Fix coding style 2020-03-23 08:35:56 +00:00
options.c treewide: Capitalize 'CMOS' 2020-02-24 14:10:00 +00:00
pci.c
speaker.c