Skip to contentSkip to conversation

spapr_pci: Fix maximum IRQ number check in ibm, change-msi

PATCH Alexey Kardashevskiy 2 participants 2 messages May 4, 2014 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 18 lines · Alexander Graf
Quoted 16 lines · Alexey Kardashevskiy

Recently a check for maximum supported MSIX vectors number has been added. However the check always assumed that MSIX is the only case and failed on devices which have MSI but do not have MSIX such as QEMU's PCI Bridge. This results in assert in xics_alloc_block() as req_num is zero.

This adds a check for MSI vectors number too.

---

I posted recently a memory corruption fix, patch "spapr_pci: Fix number of returned vectors in ibm, change-msi".

However it breaks QEMU's PCI bridge so here is a patch.

Quoted 7 lines
Quoted 5 lines

I would prepare a patch to replace the one in agrag/ppc-next ad01ba7 but it has Cc: [email protected] in it so I am afraid it could make it to some other tree already (did not it?).

Sorry for missing that. This is embarassing :(

You're lucky -

No, I am not. Found another bug, please revert this, I'll repost the patch. Sorry :(

Quoted 3 lines

the patch didn't get out of my queue yet. I've squashed this patch into the previous, broken commit and qemu-stable will only get CC'ed on the resulting, working patch.

Signature · 1 line
Alexey
#3 lore raw
Quoted 27 lines

Am 04.05.2014 um 12:28 schrieb Alexey Kardashevskiy <[email protected]>:

Quoted 23 lines · Alexander Graf
Quoted 22 lines · Alexey Kardashevskiy

Recently a check for maximum supported MSIX vectors number has been added. However the check always assumed that MSIX is the only case and failed on devices which have MSI but do not have MSIX such as QEMU's PCI Bridge. This results in assert in xics_alloc_block() as req_num is zero.

This adds a check for MSI vectors number too.

---

I posted recently a memory corruption fix, patch "spapr_pci: Fix number of returned vectors in ibm, change-msi".

However it breaks QEMU's PCI bridge so here is a patch.

I would prepare a patch to replace the one in agrag/ppc-next ad01ba7 but it has Cc: [email protected] in it so I am afraid it could make it to some other tree already (did not it?).

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Sorry for missing that. This is embarassing :(

You're lucky -

No, I am not. Found another bug, please revert this, I'll repost the patch. Sorry :(

Please post the patch on top of this one.

Alex

Quoted 9 lines
Quoted 5 lines

the patch didn't get out of my queue yet. I've squashed this patch into the previous, broken commit and qemu-stable will only get CC'ed on the resulting, working patch.

Signature · 1 line
Alexey