[PCBSA][Linux] missing PCIe info-table initialization reports "No ECAM is present" on Orion O6

Aperta
#689 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, linux

Direzione di ricerca

Start by locating the PC-BSA kernel code that creates the peripheral information table and the PCIe information table, then trace the system-information gathering path that emits “PCIE info table is not created.” Compare it with the Linux BSA log, which reports four ECAM regions; the linked patch may help identify the intended change. Done means the table is initialized before peripheral discovery and the kernel log reports the four ECAM regions on Orion O6.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

Running Linux PC-BSA on Orion O6 produces the following messages during
system-information gathering:

ERROR: GET_PCIe_INFO: PCIE info table is not created
No ECAM is present

Linux detects four ACPI MCFG entries, and Linux BSA successfully creates a
PCIe information table with four ECAM regions on the same platform.

Steps to reproduce

Boot the ACS Linux execution environment and run from a fresh root shell:

insmod /lib/modules/pcbsa_acs.ko
/bin/pc_bsa -l 2 -v 1 > pcbsa.log 2>&1
dmesg > pcbsa_kernel.log

The error is in the kernel log, so application stdout/stderr alone does not
capture it.

Observed and expected behavior

The PC-BSA kernel log reports:

ACPI: MCFG table detected, 4 entries
...
Creating PERIPHERAL INFO table
...
ERROR: GET_PCIe_INFO: PCIE info table is not created
No ECAM is present

For comparison, the Linux BSA kernel log reports:

PCIE_INFO: Number of ECAM regions    :    4
PCIE_INFO: Number of BDFs found      :    8
PCIE_INFO: Number of EP              :    4
PCIE_INFO: Number of RP              :    4

Expected: initialize the PCIe information table before peripheral discovery
and report the platform's four ECAM regions.

The supplied PC-BSA log still records P_L1GI_02 PASS, with 1 test run
and 1 passed
. The issue concerns the missing initialization and misleading
ECAM diagnostic; this Linux MSI/LPI check executes through the Linux PCI
subsystem despite the missing ACS table.

Porposed solution:
0004-linux-pcbsa-create-pcie-info-table.patch

Lingua principale
C
Stelle
23
Fork
42
Merge medio
10h 18m
PR unite (30g)
51

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ARM-software/sysarch-acs

Tutte le issue di ARM-software/sysarch-acs

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.