linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
To: Philippe Bergheaud <felix@linux.vnet.ibm.com>,
	linuxppc-dev@lists.ozlabs.org
Cc: clombard@linux.vnet.ibm.com, benh@au1.ibm.com
Subject: Re: [PATCH v5 1/2] powerpc/powernv: Enable tunneled operations
Date: Mon, 8 Jan 2018 17:33:20 +0100	[thread overview]
Message-ID: <f155b1a5-94d9-8b61-39dc-69a702f9623f@linux.vnet.ibm.com> (raw)
In-Reply-To: <20171222123624.1880-1-felix@linux.vnet.ibm.com>



Le 22/12/2017 à 13:36, Philippe Bergheaud a écrit :
> +#ifdef CONFIG_PPC64	/* for thread.tidr */
> +int pnv_pci_get_as_notify_info(struct task_struct *task, u32 *lpid, u32 *pid,
> +			       u32 *tid)
> +{
> +	struct mm_struct *mm = NULL;
> +
> +	if (task == NULL)
> +		return -EINVAL;
> +
> +	mm = get_task_mm(task);
> +	if (mm == NULL)
> +		return -EINVAL;
> +	/*
> +	 * Caller is keeping a reference on mm_users for as long
> +	 * as XSL uses the memory context
> +	 */


That comment needs to be tweaked for pci mode. There's no XSL in play.

  Fred

> +	*pid = mm->context.id;
> +	mmput(mm);

      parent reply	other threads:[~2018-01-08 16:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-22 12:36 [PATCH v5 1/2] powerpc/powernv: Enable tunneled operations Philippe Bergheaud
2017-12-22 12:36 ` [PATCH v5 2/2] cxl: read PHB indications from the device tree Philippe Bergheaud
2018-01-08 16:38   ` Frederic Barrat
2018-01-08 16:30 ` [PATCH v5 1/2] powerpc/powernv: Enable tunneled operations Frederic Barrat
2018-01-08 16:33 ` Frederic Barrat [this message]

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=f155b1a5-94d9-8b61-39dc-69a702f9623f@linux.vnet.ibm.com \
    --to=fbarrat@linux.vnet.ibm.com \
    --cc=benh@au1.ibm.com \
    --cc=clombard@linux.vnet.ibm.com \
    --cc=felix@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).