From: Ian Munsie <imunsie@au1.ibm.com>
To: Christophe Lombard <clombard@linux.vnet.ibm.com>
Cc: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] cxl: Fix number of allocated pages in SPA
Date: Tue, 06 Oct 2015 11:23:20 +1100 [thread overview]
Message-ID: <1444090988-sup-9677@delenn.ozlabs.ibm.com> (raw)
In-Reply-To: <1443794485-30565-1-git-send-email-clombard@linux.vnet.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Excerpts from Christophe Lombard's message of 2015-10-03 00:01:25 +1000:
> This moves the initialisation of the num_procs to before the SPA
> allocation.
>
> Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
> ---
> drivers/misc/cxl/native.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c
> index b37f2e8..d2e75c8 100644
> --- a/drivers/misc/cxl/native.c
> +++ b/drivers/misc/cxl/native.c
> @@ -457,6 +457,7 @@ static int activate_afu_directed(struct cxl_afu *afu)
>
> dev_info(&afu->dev, "Activating AFU directed mode\n");
>
> + afu->num_procs = afu->max_procs_virtualised;
> if (afu->spa == NULL) {
> if (cxl_alloc_spa(afu))
> return -ENOMEM;
> @@ -468,7 +469,6 @@ static int activate_afu_directed(struct cxl_afu *afu)
> cxl_p1n_write(afu, CXL_PSL_ID_An, CXL_PSL_ID_An_F | CXL_PSL_ID_An_L);
>
> afu->current_mode = CXL_MODE_DIRECTED;
> - afu->num_procs = afu->max_procs_virtualised;
>
> if ((rc = cxl_chardev_m_afu_add(afu)))
> return rc;
next prev parent reply other threads:[~2015-10-06 0:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 14:01 [PATCH] cxl: Fix number of allocated pages in SPA Christophe Lombard
2015-10-06 0:23 ` Ian Munsie [this message]
2015-10-06 6:19 ` Michael Ellerman
2015-10-06 9:21 ` christophe lombard
2015-10-07 3:24 ` Ian Munsie
-- strict thread matches above, loose matches on Subject: below --
2015-10-07 4:09 [PATCH v2] " Michael Ellerman
2015-10-07 5:07 ` [PATCH] " Ian Munsie
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=1444090988-sup-9677@delenn.ozlabs.ibm.com \
--to=imunsie@au1.ibm.com \
--cc=clombard@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.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).