Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1975141rwn; Fri, 16 Sep 2022 03:58:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WrM7y4Or0eEYGoRC/R10Es2xd3/W+rwqtWXMsvFNhqAvMdJW1CUNKshPhmnuRnw8prsct X-Received: by 2002:a17:907:8a16:b0:780:83ee:a72 with SMTP id sc22-20020a1709078a1600b0078083ee0a72mr3000049ejc.603.1663325927419; Fri, 16 Sep 2022 03:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663325927; cv=none; d=google.com; s=arc-20160816; b=YQ+DLnU8kGzJZklLMU4SZAt3egai4O9b+b1bFVgb8st2SYsmYfORDIe8ZixP6DcTae TTXf3OJRSz0VZuySpxh0qxG6Ya4u+4sIAa8IQfD3g5OklmBoCEFu1kNKxJ+16P7nyPAx iXg8K9ytvBhnZ7jD0b7F1vVMibxDUN+hd6/LTczkpBgbVMbGNeSkQrRDbLe8sYZTHqqh varE30uw0yicwFUtcP0JYcVMIJOZnx5o6Z2Tprzh7KqC3wONBrjoVC+tVq0PCKHHMk3A YU3Gh7Cxy8j+dZrRtZcpj4S/r3p2t+oWTa/sILrfQsZ+p/Kuc3hRWQV87pg//UjtQ9MO RB6g== 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=vqKVhHjQ73uEf8WM+VF7sJeGwUbFFM3sStx8eqm7FJQ=; b=k8jB11dUxiOj4uHfj+7xEMXnjIIvZlQ/B+vmHcD50Ax0+QU2u7NpCjstig7kjhUtIy IFkCARaQ4hmlT2jG85HH7hOb0U9CtJIqQHnQTefMZYVAcu0/cgwWCZVZNJfE3IiqTyLX 4CS7MvhpiPB+AtnQFwSs1+Tx93QL9h3gzzyjSf7OQ20vvjXdCR0c9ma1T1iPpzWSF/eY 9U/8s1zIbH+pp64p2+24fllJQit605PeAVJ387iith8JvHOS4CB8f7btkdOh3zVlRU/A kGXvwvNn2AlZ/PwkutQ2ntghMfntyBqnbtU82wQ7uhtg4zezJro4fkzGaOqu0YY57Y84 /GKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020a50c053000000b0043dc410c5ddsi1812064edd.484.2022.09.16.03.58.23; Fri, 16 Sep 2022 03:58:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231903AbiIPKyK (ORCPT + 99 others); Fri, 16 Sep 2022 06:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiIPKxx (ORCPT ); Fri, 16 Sep 2022 06:53:53 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D1BAAFAFC for ; Fri, 16 Sep 2022 03:37:11 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oZ8iX-005Gwg-1W; Fri, 16 Sep 2022 20:37:06 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Sep 2022 18:37:04 +0800 Date: Fri, 16 Sep 2022 18:37:04 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Vlad Dronov Subject: Re: [PATCH 0/3] crypto: qat - fix DMA mappings Message-ID: References: <20220909104914.3351-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909104914.3351-1-giovanni.cabiddu@intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Sep 09, 2022 at 11:49:11AM +0100, Giovanni Cabiddu wrote: > This set fixes a set of issues related to an improper use of the DMA > APIs reported when CONFIG_DMA_API_DEBUG is selected and by the static > analyzer Smatch. > > The first patch fixes an overlapping DMA mapping which occurs when > in-place operations that share the same buffers but a different > scatterlist structure are sent to the implementations of aead and > skcipher in the QAT driver. > The second commit reverts a patch that attempted to fix a warning > reported by Smatch. This improperly reduced the mapping size for the > region of memory used to store the input and output parameters that are > passed to the FW for performing the RSA and DH algorithms. > The last patch properly fixes the issues that the reverted commit > attempted to fix. > > Damian Muszynski (2): > crypto: qat - fix DMA transfer direction > crypto: qat - use reference to structure in dma_map_single() > > Giovanni Cabiddu (1): > Revert "crypto: qat - reduce size of mapped region" > > drivers/crypto/qat/qat_common/qat_algs.c | 18 +++++++++----- > drivers/crypto/qat/qat_common/qat_asym_algs.c | 24 +++++++++---------- > 2 files changed, 24 insertions(+), 18 deletions(-) > > -- > 2.37.1 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt