Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1229091

Re: PCIe bus (re-)numbering

From Ruud <netwerkforens@gmail.com>
Newsgroups linux.kernel
Subject Re: PCIe bus (re-)numbering
Date 2015-09-21 09:50 +0200
Message-ID <qb41k-cd-25@gated-at.bofh.it> (permalink)
References <qalGW-4pe-13@gated-at.bofh.it> <qay1s-599-5@gated-at.bofh.it> <qaIWR-41z-5@gated-at.bofh.it> <qaQhI-63S-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>       /sbin/setpci -s $NAME 0x1a.b=0
>       N=`find /sys/devices/pci0000:"$BUS"/"$NAME"/remove -name "remove"`
>       echo $N
>       echo -n 1 > "$N"
>       sleep 1s
>     done
> done
>

Thanks for the script!

>
>>
>> I will test next monday.
>
> Good. Please check current upstream and my tree for-pci-v4.3-rc1 branch.


Sorry for the rookie question: which version do you mean by "current
upstream", the current main trunk rc?.
I am currently using for-pci-v4.3-rc1 for testing.

>> Are these settings in the binary driver? I do not see that much need
>> for a driver to use the geographical addressing after the BAR's have
>> been set. I thus wondered if it is feasable to hide the geographical
>> addressing from the driver and offer an API for it from the PCIe layer
>> to the drivers...
>
> Card firmware.  Assume those card firmware would trap pci conf read cycle
> and compare something inside.
> The only workaround that I found is reset the link to make firmware rebooting.
> but that will have problem if you are use the disk as root etc.
>

I do not completely understand the remark you make, are you suggesting
the firmware running on the PCIe card (embedded in a CPU on the card
itself) is acting on the content of the busnumber or do you mean x86
extension rom code acting on the busnumber.

Although it is probably irrelevant for the problem I like to solve, I
still like to understand all details.


> Thanks
>
> Yinghai

BR,

Ruud
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PCIe bus (re-)numbering Ruud <netwerkforens@gmail.com> - 2015-09-19 10:30 +0200
  Re: PCIe bus (re-)numbering Yinghai Lu <yinghai@kernel.org> - 2015-09-19 23:40 +0200
    Re: PCIe bus (re-)numbering Ruud <netwerkforens@gmail.com> - 2015-09-20 11:20 +0200
      Re: PCIe bus (re-)numbering Yinghai Lu <yinghai@kernel.org> - 2015-09-20 19:10 +0200
        Re: PCIe bus (re-)numbering Ruud <netwerkforens@gmail.com> - 2015-09-21 09:50 +0200
          Re: PCIe bus (re-)numbering Ruud <netwerkforens@gmail.com> - 2015-09-21 16:10 +0200
            Re: PCIe bus (re-)numbering Yinghai Lu <yinghai@kernel.org> - 2015-09-21 23:30 +0200
          Re: PCIe bus (re-)numbering Yinghai Lu <yinghai@kernel.org> - 2015-09-21 23:30 +0200

csiph-web