On 25/10/2019 04:12, Sergey Miroshnichenko wrote: > Add a check for the UNSET resource flag to skip the released BARs Where/why does it crash exactly? It is not extremely clear from the code. Thanks, > > CC: Alexey Kardashevskiy <a...@ozlabs.ru> > CC: Oliver O'Halloran <ooh...@gmail.com> > CC: Sam Bobroff <sbobr...@linux.ibm.com> > Signed-off-by: Sergey Miroshnichenko <s.miroshniche...@yadro.com> > --- > arch/powerpc/platforms/powernv/pci-ioda.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c > b/arch/powerpc/platforms/powernv/pci-ioda.c > index c28d0d9b7ee0..33d5ed8c258f 100644 > --- a/arch/powerpc/platforms/powernv/pci-ioda.c > +++ b/arch/powerpc/platforms/powernv/pci-ioda.c > @@ -2976,7 +2976,8 @@ static void pnv_ioda_setup_pe_res(struct pnv_ioda_pe > *pe, > int index; > int64_t rc; > > - if (!res || !res->flags || res->start > res->end) > + if (!res || !res->flags || res->start > res->end || > + (res->flags & IORESOURCE_UNSET)) > return; > > if (res->flags & IORESOURCE_IO) { > -- Alexey
- [PATCH v6 11/30] PCI: hotplug: movable BARs: Try to ... Sergey Miroshnichenko
- [PATCH v6 12/30] PCI: hotplug: movable BARs: Calcula... Sergey Miroshnichenko
- [PATCH v6 13/30] PCI: hotplug: movable BARs: Compute... Sergey Miroshnichenko
- [PATCH v6 15/30] PCI: Fix assigning the fixed prefet... Sergey Miroshnichenko
- [PATCH v6 17/30] PCI: hotplug: movable BARs: Don't r... Sergey Miroshnichenko
- [PATCH v6 18/30] PCI: hotplug: Configure MPS for hot... Sergey Miroshnichenko
- [PATCH v6 19/30] PCI: hotplug: movable BARs: Ignore ... Sergey Miroshnichenko
- [PATCH v6 16/30] PCI: hotplug: movable BARs: Assign ... Sergey Miroshnichenko
- [PATCH v6 14/30] PCI: Make sure bridge windows inclu... Sergey Miroshnichenko
- [PATCH v6 20/30] powerpc/pci: Fix crash with enabled... Sergey Miroshnichenko
- Re: [PATCH v6 20/30] powerpc/pci: Fix crash wit... Alexey Kardashevskiy
- [PATCH v6 21/30] powerpc/pci: Access PCI config spac... Sergey Miroshnichenko
- [PATCH v6 22/30] powerpc/pci: Create pci_dn on deman... Sergey Miroshnichenko
- [PATCH v6 24/30] powerpc/powernv/pci: Suppress an EE... Sergey Miroshnichenko
- [PATCH v6 23/30] powerpc/pci: hotplug: Add support f... Sergey Miroshnichenko
- [PATCH v6 25/30] PNP: Don't reserve BARs for PCI whe... Sergey Miroshnichenko
- Re: [PATCH v6 25/30] PNP: Don't reserve BARs fo... kbuild test robot
- [PATCH v6 26/30] PCI: hotplug: movable BARs: Enable ... Sergey Miroshnichenko
- [PATCH v6 28/30] PCI/portdrv: Declare support of mov... Sergey Miroshnichenko
- [PATCH v6 27/30] nvme-pci: Handle movable BARs Sergey Miroshnichenko
- [PATCH v6 30/30] Revert "powerpc/powernv/pci: W... Sergey Miroshnichenko