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 X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC21FC433E0 for ; Wed, 24 Feb 2021 07:28:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 608E264ECB for ; Wed, 24 Feb 2021 07:28:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233659AbhBXH2G (ORCPT ); Wed, 24 Feb 2021 02:28:06 -0500 Received: from verein.lst.de ([213.95.11.211]:36462 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233582AbhBXH2G (ORCPT ); Wed, 24 Feb 2021 02:28:06 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 6F25B68D0A; Wed, 24 Feb 2021 08:27:22 +0100 (CET) Date: Wed, 24 Feb 2021 08:27:22 +0100 From: Christoph Hellwig To: Alan Stern Cc: Thomas Zimmermann , Takashi Iwai , Mathias Nyman , airlied@linux.ie, gregkh@linuxfoundation.org, Sebastian Andrzej Siewior , Oliver Neukum , Johan Hovold , hdegoede@redhat.com, Christoph Hellwig , dri-devel@lists.freedesktop.org, stable@vger.kernel.org, Thomas Gleixner , Andy Shevchenko , sean@poorly.run, christian.koenig@amd.com Subject: Re: [PATCH v3] drm: Use USB controller's DMA mask when importing dmabufs Message-ID: <20210224072722.GA32481@lst.de> References: <20210223105842.27011-1-tzimmermann@suse.de> <20210223160054.GC1261797@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210223160054.GC1261797@rowland.harvard.edu> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Feb 23, 2021 at 11:00:54AM -0500, Alan Stern wrote: > The impression I get is that Greg would like the USB core to export a > function which takes struct usb_interface * as argument and returns the > appropriate DMA mask value. Then instead of messing around with USB > internals, drm_gem_prime_import_usb could just call this new function. > > Adding such a utility function would be a sufficiently small change that > it could go into the -stable kernels with no trouble. The DMA mask value on its own is not useful. It needs to be paired with a device that the dma API functions can be called on.