【pcie-0212】PCI/AER: Fix the uninitialized aer_fifo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Invalid
|
Undecided
|
Ike Panhc | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Ike Panhc | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Ike Panhc | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
Current code do not call INIT_KFIFO() to init aer_fifo. This will lead to
kfifo_put() sometimes return 0. This means the fifo was full. In fact, it
is not. It is easy to reproduce the problem by using aer_inject.
aer_inject -s :82:00.0 multiple-
The content of multiple-
AER
COR RCVR
HL 0 1 2 3
AER
UNCOR POISON_TLP
HL 4 5 6 7
Fixes: 27c1ce8bbed7 ("PCI/AER: Use kfifo for tracking events instead of reimplementing it")
Signed-off-by: Dongdong Liu <email address hidden>
[Steps to Reproduce]
1)
2)
3)
[Actual Results]
[Expected Results]
[Reproducibility]
[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required):
[Resolution]
PCI/AER: Fix the uninitialized aer_fifo
Changed in kunpeng920: | |
status: | New → Incomplete |
Changed in kunpeng920: | |
status: | Incomplete → In Progress |
Changed in kunpeng920: | |
status: | Fix Committed → Fix Released |
Not yet in mainline kernel.
ikepanhc@ Kira:~/ Canonical/ sandbox$ git reset --hard origin/master kernel. org/pub/ scm/linux/ kernel/ git/nvdimm/ nvdimm Kira:~/ Canonical/ sandbox$ gitoneline | grep 'Fix the uninitialized aer_fifo' Kira:~/ Canonical/ sandbox$
HEAD is now at 359c92c02bfa Merge tag 'dax-fixes-5.6-rc1' of git://git.
ikepanhc@
ikepanhc@