From patchwork Fri Nov 25 04:35:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herbert Xu X-Patchwork-Id: 2208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3764832wrr; Thu, 24 Nov 2022 20:37:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AKvrK0dSnIv71ucAekgzqMXfvED9DrOoqcy5bXsM8KHSRI2KGr+ujZ/XJec/O9WLqmk8v X-Received: by 2002:a17:906:844:b0:78c:2c03:804c with SMTP id f4-20020a170906084400b0078c2c03804cmr17584657ejd.107.1669351054718; Thu, 24 Nov 2022 20:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669351054; cv=none; d=google.com; s=arc-20160816; b=vFa3zQ0r0Brf6/8uGMj404mXKVbvExP/nSdfiX8PLzWP8BltZNxs82CyNEFce4DJ1T sQwErNgBNZ1yevWPvkvJx5X8KwZQJhaj0BmyeOF56i9ugLy3mYTNgCdhy6/DiEmXQjIR uInkXQN/VAAnULcH3wHDFZLqgtNpyjF3Ig+KPbKoZh7B4X2ZtNae4TA1aM7XGwnGkI+r YbOAZkZbzk5Z00rdTratDEivPDfMdfYM9PUDcG4R/ax8jzHaSnKJcNudplvsVKz5+Fvh aBx8Ecy2TQ8pHQC0dKI3uwQNDtLUnuYkKRNB1xirLThFO7yey70N2lz5ptLYOqk9ZyM6 05Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=YcTCFd/W+n+hHuzVas/lr+Pw5KPofeQ1QD4X0sSb64A=; b=EiLxT8/Yo11Y9840nOR0+3fUDs7BsF1vWPWdDTQNACN3NB4oy+GGakcVgf0uu5NIv8 Tmo4kXOAUIeXlsRA28Ws+U7RS+yeuF/qbcloUkfsjgdvzD5TwFlKNZcZI5YMFhw9vTW7 jABfZ+M7iAFY41FKctietmecWfLGUKaQ44Ew0fxSeI14/6OMiwadGu7FIZX/RpxjgLT+ VCTeWEAb9KKTF/69CF16XTpf5E0OcWxcHedycCxO4rbEUBhL6/Sdq7B1j043UOJBrVrI xBqtoaBJlCRviYlQOTCbeScsOvTbn2W0+dO6jiK6IebISdSECTqiUjoqNVO7heJ9EHud edHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj4-20020a1709069c8400b007ae0e8f59a6si2402984ejc.821.2022.11.24.20.37.11; Thu, 24 Nov 2022 20:37:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbiKYEgA (ORCPT + 99 others); Thu, 24 Nov 2022 23:36:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiKYEf5 (ORCPT ); Thu, 24 Nov 2022 23:35:57 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02F82316F; Thu, 24 Nov 2022 20:35:55 -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 1oyQQt-000di7-JM; Fri, 25 Nov 2022 12:35:24 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 25 Nov 2022 12:35:23 +0800 Date: Fri, 25 Nov 2022 12:35:23 +0800 From: Herbert Xu To: Catalin Marinas Cc: Ard Biesheuvel , Will Deacon , Marc Zyngier , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Linus Torvalds , Linux Memory Management List , Linux ARM , Linux Kernel Mailing List , "David S. Miller" , Linux Crypto Mailing List Subject: [v2 PATCH 0/9] crypto: Add helpers for allocating with DMA alignment Message-ID: MIME-Version: 1.0 Content-Disposition: inline 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750441451576488501?= X-GMAIL-MSGID: =?utf-8?q?1750441451576488501?= This patch series adds helpers to allow drivers to explicitly request ARCH_DMA_MINALIGN when allocating memory through the Crypto API. Note that I've only converted one file in one driver as this is only meant to show how it's done and find out what else we may need. Other drivers will be added later. Thanks,