{"action":"created","issue":{"url":"https://api.github.com/repos/epics-modules/devlib2/issues/2","repository_url":"https://api.github.com/repos/epics-modules/devlib2","labels_url":"https://api.github.com/repos/epics-modules/devlib2/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/epics-modules/devlib2/issues/2/comments","events_url":"https://api.github.com/repos/epics-modules/devlib2/issues/2/events","html_url":"https://github.com/epics-modules/devlib2/issues/2","id":165778522,"number":2,"title":"Physical address for PCIe devices","user":{"login":"NickeZ","id":492753,"avatar_url":"https://avatars.githubusercontent.com/u/492753?v=3","gravatar_id":"","url":"https://api.github.com/users/NickeZ","html_url":"https://github.com/NickeZ","followers_url":"https://api.github.com/users/NickeZ/followers","following_url":"https://api.github.com/users/NickeZ/following{/other_user}","gists_url":"https://api.github.com/users/NickeZ/gists{/gist_id}","starred_url":"https://api.github.com/users/NickeZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickeZ/subscriptions","organizations_url":"https://api.github.com/users/NickeZ/orgs","repos_url":"https://api.github.com/users/NickeZ/repos","events_url":"https://api.github.com/users/NickeZ/events{/privacy}","received_events_url":"https://api.github.com/users/NickeZ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/epics-modules/devlib2/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars.githubusercontent.com/u/4429215?v=3","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false},"assignees":[{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars.githubusercontent.com/u/4429215?v=3","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-15T12:41:59Z","updated_at":"2016-07-15T13:31:08Z","closed_at":null,"body":"Hi,\r\n\r\nI can't seem to figure out how to get the physical address for my mTCA EVR receiver through mrfioc2. I would suspect that I need to modify both devlib2 and mrfioc2. Is this correct? Could you please give me some directions to where I should add this functionality?\r\n\r\nI'm also not really sure why the physical slot is `2-1` and not `2`.\r\n\r\n```\r\n$ lspci -s 7:0 -vvvxx\r\n07:00.0 Signal processing controller: Xilinx Corporation Device 7011\r\n\tSubsystem: Device 1a3e:132c\r\n\tPhysical Slot: 2-1\r\n\tControl: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-\r\n\tStatus: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-\r\n\tLatency: 0, Cache Line Size: 64 bytes\r\n\tInterrupt: pin A routed to IRQ 19\r\n\tRegion 0: Memory at c0700000 (32-bit, non-prefetchable) [size=256K]\r\n\tCapabilities: [40] Power Management version 3\r\n\t\tFlags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)\r\n\t\tStatus: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-\r\n\tCapabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+\r\n\t\tAddress: 0000000000000000  Data: 0000\r\n\tCapabilities: [60] Express (v2) Endpoint, MSI 00\r\n\t\tDevCap:\tMaxPayload 256 bytes, PhantFunc 1, Latency L0s <64ns, L1 <1us\r\n\t\t\tExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-\r\n\t\tDevCtl:\tReport errors: Correctable- Non-Fatal- Fatal- Unsupported-\r\n\t\t\tRlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+\r\n\t\t\tMaxPayload 256 bytes, MaxReadReq 512 bytes\r\n\t\tDevSta:\tCorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-\r\n\t\tLnkCap:\tPort #0, Speed 2.5GT/s, Width x1, ASPM L0s, Exit Latency L0s unlimited, L1 unlimited\r\n\t\t\tClockPM- Surprise- LLActRep- BwNot-\r\n\t\tLnkCtl:\tASPM Disabled; RCB 64 bytes Disabled- CommClk-\r\n\t\t\tExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-\r\n\t\tLnkSta:\tSpeed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-\r\n\t\tDevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-, OBFF Not Supported\r\n\t\tDevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled\r\n\t\tLnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-\r\n\t\t\t Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-\r\n\t\t\t Compliance De-emphasis: -6dB\r\n\t\tLnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-\r\n\t\t\t EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-\r\n\tCapabilities: [100 v1] Device Serial Number 00-00-00-00-00-00-00-00\r\n\tKernel driver in use: mrf-pci\r\n00: ee 10 11 70 07 00 10 00 00 00 80 11 10 00 00 00\r\n10: 00 00 70 c0 00 00 00 00 00 00 00 00 00 00 00 00\r\n20: 00 00 00 00 00 00 00 00 00 00 00 00 3e 1a 2c 13\r\n30: 00 00 00 00 40 00 00 00 00 00 00 00 0a 01 00 00\r\n```"},"comment":{"url":"https://api.github.com/repos/epics-modules/devlib2/issues/comments/232951214","html_url":"https://github.com/epics-modules/devlib2/issues/2#issuecomment-232951214","issue_url":"https://api.github.com/repos/epics-modules/devlib2/issues/2","id":232951214,"user":{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars.githubusercontent.com/u/4429215?v=3","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T13:31:08Z","updated_at":"2016-07-15T13:31:08Z","body":"For reference.  The same for a FRIB crate.\r\n\r\n```sh\r\nroot@mtcacpu03:~# lspci -t\r\n-[0000:00]-+-00.0\r\n           +-01.0-[01-0d]----00.0-[02-0d]--+-00.0-[03]--\r\n           |                               +-01.0-[04]--\r\n           |                               +-02.0-[05]--\r\n           |                               +-03.0-[06]----00.0\r\n           |                               +-08.0-[07]----00.0\r\n           |                               +-09.0-[08]--\r\n           |                               +-0a.0-[09]--\r\n           |                               +-10.0-[0a]--\r\n           |                               +-11.0-[0b]--\r\n           |                               +-12.0-[0c]--\r\n           |                               \\-13.0-[0d]--\r\n           +-02.0\r\n           +-14.0\r\n           +-16.0\r\n           +-16.3\r\n           +-19.0\r\n           +-1a.0\r\n           +-1c.0-[0e]----00.0\r\n           +-1d.0\r\n           +-1f.0\r\n           +-1f.2\r\n           \\-1f.3\r\nroot@mtcacpu03:~# ls /sys/bus/pci/slots\r\n1  10  11  2  3  4  5  6  7  8  9\r\nroot@mtcacpu03:~# cat /sys/bus/pci/slots/*/address\r\n0000:03:00\r\n0000:08:00\r\n0000:0d:00\r\n0000:0b:00\r\n0000:06:00\r\n0000:04:00\r\n0000:07:00\r\n0000:09:00\r\n0000:0c:00\r\n0000:0a:00\r\n0000:05:00\r\n```\r\n"}}
{"actor":{"display_login":"mdavidsaver"}}