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 66A32C433F5 for ; Thu, 21 Apr 2022 07:21:31 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kbVZjTw/4wDLzZ6HGKfYPgB6IdUoZmNc92vM+s1+H/c=; b=WsZBMPoQw3dAh1 i4/tCKy6UC2WkZao2+sbTHO4IKqXhApnGRlN722m9NYWBUSdpVPSrJupCp500MDDEPGzT1kGV9dcs GS5v7Ik+WD4N9qJwy9TTwf6atIaMAYXzIV4n+F0dW577SW6Fyun1s2g7Z8dSmZ1hr3wpsWT4WAaCK Q1QIV6w5p07yksZaXs/3lrkM7Ir/Lt2J6lTL5vWx+1cwITmPpexLncuPNXAiSGUBgkirq9w4Y09bi /Mb818BVyRAWIpIZe5YKerIAyV/XUDloW7AhifEu8Vo6j6UVnFS9U+17rPe6GCITgBl2+StSxB5Xt 6FfPR/uKsVbbJLIIGwIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhR71-00Bzk6-UO; Thu, 21 Apr 2022 07:20:23 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhR70-00Bzjm-64; Thu, 21 Apr 2022 07:20:22 +0000 Date: Thu, 21 Apr 2022 00:20:22 -0700 From: Christoph Hellwig To: Arnd Bergmann Cc: Ard Biesheuvel , Catalin Marinas , Herbert Xu , Will Deacon , Marc Zyngier , Greg Kroah-Hartman , Andrew Morton , Linus Torvalds , Linux Memory Management List , Linux ARM , Linux Kernel Mailing List , "David S. Miller" Subject: Re: [PATCH 07/10] crypto: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 Btw, there is another option: Most real systems already require having swiotlb to bounce buffer in some cases. We could simply force bounce buffering in the dma mapping code for too small or not properly aligned transfers and just decrease the dma alignment. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel