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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF58EEB64D9 for ; Thu, 29 Jun 2023 05:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbjF2FMp (ORCPT ); Thu, 29 Jun 2023 01:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbjF2FMm (ORCPT ); Thu, 29 Jun 2023 01:12:42 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC1B26BB for ; Wed, 28 Jun 2023 22:12:41 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B451667373; Thu, 29 Jun 2023 07:12:38 +0200 (CEST) Date: Thu, 29 Jun 2023 07:12:38 +0200 From: Christoph Hellwig To: Petr =?utf-8?B?VGVzYcWZw61r?= Cc: Petr Tesarik , Christoph Hellwig , Marek Szyprowski , Robin Murphy , "open list:DMA MAPPING HELPERS" , open list , Roberto Sassu , Kefeng Wang Subject: Re: [PATCH v1 0/2] swiotlb: Fix a couple of bugs in sizing areas Message-ID: <20230629051238.GB16654@lst.de> References: <20230626160725.5164ca74@meshulam.tesarici.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230626160725.5164ca74@meshulam.tesarici.cz> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 26, 2023 at 04:07:25PM +0200, Petr Tesařík wrote: > As an aside (and not directly related to the bugfixes themselves), I > wonder why the area size cannot be always equal to IO_TLB_SEGSIZE. Of > course, we would (usually) end up with more areas, but that should be > a good thing, shouldn't it? The area structure is quite small, so it > cannot be because of memory consumption concerns. The overhead of > taking an uncontended spinlock should also be negligible. What would be the benefit of this?