Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3806226rwl; Mon, 27 Mar 2023 21:03:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bocZyZR2zH3ak30xmgj3kOdeYGp/GvDFUT7wkzq7DCW1Eq/gE5Q9Qc4xvzhHVxeYT4MDFz X-Received: by 2002:a17:902:d488:b0:1a1:a531:460f with SMTP id c8-20020a170902d48800b001a1a531460fmr16070384plg.50.1679976194061; Mon, 27 Mar 2023 21:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679976194; cv=none; d=google.com; s=arc-20160816; b=LI2WVsG3edfa4j86kYJX6a+DaCA9ojY2DFlgEIomdSM+Z2GHhztkcHfcKUtcGCn/OH teRTczOfjlhyrf7fJmRfqBmLVkqMjWPFsuVhu15xqBl5hR6kOPA6dVBNeaC6TbuNEeby duckSDMcYAQzLMvBv7CjWrcdEN5l2G+QgWgt7la/9pDUmPv1odYThRg8UaiJBQr/OI4d FkU/6M1pC3xikproGjao/oPaDpf37Sic932Sc2vCsnhGyzl4lwHmzQR5G4FANj4NEeUT PC3rQ9wU4OcWpLm/wJ0HOOoukIEhwjX1X90SLLg4Ll7oBEay73ETxH/P9U1Vt/Y3JGzj 2Jpg== 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=RsjfgeJme+//JyoT2MCMP9qzKAegWhPGLP6ANnXi5vA=; b=ok2mNigYLkZycgfJ/Zo9aIPRgv+HxRM0TYgnoc6eit8N63mhSMe71aHQe/T7X9lIj8 pujCxPFsRGctBIYB+lX1D+dN46IUk8nR2BXuas6VoNEjWRlJBSC1xaHUnKLcpU2xrrSe cd2goKfuiSK4JRP1p70fqYPnLXbmrjBmSy/Z717yYelUNgXdKSgMFWl8WqT0KshKi74p 8vJdh5KwhdZ5zvFywDjXigP0Dm9BdsI+4Aj7aMv40FEN9sJmvjkXKmBChzFnqQ8YWVRt yYGu7gSmVBAUcl2EKH2bYbzCQXORYoIHdIyCnlVNSYVSPVCDHZGKdeomcwhnpMRtbFZr 1rdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h29-20020a63121d000000b004fb6f75e659si28609291pgl.481.2023.03.27.21.03.02; Mon, 27 Mar 2023 21:03:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbjC1D5n (ORCPT + 99 others); Mon, 27 Mar 2023 23:57:43 -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) X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.