AnsweredAssumed Answered

P2020 legacy Interrupt not work

Question asked by zhaoping yang on Jan 3, 2017

I use P2020 as PCI-e Host. I can find Pci-e Device Like follow:

vendor ID = 0x10ee
device ID = 0x0007
command register = 0x0007
status register = 0x0010
revision ID = 0x00
class code = 0x05
sub class code = 0x80
programming interface = 0x00
cache line = 0x08
latency time = 0x00
header type = 0x00
BIST = 0x00
base address 0 = 0x84000000
base address 1 = 0x00000000
base address 2 = 0x00000000
base address 3 = 0x00000000
base address 4 = 0x00000000
base address 5 = 0x00000000
cardBus CIS pointer = 0x00000000
sub system vendor ID = 0x10ee
sub system ID = 0x0007
expansion ROM base address = 0x00000000
interrupt line = 0x00
interrupt pin = 0x01
min Grant = 0x00
max Latency = 0x00
Capabilities - Power Management
Capabilities - Message Signaled Interrupts: 0x48 control 0x80 Disabled, 64-bit, MME: 0 MMC: 0
Address: 0000000000000000 Data: 0x0000
Per-vector Mask: Unsupported
Capabilities - PCIe: Endpoint, IRQ 0
Device: Max Payload: 512 bytes, Extended Tag: 5-bit
Acceptable Latency: L0 - >4us, L1 - >64us
Errors Enabled: Relaxed Ordering No Snoop
Max Read Request 512 bytes
Link: MAX Speed - 5.0Gb/s, MAX Width - by 4 Port - 0 ASPM - L0s
Latency: L0s - >4us, L1 - >64us
ASPM - Disabled, RCB - 64bytes
Speed - 5.0Gb/s, Width - by 1
Ext Capabilities - Device Serial Number. 0x100. Version 1
Serial Number: 0x1 0x0 0xa 0x35 0x0 0x0 0x0 0x1

but when I Cnonnect Irq use irq Line 0,the interrupt do not work;

I want to know How The os assign the interrupt Line,from the bsp,if interrupt pin is 1,the interrupt should be 0.but i can not find expain from the cpu datasheet.

From the datasheet:

8 PCI Express Port 3
9 PCI Express Port 2
10 PCI Express Port 1

Outcomes