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=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 D7050C433E0 for ; Thu, 14 Jan 2021 14:01:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6C4FA23A6A for ; Thu, 14 Jan 2021 14:01:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C4FA23A6A 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 A650B8D00E5; Thu, 14 Jan 2021 09:01:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A14DA8D008E; Thu, 14 Jan 2021 09:01:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92ACB8D00E5; Thu, 14 Jan 2021 09:01:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id 7A9288D008E for ; Thu, 14 Jan 2021 09:01:47 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 380382C89 for ; Thu, 14 Jan 2021 14:01:47 +0000 (UTC) X-FDA: 77704543854.23.glue67_2a0d35e27527 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id CCAC33762A for ; Thu, 14 Jan 2021 14:01:45 +0000 (UTC) X-HE-Tag: glue67_2a0d35e27527 X-Filterd-Recvd-Size: 5582 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Thu, 14 Jan 2021 14:01:44 +0000 (UTC) Received: by mail-ot1-f50.google.com with SMTP id d20so5252558otl.3 for ; Thu, 14 Jan 2021 06:01:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vmtwqRd+vOOs93CtJZXLHlLxZuc0mcM65taAtteZXlA=; b=NJ/YSPMNsxgCSC/dt/EOm3J9zuRPTy6YeZw9fIm/KrC20JH2bCX1myd2lCzWt3jQgc tcYFg9//TjHu7P7dnzkapScDpBtCBZrspZd9+YXJVePQ+dvV82QObtPCJqovDMCe+GEe oipYnWJCaqvxkHpTWJpiGnu1qAjFBpTOpg6IfO+wSdTXdsUEw0AkxW3vpNyqWRkKjjjA uPDTvWavS432/1W7t2+q5A5cXukMnZiXpfLwgs28PwpGZ1ZwcHh7L+JUbQiDHy+FGlvP 4fNSpwnRoHS7QcNHmQEsvxB1WMMw5T6rriF0adD+1GFR/UpI/lCnUw8ScgSC7uoemH9M rkTA== X-Gm-Message-State: AOAM5332hxgSLyODwbXIAWKPVBGEXiFMxV+YtRUWjXz9uUe+H3nRzGR0 hmjpMkc+JoNSfsgABeEDeA== X-Google-Smtp-Source: ABdhPJwA4xSmb7PKCcuU6wjuRg19ZNzvAwR2u8Pzf0moxRyQEWEjN27Dqi5u3i2wZ9eO5cK3Ls+Hmw== X-Received: by 2002:a9d:6f8f:: with SMTP id h15mr4838190otq.125.1610632901192; Thu, 14 Jan 2021 06:01:41 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id u141sm1036348oie.46.2021.01.14.06.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 06:01:40 -0800 (PST) Received: (nullmailer pid 2811070 invoked by uid 1000); Thu, 14 Jan 2021 14:01:38 -0000 Date: Thu, 14 Jan 2021 08:01:38 -0600 From: Rob Herring To: Minchan Kim Cc: Andrew Morton , 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, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH v3 3/4] dt-bindings: reserved-memory: Make DMA-BUF CMA heap DT-configurable Message-ID: <20210114140138.GA2796092@robh.at.kernel.org> References: <20210113012143.1201105-1-minchan@kernel.org> <20210113012143.1201105-4-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113012143.1201105-4-minchan@kernel.org> 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: On Tue, Jan 12, 2021 at 05:21:42PM -0800, Minchan Kim wrote: > 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. Why do we need this? What does this do that CMA doesn't? With a CMA area I can believe a carve out is a common, OS independent thing. This looks too closely tied to some Linux thing to go into DT. > > Signed-off-by: Hyesoo Yu > Signed-off-by: Minchan Kim > Signed-off-by: Hridya Valsaraju > Change-Id: I8fb231e5a8360e2d8f65947e155b12aa664dde01 Drop this. > --- > .../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_chunk.yaml b/Documentation/devicetree/bindings/reserved-memory/dma_heap_chunk.yaml > new file mode 100644 > index 000000000000..3e7fed5fb006 > --- /dev/null > +++ b/Documentation/devicetree/bindings/reserved-memory/dma_heap_chunk.yaml > @@ -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 space ^ > + > + > +properties: > + compatible: > + enum: > + - dma_heap,chunk The format is , and 'dma_heap' is not a vendor. > + > + chunk-order: > + description: | > + order of pages that will get allocated from the chunk DMA heap. > + maxItems: 1 > + > + size: > + maxItems: 1 > + > + alignment: > + maxItems: 1 > + > +required: > + - compatible > + - size > + - alignment > + - chunk-order > + > +additionalProperties: false > + > +examples: > + - | > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <1>; > + > + chunk_memory: chunk_memory { > + compatible = "dma_heap,chunk"; > + size = <0x3000000>; > + alignment = <0x0 0x00010000>; > + chunk-order = <4>; > + }; > + }; > + > + > -- > 2.30.0.284.gd98b1dd5eaa7-goog >