From patchwork Tue Sep 13 19:55:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 12975326 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41B3BECAAD8 for ; Tue, 13 Sep 2022 19:59:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B391B6B009B; Tue, 13 Sep 2022 15:59:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AE7D98D0001; Tue, 13 Sep 2022 15:59:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 960D46B009D; Tue, 13 Sep 2022 15:59:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 843226B009B for ; Tue, 13 Sep 2022 15:59:05 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 618EEA0A46 for ; Tue, 13 Sep 2022 19:59:05 +0000 (UTC) X-FDA: 79908125850.15.E9CE418 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by imf06.hostedemail.com (Postfix) with ESMTP id 0FA4518008B for ; Tue, 13 Sep 2022 19:59:04 +0000 (UTC) Received: by mail-qk1-f177.google.com with SMTP id g2so6482749qkk.1 for ; Tue, 13 Sep 2022 12:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Iv6LAHuQtTXeYWyq0DEDKZbOD/1nb3ztqrePD2HtkIE=; b=YrAFBuuyJkwRgGb5yJxtoTNNKh/7y4BOHe54UWWbwGw/7zVyvD5YS3xh6wOizb8P5y WPvQ65cSNAdgAQQ5wDi83N9jAKpum/P9kqfXIHyP2JYI4r5D1linVF+pAeO7tMTGeNJd s10XvBpPDdlS4NQdOIfsc4Y86zu8zbnj/iRe9JIr+LJQn5lsr3jvpDq8YkHXv8CVoVQ9 l1Y7VxuX7aqVyF4T9IwYMUdPvuZE/+WFrgImMS1687EPItdw+VwpQNOwUoolbQ3Hf9aR Ox2qAlcyZj/+2EVV8HvGsz7p+nWwMiSQtDYItBS1H3jfaKi/gJ7kAUpfhR4jWWYZpfwT Vmow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Iv6LAHuQtTXeYWyq0DEDKZbOD/1nb3ztqrePD2HtkIE=; b=o/HTyrsOwK3/b+x62civXHXVMylH97ZxyqJwH1HgDi/jIeAcbIyc3gVKMNa2ocPpwc Z1ezo48pdYvL8OVounkkYDeGbzOvwc5sl898eca1fw0Atld4T4SLDVEeyOgQHaAh9W0u PiiH0NRYjW5wuzSlXOCJYUUUu9lwqhg+64bmfPjSOyaohtnYB4SMhr6aYFiMHRcZewi6 wnEMAkC9QSh6HSKNF1ckqxxeuLBEqpAICTeXQuRtv4zmn5dgbTj2InEJs7f6rbsF3Bee DHHiB8628RqtktB7SS6nJGjeiWihsc/MWs016eaPxQGWJiB9vwC+vptrtcPJkuXbH0e3 GT8A== X-Gm-Message-State: ACgBeo348xzC/ybyhSXF3PIPUutBJZuaL0WmXCQryaD9z0/OYZO/yKPm Q/ithCyke0ojvisAHBpITt4= X-Google-Smtp-Source: AA6agR6fK874H1rNDTk5i/hsxGcmtY4AZlr+R557N3WVBFwFecth0fyDkTeEea5ukgS/JNJqcxXZjQ== X-Received: by 2002:a37:916:0:b0:6ce:5f1c:d5d9 with SMTP id 22-20020a370916000000b006ce5f1cd5d9mr5679706qkj.737.1663099144354; Tue, 13 Sep 2022 12:59:04 -0700 (PDT) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id s11-20020a05620a29cb00b006b8e049cf08sm276305qkp.2.2022.09.13.12.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 12:59:03 -0700 (PDT) From: Doug Berger To: Andrew Morton Cc: Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Mike Kravetz , Muchun Song , Mike Rapoport , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Borislav Petkov , "Paul E. McKenney" , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Doug Berger , Florian Fainelli , David Hildenbrand , Zi Yan , Oscar Salvador , Hari Bathini , Kees Cook , - , KOSAKI Motohiro , Mel Gorman , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux.dev Subject: [PATCH 19/21] dt-bindings: reserved-memory: shared-dma-pool: support DMB Date: Tue, 13 Sep 2022 12:55:06 -0700 Message-Id: <20220913195508.3511038-20-opendmb@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913195508.3511038-1-opendmb@gmail.com> References: <20220913195508.3511038-1-opendmb@gmail.com> MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663099145; a=rsa-sha256; cv=none; b=0bqLjK38AOVWoA2A5y6zISYRI9zRqJ270hgwdANBqww1bE1y5Q3ZhRFnyo6sjfcuMVlSea snAp37cvtQ5HwGx6dF5tacVk1SUwC9JsNFPVCr4tx+NrDv16gyZlZRnFzGcaWRT3wu9pF3 1/kx+aUKxmkxNhrl18Wm5MRGdnOklns= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YrAFBuuy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf06.hostedemail.com: domain of opendmb@gmail.com designates 209.85.222.177 as permitted sender) smtp.mailfrom=opendmb@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663099145; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Iv6LAHuQtTXeYWyq0DEDKZbOD/1nb3ztqrePD2HtkIE=; b=v0y1Gs+CKbELEmPrXK2tyB9se+7d7cIJchYBIX4te+oWPb6rTXDeN7v5ZhDEH/bMp3EPuD lLNdWWFAn2UMyyTu/OwfYryi/zxEyM2eLiq78H/LscH+kCSAyDSCjXbYAegKPtmo/e3gIb yX7pHNF3/OrI5YKHxbvKKieQPv2A3Bw= X-Stat-Signature: ix5nc3z9pd1nesd4f8ayuyuioysajuix X-Rspamd-Queue-Id: 0FA4518008B X-Rspamd-Server: rspam03 X-Rspam-User: Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YrAFBuuy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf06.hostedemail.com: domain of opendmb@gmail.com designates 209.85.222.177 as permitted sender) smtp.mailfrom=opendmb@gmail.com X-HE-Tag: 1663099144-399686 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The shared-dmb-pool compatible string creates a Designated Movable Block to contain a shared pool of DMA buffers. Signed-off-by: Doug Berger --- .../bindings/reserved-memory/shared-dma-pool.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml b/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml index 618105f079be..85824fe05ac9 100644 --- a/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml +++ b/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml @@ -22,6 +22,14 @@ properties: operating system to instantiate the necessary pool management subsystem if necessary. + - const: shared-dmb-pool + description: > + This indicates a shared-dma-pool region that is located within + a Designated Movable Block. The operating system is free to + use unallocated memory for movable allocations in this region. + Devices need to be tolerant of allocation latency to use this + pool. + - const: restricted-dma-pool description: > This indicates a region of memory meant to be used as a pool