Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1227495pxb; Thu, 16 Sep 2021 02:44:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcldlv/v/1Q7VNng8Sw5dobvfe2yyDRhFL6k7PWO0Xlwqc106k3XV5f6ujHAccirRwFkmn X-Received: by 2002:a17:906:c1c9:: with SMTP id bw9mr5305394ejb.3.1631785484079; Thu, 16 Sep 2021 02:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631785484; cv=none; d=google.com; s=arc-20160816; b=LM7Bkrb0inbR56Zn/y3A8Z+r9vtbJ4+wbwnyRnGWt4PzXf0+1dPoPIBIMOI7QULnAF Fhm0GbMbHzMvEuKP1GGG2Ff6NkgGq1nVXwptJiop/hbAOJhSuqI6gx7qYKQGujtqXqmg nYOueQXVdjBjZvN7wRrYzf+DXfTDJxUJUAp1vK4J0vQwV72vD4NVwcfwIt0prKhzeh/d RwPvMqOrOkr28Rc1tJUME4xjxgGI3pKWZUP5RkspOgNbjpqpjzLSfqgMV/GeC+zf09tc EdMe5xA5mnPITI8xlie96aA38TbJStjFQDhmEWt6qrRK/NOtXMoB8vQDeSbUjsNFrZPl r3lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=f4r5L82T8lVgmjDxktA/sisuupFmx7x30+6IlhMnYag=; b=Z9ZnMvHxPM8oMZ2l8CaPctgE2kxFYJCEpBx4XntW5rlLHNyh73VrTGCb0al0xyRrCc VkYmqe1Zd9abGtplMNfvVvJYh0BC+yZZYSs7kL0WrvxHiTE3J6/YVFVsNSZIC4obw0e/ OOlIKE62T3IfXuCp4M63NUjEmmug1Tk1d8BBynauc9cuL6QBUxE05/vpu75p3hpYOjXH v/6zuQzPcHcwjQDl6YWOGKca4y0YB1BK+ftUFEop0qPswO4sax/2htzWoLuEGUo1xOPt EETbKd24u0ecLpX7kQcUGB21Krbt/eOGkuOkNCpqUTltdi/ymqBtLWl0ICZLt2FjlOwm 9VhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jPcF0P+c; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c63si1994589edd.22.2021.09.16.02.44.20; Thu, 16 Sep 2021 02:44:44 -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=@gmail.com header.s=20210112 header.b=jPcF0P+c; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235804AbhIPJmC (ORCPT + 99 others); Thu, 16 Sep 2021 05:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhIPJmB (ORCPT ); Thu, 16 Sep 2021 05:42:01 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D01AC061574; Thu, 16 Sep 2021 02:40:41 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id h16so16049160lfk.10; Thu, 16 Sep 2021 02:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=f4r5L82T8lVgmjDxktA/sisuupFmx7x30+6IlhMnYag=; b=jPcF0P+cHfyIuFllT9s+XQDbpTKL/DP/WZ12xBmDnC0LZJsbJeGpydQ+nj1jG3vyhQ MXkF+s9f9DZe82C3OUmuCqssXSW6Xy1D8PFT7XMOVkyU74aEXJL7HBQJL//WLAcHnHlT 6JAWY0XBjZ7XwV9xpdiHpNmVxyHHj5cWcQPRN6QHBZx1dqJ5C5ttXeA+io6IcnyWEI1q dTKH6A8fDq2gQ2GNoUTTZGZkVAhST9ZUJ+pdKy05GPpnzXG3EkGwi93ZGAuCS4fkFkql PEeqVQZUULvnCU7rK1P4+9aDwbpW2w/MkOtNecCIBYtcqqkOy4RB/4LhCrlLfobSeeON wc2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=f4r5L82T8lVgmjDxktA/sisuupFmx7x30+6IlhMnYag=; b=d04CrElN+9LPFiaWg1zURVABzwjkEb76HQgpIWxTIjVr4nosqwCnbKO1ax7BMFt4Xz VC1trQ0VRjoJiEYb4kD5JVaREOQtjVzJdyglz87/vZGbZR90Jb/zYHWXdSlZQcgjbK48 diS3URh+bIfi9ERq957JnZuox8NDamdyU5trBs9+p4ApfJz2dPxo0fNuxUb/VpBT9Bzn AhPbuyDtRyTvTx8HY4YM1C7+RMnjRlmUi6KHnxHZDOzQxoDs5I5hEO7xZutprJKJnj0F QYLM2JnUM/g4WTM/ofUJPYttHzggw9olPcW0QEHt9L1dZl8L8s7jWk2L6018V6u6OaMO NYzA== X-Gm-Message-State: AOAM5333fyZugtkXw++Qe9/ZSHnRPIuZnJhWWDKTTJ/5yGEFvM7RO7wa EJjeSxj62CZK5zr2dqWOkL2z9W9yOEa2yVL1cEg= X-Received: by 2002:a2e:1508:: with SMTP id s8mr3587923ljd.240.1631785239506; Thu, 16 Sep 2021 02:40:39 -0700 (PDT) MIME-Version: 1.0 References: <20210914151016.3174924-1-Roman_Skakun@epam.com> <7c04db79-7de1-93ff-0908-9bad60a287b9@suse.com> <20210914153046.GB815@lst.de> In-Reply-To: From: Roman Skakun Date: Thu, 16 Sep 2021 12:40:28 +0300 Message-ID: Subject: Re: [PATCH] swiotlb: set IO TLB segment size via cmdline To: Stefano Stabellini Cc: Jan Beulich , Andrii Anisov , Roman Skakun , Jonathan Corbet , Thomas Bogendoerfer , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Konrad Rzeszutek Wilk , Boris Ostrovsky , Juergen Gross , 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 Mailing List , iommu , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefano, > 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. Yes, Option 1 is probably more efficient. But I use another platform under Xen without DMA adjustment functionality. I pinned this webpage only for example to describe the similar problem I ha= d. Cheers, Roman =D1=81=D1=80, 15 =D1=81=D0=B5=D0=BD=D1=82. 2021 =D0=B3. =D0=B2 04:51, Stefa= no Stabellini : > > 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 "intende= d > > > 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. -- Best Regards, Roman.