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 D9E5AC19F2D for ; Tue, 9 Aug 2022 19:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245693AbiHITIh (ORCPT ); Tue, 9 Aug 2022 15:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243494AbiHITHS (ORCPT ); Tue, 9 Aug 2022 15:07:18 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B82D2B254 for ; Tue, 9 Aug 2022 11:54:07 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id A225E68AA6; Tue, 9 Aug 2022 20:54:03 +0200 (CEST) Date: Tue, 9 Aug 2022 20:54:03 +0200 From: "hch@lst.de" To: Tvrtko Ursulin Cc: "Hellstrom, Thomas" , "daniel@ffwll.ch" , "joonas.lahtinen@linux.intel.com" , "Vivi, Rodrigo" , "bob.beckett@collabora.com" , "jani.nikula@linux.intel.com" , "airlied@linux.ie" , "hch@lst.de" , "Ursulin, Tvrtko" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "kernel@collabora.com" , "Auld, Matthew" , "intel-gfx@lists.freedesktop.org" Subject: Re: [PATCH v5] drm/i915: stop using swiotlb Message-ID: <20220809185403.GB15307@lst.de> References: <20220726153935.2272777-1-bob.beckett@collabora.com> <1160a7c31084ab2259088e4bfe88b41ad61c2bcc.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 09, 2022 at 12:36:50PM +0100, Tvrtko Ursulin wrote: > > Digging through git history at least running as Xen dom0 looks to have been > impacted, but commits such as abb0deacb5a6 ("drm/i915: Fallback to single > PAGE_SIZE segments for DMA remapping") are older and suggest problem was > generic. 1625e7e549c5 ("drm/i915: make compact dma scatter lists creation > work with SWIOTLB backend.") as well. So it looks it did work behind > swiotlb despite those missing calls you highlighted. Hmm. xen-swiotlb bounce buffers as soon as any single mapping that straddles a Xen page size boundary. Could the magic value there somehow made all mappings small enough to just avoid bounce buffering for Xen by more or less accident?