android_kernel_xiaomi_sm8350/arch/i386/pci
Ivan Kokshaysky 81d4af1340 [PATCH] x86: pci_assign_unassigned_resources() update
I had some time to think about PCI assign issues in 2.6.13-rc series.

The major problem here is that we call pci_assign_unassigned_resources()
way too early - at subsys_initcall level. Therefore we give no chances
to ACPI and PnP routines (called at fs_initcall level) to reserve their
respective resources properly, as the comments in drivers/pnp/system.c
and drivers/acpi/motherboard.c suggest:

 /**
  * Reserve motherboard resources after PCI claim BARs,
  * but before PCI assign resources for uninitialized PCI devices
  */

So I moved the pci_assign_unassigned_resources() call to
pcibios_assign_resources() (fs_initcall), which should hopefully fix a
lot of problems and make PCIBIOS_MIN_IO tweaks unnecessary.

Other changes:
- remove resource assignment code from pcibios_assign_resources(), since
  it duplicates pci_assign_unassigned_resources() functionality and
  actually does nothing in 2.6.13;
- modify ROM assignment code as per Ben's suggestion: try to use firmware
  settings by default (if PCI_ASSIGN_ROMS is not set);
- set CARDBUS_IO_SIZE back to 4K as it's a wonderful stress test for
  various setups.

Confirmed by Tero Roponen <teanropo@cc.jyu.fi> (who had problems with
the 4kB CardBus IO size previously).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-30 11:14:48 -07:00
..
acpi.c [ACPI] suspend/resume ACPI PCI Interrupt Links 2005-07-29 22:49:38 -04:00
common.c [PATCH] x86: pci_assign_unassigned_resources() update 2005-08-30 11:14:48 -07:00
direct.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fixup.c [PATCH] fix memory scribble in arch/i386/pci/fixup.c 2005-05-17 09:27:05 -07:00
i386.c [PATCH] x86: pci_assign_unassigned_resources() update 2005-08-30 11:14:48 -07:00
irq.c merge 2.6.13-rc4 with ACPI's to-linus tree 2005-07-30 01:55:32 -04:00
legacy.c [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmconfig.c [PATCH] PCI: use the MCFG table to properly access pci devices (i386) 2005-06-27 21:52:47 -07:00
numa.c [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
pcbios.c [PATCH] Remove i386_ksyms.c, almost. 2005-06-23 09:45:11 -07:00
pci.h /home/lenb/src/to-linus branch 'acpi-2.6.12' 2005-07-29 23:31:17 -04:00
visws.c [PATCH] visws: linkage fix 2005-08-07 10:00:38 -07:00