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


Groups > linux.kernel > #1628104

Re: Doubt on first access for PCIe device

From abhijit <abhijitnaik27@gmail.com>
Newsgroups linux.kernel
Subject Re: Doubt on first access for PCIe device
Date 2017-04-21 12:10 +0200
Message-ID <tyDFM-4xX-15@gated-at.bofh.it> (permalink)
References <tv4Od-85I-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Lorenzo,

Thank you very much for reply.

As you mentioned I noted that, "If a Function must generate a Completion 
prior to the initial device Configuration Write Request, 0’s must be 
entered into the Bus Number and Device Number fields"

By above statement this means that completion ID will be 0x0000. For the 
very first device on any bus,  device number will be 0 and function 
number will be 0.

Isn't completer (for configuration read) packet will be addressing 
itself instead of root complex with bus, device and function number 0?

Regards,
     Abhijit


On Tuesday 11 April 2017 07:45 PM, abhijit wrote:
>
> Hi All,
>
> I was referring Linux code for PCIe enumeration and I have one doubt
> w.r.t to very first operation that must be done on device.
>
> Currently while scanning for device, we directly read vendor ID from
> device. But PCIE base specification
> "CB-PCI_Express_Base_4.0r0.7_November-11-2016.pdf" section 2.2.6.2
> specifies that,
>
> "Functions must capture the Bus and Device Numbers supplied with all
> Type 0 Configuration Write Requests completed by the Function and supply
> these numbers in the Bus and Device Number fields of the Requester ID
> for all Requests initiated by the Device/Function."
>
> Here I am assuming, the completer ID will be device number and function
> number that will eventually programmed in to  device. In that case, my
> question is, without first write, how read request(VENDOR ID read) is
> serviced/routed?
>
> Sorry I am feeling bit confused, help will be appreciated.

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


Thread

Doubt on first access for PCIe device abhijit <abhijitnaik27@gmail.com> - 2017-04-11 16:20 +0200
  Re: Doubt on first access for PCIe device Jon Masters <jcm@jonmasters.org> - 2017-04-19 07:10 +0200
  Re: Doubt on first access for PCIe device Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-04-19 12:30 +0200
    Re: Doubt on first access for PCIe device Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-04-21 19:10 +0200
      Re: Doubt on first access for PCIe device abhijit <abhijitnaik27@gmail.com> - 2017-04-24 08:30 +0200
        Re: Doubt on first access for PCIe device Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2017-04-24 12:10 +0200
          Re: Doubt on first access for PCIe device abhijit <abhijitnaik27@gmail.com> - 2017-04-24 13:20 +0200
  Re: Doubt on first access for PCIe device abhijit <abhijitnaik27@gmail.com> - 2017-04-21 12:10 +0200

csiph-web