Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp756390imi; Fri, 22 Jul 2022 08:47:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tbQz8k9VOUxfmqT4cb3zN4ywWo6ukSjO/rGfwo4tTTbKlJIRR7nQ58UL58Ueeoai/0ZZyC X-Received: by 2002:a05:6402:2919:b0:43b:c349:2138 with SMTP id ee25-20020a056402291900b0043bc3492138mr550592edb.10.1658504858280; Fri, 22 Jul 2022 08:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658504858; cv=none; d=google.com; s=arc-20160816; b=a2/djpefko9gE9vLgGXG0WRdwUcJ05DShRBw1TBDadiM9nampX26Th2SLsfeFSrNsn 3+yOWVWJduZJTyriAtyiVUFlus1S9foCohuD+HX/X1n7Ilq24eRzTPpxIqebxfyGqUo1 POps0RjDfocVtPS9747sTLlkYxjW+iPfKCaSINrltnE1rcnEdIkQTvvLGZJd5gNaPjmb u1Hufh31XbwoYcoWDu+SsWJvOJCLZZckCIqXa75fKJvBLVkGrvHTUvVYHi5JDNFjyvm2 i+dHWejRCNzsIR/SqhLA8uxcG/xnCTmJiJWSFJUAJw9A2toKT+v+iCLR2E5j1oC0cCEC 7QGw== 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=UZYI3FywSYCQ7AHkoJSvr42hiFBuS8yHF81uGqQsbvc=; b=Pwskxnoq8WKWJxKIVX9rbiBKUFGDkbbwynZkS41vVUCXIdRUdnrS0cfMGduydyMY6f itjNasU7HpZ8UY+80KUeAyX0iZot3NQXbfeTh17tXUtEvUlrlyJWwZfKXft/cT6+D4+d ZRCFF6prn0WkymVlyno7yWKGk1r0wFQwvCZH/WqoXb00x/DBZvexlACAtA/y8q1eToYz M6VsSvUX1AvcLNfgE+EWPVhLVQHCNPDZQ6qLXuwlLE6KRrm1dvRjS14akpMchM1TvdkZ 1mLIn2tx1JhLbqrN+TMLkNOTPgYBNk/kJ9tC7TPTqXJtFT3Jb0VksO1/7u0CC36g6oBl jWnw== 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 cw5-20020a170906478500b0072f42bb813csi6503655ejc.134.2022.07.22.08.47.12; Fri, 22 Jul 2022 08:47:38 -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 S235330AbiGVPEG (ORCPT + 99 others); Fri, 22 Jul 2022 11:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbiGVPEE (ORCPT ); Fri, 22 Jul 2022 11:04:04 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9590A6FA07 for ; Fri, 22 Jul 2022 08:04:03 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 24F9268AFE; Fri, 22 Jul 2022 17:03:59 +0200 (CEST) Date: Fri, 22 Jul 2022 17:03:58 +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 , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] drm/i915: stop using swiotlb Message-ID: <20220722150358.GA7152@lst.de> References: <20220722145920.1513509-1-bob.beckett@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722145920.1513509-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 > + return max_t(size_t, UINT_MAX, dma_max_mapping_size(dev)); Shouldn't this be a min?