Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp67664pxb; Tue, 14 Sep 2021 18:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC6C1PtreL77ngenOC5rMrmWa5Dxtgf4jk0LS2c9JWte/8m+0lhbTP584S4ZuV6o7N3Z+3 X-Received: by 2002:a05:6512:130b:: with SMTP id x11mr15423241lfu.366.1631670796171; Tue, 14 Sep 2021 18:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631670796; cv=none; d=google.com; s=arc-20160816; b=NFQFSAFAj3JkSo3AeACygQenguw2bltgyCXyeUy39O9VRHyvV6AnvscqH5dDqvWOMT xEXluSZu7maM+XaGL2Q81rZkM8/97AegQI2gz0lGnNU0/Kob1R6C5NvzRKHuWrxToH0U xk+O+cEzFlm7x5oi+G2FqcY3UycbAjdy4rzSZ6nQe1DGoRGVlGK3Q6FsaFJPXS/hwaeD lSUYN43HTsgxztWsDnUlxGB+QqPdXrLTNLFkmHL+2jALeC0dqsJ+JiwHHcjbkrktntII 2nJruiLXvgtafwpOGKADBkD9hL/us83MxwB4sAXE7CAmGZRWyYbAoLZIqv2G1gbfTaZC zICA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=h7y1kY8bUe+y2baMmA96YUagMCSsyYMqLZkyK+FeZYc=; b=Nymq3HHa6GKKSXDbqg1Cd40CXEk7RJ9Kutqe0SuYAdxBX59hOMDXWdyDKibUgu5l+h +CxcsLgicvCz9QrK/mJOuOPsflZJefbPrAU+FTFyX53yTl3F83hsomsdlPYJKE0tcpgB DwIEARnNygkAFfNfRPiUxEcOXTJYFNGZwxDbPXp6L7DxTxpeC6znTYhqwL/tyBQ9WjNs ZRuPugDHLoJK6iI+aw3MZgvLis4F9Gh3CezJD+FdADdn9OV+lHDbolhvQAqYcsYU99yt 8Plm0WhrNjYPxkmmmEEjNp2cJEb0Twg9bBZ5Zatx3rI4wCsUVnLu8MRoudbVNFZu04dc uOyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DhJ6GOb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si15187488lfe.510.2021.09.14.18.52.48; Tue, 14 Sep 2021 18:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DhJ6GOb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231979AbhIOBwV (ORCPT + 99 others); Tue, 14 Sep 2021 21:52:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:41472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbhIOBwV (ORCPT ); Tue, 14 Sep 2021 21:52:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CDF8061211; Wed, 15 Sep 2021 01:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631670662; bh=z0W70Z4JOetSa7g8CfvjNwgRWC4qCwo9bmhv6sh9Bxs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=DhJ6GOb1z9RF8MoKZiSnxeXdJKNkyxJ7YyiEn0qQubMzT9FZtSjTJUt/KUr+QwVKI +frjDgFVeOdxWz9IZc7wervGNYWJ63gSfCERzcvLkSnA46r3ypahZL2U/4IHNXcntT /DqRf5MOYuMRlQ77Uv0SNMsaDJzboDdlLxIhocqe0R7UgiEK7ZBy99L8v0w5K3bX72 sJ48QhBWhdiCuNKFPKWm/Qjfkv8EiwrcYFd4jtxEycZyiFEiLrwMg1PFndT/7dOiPM zl0gJLYf7yi4Oohaksg8j8XTXXQSSgFUXRaPI/wIqRfum+bBu2e2ldXr9TpWz6n+3M stAUSLvG5uH7w== Date: Tue, 14 Sep 2021 18:51:01 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: rm.skakun@gmail.com cc: Jan Beulich , Roman Skakun , Andrii Anisov , Roman Skakun , Jonathan Corbet , Thomas Bogendoerfer , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Konrad Rzeszutek Wilk , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Marek Szyprowski , Robin Murphy , "Paul E. McKenney" , Randy Dunlap , Andrew Morton , Thomas Gleixner , "Maciej W. Rozycki" , Muchun Song , Viresh Kumar , Peter Zijlstra , Lu Baolu , Mike Rapoport , Will Deacon , xen-devel@lists.xenproject.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, hch@lst.de Subject: Re: [PATCH] swiotlb: set IO TLB segment size via cmdline In-Reply-To: <20210914153046.GB815@lst.de> Message-ID: References: <20210914151016.3174924-1-Roman_Skakun@epam.com> <7c04db79-7de1-93ff-0908-9bad60a287b9@suse.com> <20210914153046.GB815@lst.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Sep 2021, Christoph Hellwig wrote: > On Tue, Sep 14, 2021 at 05:29:07PM +0200, Jan Beulich wrote: > > I'm not convinced the swiotlb use describe there falls under "intended > > use" - mapping a 1280x720 framebuffer in a single chunk? (As an aside, > > the bottom of this page is also confusing, as following "Then we can > > confirm the modified swiotlb size in the boot log:" there is a log > > fragment showing the same original size of 64Mb. > > It doesn't. We also do not add hacks to the kernel for whacky out > of tree modules. Also, Option 1 listed in the webpage seems to be a lot better. Any reason you can't do that? Because that option both solves the problem and increases performance.