[Very RFC 44/46] powerpc/pci: Don't set pdn->pe_number when applying the weird P8 NVLink PE hack
Alexey Kardashevskiy
aik at ozlabs.ru
Thu Nov 28 09:54:39 AEDT 2019
On 20/11/2019 12:28, Oliver O'Halloran wrote:
> P8 needs to shove four GPUs into three PEs for $reasons. Remove the
> pdn->pe_assignment done there since we just use the pe_rmap[] now.
Reviewed-by: Alexey Kardashevskiy <aik at ozlabs.ru>
>
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
> arch/powerpc/platforms/powernv/pci-ioda.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
> index 2a9201306543..eceff27357e5 100644
> --- a/arch/powerpc/platforms/powernv/pci-ioda.c
> +++ b/arch/powerpc/platforms/powernv/pci-ioda.c
> @@ -1183,7 +1183,6 @@ static struct pnv_ioda_pe *pnv_ioda_setup_npu_PE(struct pci_dev *npu_pdev)
> long rid;
> struct pnv_ioda_pe *pe;
> struct pci_dev *gpu_pdev;
> - struct pci_dn *npu_pdn;
> struct pnv_phb *phb = pci_bus_to_pnvhb(npu_pdev->bus);
>
> /*
> @@ -1210,9 +1209,8 @@ static struct pnv_ioda_pe *pnv_ioda_setup_npu_PE(struct pci_dev *npu_pdev)
> dev_info(&npu_pdev->dev,
> "Associating to existing PE %x\n", pe_num);
> pci_dev_get(npu_pdev);
> - npu_pdn = pci_get_pdn(npu_pdev);
> - rid = npu_pdev->bus->number << 8 | npu_pdn->devfn;
> - npu_pdn->pe_number = pe_num;
> +
> + rid = npu_pdev->bus->number << 8 | npu_pdev->devfn;
> phb->ioda.pe_rmap[rid] = pe->pe_number;
>
> /* Map the PE to this link */
>
--
Alexey
More information about the Linuxppc-dev
mailing list