Re: [PATCH v2] PCI: don't allocate resource above 4G for 32-bit BAR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 20 February 2009 07:32:00 Ivan Kokshaysky wrote:
> On Fri, Feb 20, 2009 at 01:55:57PM +0100, Ingo Molnar wrote:
> > The principle of probing + tearing down the mem64 resource if no
> > bridge is 64-bit looks worth trying, but i'd suggest a different
> > code structure to better handle true 32-bit systems built with
> > 32-bit resource_size_t:
> >
> >  - move this new code into a new file, arch/x86/pci/dac_64bit.c
> >
> >  - build this file only if CONFIG_PHYS_ADDR_T_64BIT is set
> >
> >  - add inline functions for pcibios_pci64_setup() and
> >    pcibios_pci64_verify() in the !CONFIG_PHYS_ADDR_T_64BIT case.
>
> Agreed on all points, thanks Ingo.
>
> > Furthermore, the filenames are very confusing in the
> > arch/x86/pci/ directory and should be cleaned up ASAP. At
> > minimum we should do:
> >
> >   git mv arch/x86/pci/pcbios.c arch/x86/pci/bios_32.c
> >   git mv arch/x86/pci/i386.c arch/x86/pci/bios.c
> >
> > (and fix up the Makefile.) There's nothing 32-bit about
> > "i386.c", the 64-bit x86 platform code uses it too!
>
> Makes sense, but that's perhaps up to Jesse.

Agreed, those names have bothered me for awhile...  I'll queue up a rename for 
.30.

-- 
Jesse Barnes, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux