Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3407232rwd; Mon, 22 May 2023 13:18:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4UaMc3C77/wcZ2mB7lnu6MHny4BC4AeSm9dDE00wYOkVWqLp+1756c/uIPUAdp4J4rBDHc X-Received: by 2002:a05:6a20:c702:b0:100:9d6c:b49e with SMTP id hi2-20020a056a20c70200b001009d6cb49emr11431676pzb.58.1684786681084; Mon, 22 May 2023 13:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684786681; cv=none; d=google.com; s=arc-20160816; b=Yz6UJ+3MfqLy7H3lnQm8cxAntYHohQFBKKnpUcgOJUHCKBg/ffJf8UANHPjrF8uXBC qtOoSrFzTd4mDLpFMmv8NhXGKx+/D9q2YeVgC44UrwI3oHGZY4dlpvwtG6WbhPK1tEZS vwRFtjsSWx4/8KR3gEkPDUjWtSZ9rYFa7pxNVE0P1uRIhtAnX8UQP4GW22Ecl9qm+SW5 bAoSxq0Jwy+IQPjRodsaWPadoH5/5HyuKbfW9hTjQLjiSaKfQHdIqXTfDscgs9BnKebe r0joWWEV2JA31vWyL3NKVrRKO4SZ/TezcGnRSBAaAwMY6TEKg5A4UAPdl+MQEDN26Df1 hOsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0ob7D3AwGGCF55mEXY7/POUgQ4jhEhnAUoDuRCPRu3k=; b=hoJQisTrFjTade3ut3GPCIkSyLdDr+dNdQuxERpEAx/9dp6stHMHyAHh6Iz9S4M5tx xW6Jbd0ml8nhN7EaJKPkwiGX/vCqQB/kyGYRbJ8gkKHAbG7toDY2YtLVbftTw0MnPBDL 2Z+pPqQGhfVusXLVN7sAEYxAZQ4neo/3xJSrURe0uGkBUrzXXhvVTEg/4Ci2xWVzfN0B mtjc2sF/uz7LfjHQTuK5tqhN6vwZZlQv9VrGNCJ3UP7apwoNHJACj7boJk1FBqgpcrLC DvT+ZarsHiuBebFtT4WeEFU5WGVBJy/g4xI3ngmbdp7JKs+YtE5UcJf5JjoQiV4/tfuC EF1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=dsW1m+Y4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 197-20020a6301ce000000b004fb171df693si5208714pgb.352.2023.05.22.13.17.37; Mon, 22 May 2023 13:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=dsW1m+Y4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234105AbjEVTRQ (ORCPT + 99 others); Mon, 22 May 2023 15:17:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233857AbjEVTRM (ORCPT ); Mon, 22 May 2023 15:17:12 -0400 X-Greylist: delayed 4201 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 22 May 2023 12:17:10 PDT Received: from mail.8bytes.org (mail.8bytes.org [IPv6:2a01:238:42d9:3f00:e505:6202:4f0c:f051]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA8FDE9; Mon, 22 May 2023 12:17:09 -0700 (PDT) Received: from 8bytes.org (p200300c2773e310086ad4f9d2505dd0d.dip0.t-ipconnect.de [IPv6:2003:c2:773e:3100:86ad:4f9d:2505:dd0d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 0771D2434D7; Mon, 22 May 2023 18:10:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1684771803; bh=IEYacWChjS8pqW2eXYZUvSMLj48VE4JauxQLZBxYtqA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dsW1m+Y4pRxReMA3YAV1dR7xSpCrEFNRWPSoWZvvgL9y9t+B8nkXGdS5pIZgE/Mxc jDkmtQgdl3dVqv6n3e4yCwCoQwKfP4wgVU7uooQ8pyt47lwv0bvnKcPDbqciBPuGzz QflQuvzLHWoxNs4RdcEri8p72xuZLmU5YY/fJNWHmC0sEkQSGm+KOysLl+ctiUYkJ4 7Qlh+elGqPq5y9QZv4ABmp2fOJsDSjiUh+6IV6ASZ54RN9zWxU/tU36JULF7zRzETM EVBM6Dq0OgEW2aYEblrwJsY5LuCTfZP55UCddCCkbSfFJKvpE/vQhuL22KcZwPL64w mMOPCB+3NQIhg== Date: Mon, 22 May 2023 18:10:01 +0200 From: Joerg Roedel To: Niklas Schnelle Cc: Matthew Rosato , Will Deacon , Wenjia Zhang , Robin Murphy , Jason Gunthorpe , Gerd Bayer , Julian Ruess , Pierre Morel , Alexandra Winter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Suravee Suthikulpanit , Hector Martin , Sven Peter , Alyssa Rosenzweig , David Woodhouse , Lu Baolu , Andy Gross , Bjorn Andersson , Konrad Dybcio , Yong Wu , Matthias Brugger , AngeloGioacchino Del Regno , Gerald Schaefer , Orson Zhai , Baolin Wang , Chunyan Zhang , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Thierry Reding , Krishna Reddy , Jonathan Hunter , Jonathan Corbet , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v9 6/6] iommu/dma: Make flush queue sizes and timeout driver configurable Message-ID: References: <20230310-dma_iommu-v9-0-65bb8edd2beb@linux.ibm.com> <20230310-dma_iommu-v9-6-65bb8edd2beb@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230310-dma_iommu-v9-6-65bb8edd2beb@linux.ibm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 15, 2023 at 11:15:56AM +0200, Niklas Schnelle wrote: > In the s390 IOMMU driver a large fixed queue size and timeout is then > set together with single queue mode bringing its performance on s390 > paged memory guests on par with the previous s390 specific DMA API > implementation. Hmm, the right flush-queue size and timeout settings are more a function of the endpoint device and device driver than of the iommu driver, no? I think something like this could also help solving the recently reported scalability problems in the fq-code, if done right. Regards, Joerg