From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A96DC433EF for ; Fri, 22 Jul 2022 09:57:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234922AbiGVJ5d (ORCPT ); Fri, 22 Jul 2022 05:57:33 -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) 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