Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1689616pxb; Sat, 29 Jan 2022 14:04:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWIINj0kebriIKPWl95CFft3Hsc7x1n/+nqVxuDb6YwSlKbsIRUEOvyhXgsc2b/NikWfxx X-Received: by 2002:a17:90b:3b4c:: with SMTP id ot12mr17010121pjb.107.1643493853751; Sat, 29 Jan 2022 14:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643493853; cv=none; d=google.com; s=arc-20160816; b=h7BboFn2U3W/QZxDcdUSi/x314Th0xv01iH3xm8CyB/Sv3DP+/41W7D3u5aWil64Pr fWKfE0f4q/2RzxHoHJSPo1wAmxeM+d+PETTOSNMDiOBVKd+WSiMuA7+QJN38yqKk1hvI R33HyXz3HLccGkJvvdA+eNd/BhtWM7kDeiCpiwY+xvAu698/4VQFYnoGFI5s/NdZr22p TPXIE1adogIqC7aDie2W+omVv3LpQYF1lW8LPPKxIxpOdVu9+9ck+HE1pBFE5vW1mxrD Jn8qB72D7eG1Q8iN8BMKnXA+16/zDD2PZst6/OsroY4eAEWtbZZpvs5S3RhRvNdcHA9U lB8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8EUaCe8FO/vMGPmAlqUPiuWWRvvrGl/Vk/0bcEeBd1I=; b=gdewq+FTbMHrtskV5rNoZLWutBWZhngLbQuQjVzMHNUgoaCM5mMEWoFJV3RMxCepLr Z9e/nmORQGLYGTCOPwxXjitWr89x/Yr2Ra5BRqqFi3XUCd9eH+hvHcyCnPECleCAj6IO zd6rM9tkdsef1AiXCxem4f6Qor1wxiEmfnK7yGBXkxdzRZ3z+hI00BqyNWAK5/YwQAAW je0V2EwVwSzudZZx1qk+h3Cl6n6SidwOHI+NHz2HH0ySOxjhlGQCrIEymGCe3RoN9jgC 4GrM9O/FOGQ1alhMZUKWA/le/+RoUAyq7pmWKLXjK8Jvdkhm/8tpjc7Rj/+nGssxtNJZ kdQA== 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 ay5si8576676plb.420.2022.01.29.14.04.01; Sat, 29 Jan 2022 14:04:13 -0800 (PST) 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 S1346445AbiA1G0c (ORCPT + 99 others); Fri, 28 Jan 2022 01:26:32 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:60610 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346443AbiA1G0b (ORCPT ); Fri, 28 Jan 2022 01:26:31 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nDKiL-0001Am-Gq; Fri, 28 Jan 2022 17:26:30 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 28 Jan 2022 17:26:29 +1100 Date: Fri, 28 Jan 2022 17:26:29 +1100 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Siming Wan , Xin Zeng , Wojciech Ziemba , Marco Chiappero Subject: Re: [PATCH] crypto: qat - fix access to PFVF interrupt registers for GEN4 Message-ID: References: <20220118103515.51374-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220118103515.51374-1-giovanni.cabiddu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jan 18, 2022 at 10:35:15AM +0000, Giovanni Cabiddu wrote: > The logic that detects, enables and disables pfvf interrupts was > expecting a single CSR per VF. Instead, the source and mask register are > two registers with a bit per VF. > Due to this, the driver is reading and setting reserved CSRs and not > masking the correct source of interrupts. > > Fix the access to the source and mask register for QAT GEN4 devices by > removing the outer loop in adf_gen4_get_vf2pf_sources(), > adf_gen4_enable_vf2pf_interrupts() and > adf_gen4_disable_vf2pf_interrupts() and changing the helper macros > ADF_4XXX_VM2PF_SOU and ADF_4XXX_VM2PF_MSK. > > Fixes: a9dc0d966605 ("crypto: qat - add PFVF support to the GEN4 host driver") > Signed-off-by: Giovanni Cabiddu > Co-developed-by: Siming Wan > Signed-off-by: Siming Wan > Reviewed-by: Xin Zeng > Reviewed-by: Wojciech Ziemba > Reviewed-by: Marco Chiappero > --- > drivers/crypto/qat/qat_common/adf_gen4_pfvf.c | 42 ++++--------------- > 1 file changed, 9 insertions(+), 33 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt