Re: [PATCH] pciutil: Enumerate alternative PCIe bus

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

 



Hi Martin,

> Sorry, but this is utterly wrong. This function is not specific
> to i386 at all.

No need to say sorry, you are the expert :)

>
> I will add a different work-around soon.

Thanks, looking forward to it.

> (Also, please note that using the i386 access methods on Linux
> is inherently unsafe as there is no locking between accesses by
> different processes and by the kernel. There are available only
> as a last resort when everything else fails.)

I know, if you look at my other posts you will see I got some problems
in hooking up an external chassis to a server. But I will not bother
you with that too much. Problem is that the linux kernel will try to
follow the PCIe busnumbering that the BIOS has installed. That leads
to problems when the chassis contains about 12 switches that need to
fit in the range the bios has set (which of course is too small and
also assigns 64bit bars below 4G).

Turning knobs on the PCIe busnumbering seems to confuse the linux
kernel quite a bit when it has knowledge of that switch. However when
I remove (1 > remove) the switches at the root complex level, they
also disappear from the sysfs. This makes it difficult to manipulate
(clear) settings using the linux kernel. setpci allows to bypass the
kernel, but clearly no locking is implemented on the io ports thus if
the kernel decides to access the PCI configuration io ports at the
same time as setpci its heading for disaster.

I will keep my fingers crossed for now, I expect the kernel not to do
too much PCI config via io once the system is booted.

It would be nice to orchestrate better with the kernel however afaik
there is no lowlevel interface at the sysfs level that allows to
address devices that are not enumerated (e.g. by directly accessing
the MMIO_BASE?) and keeps the kernel "informed". But perhaps I am
wrong.


Best regards,

Ruud
--
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