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=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 6CAD8C433E0 for ; Wed, 13 Jan 2021 01:22:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EF0F02311B for ; Wed, 13 Jan 2021 01:22:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF0F02311B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9058A8D0005; Tue, 12 Jan 2021 20:22:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B5D98D0002; Tue, 12 Jan 2021 20:22:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7A5DE8D0005; Tue, 12 Jan 2021 20:22:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0104.hostedemail.com [216.40.44.104]) by kanga.kvack.org (Postfix) with ESMTP id 5E3738D0002 for ; Tue, 12 Jan 2021 20:22:01 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 2B1A01EE6 for ; Wed, 13 Jan 2021 01:22:01 +0000 (UTC) X-FDA: 77699000442.24.slip67_6308e002751a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id 12B971A4A5 for ; Wed, 13 Jan 2021 01:22:01 +0000 (UTC) X-HE-Tag: slip67_6308e002751a X-Filterd-Recvd-Size: 5692 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Wed, 13 Jan 2021 01:22:00 +0000 (UTC) Received: by mail-pf1-f177.google.com with SMTP id w2so190004pfc.13 for ; Tue, 12 Jan 2021 17:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=moLKqW8sUzdDe7Tu+bx0keAxg66CW63q9xlqRNBYrrA=; b=XUDwakez4EGE0+imMc50hGx3ds5QMmtB9M5WblPQvBHRhPN2royeIYKqS9ueWEaeMt 70V/NvI6mYHZWxn4quFPSoW8gISButU43tslILdi4HOA+4x8p71KnIRyoIG6/6GPhOQJ +dmhxIzPBOsyt+vTmaNf/S9BbzfZS12Jw7bdccqgSk2Txk35XxW4u9ckwu9z31+FajDH ezWy+YqvNWsZbPtSKxF6mqZ29Flxm+bcg9xHOWYCGrpkM2yfXBHjrR0mY4CuaZAr81PZ 5ePUpF69j4The4uiJitpef/JoIe48XGfF9t1oNFv+xGOYGdymXqc0bYHKDIYBG24ihhm kckw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=moLKqW8sUzdDe7Tu+bx0keAxg66CW63q9xlqRNBYrrA=; b=WwSbt/p7IOBlh6HdH+BImOucuRAxcu1uc14pRYeP5cKmcCdMSiySth+IixHs4bbkMI Kvt4u4h0LY4GTjNfa/rgcwzHYuvxjWlBvChT09KevZHpJU63zUYMCHPe65l4kKInPMUO GurRlPUMvc0vTccnL0zl8R7M/uvozzKrggjCq/yDTQggr1PdUzl7Q4xRd/6kQNWgCLov JGRq3zK/C/HmmfKUOBGqdaLv9MUIPP5YGki8Rzfpon7XbqXLqDOcVgxiNV6Rt5mAxjFt 5ysI3TOfB7i6YtJqyhXqSeJ0bHseSwlZCuUuhoP8Emw9eyYl5wZ0ZM28lmzj/g+jp7hd U+Yw== X-Gm-Message-State: AOAM532i5Y3Ou+HHW+IIPf6C7fotRJqINuVW8/u/t+7dEP1Uz0NljOJb S+KutM7HmgdxiSRkGVTORio= X-Google-Smtp-Source: ABdhPJx5ssWUpEIEIBeaTawSvCWhAJ4WrRqcd7JRRzO48BBfVLvjE9R4HsG7zK71sU4cpDiUxflR/w== X-Received: by 2002:a63:cf56:: with SMTP id b22mr1900832pgj.16.1610500919879; Tue, 12 Jan 2021 17:21:59 -0800 (PST) Received: from bbox-1.mtv.corp.google.com ([2620:15c:211:201:7220:84ff:fe09:5e58]) by smtp.gmail.com with ESMTPSA id b2sm355197pff.79.2021.01.12.17.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 17:21:59 -0800 (PST) From: Minchan Kim To: Andrew Morton Cc: linux-mm , LKML , hyesoo.yu@samsung.com, david@redhat.com, mhocko@suse.com, surenb@google.com, pullip.cho@samsung.com, joaodias@google.com, hridya@google.com, john.stultz@linaro.org, sumit.semwal@linaro.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, hch@infradead.org, robh+dt@kernel.org, linaro-mm-sig@lists.linaro.org, Minchan Kim Subject: [PATCH v3 3/4] dt-bindings: reserved-memory: Make DMA-BUF CMA heap DT-configurable Date: Tue, 12 Jan 2021 17:21:42 -0800 Message-Id: <20210113012143.1201105-4-minchan@kernel.org> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog In-Reply-To: <20210113012143.1201105-1-minchan@kernel.org> References: <20210113012143.1201105-1-minchan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: From: Hyesoo Yu Document devicetree binding for chunk cma heap on dma heap framework. The DMA chunk heap supports the bulk allocation of higher order pages. Signed-off-by: Hyesoo Yu Signed-off-by: Minchan Kim Signed-off-by: Hridya Valsaraju Change-Id: I8fb231e5a8360e2d8f65947e155b12aa664dde01 --- .../reserved-memory/dma_heap_chunk.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/dma= _heap_chunk.yaml diff --git a/Documentation/devicetree/bindings/reserved-memory/dma_heap_c= hunk.yaml b/Documentation/devicetree/bindings/reserved-memory/dma_heap_ch= unk.yaml new file mode 100644 index 000000000000..3e7fed5fb006 --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/dma_heap_chunk.ya= ml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reserved-memory/dma_heap_chunk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Device tree binding for chunk heap on DMA HEAP FRAMEWORK + +description: | + The DMA chunk heap is backed by the Contiguous Memory Allocator (CMA) = and + supports bulk allocation of fixed size pages. + +maintainers: + - Hyesoo Yu + - John Stultz + - Minchan Kim + - Hridya Valsaraju + + +properties: + compatible: + enum: + - dma_heap,chunk + + chunk-order: + description: | + order of pages that will get allocated from the chunk DMA he= ap. + maxItems: 1 + + size: + maxItems: 1 + + alignment: + maxItems: 1 + +required: + - compatible + - size + - alignment + - chunk-order + +additionalProperties: false + +examples: + - | + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <1>; + + chunk_memory: chunk_memory { + compatible =3D "dma_heap,chunk"; + size =3D <0x3000000>; + alignment =3D <0x0 0x00010000>; + chunk-order =3D <4>; + }; + }; + + --=20 2.30.0.284.gd98b1dd5eaa7-goog