Re: [PATCH] pciutils: Add support for 32-bit PCI domains

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

 



Hello!

> This adds support for new host bridges that may create PCI domain number
> values requiring more than 16 bits. The new domain 32-bit integer is
> signed to allow -1 for "any", and is sufficient as the domain number
> will never require the full 32-bits.
> 
> The domain field is appended at the end of struct pci_dev, and the
> current location of the 16-bit domain remains for compatibility. The
> domain number is truncated and copied into the legacy domain location
> so existing applications linking to the library will continue to work
> without modification. We accept that these applications may not work
> correctly on machines with host bridges exporting 32-bit domains.
> 
> In order to force new programs to link to the new ABI, the pci_init
> function call is versioned in this commit.

Sorry for the delay.

I have applied the patch and fixed a couple of minor problems. Most
importantly, the 16-bit domain number was maintained in the sysfs back-end,
so backward compatibility was not kept on other systems.

Could you please review the changes in pciutils.git?

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj@xxxxxx>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Q: Who invented the first airplane that did not fly?  A: The Wrong Brothers.
--
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