Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38C7FC43334 for ; Fri, 22 Jul 2022 15:04:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A63DE9693C; Fri, 22 Jul 2022 15:04:04 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by gabe.freedesktop.org (Postfix) with ESMTPS id 985459693C; Fri, 22 Jul 2022 15:04:03 +0000 (UTC) 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 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) Subject: Re: [Intel-gfx] [PATCH v2] drm/i915: stop using swiotlb X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thomas Hellstrom , Matthew Auld , Rodrigo Vivi , kernel@collabora.com, Christoph Hellwig Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" > + return max_t(size_t, UINT_MAX, dma_max_mapping_size(dev)); Shouldn't this be a min?