linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhou Wang <wangzhou1@hisilicon.com>
To: Fenghua Yu <fenghua.yu@intel.com>,
	Tony Luck <tony.luck@intel.com>,
	"Ashok Raj" <ashok.raj@intel.com>, Joerg Roedel <joro@8bytes.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ravi V Shankar <ravi.v.shankar@intel.com>
Cc: <linux-crypto@vger.kernel.org>
Subject: Re: [PATCH] crypto: hisilicon/qm: Change type of pasid to u32
Date: Wed, 1 Jul 2020 19:36:14 +0800	[thread overview]
Message-ID: <5EFC752E.6020507@hisilicon.com> (raw)
In-Reply-To: <1593115632-31417-1-git-send-email-fenghua.yu@intel.com>

On 2020/6/26 4:07, Fenghua Yu wrote:
> PASID is defined as "int" although it's a 20-bit value and shouldn't be
> negative int. To be consistent with PASID type in iommu, define PASID
> as "u32".
> 
> Suggested-by: Thomas Gleixner <tglx@linutronix.de>
> Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>

Hi Fenghua,

Looks good to me, thanks for fixing this.

Zhou

> ---
> PASID type will be changed consistently as u32:
> https://lore.kernel.org/patchwork/patch/1257770/
> 
>  drivers/crypto/hisilicon/qm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c
> index 9bb263cec6c3..8697dacf926d 100644
> --- a/drivers/crypto/hisilicon/qm.c
> +++ b/drivers/crypto/hisilicon/qm.c
> @@ -1741,7 +1741,7 @@ void hisi_qm_release_qp(struct hisi_qp *qp)
>  }
>  EXPORT_SYMBOL_GPL(hisi_qm_release_qp);
>  
> -static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, int pasid)
> +static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid)
>  {
>  	struct hisi_qm *qm = qp->qm;
>  	struct device *dev = &qm->pdev->dev;
> @@ -1813,7 +1813,7 @@ static int qm_start_qp_nolock(struct hisi_qp *qp, unsigned long arg)
>  	struct hisi_qm *qm = qp->qm;
>  	struct device *dev = &qm->pdev->dev;
>  	int qp_id = qp->qp_id;
> -	int pasid = arg;
> +	u32 pasid = arg;
>  	int ret;
>  
>  	if (!qm_qp_avail_state(qm, qp, QP_START))
> 

  reply	other threads:[~2020-07-01 11:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-25 20:07 [PATCH] crypto: hisilicon/qm: Change type of pasid to u32 Fenghua Yu
2020-07-01 11:36 ` Zhou Wang [this message]
2020-07-03  4:49 ` Herbert Xu

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=5EFC752E.6020507@hisilicon.com \
    --to=wangzhou1@hisilicon.com \
    --cc=ashok.raj@intel.com \
    --cc=fenghua.yu@intel.com \
    --cc=joro@8bytes.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=ravi.v.shankar@intel.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.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).