Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1048504rwl; Fri, 31 Mar 2023 06:08:49 -0700 (PDT) X-Google-Smtp-Source: AKy350Y428CaPIxmCuGkZqVS+6bKGrpR1pn51LktFLLVJtN5Z5tpoam0hCfIIzVM+kPITGxk5rEg X-Received: by 2002:a05:6402:34c6:b0:502:1cf6:f52c with SMTP id w6-20020a05640234c600b005021cf6f52cmr6867414edc.4.1680268128880; Fri, 31 Mar 2023 06:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680268128; cv=none; d=google.com; s=arc-20160816; b=DJWi34uGbolcrRVW7phBZ42NHI3JrQ15tUXvVhgS20og6PNhvloMZM9HxZK9xZ5pok /DyVWux7gBHRutX1BIHlIgd4qWlm6lvzovVBvL8k9yYvMvi9PPy/aS/aUxhfKe5IWK4n BHbOKgEkj3qIEDTxkv0KKd4xJecPCmbqgNOso6yz2gm8D2Wd4GF6CXDe3lsXCo1tBNrO sQk0aKa0YdL1xh3LgdEHqmrIFvSlX99WNAX1w6SKZyO91//V7LC6m3S5sCzGomUBW6WJ br3IsTRD4b7PwSx+UOu8qouVwrr1oAd/CUWcTydE8/aH3rsjJCt5ZWaq7DB4Eq4yB6qi jaWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=14bpLXKhsGbcNPJuXxXGVYE6w75UYQ85KK15RjcJ7NM=; b=ffRoYG5ka5GCrzRO+AAeFjm+zrfnG1CPZyiTUF7FfIC1B1ERCHVqAfpoEHwbenh3gV 0oLIsN0u3Y1mK7+ib4JkBc9nbs2Hph4lD3By6I9IYutoxvRJqcEk+7E82S9ECzezRlmN ZfWaxqbhgvX+a7gTCb3LPNOnLkzT0DInsFNPhDqvvE/mX/HtBmxYuW+G+QvQDjwFosIG y7a0buJx6la1dsSOHC72s538hfFTjc9aS06oMrs5RJknTFpXwawtP/OGFgyhu3xmswf0 eLOdmLQINiccmV9f1BsBHhKexdoYIiGJ/V+TS54gGHF9HQdDEauvVuuwnq8YGBSJQn7K Td+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J+rhCmXU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020aa7d501000000b004af625a0f8esi2337732edq.395.2023.03.31.06.08.23; Fri, 31 Mar 2023 06:08:48 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J+rhCmXU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232732AbjCaNGt (ORCPT + 99 others); Fri, 31 Mar 2023 09:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232730AbjCaNGs (ORCPT ); Fri, 31 Mar 2023 09:06:48 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE5BF1A440; Fri, 31 Mar 2023 06:06:44 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so23258089pjl.4; Fri, 31 Mar 2023 06:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680268004; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=14bpLXKhsGbcNPJuXxXGVYE6w75UYQ85KK15RjcJ7NM=; b=J+rhCmXUXYpIA9Z4hqSg12/qcx1JRwMtRVYOyRG1oZdWSz28BP+6taWx8MpvgyPCkf z/4Z1gf3ifZu7a+4JHaMc4GEF4BFvsIPuMIIEjj7U/NR98vHHqiGmtXWHjfeSfoPCU5I XIrr9MIr/8N20eLT8RwMJWWWLhiqofH7bkjLfIEthvekHDWWhDw7n66g3vOaxfXRkSSV wlPfMDe8Qqp9RxBouFY0LbY2ZpW40dfnn3/eAb6CV+6MUCjbw8MmCUw6Plpk27E0kH9Q u5jK2hElNCL/LH6xv2ZSmQ1M54Fp4Paq3bqNEn7EtFfObQDHipQTMyqs2vTX0L1U/+Ys 7EOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680268004; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=14bpLXKhsGbcNPJuXxXGVYE6w75UYQ85KK15RjcJ7NM=; b=YAz4I3Y53pvLoNdAebubcMRzzMfA6pfDBtjrVgx01qj9uh4m42o0jTm+bTARmpFZxX xTv4i0R+H8eARFyTB9Joe+/9ohCo+XI5PHU3ol/hx9DHOxqG6/XxFG4YsIcXK4jkbw4V Z6387QZnIClxr3V9VD8+5mD1Ii95cuTvo43tpEBA3ESdxFnkZh2+BEKAH5v0esjOYa+y JjjeFHr+fkZ10PtrD2rjqegvEL2cmI7YYkvpmeARIdM2qOl8BlTnqpB6bsaTok2OOFM7 mcB+E4PX4IaK7sjwgU4xy74pRGeftyEeBVnnxs4JoWhJFqVqp/Gxg9HAser7jcPHypwA 79Wg== X-Gm-Message-State: AAQBX9cvdaK9aEJz+qtkhrJmguLovZBp31nws71UB5b2lK3dUBzvi/BD XODwIloOrLx2naFt9kl7/pI= X-Received: by 2002:a17:90a:e7cf:b0:23e:f855:79ed with SMTP id kb15-20020a17090ae7cf00b0023ef85579edmr29725179pjb.28.1680268004333; Fri, 31 Mar 2023 06:06:44 -0700 (PDT) Received: from [192.168.43.80] (subs09b-223-255-225-236.three.co.id. [223.255.225.236]) by smtp.gmail.com with ESMTPSA id gz21-20020a17090b0ed500b0023f355a0bb5sm1465269pjb.14.2023.03.31.06.06.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Mar 2023 06:06:44 -0700 (PDT) Message-ID: <730b79b3-5adb-c8a2-8eb5-8790860fc1a3@gmail.com> Date: Fri, 31 Mar 2023 20:06:37 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [RFC v1 1/4] dma-mapping: introduce the DMA_ATTR_MAY_SLEEP attribute To: Petr Tesarik , 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" Cc: Roberto Sassu , petr@tesarici.cz References: Content-Language: en-US From: Bagas Sanjaya In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 3/20/23 19:28, Petr Tesarik wrote: > + > +DMA_ATTR_MAY_SLEEP > +------------------ > + > +This tells the DMA-mapping subsystem that it is allowed to sleep. For example, > +if mapping needs a bounce buffer, software IO TLB may use CMA for the > +allocation if this flag is given. > + > +This attribute is not used for dma_alloc_* functions. Instead, the provided dma_alloc_\* (escape wildcard in order to not confuse Sphinx for emphasis). > +GFP flags are used to determine whether the allocation may sleep. Otherwise the doc LGTM. -- An old man doll... just what I always wanted! - Clara