Follow-ups left open by the RTL8852CE PCIe port (#468)

Aperta
#469 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
c
Ambito
backend

Direzione di ricerca

This issue groups several independent follow-ups rather than one bounded task. Start with the relevant entry points it names: PcieDmaAx, PcieDma88xx, PcieTransport::Open, tests/pcie_rx_smoke.py, and the demo used by the receiver harness. First determine which item is still actionable; done criteria depend on that investigation, and the lab-box hang remains undiagnosed.

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

Descrizione

enhancement

Open items from #468 (RTL8852CE on the Kestrel HAL over vfio-PCIe), none of them blocking the merge:

  • MSI on the AX plane. PcieDmaAx polls the RXQ/RPQ hardware indices every 200 µs. The 88xx plane already wires the vfio MSI eventfd; the AX equivalent is R_AX_HAXI_HIMR00 (RXDMA | RPQDMA | RDU) plus the indirect R_AX_PCIE_HIMR00_V1 HCI_AXIDMA bit (rtw89 rtw89_pci_enable_intr_v1 / recognize_intrs_v1). Measure the CPU cost of polling first; it is only worth doing if a receiver on a small host shows it.
  • Card 05:00.0 TX delivery. On the lab box the E-key card loses ~30% of injected frames to either witness (1383/2000 and 1489/2000) while 09:00.0 delivers 1980/2000 with the same code. Confirm with a reseat / antenna swap / SDR duty read before anything in the driver is suspected; if it follows the slot rather than the module, look at the ASPM/L1 state of that root port.
  • The 8821CE plane was moved, not re-run. PcieDma88xx is a byte-identical move of the old ring code, but no 8821CE is on the box. Run tests/pcie_rx_smoke.py on the Radxa 8821CE once.
  • RTL8852BE. Refused at the factory and in PcieTransport::Open: its PCIe power sequence (mac_pwr_on_nic_pcie_8852b) and the single-BDRAM ring table (rtw89_bd_ram_table_single, non-V1 register set, 8-byte addr_info) are unported. The plane would need the 8852B register bank as a second table.
  • CAV-cut pre-init rows. l12_vmain / gen2_force_ib (rtw89, CAV only) are not transcribed; the lab modules are cut 1. Add them if a CAV module ever shows up.
  • timeout -s INT does not stop the PCIe rxdemo while kill -INT <pid> does (clean exit within 5 s). Understand why — a signal-delivery or process-group effect in the demo, not the driver — since every harness that uses timeout on the PCIe receiver silently measures a hard kill.
  • Lab box hang. During a hung-rxdemo investigation the box went unreachable (pings, sshd pre-auth timeouts) and needed a power cycle; the previous boot's kernel log shows nothing at the hang time (only the pre-fix CmpltAbrt AERs and one DMAR fault, both since fixed). Cause open. A serial console or PDU on that node would have turned this into a diagnosis.
  • MMIO alignment doctrine. The transport now splits misaligned accesses; the HALs still issue 32-bit RMWs on 16-bit registers (R_AX_SYS_FUNC_EN at 0x0002 is the canonical one). Consider a debug-build counter of split accesses so new ones are visible.

🤖 Generated with Claude Code

Lingua principale
C
Stelle
56
Fork
29
Merge medio
3h 43m
PR unite (30g)
75

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 OpenIPC/devourer

Tutte le issue di OpenIPC/devourer

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.