Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6906224rwl; Thu, 29 Dec 2022 23:57:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXvE0C+1MYdf3AyJhoVFNK9c/FzC7nq5zJsX1CtejtfusQFHeszJ50af9t+NhSFenckGsl9z X-Received: by 2002:a05:6a20:7d9a:b0:af:9539:a2c0 with SMTP id v26-20020a056a207d9a00b000af9539a2c0mr47972902pzj.26.1672387062703; Thu, 29 Dec 2022 23:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672387062; cv=none; d=google.com; s=arc-20160816; b=zLkbb6mJHVc7VNmqJ78RzuPhzn89EPALPjrVcuGvZ4PvH38F37B6SiZaEd69OIag4b HoNi8xUU85EhxdCOvuEdXkjaB/uaBFEyKW0lXjHzErfBus+aUOHKWcXvA5EdkPjqrAQ0 DR+Pv+hcYOv8mza2kYsvZIox9SWhweBFJSoBC0TF4fMssKqwXogSiA+5fYx0gDJ0RLVI yFfYZCOrUasMGd6/d1NDiBtLiG1NLYIemT89jHY+MeLnxCqM+X3W+Uv5X8XlUcZmpkPq 77A2P2Gcq3CJkLYRYt6yqyQBZFmFX1A1uWJDcIynqT86B8R8Kxhek4nLMF1CxvKQ56wg o+tg== 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 :message-id:subject:cc:to:from:date; bh=5M0M0pJo+g/c9EER4KVgqIVMx+esouz8+UBTcYe/xhE=; b=LAQQSoP9C5A2DPGWsgvBhJ74I5llmV46ZfBkM4UtgCRwy9eG1iTCDPa2eHldtOTrkZ A5FqiM7qps8IiYHLLTtG65eZ4xadH0Bhq0cfZOdX9iNoNn/OL+lY+oE7f3+lA/Z8FqFL 2vWBwFRXyWSa5q2yHTq/fsvQMQjLR0x7NkTZW7Ng5nsA6b7XOoOTXiGPCT7ITmwj5UgT CVrm17V6aZRdvnym2Pw207cDuc1MKLxm/D7hKG5HBuPgYV8XJkYzzIG5i/4dEb1cmw+z sz0mVum7Lv3EB4OP16oZp1yc/Pei7fhOii4dJq360d+rNfE3hFxc11PiN+VIGoyPjsbp wIig== 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 r11-20020a1709028bcb00b0017f61ac5a53si19890128plo.111.2022.12.29.23.57.23; Thu, 29 Dec 2022 23:57:42 -0800 (PST) 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 S229839AbiL3H4E (ORCPT + 99 others); Fri, 30 Dec 2022 02:56:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234734AbiL3Hzt (ORCPT ); Fri, 30 Dec 2022 02:55:49 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E6FBC27 for ; Thu, 29 Dec 2022 23:55:47 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pBAEy-00CGpy-B7; Fri, 30 Dec 2022 15:55:45 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 30 Dec 2022 15:55:44 +0800 Date: Fri, 30 Dec 2022 15:55:44 +0800 From: Herbert Xu To: Markus Stockhausen Cc: linux-crypto@vger.kernel.org, markus.stockhausen@gmx.de Subject: Re: [PATCH v2 3/6] crypto/realtek: hash algorithms Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221206192037.608808-4-markus.stockhausen@gmx.de> X-Newsgroups: apana.lists.os.linux.cryptoapi 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 Markus Stockhausen wrote: > > + /* Write back any uncommitted data to memory. */ > + if (hreq->buflen) > + dma_sync_single_for_device(cdev->dev, virt_to_phys(hreq->buf), > + hreq->buflen, DMA_TO_DEVICE); This is not how the DMA API works. You must not do virt_to_phys. Instead use dma_map_single and dma_sync_* is not necessary unless you are using the mapping for something else. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt