mirror of https://gitee.com/openkylin/linux.git
0a8f41023e
Some Google Apex Edge TPU devices have a class code of 0 (PCI_CLASS_NOT_DEFINED). This prevents the PCI core from assigning resources for the Apex BARs because __dev_sort_resources() ignores classless devices, host bridges, and IOAPICs. On x86, firmware typically assigns those resources, so this was not a problem. But on some architectures, firmware does *not* assign BARs, and since the PCI core didn't do it either, the Apex device didn't work correctly: apex 0000:01:00.0: can't enable device: BAR 0 [mem 0x00000000-0x00003fff 64bit pref] not claimed apex 0000:01:00.0: error enabling PCI device |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
TODO | ||
apex.h | ||
apex_driver.c | ||
gasket.h | ||
gasket_constants.h | ||
gasket_core.c | ||
gasket_core.h | ||
gasket_interrupt.c | ||
gasket_interrupt.h | ||
gasket_ioctl.c | ||
gasket_ioctl.h | ||
gasket_page_table.c | ||
gasket_page_table.h | ||
gasket_sysfs.c | ||
gasket_sysfs.h |