On 15/07/2020 14:21, Oliver O'Halloran wrote: > On Wed, Jul 15, 2020 at 2:00 PM Alexey Kardashevskiy <a...@ozlabs.ru> wrote: >> >> >> or we could just skip setting >> >> ppc_md.pcibios_sriov_enable = pnv_pcibios_sriov_enable; >> >> for uninteresting platforms in pnv_pci_init_ioda_phb(). > > I don't think so. ppc_md is per-platform, not per-PHB andw e still > have to deal with a mixture of IODA/NVLink/OpenCAPI PHBs on a single > system. NVLink/OpenCAPI won't have SRIOV devices. Other types won't appear on the same platform simultaneously. It is not too clean, yes. > We could make it a callback in pnv_phb, but it seemed like > more indirection than it's worth. I genuinely dislike how we use ppc_md so removing things from it is definitely a good thing. -- Alexey
- Re: [PATCH 09/15] powerpc/powernv/sriov: Factor ... Alexey Kardashevskiy
- [PATCH 10/15] powerpc/powernv/pci: Refactor pnv_ioda_... Oliver O'Halloran
- Re: [PATCH 10/15] powerpc/powernv/pci: Refactor ... Alexey Kardashevskiy
- Re: [PATCH 10/15] powerpc/powernv/pci: Refac... Oliver O'Halloran
- Re: [PATCH 10/15] powerpc/powernv/pci: R... Alexey Kardashevskiy
- [PATCH 11/15] powerpc/powernv/sriov: Drop iov->pe_... Oliver O'Halloran
- Re: [PATCH 11/15] powerpc/powernv/sriov: Drop io... Alexey Kardashevskiy
- [PATCH 12/15] powerpc/powernv/sriov: De-indent setup ... Oliver O'Halloran
- Re: [PATCH 12/15] powerpc/powernv/sriov: De-inde... Alexey Kardashevskiy
- Re: [PATCH 12/15] powerpc/powernv/sriov: De-... Oliver O'Halloran
- Re: [PATCH 12/15] powerpc/powernv/sriov:... Alexey Kardashevskiy
- Re: [PATCH 12/15] powerpc/powernv/sr... Oliver O'Halloran
- Re: [PATCH 12/15] powerpc/power... Alexey Kardashevskiy
- [PATCH 13/15] powerpc/powernv/sriov: Move M64 BAR all... Oliver O'Halloran
- Re: [PATCH 13/15] powerpc/powernv/sriov: Move M6... Alexey Kardashevskiy
- [PATCH 14/15] powerpc/powernv/sriov: Refactor M64 BAR... Oliver O'Halloran
- Re: [PATCH 14/15] powerpc/powernv/sriov: Refacto... Alexey Kardashevskiy
- [PATCH 15/15] powerpc/powernv/sriov: Make single PE m... Oliver O'Halloran
- Re: [PATCH 15/15] powerpc/powernv/sriov: Make si... Alexey Kardashevskiy
- Re: [PATCH 15/15] powerpc/powernv/sriov: Mak... Oliver O'Halloran
- Re: [PATCH 15/15] powerpc/powernv/sriov:... Alexey Kardashevskiy