Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7439913pxb; Thu, 18 Feb 2021 10:04:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxDp1Cej9XmFPeovatNUpYVsZ/C+sPrkoNH/AhxR7ZJc30WCCWFYQQq4ohhizbQabSKf2v X-Received: by 2002:a50:a6ce:: with SMTP id f14mr5228518edc.346.1613671490299; Thu, 18 Feb 2021 10:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613671490; cv=none; d=google.com; s=arc-20160816; b=leyktK6tdsr4qIz7q6c1et3OB1gsQY0z2HmGU0TeGKusGeS9kXiiOb3Dyx/uBeJJO0 s0y8D5Y5b+bAryiBXt4gZJsU54JoR4Ij9xX/AvAjh3+2XryqgGqDawlgmUMEtU3ppoTT ZPvNiJjQexI7h8ODSTg3ngZOi9P4igwEH8rzXxbGNbSYW2jQez3fAtXpI5FIUCyz8Nvk G+7SEcpmT61TXHzYZgj6MDEy1/6b8TCJa9kgNQt3Tj0XJptuybLv2+VkgbOtyd+bD0No jiEjU82qzVeugNwKOZviTqE4qsP+vYEnQxO9Hc0iHl43M3RN/+bH2Pe3tLbzg1WHPsu0 KiOQ== 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=Rg5iyOtW9w6yID9Xgm+frDBnZ3ClOwHiwIo3Fd2I3Dk=; b=XmeTuInRiq38deYmvfCebvJHhPG7OmSmTFqSOS4YMllDC27/Tci3uQdR8ZswNINRk+ ooL8kU9vxMEl+D9dgkV8mAF5/OfzhGylAR6HvWFKyCdyAHkoGEgbbVuMopM5Udc7z2oE BrCzsrqbA/9SlvdnsG+93mxEywYQU81SCpuJq7vBdgAbBJAVHrxxGnPYVivyG57eWHsM k35rSUBrN37pUX4svZrf3iMJT5oqXs7w/dOpaAgbI0KWrYlrnDZdqbSrDc3BvziltNXz QTxNg0opGqgxhIgg5mgDL0DJo06MjCziagwBVeHTf2kxVFrzF2Lj7lQMI/GcTIGf+Qzs Wehw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt36si3776412ejc.57.2021.02.18.10.04.25; Thu, 18 Feb 2021 10:04:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234878AbhBRSB6 (ORCPT + 99 others); Thu, 18 Feb 2021 13:01:58 -0500 Received: from verein.lst.de ([213.95.11.211]:48730 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbhBRPZJ (ORCPT ); Thu, 18 Feb 2021 10:25:09 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 70B5268D07; Thu, 18 Feb 2021 16:24:25 +0100 (CET) Date: Thu, 18 Feb 2021 16:24:25 +0100 From: Christoph Hellwig To: Thomas Zimmermann Cc: Christoph Hellwig , Greg KH , Daniel Vetter , David Airlie , dri-devel , USB list , Linux Kernel Mailing List Subject: Re: Regression: 6eb0233ec2d0 ("usb: don't inherity DMA properties for USB devices") Message-ID: <20210218152425.GA19470@lst.de> References: <20210218150746.GA18220@lst.de> 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 Thu, Feb 18, 2021 at 04:21:26PM +0100, Thomas Zimmermann wrote: > Sure, it's at [1]. For udl, the dmabuf would need to be in system memory. > The driver creates urbs from the framebuffer content and sends them to the > device for displaying. > > My question is more: what's the best interface to do this? Is there example > code somewhere? URBs do point to system memory most of the time. I'm not a real USB expert, but usb-storage or uas would be classic examples for drivers that take arbitrary memory controller by another layer and do DMA to/from that.