Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp464682imi; Fri, 22 Jul 2022 03:00:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uPdzlfrtFQX9XSJeHytl0co+Skizz8dbLWlk+7xDIkeNBdKL+FXchPk/iZaVkMavliAse5 X-Received: by 2002:a17:906:9c82:b0:6e1:1d6c:914c with SMTP id fj2-20020a1709069c8200b006e11d6c914cmr2441845ejc.769.1658484027632; Fri, 22 Jul 2022 03:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658484027; cv=none; d=google.com; s=arc-20160816; b=ABym2WM1ryOzuNZxg1r8EE+4aKlUvcUotqWFAcTvkwtRLeRgkVamjvQ/FUyrv1I8Tb 1xJ6m+GRJX9zQtIiCmC28JWjaEXbAjneJ80904tvUnno/LfgIlsdorVoMqcmuVj9R/Ze WInZza3F98rngCnW0tMiGIiiDwR0neDTz2LogDsy1bxu6woysbHhCIJ2VT6VGlZRokUG QMSIhNCSs0NgKxIg0MXHwuLAY+7K8EN6PtLjGfd/JrQMx5XWyJYCEk5IzEPRbYPBJ88N 9O3JJAUgTzbgS3z/7eih8HWgEvd3lFJyiatTRC4VXenJ6SamoQnmeZauDtx5Z+XioxJY jYJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9v0srgqSCSOuqBM+O0j31BRk4Fgp/jGtiXIsHmBJii8=; b=Ry6DTQSFeDvqaJOdrdP5T4hG3OZgQClhZQbJtKmqLHWSmWI3wo4l2W8SJO7z/ELg29 XVW9849btH9Bj2tOyESnI3BBdu+gUVBWsZ29vnUCF0aVmwbQND6vOyqxOn534YuZrKx6 L4WbUj96Lxen6rQMogVOe6vKdC9JWoCVjqdGjy9r/6Hja+W3pdJpFreywuNtPjvAyQkY sMMJJy7jNwgo4oMaqqWxOSr42/P8wFUieT9HE+gVnW4eVVyDbk1Xp9XRjClmHMdLnFXt 7olXSIGrTcMuwLsGiWEbE8TfzzOLsNRXEXT9xR2faueSCOJBDlmWp3xP7YhCvJ8SAIbs r5+w== ARC-Authentication-Results: i=1; mx.google.com; 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 hq34-20020a1709073f2200b0072aed4539absi2180277ejc.508.2022.07.22.03.00.02; Fri, 22 Jul 2022 03:00:27 -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; 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 S234413AbiGVJ5c (ORCPT + 99 others); Fri, 22 Jul 2022 05:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbiGVJ53 (ORCPT ); Fri, 22 Jul 2022 05:57:29 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E0B3FA33 for ; Fri, 22 Jul 2022 02:57:28 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id A3C6C68AFE; Fri, 22 Jul 2022 11:57:24 +0200 (CEST) Date: Fri, 22 Jul 2022 11:57:24 +0200 From: Christoph Hellwig To: Robert Beckett Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , kernel@collabora.com, Christoph Hellwig , Thomas Hellstrom , Matthew Auld , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915: stop using swiotlb Message-ID: <20220722095724.GA14113@lst.de> References: <20220721174307.1085741-1-bob.beckett@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220721174307.1085741-1-bob.beckett@collabora.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 Thu, Jul 21, 2022 at 06:43:07PM +0100, Robert Beckett wrote: > + max_segment = dma_max_mapping_size(i915->drm.dev); > + max_segment = max_t(size_t, max_segment, PAGE_SIZE) >> PAGE_SHIFT; dma_max_mapping_size is always larger than PAGE_SIZE, so I don't think the max is needed. Otherwise this loks good: Reviewed-by: Christoph Hellwig