From: Michael Ellerman <mpe@ellerman.id.au>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
Gavin Shan <gwshan@linux.vnet.ibm.com>,
Wei Yang <weiyang@linux.vnet.ibm.com>
Subject: Re: [PATCH 2/3] powerpc/iommu: Cleanup setting of DMA base/offset
Date: Thu, 27 Aug 2015 11:13:36 +1000 [thread overview]
Message-ID: <1440638016.23182.7.camel@ellerman.id.au> (raw)
In-Reply-To: <55DD7E49.6010709@ozlabs.ru>
On Wed, 2015-08-26 at 18:52 +1000, Alexey Kardashevskiy wrote:
> On 06/24/2015 03:25 PM, Benjamin Herrenschmidt wrote:
> > Now that the table and the offset can co-exist, we no longer need
> > to flip/flop, we can just establish both once at boot time.
> >
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > ---
> > arch/powerpc/platforms/powernv/pci-ioda.c | 3 +--
> > arch/powerpc/platforms/pseries/iommu.c | 3 +--
> > arch/powerpc/sysdev/dart_iommu.c | 16 +++-------------
> > 3 files changed, 5 insertions(+), 17 deletions(-)
> >
> > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
> > index 5738d31..2c286b57 100644
> > --- a/arch/powerpc/platforms/powernv/pci-ioda.c
> > +++ b/arch/powerpc/platforms/powernv/pci-ioda.c
> > @@ -1620,11 +1620,9 @@ static int pnv_pci_ioda_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
> > if (bypass) {
> > dev_info(&pdev->dev, "Using 64-bit DMA iommu bypass\n");
> > set_dma_ops(&pdev->dev, &dma_direct_ops);
> > - set_dma_offset(&pdev->dev, pe->tce_bypass_base);
>
>
> This particular change breaks SRIOV. So some SRIOV code relies on that but
> I could not spot this place quickly.
Thanks for finding it.
> Also, this specific patch in powerpc/next tree just does not compile
> because of "powerpc/iommu: Remove dma_data union" but this is another story :)
<redacted>
cheers
next prev parent reply other threads:[~2015-08-27 1:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 5:25 [PATCH 2/3] powerpc/iommu: Cleanup setting of DMA base/offset Benjamin Herrenschmidt
2015-08-26 8:52 ` Alexey Kardashevskiy
2015-08-27 1:13 ` Michael Ellerman [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-22 4:32 Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440638016.23182.7.camel@ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=aik@ozlabs.ru \
--cc=benh@kernel.crashing.org \
--cc=gwshan@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=weiyang@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).