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


Groups > linux.kernel > #1625813

Re: Doubt on first access for PCIe device

From Jon Masters <jcm@jonmasters.org>
Newsgroups linux.kernel
Subject Re: Doubt on first access for PCIe device
Date 2017-04-19 07:10 +0200
Message-ID <txQ2l-7Bg-7@gated-at.bofh.it> (permalink)
References <tv4Od-85I-1@gated-at.bofh.it>
Organization World Organi{s,z}ation Of Broken Dreams

Show all headers | View raw


On 04/11/2017 10:15 AM, abhijit wrote:

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

You'll want to read about PCIe enumeration at boot time and how the BIOS
walks the topology to assign these (which an OS may later re-number). In
particular, read about ECAM for configuration. This uses memory mapped
config space read/write accessors that target a memory address space
under the control of the root complex.

Jon.

Back to linux.kernel | Previous | NextPrevious in thread | Next 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