diff options
| author | Johannes Thumshirn <[email protected]> | 2014-12-16 09:09:20 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-01-09 23:46:37 +0000 |
| commit | 7b7c54914f73966976893747ee8e2ca58166a627 (patch) | |
| tree | 867344f8e283b38127c957f0ee4b3247f7e54687 /lib/memory-notifier-error-inject.c | |
| parent | mei: add ABI documentation for fw_status exported through sysfs (diff) | |
| download | kernel-7b7c54914f73966976893747ee8e2ca58166a627.tar.gz kernel-7b7c54914f73966976893747ee8e2ca58166a627.zip | |
mcb: mcb-pci: Only remap the 1st 0x200 bytes of BAR 0
Currently it is not possible to have a kernel with built-in MCB attached
devices. This results out of the fact that mcb-pci requests PCI BAR 0, then
parses the chameleon table and calls the driver's probe function before
releasing BAR 0 again. When building the kernel with modules this is not a
problem (and therefore it wasn't detected by my tests yet).
A solution is to only remap the 1st 0x200 bytes of a Chameleon PCI device.
0x200 bytes is the maximum size of a Chameleon v2 Table.
Also this patch stops disabling the PCI device on successful registration of MCB
devices.
Signed-off-by: Johannes Thumshirn <[email protected]>
Suggested-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
