From: Daniel Axtens <dja@axtens.net>
To: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] powerpc/powernv: move dma_get_required_mask from pnv_phb to pci_controller_ops
Date: Fri, 07 Aug 2015 13:46:51 +1000 [thread overview]
Message-ID: <1438919211.6796.5.camel@axtens.net> (raw)
In-Reply-To: <1438919154-6179-1-git-send-email-andrew.donnellan@au1.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]
On Fri, 2015-08-07 at 13:45 +1000, Andrew Donnellan wrote:
> Simplify the dma_get_required_mask call chain by moving it from pnv_phb to
> pci_controller_ops, similar to commit 763d2d8df1ee2b92ff09c
> ("powerpc/powernv: Move dma_set_mask from pnv_phb to pci_controller_ops").
>
> Previous call chain:
>
> 0) call dma_get_required_mask() (kernel/dma.c)
> 1) call ppc_md.dma_get_required_mask, if it exists. On powernv, that
> points to pnv_dma_get_required_mask() (platforms/powernv/setup.c)
> 2) device is PCI, therefore call pnv_pci_dma_get_required_mask()
> (platforms/powernv/pci.c)
> 3) call phb->dma_get_required_mask if it exists
> 4) it only exists in the ioda case, where it points to
> pnv_pci_ioda_dma_get_required_mask() (platforms/powernv/pci-ioda.c)
>
> New call chain:
>
> 0) call dma_get_required_mask() (kernel/dma.c)
> 1) device is PCI, therefore call pci_controller_ops.dma_get_required_mask
> if it exists
> 2) in the ioda case, that points to pnv_pci_ioda_dma_get_required_mask()
> (platforms/powernv/pci-ioda.c)
>
> In the p5ioc2 case, the call chain remains the same -
> dma_get_required_mask() does not find either a ppc_md call or
> pci_controller_ops call, so it calls __dma_get_required_mask().
>
> Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
>
Reviewed-by: Daniel Axtens <dja@axtens.net>
--
Regards,
Daniel
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 860 bytes --]
next prev parent reply other threads:[~2015-08-07 3:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-07 3:45 [PATCH] powerpc/powernv: move dma_get_required_mask from pnv_phb to pci_controller_ops Andrew Donnellan
2015-08-07 3:46 ` Daniel Axtens [this message]
2015-08-19 23:14 ` Michael Ellerman
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=1438919211.6796.5.camel@axtens.net \
--to=dja@axtens.net \
--cc=andrew.donnellan@au1.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
/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).