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 1F58CC76195 for ; Tue, 28 Mar 2023 03:57:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232820AbjC1D5o (ORCPT ); Mon, 27 Mar 2023 23:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbjC1D5f (ORCPT ); Mon, 27 Mar 2023 23:57:35 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E2F5198; Mon, 27 Mar 2023 20:57:30 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id CA62968AA6; Tue, 28 Mar 2023 05:57:25 +0200 (CEST) Date: Tue, 28 Mar 2023 05:57:25 +0200 From: Christoph Hellwig To: Petr Tesarik Cc: Jonathan Corbet , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Borislav Petkov , "Paul E. McKenney" , Andrew Morton , Randy Dunlap , Damien Le Moal , Kim Phillips , "Steven Rostedt (Google)" , "open list:DOCUMENTATION" , open list , "open list:DMA MAPPING HELPERS" , Roberto Sassu , petr@tesarici.cz Subject: Re: [RFC v1 1/4] dma-mapping: introduce the DMA_ATTR_MAY_SLEEP attribute Message-ID: <20230328035725.GA25506@lst.de> References: 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 Mon, Mar 20, 2023 at 01:28:13PM +0100, Petr Tesarik wrote: > From: Petr Tesarik > > Introduce a DMA attribute to tell the DMA-mapping subsystem that > the operation is allowed to sleep. > > This patch merely adds the flag, which is not used for anything at > the moment. It should be used by users who can sleep (e.g. dma-buf > ioctls) to allow page reclaim and/or allocations from CMA. So what drivers would call this? As-is it doesn't have any users in the series.