[Skiboot] [PATCH] pci: Add -Tn to SAS adapter's loc-code

Gavin Shan gwshan at linux.vnet.ibm.com
Fri Mar 10 11:30:30 AEDT 2017

On Fri, Mar 03, 2017 at 08:35:40AM -0600, Brian King wrote:
>This is the algorithm that PHYP uses with PowerVM:
>This description applies to plug-in adapters.  Location codes for integrated devices include data we get from PHYP.
>- PFW code keeps track of the base location code (i.e. up to the -C label) on a slot basis.
>- For each PCI function associated with the slot, a location code is generated up to the -C label.
>- If the function PCI class is not one of (PCI-host-bridge or PCI-PCI-bridge or USB or flash-memory or non-volatile-memory), append a -T label
>-- If the location code base does not match the saved location code base
>    then save the new location code base and start port numbering with 1; append port number 1
>-- If the location code does match the saved location code base
>   then increment the port number and append the port number

Thanks, Brian. I'll adopt the code to follow the procedure. So this patch
should be ignore for now. I will post another revision.


More information about the Skiboot mailing list