Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1453351imw; Tue, 5 Jul 2022 09:43:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sQHGCXMDfaL8zI3MtBy80eg1ERqcKKfN8pIqpYEx2y3IulGFt+J3AeKvck0/VpeMxyFp1c X-Received: by 2002:a17:90b:164a:b0:1ec:b991:b69 with SMTP id il10-20020a17090b164a00b001ecb9910b69mr44071874pjb.173.1657039392503; Tue, 05 Jul 2022 09:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657039392; cv=none; d=google.com; s=arc-20160816; b=OOvnlRc73+OR0UD1HzJnrokK6JQaayHCv0kWn7ahgSJBCc5jfQ0ThxqgJfMC54Uw/5 GDNYEOVldt7NGwI6xMlQZt+5+KI+w9puzd/55dKdxiiaepnmJDzH8tazUoCiYNT3rUei ZwPtv0y1MB96wmlE91iJmhqdWDSrh4khU20ZGkFdqhVU1lnObNCWr3ZBWWMFkrobmMdE 9MzqfDfoYOmcpFlGnRMGfBkVakb0RjjtgINAOQtW9PeN3hvQnE6c/0SwLU/oCpDa10SQ QHbghcTd7GkExlQp+cazmsoTqtG9FYR6oauAdsTUssmtU4pLbTb6M/ogzX/dJQe4NOEU wJYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FT0v/sV196oi1pPo9rXytwc+6LEXzJKfYCCV71OG7mo=; b=Zahbibzza7Cx5/ihiSXsMc9JztNlBuMy4tiVfhI9TCrsJe/PhX0vvSayO7ftMSUGIF t7hlg7JHvdmC8PAAKI/HNmPpkndWa9ZMRZXIP8bQaaNo5zcgNzLonf2vLl7QGCeeIdD5 Mr+5Aib/Qqc/+O4fWYABFlIPJAKxgnkqz6Q+IG+6KXZKFWBmsyplW7j1Aso191xk65ez M071tweLcWpfcTXQUVhqDMTAhQjXsh9KvGKD4jJ8dPESjZHkRxceE7MafAZ+5QRSvODG b1XmuyURZNGsR/l92z2SGGrad3k2Ijemjy+QCdZ/ccPVJlCjwAgp1prHlw8L/VTi2YAq FoCQ== 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 p2-20020a17090ab90200b001ef8d23ad9csi5893027pjr.182.2022.07.05.09.42.58; Tue, 05 Jul 2022 09:43:12 -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 S232934AbiGEQmV (ORCPT + 99 others); Tue, 5 Jul 2022 12:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233024AbiGEQmS (ORCPT ); Tue, 5 Jul 2022 12:42:18 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C200F1EECB; Tue, 5 Jul 2022 09:42:17 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0C53367373; Tue, 5 Jul 2022 18:42:14 +0200 (CEST) Date: Tue, 5 Jul 2022 18:42:13 +0200 From: Christoph Hellwig To: LABBE Corentin Cc: Ben Dooks , herbert@gondor.apana.org.au, hch@lst.de, heiko@sntech.de, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [RFC PATCH] crypto: flush poison data Message-ID: <20220705164213.GA14484@lst.de> References: <20220701132735.1594822-1-clabbe@baylibre.com> <4570f6d8-251f-2cdb-1ea6-c3a8d6bb9fcf@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Jul 05, 2022 at 10:21:13AM +0200, LABBE Corentin wrote: > > I just copied what did drivers/crypto/xilinx/zynqmp-sha.c. > I tried to do flush_dcache_range() but it seems to not be implemented on riscV. That driver is broken and should no have been merged in that form. > And flush_dcache_page(virt_to_page(addr), len) produce a kernel panic. And that's good so. Drivers have no business doing their own cache flushing. That is the job of the dma-mapping implementation, so I'd suggest to look for problems there.