From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Frederic Barrat <fbarrat@linux.vnet.ibm.com>,
mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org,
mikey@neuling.org, brking@linux.vnet.ibm.com,
clsoto@linux.vnet.ibm.com
Subject: Re: [PATCH v2] powerpc/powernv: Enable PCI peer-to-peer
Date: Thu, 13 Jul 2017 08:39:39 +1000 [thread overview]
Message-ID: <1499899179.2865.42.camel@kernel.crashing.org> (raw)
In-Reply-To: <20170626180855.28238-1-fbarrat@linux.vnet.ibm.com>
On Mon, 2017-06-26 at 20:08 +0200, Frederic Barrat wrote:
> + if (desc & OPAL_PCI_P2P_ENABLE) {
> + pe_init->p2p_initiator_count++;
> + } else {
> + if (pe_init->p2p_initiator_count > 0) {
> + pe_init->p2p_initiator_count--;
> + if (!pe_init->p2p_initiator_count)
> + pnv_pci_ioda2_set_bypass(pe_init, true);
> + }
So you have the initiator refcounting in Linux and the target
refcounting in OPAL ... any reason for that ?
Cheers,
Ben.
next prev parent reply other threads:[~2017-07-12 22:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-26 18:08 [PATCH v2] powerpc/powernv: Enable PCI peer-to-peer Frederic Barrat
2017-06-27 12:32 ` David Laight
2017-06-27 18:52 ` Frederic Barrat
2017-07-12 22:39 ` Benjamin Herrenschmidt [this message]
2017-07-12 23:01 ` Frederic Barrat
2017-07-13 0:25 ` 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=1499899179.2865.42.camel@kernel.crashing.org \
--to=benh@kernel.crashing.org \
--cc=brking@linux.vnet.ibm.com \
--cc=clsoto@linux.vnet.ibm.com \
--cc=fbarrat@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mikey@neuling.org \
--cc=mpe@ellerman.id.au \
/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).