From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 EAAA379C1 for ; Wed, 30 Nov 2022 18:48:25 +0000 (UTC) Received: by mail-pf1-f172.google.com with SMTP id q12so13583701pfn.10 for ; Wed, 30 Nov 2022 10:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LQkRh/zM8UmfkMC06DRorx1Y0k2ZsCD/+Fu4/2OaKKc=; b=KElmZvHJRpG7wHvswrXYwocLEjK0lPvrdzTgeCwBLxRR9pf8kccPQtT/lGjSOXkNpn RnJaL5gRFhxHipd1dSrkxRpzJKmcsBXtPdp7P7jZoZa9tMaAqEmTSqY0Z15XZkNWtFMw n+PLMjZ+Vhp/otWzDucp0dDPOwkX27wL5VvwO00YJIaBdcdysov5TGpr0F1F3YXaSm4f ZQWw/rCuTQgoyaTp4an6DT7BMskcAA0mqDyQ11s0a6VGpdpVkIHJnzzymX1XWR1aTpc0 cjm+8Gz9gy/U/H88d82lEl85AzYq9ZPkb5pMZJqFDsqg5j1Dle12R651Ub/lLaDw62/H yaew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LQkRh/zM8UmfkMC06DRorx1Y0k2ZsCD/+Fu4/2OaKKc=; b=i2XqLLiHseqfwlAk4TE2N8cZqdYKVKAfCRM9s2J6CxqopenVOK4/ZSQi4q8xv4XVuE yx5RPooDhFIqzlEDFRvD/0nvVd4r0nvCtBJT082YF7VX442lij2RZyh/WOZgC7s6KrMp cNo5rnnmwllVHSw7GXxcSb35kRiFyvEX+Gi8xpWw/mUMU3bqkrT1TOuj8/INBi4alvij jk7ey4I/Q/xP8xggPMb/Uby+hXsqro+oNn6/PdBb3dIUxPRrRVJE1sRmuOOaxCFvwfqI X3vPI/OfVXmjMdYezfG719ETw5fqqVHhLrk7+fkn+2Z5CrTKCPAxAuCgAJ4M4+GOUFqg lmGg== X-Gm-Message-State: ANoB5plYlCWpRen5L/+AfR1tx/pv1yY7dyCZtqGLsf5V4/BTMY9quu7q VFVDY4gLS5n0nTc+VLUYD/gXlg== X-Google-Smtp-Source: AA0mqf6NDbn8/fXdCVhPO/4JABlNnzY/bES/E5MrelK7mS0zIK49Tw//Uphb303yWtO0iEC/b3scHQ== X-Received: by 2002:a62:d10b:0:b0:575:ad52:ba94 with SMTP id z11-20020a62d10b000000b00575ad52ba94mr7820654pfg.74.1669834105040; Wed, 30 Nov 2022 10:48:25 -0800 (PST) Received: from google.com ([2620:15c:2d:3:9968:7291:c9a7:7a22]) by smtp.gmail.com with ESMTPSA id 7-20020a621707000000b00575a9768edasm1699875pfx.191.2022.11.30.10.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 10:48:24 -0800 (PST) Date: Wed, 30 Nov 2022 10:48:20 -0800 From: Isaac Manjarres To: agraf@csgraf.de Cc: Catalin Marinas , Robin Murphy , Linus Torvalds , Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Marc Zyngier , Andrew Morton , Herbert Xu , Ard Biesheuvel , Saravana Kannan , Alasdair Kergon , Daniel Vetter , Joerg Roedel , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Christoph Hellwig Subject: Re: [PATCH v3 13/13] dma: arm64: Add CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC and enable it for arm64 Message-ID: References: <20221106220143.2129263-1-catalin.marinas@arm.com> <20221106220143.2129263-14-catalin.marinas@arm.com> <6e846f75-b330-9523-4356-41d5f9e48f12@arm.com> <20221108100331.GA31944@lst.de> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108100331.GA31944@lst.de> On Tue, Nov 08, 2022 at 11:03:31AM +0100, Christoph Hellwig wrote: > On Tue, Nov 08, 2022 at 09:52:15AM +0000, Catalin Marinas wrote: > > Since it's hard to guess the optimal swiotlb buffer for such platforms, > > I think a follow-up step would be to use the DMA coherent pool for > > bouncing if no swiotlb buffer is available. At least the pool can grow > > dynamically. Yet another option would be to increase the swiotlb buffer > > at run-time but it has an overhead for is_swiotlb_buffer(). > > Alex said he wanted to look into growing the swiotlb buffer on demand > for other reason, so adding him to Cc to check if there has been any > progress on that. Hi Alex, Did you get a chance to look into this? If so, have you been able to make progress on being able to grow the SWIOTLB buffer on demand? Thanks, Isaac 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 7A024C4321E for ; Wed, 30 Nov 2022 18:49:33 +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=qhFbwNvLSUfE74Ou1Dm1SvchBHUQl9J+9KJkrMBKyDc=; b=ivn2A7keld209/ 3mXeiNAwZJPxWqKVvl0GuaXNQajQn0uPlysN3eLGnUx80LlYD9sFdYNa2tvPefjtxDdR1eGvdLOri cNXDsqf8SCie0jGybEfpdfAE78V1DOZhpexDRp04HDtl6zr64pLZhzUPFFSCUdE8hTBb6fbnc+E0U hYIufsfVCrbyv2kVAKrk6HC9IZbEouNZ4wvxCHVDSHXEkuqC87C8vMk3fT/vQ9B0Zx8i3wu1iFeU0 octub0YhuOfuHN4al83h0y0V/zox9idNhjdRJxqTXEERUwwqj/F5e/JFyT2rnivq/cypGccsUbFS5 xD3Tkwn7uhuqg6zArKEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0S8J-001ksw-E7; Wed, 30 Nov 2022 18:48:35 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0S8F-001kpN-SG for linux-arm-kernel@lists.infradead.org; Wed, 30 Nov 2022 18:48:33 +0000 Received: by mail-pf1-x433.google.com with SMTP id z17so12851361pff.1 for ; Wed, 30 Nov 2022 10:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LQkRh/zM8UmfkMC06DRorx1Y0k2ZsCD/+Fu4/2OaKKc=; b=KElmZvHJRpG7wHvswrXYwocLEjK0lPvrdzTgeCwBLxRR9pf8kccPQtT/lGjSOXkNpn RnJaL5gRFhxHipd1dSrkxRpzJKmcsBXtPdp7P7jZoZa9tMaAqEmTSqY0Z15XZkNWtFMw n+PLMjZ+Vhp/otWzDucp0dDPOwkX27wL5VvwO00YJIaBdcdysov5TGpr0F1F3YXaSm4f ZQWw/rCuTQgoyaTp4an6DT7BMskcAA0mqDyQ11s0a6VGpdpVkIHJnzzymX1XWR1aTpc0 cjm+8Gz9gy/U/H88d82lEl85AzYq9ZPkb5pMZJqFDsqg5j1Dle12R651Ub/lLaDw62/H yaew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LQkRh/zM8UmfkMC06DRorx1Y0k2ZsCD/+Fu4/2OaKKc=; b=yBbJIVeb6oztPs2muAmFLB21juShdACq4uUOZyQrTp4MS3i2KpyeDUKBSc+ozRkhT8 8weTlbffE+UjBGw/QWu6nlKNYjgqlmcwZjmxT1eO6IpItlEtaulsvInD7XYlXcMoU3S2 aAgrAG+lQ+LMefTV6KESWNn7fETpH/74uJXrOVpJOm3zRVd370bdW9YkPhGrIoLbwzj8 PebQ++n1hwKf5qD+oarIvY1Yc6gnU5oHG14R6KFHNSAcw1FV3uzk2i1rbz5229dw+A84 M6+Kic7rUFisD5cqQAX7LQVuazd+uvfxPpIIEVpExtA3SNo2pxpcO9LpSY9QDcvA1jTo Tc3A== X-Gm-Message-State: ANoB5pmwwrk3X0yRjTdpdyiiSaWzS5VH79Rm6ZAX82XORh81MysmxcyJ YY2H6x7A/hi32KtGT+MbHLhhkg== X-Google-Smtp-Source: AA0mqf6NDbn8/fXdCVhPO/4JABlNnzY/bES/E5MrelK7mS0zIK49Tw//Uphb303yWtO0iEC/b3scHQ== X-Received: by 2002:a62:d10b:0:b0:575:ad52:ba94 with SMTP id z11-20020a62d10b000000b00575ad52ba94mr7820654pfg.74.1669834105040; Wed, 30 Nov 2022 10:48:25 -0800 (PST) Received: from google.com ([2620:15c:2d:3:9968:7291:c9a7:7a22]) by smtp.gmail.com with ESMTPSA id 7-20020a621707000000b00575a9768edasm1699875pfx.191.2022.11.30.10.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 10:48:24 -0800 (PST) Date: Wed, 30 Nov 2022 10:48:20 -0800 From: Isaac Manjarres To: agraf@csgraf.de Cc: Catalin Marinas , Robin Murphy , Linus Torvalds , Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Marc Zyngier , Andrew Morton , Herbert Xu , Ard Biesheuvel , Saravana Kannan , Alasdair Kergon , Daniel Vetter , Joerg Roedel , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Christoph Hellwig Subject: Re: [PATCH v3 13/13] dma: arm64: Add CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC and enable it for arm64 Message-ID: References: <20221106220143.2129263-1-catalin.marinas@arm.com> <20221106220143.2129263-14-catalin.marinas@arm.com> <6e846f75-b330-9523-4356-41d5f9e48f12@arm.com> <20221108100331.GA31944@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221108100331.GA31944@lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_104831_930017_BF5A1F8F X-CRM114-Status: GOOD ( 19.32 ) 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 On Tue, Nov 08, 2022 at 11:03:31AM +0100, Christoph Hellwig wrote: > On Tue, Nov 08, 2022 at 09:52:15AM +0000, Catalin Marinas wrote: > > Since it's hard to guess the optimal swiotlb buffer for such platforms, > > I think a follow-up step would be to use the DMA coherent pool for > > bouncing if no swiotlb buffer is available. At least the pool can grow > > dynamically. Yet another option would be to increase the swiotlb buffer > > at run-time but it has an overhead for is_swiotlb_buffer(). > > Alex said he wanted to look into growing the swiotlb buffer on demand > for other reason, so adding him to Cc to check if there has been any > progress on that. Hi Alex, Did you get a chance to look into this? If so, have you been able to make progress on being able to grow the SWIOTLB buffer on demand? Thanks, Isaac _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel