From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D4002581 for ; Mon, 21 Feb 2022 12:08:42 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id v12so26722302wrv.2 for ; Mon, 21 Feb 2022 04:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CV5c3iXN0ZDroe+O7EtfCuby385XVMnLRIPAVIqOzLQ=; b=VzDjcwpFw8Bt4+sKQemYRvJXOFpFzlJC4o7nPKh7gBfc/1uZq9iZRUm/gUl0kzALwR oxPa9aCTLOW9FaGrfH7w7pLx0iVwTt/GOXHE768JxURnxqtjvX7Niy6SMgOihwz31ziU yiXn6isvXh+AOxd1bBRHl+XyKf89NyMrYj/FJQQ3/QHE0Lh4zHDWNZfayfVIsXYuqIiP rFEyNLRJGwn/TkVQQNt2eayE/f5SPebnOsJSJuaBmkUDnwTfOvuxe2egfKg+x5OrqbLW gPtWHM3dfsl5OfEkaprLcnzVF2zOuCiq9nLyXw6oGM2riIaq7T2S8PLyEtFKNZuRPqDc uwGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CV5c3iXN0ZDroe+O7EtfCuby385XVMnLRIPAVIqOzLQ=; b=ha25RdRvIiT4I/kVtIMzXnYrRmSv3Tm+kujkiHW0fWSbhDb9VLWSoqAGWfUGWrDJX0 GtKjzHpuGhKOhffYBaweSIeDkSFc2i3+zLCyfU/Ne0TGpCs01TV9DQOUHnwvoOMWJaV9 kKiQv1aK2neRpM8rVDHEN3srvxjerhtqhIVBnipBBsz4evkfVWcGV3BXsHHzD6HyFT+z HTAlSGZMK7T7BTAGjrtz43Ovngfw4g9sj0DEoFA3DuhDX7ZzmKHft4JLcAUmQw/PBR75 OzL//TV/WX6Ik18yicyGgvZJP/guGxnaCbmP/8kjNRaz6a+b1BXvNlXSAW12XIPHKVpy En/A== X-Gm-Message-State: AOAM533PLynd9BdKkj4pPQVAOWFd7GZONPfrCGuTxu71FaqyLTMKZlZz E1KfZKxySS6a2htmLJbX58+9YQ== X-Google-Smtp-Source: ABdhPJyecBtSfKLHEPz8mlqMUDjEEOgcR2GUvvzZ9e+5PQYFO/+gF3qRyJfmk0DgodzGmHicQFGuPw== X-Received: by 2002:adf:ee0d:0:b0:1e3:f28:487f with SMTP id y13-20020adfee0d000000b001e30f28487fmr15441462wrn.620.1645445320385; Mon, 21 Feb 2022 04:08:40 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id a8sm11821546wra.0.2022.02.21.04.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 04:08:39 -0800 (PST) From: Corentin Labbe To: herbert@gondor.apana.org.au, jernej.skrabec@gmail.com, linus.walleij@linaro.org, narmstrong@baylibre.com, ulli.kroll@googlemail.com, wens@csie.org Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Corentin Labbe Subject: [PATCH 0/5] crypto: completion should be ran with BH disabled Date: Mon, 21 Feb 2022 12:08:28 +0000 Message-Id: <20220221120833.2618733-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello This is the follow up of https://lore.kernel.org/lkml/Yd1SIHUNdLIvKhzz@Red/ and https://patchwork.kernel.org/project/linux-crypto/patch/20220127133332.4011509-1-clabbe@baylibre.com/ This serie fix all drivers which do not call completion with BH disabled and add the check in crypto/engine asked by Herbert. I have verified that this check does not generate warnings on all other crypto hardware I got (omap, ccree, rockchip) Regards Corentin Labbe (5): crypto: sun8i-ss: call finalize with bh disabled crypto: sun8i-ce: call finalize with bh disabled crypto: amlogic: call finalize with bh disabled crypto: gemini: call finalize with bh disabled crypto: engine: check if BH is disabled during completion crypto/crypto_engine.c | 1 + drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 3 +++ drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 3 +++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 3 +++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 3 +++ drivers/crypto/amlogic/amlogic-gxl-cipher.c | 2 ++ drivers/crypto/gemini/sl3516-ce-cipher.c | 2 ++ 7 files changed, 17 insertions(+) -- 2.34.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D290C433F5 for ; Mon, 21 Feb 2022 13:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Y6z5vfLxOUxallLpyLX3BBE/RBQ7S6Ma7LU/vjRPDAM=; b=NkZhT7GHWNkLU8 sQcQvCyiIgXI9q/nayPvzYRVarvMM9l1hpl9fCFZkoslNuufqpt3XQF6SDmWPa56y7Y9VS3bMVNWE tr19YBGzoOMaTYA8e69qs+BUhK2wfgwXhBI4IylFZhhxkJxkOBBSdoT6po3/Qnv83Hn0iOG102mUN NUgMisF92Fhi4O8rBoW8q66MosyCmm6a8s8xP9ezkpKMKQS8L8vZXlPE9Ti3dawEiRu7vCawJB5uY V05hhOMAvNmQG6mA7JL6zZP69AhMbiogR3ubOeH1z2FnW/E2X2BNI2smIgX/NkIVC0kZu1eZY37rR vw5r3GTvvSHDoMw9Uy7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nM8Ls-005mpP-7D; Mon, 21 Feb 2022 13:03:40 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nM7Uj-005Y4S-CW for linux-amlogic@lists.infradead.org; Mon, 21 Feb 2022 12:08:48 +0000 Received: by mail-wr1-x435.google.com with SMTP id j17so5233wrc.0 for ; Mon, 21 Feb 2022 04:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CV5c3iXN0ZDroe+O7EtfCuby385XVMnLRIPAVIqOzLQ=; b=VzDjcwpFw8Bt4+sKQemYRvJXOFpFzlJC4o7nPKh7gBfc/1uZq9iZRUm/gUl0kzALwR oxPa9aCTLOW9FaGrfH7w7pLx0iVwTt/GOXHE768JxURnxqtjvX7Niy6SMgOihwz31ziU yiXn6isvXh+AOxd1bBRHl+XyKf89NyMrYj/FJQQ3/QHE0Lh4zHDWNZfayfVIsXYuqIiP rFEyNLRJGwn/TkVQQNt2eayE/f5SPebnOsJSJuaBmkUDnwTfOvuxe2egfKg+x5OrqbLW gPtWHM3dfsl5OfEkaprLcnzVF2zOuCiq9nLyXw6oGM2riIaq7T2S8PLyEtFKNZuRPqDc uwGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CV5c3iXN0ZDroe+O7EtfCuby385XVMnLRIPAVIqOzLQ=; b=4INlMc2qkp61nqYKhyM5fqrK5cdzwj67SF7xpQpb/vszPT5nCYXRCyQvHsaxLbfZS9 KzFjAprRP1Hp5PWMLs/n4461EKL8D1otUqQg32E+9O0rYvcijogY+Umx0TGfnwChogWb ZXYhRAvG9pGNVjOlucT2q6V+gR99EmFV7Xocbn3de0bzxjd9ONHavg6DXhUU9UoEVyUs aHxGVtGHHwyHiU75hUaXzy0Q0Md3vPrk3M15iFwcO25hGNJgfjZsGrqIz6E6HKRQFOjk XYyvZUPkPwpzbJDPNd7kRXPBDbDMCJpGlRvk93Ic9NqgBTmMq4zVqecdrdiXzkMmSpFN gD9w== X-Gm-Message-State: AOAM531vidd3du8V/yHSngF+16QvNDmcRZ/MIkJfi9xSKkfmVzbVY5GC eBGoxbGR7tYmZOhoGPdhbmob9g== X-Google-Smtp-Source: ABdhPJyecBtSfKLHEPz8mlqMUDjEEOgcR2GUvvzZ9e+5PQYFO/+gF3qRyJfmk0DgodzGmHicQFGuPw== X-Received: by 2002:adf:ee0d:0:b0:1e3:f28:487f with SMTP id y13-20020adfee0d000000b001e30f28487fmr15441462wrn.620.1645445320385; Mon, 21 Feb 2022 04:08:40 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id a8sm11821546wra.0.2022.02.21.04.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 04:08:39 -0800 (PST) From: Corentin Labbe To: herbert@gondor.apana.org.au, jernej.skrabec@gmail.com, linus.walleij@linaro.org, narmstrong@baylibre.com, ulli.kroll@googlemail.com, wens@csie.org Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Corentin Labbe Subject: [PATCH 0/5] crypto: completion should be ran with BH disabled Date: Mon, 21 Feb 2022 12:08:28 +0000 Message-Id: <20220221120833.2618733-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220221_040845_498328_9EED823E X-CRM114-Status: UNSURE ( 7.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Hello This is the follow up of https://lore.kernel.org/lkml/Yd1SIHUNdLIvKhzz@Red/ and https://patchwork.kernel.org/project/linux-crypto/patch/20220127133332.4011509-1-clabbe@baylibre.com/ This serie fix all drivers which do not call completion with BH disabled and add the check in crypto/engine asked by Herbert. I have verified that this check does not generate warnings on all other crypto hardware I got (omap, ccree, rockchip) Regards Corentin Labbe (5): crypto: sun8i-ss: call finalize with bh disabled crypto: sun8i-ce: call finalize with bh disabled crypto: amlogic: call finalize with bh disabled crypto: gemini: call finalize with bh disabled crypto: engine: check if BH is disabled during completion crypto/crypto_engine.c | 1 + drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 3 +++ drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 3 +++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 3 +++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 3 +++ drivers/crypto/amlogic/amlogic-gxl-cipher.c | 2 ++ drivers/crypto/gemini/sl3516-ce-cipher.c | 2 ++ 7 files changed, 17 insertions(+) -- 2.34.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0481C433F5 for ; Mon, 21 Feb 2022 13:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Uy1xeg4D67CLa2khrNPqpBsWg4fUHo9l9pL4J59eTX8=; b=WPe49zd49wCtqH kGJY2Kn3nDzb+pkSWxsS3DApzxfmXAFSCXSMqQdenayY0c9NSYcHvGRvW5RhvvYkdiNHP/OvWnwWv JahOe9+WJ5WvrCWpY4oXayAoFK1Cw7+Irk3GZDZf02kV3PG2p+sytNGjyk7wtcvMliPpgyQj/5nXt JdWypRiMJ9SB2F45ARXrQxgV9b/HWLTbA+R3J9B4R4IVwVxbAMW/12lZ52j7fP2YngEMIZSn9rCd5 xMFU9p3INvz3q5oC5xOMjiZgaqUzTzi10KNvc8tcW/jMytPEZXzXJ5CQJxjllYSleP+IU6ASMTUtg kGo3wXDrN8uMKpYBhRbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nM8Ni-005nF6-0I; Mon, 21 Feb 2022 13:05:35 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nM7Uj-005Y4R-CN for linux-arm-kernel@lists.infradead.org; Mon, 21 Feb 2022 12:08:49 +0000 Received: by mail-wr1-x42a.google.com with SMTP id f17so1808496wrh.7 for ; Mon, 21 Feb 2022 04:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CV5c3iXN0ZDroe+O7EtfCuby385XVMnLRIPAVIqOzLQ=; b=VzDjcwpFw8Bt4+sKQemYRvJXOFpFzlJC4o7nPKh7gBfc/1uZq9iZRUm/gUl0kzALwR oxPa9aCTLOW9FaGrfH7w7pLx0iVwTt/GOXHE768JxURnxqtjvX7Niy6SMgOihwz31ziU yiXn6isvXh+AOxd1bBRHl+XyKf89NyMrYj/FJQQ3/QHE0Lh4zHDWNZfayfVIsXYuqIiP rFEyNLRJGwn/TkVQQNt2eayE/f5SPebnOsJSJuaBmkUDnwTfOvuxe2egfKg+x5OrqbLW gPtWHM3dfsl5OfEkaprLcnzVF2zOuCiq9nLyXw6oGM2riIaq7T2S8PLyEtFKNZuRPqDc uwGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CV5c3iXN0ZDroe+O7EtfCuby385XVMnLRIPAVIqOzLQ=; b=vKx9+tVqzAki0ozK7Wi+ia6EcDAQLh9bSJVZIQsmz8kcc8D6NVXeY/aOrmynOSbVX5 mhtVEfCQQCX/ttvTh1AHb2aTZxj0hjdGomG8fNwC/AeIAOxA4oJjMPczVf8z2difPs16 ucP1EM0Sj7mEY/9O1tmeYNe8c9LYvRZN+V+Mwx27ys0sEHwdg+nOy3FJ2Rw18pmMbyOk mjwEXqPhvHed/AQ3MTM5AprTbs7WWyFI3kSev9wZELXM+RYx9o3vKGX7efA8hfmmZGFT oTBdn2wROYjZBDcxa4QrJga8UWs2SY08OEGVIgSK4lIqTdWev12iHMZUK1hGFqOBqe+Q sKwQ== X-Gm-Message-State: AOAM532/a1yAQUPrDR9/sKng3OaA9/cxpK2vvYzF4L27fdAeeLDOuEoe C/WQE+6Zz3TsWYPR1+9oWt78vQ== X-Google-Smtp-Source: ABdhPJyecBtSfKLHEPz8mlqMUDjEEOgcR2GUvvzZ9e+5PQYFO/+gF3qRyJfmk0DgodzGmHicQFGuPw== X-Received: by 2002:adf:ee0d:0:b0:1e3:f28:487f with SMTP id y13-20020adfee0d000000b001e30f28487fmr15441462wrn.620.1645445320385; Mon, 21 Feb 2022 04:08:40 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id a8sm11821546wra.0.2022.02.21.04.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 04:08:39 -0800 (PST) From: Corentin Labbe To: herbert@gondor.apana.org.au, jernej.skrabec@gmail.com, linus.walleij@linaro.org, narmstrong@baylibre.com, ulli.kroll@googlemail.com, wens@csie.org Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Corentin Labbe Subject: [PATCH 0/5] crypto: completion should be ran with BH disabled Date: Mon, 21 Feb 2022 12:08:28 +0000 Message-Id: <20220221120833.2618733-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220221_040845_456570_802720C8 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello This is the follow up of https://lore.kernel.org/lkml/Yd1SIHUNdLIvKhzz@Red/ and https://patchwork.kernel.org/project/linux-crypto/patch/20220127133332.4011509-1-clabbe@baylibre.com/ This serie fix all drivers which do not call completion with BH disabled and add the check in crypto/engine asked by Herbert. I have verified that this check does not generate warnings on all other crypto hardware I got (omap, ccree, rockchip) Regards Corentin Labbe (5): crypto: sun8i-ss: call finalize with bh disabled crypto: sun8i-ce: call finalize with bh disabled crypto: amlogic: call finalize with bh disabled crypto: gemini: call finalize with bh disabled crypto: engine: check if BH is disabled during completion crypto/crypto_engine.c | 1 + drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 3 +++ drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 3 +++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 3 +++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 3 +++ drivers/crypto/amlogic/amlogic-gxl-cipher.c | 2 ++ drivers/crypto/gemini/sl3516-ce-cipher.c | 2 ++ 7 files changed, 17 insertions(+) -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel