Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp541033ybt; Wed, 1 Jul 2020 04:36:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvBqTwBTBaIAQWpvDD0lOIDEiDBeEKjAdZKZELG/AzX2mwilX1R5nrVNpo0myWwJnVe5fD X-Received: by 2002:a05:6402:2064:: with SMTP id bd4mr27665289edb.180.1593603415732; Wed, 01 Jul 2020 04:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593603415; cv=none; d=google.com; s=arc-20160816; b=l9ks40aJnGcL+sN5iThdCbzz+zQrcop7qHUdVBZmVGGJFAr3VU2NtjBeYfijcS4ohQ SVZRDVNOsqYNcCU18ApliLEySZeC9gGoXOYEkDWI803XlNohFmEia+O3BYO3XqhR5/zw WOT7zaOMWkoiI9ElDEkRyqU15g/66GXJL0aNQLVz3IqlNJ/vCaXEmKlnwbgjW0/xCaxG mK0SFlrc56tysUxurXWmKxOYkxHa2TUmb4rAXhEZsKPseXhOoDoqdwI/zBWuMcGiiL2B HUcRKnRqqiuQyzyBbACrUe3ieqRUhOHSn1Zd7GUFCyGP9a7b6N0toRp9hMqzleQPQ86+ gs6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=6b1Va64HPbtmCB2bj6FcdyaWrTNJCKLlmG6BsT0q6Vg=; b=NckfC31FEo5dMeRoeliMayvbQ0mY6Wq0/Z7NBN63+b54GAaY5b6qLVdlIorglkNfYk N9voy4lWCrTRbXLVznHgHJ0LR7W1VRBnI7wzczasUuvA39h0+G+tuY4ic6Bz2cGXHA4w cB4VW8R8R0WUVuXUro7p0LCH0MFJ8a5n5dvYr74Qa/jgdClvTSAJ3DxqWQq4NDybq7QU vugqJ6hr/XUkfSmN69QnL+dpfCFfQ0Spai0UWD89+fHAgIQU9JGejIJZ+XVql+67AiG7 1SHLIC5PqA3YrrHql+z6Z/TqAUa+UYF6D1pHBxmcusZp7pWKAkqQnat9jWnc380+Nlvn 3JLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si3679196edt.71.2020.07.01.04.36.25; Wed, 01 Jul 2020 04:36:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730237AbgGALgW (ORCPT + 99 others); Wed, 1 Jul 2020 07:36:22 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7328 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730196AbgGALgW (ORCPT ); Wed, 1 Jul 2020 07:36:22 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1D11C33996FA9CB4829A for ; Wed, 1 Jul 2020 19:36:19 +0800 (CST) Received: from [10.63.139.185] (10.63.139.185) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Wed, 1 Jul 2020 19:36:15 +0800 Subject: Re: [PATCH] crypto: hisilicon/qm: Change type of pasid to u32 To: Fenghua Yu , Tony Luck , "Ashok Raj" , Joerg Roedel , Thomas Gleixner , Ravi V Shankar References: <1593115632-31417-1-git-send-email-fenghua.yu@intel.com> CC: From: Zhou Wang Message-ID: <5EFC752E.6020507@hisilicon.com> Date: Wed, 1 Jul 2020 19:36:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1593115632-31417-1-git-send-email-fenghua.yu@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 > Signed-off-by: Fenghua Yu 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)) >