Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8233875rwn; Wed, 14 Sep 2022 11:00:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VhkOUGZIXpnjpFmRTzXKULqJ2IZmeniR6782Va/yWrIu1xjZ8uw61glFRT5QLRnjOA6nY X-Received: by 2002:a17:90b:3144:b0:202:e2cd:2d2a with SMTP id ip4-20020a17090b314400b00202e2cd2d2amr6023344pjb.39.1663178404106; Wed, 14 Sep 2022 11:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663178404; cv=none; d=google.com; s=arc-20160816; b=IM0HnV6jhJgeWuHn/M9QLaaQ1aXnwVCPY26jMp3vLoNVo5AmzEn3hfBDPCeDhwNobv IKOymtMMdonfe0ukX6dT/DLLPMXpAIbrsme6qaZ/UAldVKtBd1kO+s2o3MWhBPB2RFOK gASB/mJ+oooyllb2cOfDX6haC4qDPI74zPh3VbTgYEePhGNE0ToAB4cAIQ2UE7SuqNl6 X7XU1RCRyVw6L6TEKnafEt2Xwl9US83qR3Onsp7w+qnfLVeSx1HLWqA1SD3Amaee6onq peKJ+4c01x+URZD0MyXJ3wafyNtuevIB/h55OeXPfBt34QsBz0TDmfZ8XakY2yVCfnml DUJw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IYYxWUkQ4C0EsxoWOU79iFj20ViO8vkpHbae7xo5rcs=; b=osNDPuzskBZdRfm5DdGQv14ItvAvb1h3noxejMTSZB53Tr2lXyP/4/tocwK0MTdmus W9rHJuDrOMDdB5Vvw0dNwyA5OHgDmTV/IjS6K4xhPyoDhtuqscMxM/6I0KQJsYNhxIwq uhpPEtfDKnrJCVPUdPxt9VkjAABciTxvPO5t/yKSCOQkiyusHxy0GNnK9ikS0B3ZlCFK NUXXq0jIhgno93PLro0A+kM57FC0slj8k+h4ddzFHGuOZgUfxCxhCP+5Irdx5RzQ0ZEc w+nMSab9VLPg8yw8Ij9xNgjJ7ej1KyB4ZS1Jx2m/Ewr/CIkZCKKezzx4Ups71/E3pHWv c7yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Na0/xpW5"; 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 u184-20020a6385c1000000b0042ab429c5e5si15039261pgd.447.2022.09.14.10.59.52; Wed, 14 Sep 2022 11:00:04 -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="Na0/xpW5"; 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 S229748AbiINRN7 (ORCPT + 99 others); Wed, 14 Sep 2022 13:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiINRN5 (ORCPT ); Wed, 14 Sep 2022 13:13:57 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51CC1303F4; Wed, 14 Sep 2022 10:13:56 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id h21so11688517qta.3; Wed, 14 Sep 2022 10:13:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=IYYxWUkQ4C0EsxoWOU79iFj20ViO8vkpHbae7xo5rcs=; b=Na0/xpW50l0p2LWBaIM/XHkvizf5pdNgEm4MPvDGNs4tfXsVzy3nI2WggDrVrrfbfR 8vmNnBl+TiJloFytXKKx8ij7l7JHUAO5qqumCGMHz6gej+TwY2yY1uOnd6rQDW/onfEy mhfMenDe81IYCFu4mQwRrjZDNi+aIw2ZMXMs+lAyEOjSqv3xEgtOBhmny+WULZS0YZpw ZcZTsS7nWNzFQLBA2LcSPlF+DsEm3gxpzQ/M7fhQy4+5Bt/EF4tS+d1c9J4vprzq2WbL WOk5WKySaKYD+sBXvttDusj4zJ0fsKNQJHk9ppoZkcp4ZXt4nHQMWhY5rTa+LYvW5jK+ LGIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=IYYxWUkQ4C0EsxoWOU79iFj20ViO8vkpHbae7xo5rcs=; b=qE/7HCo6VOzm+6CPiO77wjat6Cxfyj5B1D6MxJzXIMoqrTdeCt+y0YcBT+c/zZWQz0 dgsFuvoGK1mbadL5ADRbgwq71feh21Uzqg0+1wyQ8hL3V5kn27f/JQNa/OAvYn0TtFNQ j1JQSv2MJFd/ONz7v2/rr+RTdddpKA242uLmip+8Wj3GMaNyBKdTPf76go/N6C9qedsa wa0htDutBOjJfa5HGGA+I1IXdY+yoJVWBdEWGawRmH9oCjfgwfaBKwXfUHuKsZ6RhUz+ qjU3rql0J9baUXqygE4tRzu3jodRqmqHoWuaB1qTfbHn2/jBvea/0InZchSh6gddpmzM T8yw== X-Gm-Message-State: ACgBeo3eZyYD9LCbsYOe5tbl5+CJ0ADPpUp2ZaX34ZYWhVHco1k5OxQd BHq59l/2ZEg5AHUF0ZgPysQ= X-Received: by 2002:ac8:5e51:0:b0:343:483:f9d6 with SMTP id i17-20020ac85e51000000b003430483f9d6mr33904642qtx.244.1663175635331; Wed, 14 Sep 2022 10:13:55 -0700 (PDT) Received: from [10.69.40.226] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id h16-20020ac85850000000b00342f8d4d0basm1990133qth.43.2022.09.14.10.13.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Sep 2022 10:13:54 -0700 (PDT) Message-ID: <57f19774-39a1-03a6-fe68-83d7e4b16521@gmail.com> Date: Wed, 14 Sep 2022 10:13:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH 16/21] dt-bindings: reserved-memory: introduce designated-movable-block Content-Language: en-US To: Rob Herring Cc: Andrew Morton , Jonathan Corbet , 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 , 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 References: <20220913195508.3511038-1-opendmb@gmail.com> <20220913195508.3511038-17-opendmb@gmail.com> <20220914145506.GA2149379-robh@kernel.org> From: Doug Berger In-Reply-To: <20220914145506.GA2149379-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 9/14/2022 7:55 AM, Rob Herring wrote: > On Tue, Sep 13, 2022 at 12:55:03PM -0700, Doug Berger wrote: >> Introduce designated-movable-block.yaml to document the >> devicetree binding for Designated Movable Block children of the >> reserved-memory node. > > What is a Designated Movable Block? This patch needs to stand on its > own. As noted in my reply to your [PATCH 00/21] comment, my intention in submitting the entire patch set (and specifically PATCH 00/21]) was to communicate this context. Now that I believe I understand that only this patch should have been submitted to the devicetree-spec mailing list, I will strive harder to make it more self contained. > > Why does this belong or need to be in DT? While my preferred method of declaring Designated Movable Blocks is through the movablecore kernel parameter, I can conceive that others may wish to take advantage of the reserved-memory DT nodes. In particular, it has the advantage that a device can claim ownership of the reserved-memory via device tree, which is something that has yet to be implemented for DMBs defined with movablecore. > >> >> Signed-off-by: Doug Berger >> --- >> .../designated-movable-block.yaml | 51 +++++++++++++++++++ >> 1 file changed, 51 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/reserved-memory/designated-movable-block.yaml >> >> diff --git a/Documentation/devicetree/bindings/reserved-memory/designated-movable-block.yaml b/Documentation/devicetree/bindings/reserved-memory/designated-movable-block.yaml >> new file mode 100644 >> index 000000000000..42f846069a2e >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/reserved-memory/designated-movable-block.yaml >> @@ -0,0 +1,51 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/reserved-memory/designated-movable-block.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: /reserved-memory Designated Movable Block node binding >> + >> +maintainers: >> + - devicetree-spec@vger.kernel.org >> + >> +allOf: >> + - $ref: "reserved-memory.yaml" >> + >> +properties: >> + compatible: >> + const: designated-movable-block >> + description: >> + This indicates a region of memory meant to be placed into >> + ZONE_MOVABLE. > > Don't put Linuxisms into bindings. I will avoid ZONE_MOVABLE if this commit is included in V2 of this patch set. > >> + >> +unevaluatedProperties: false >> + >> +required: >> + - compatible >> + - reusable >> + >> +examples: >> + - | >> + reserved-memory { >> + #address-cells = <0x2>; >> + #size-cells = <0x2>; >> + >> + DMB0@10800000 { >> + compatible = "designated-movable-block"; >> + reusable; >> + reg = <0x0 0x10800000 0x0 0x2d800000>; >> + }; >> + >> + DMB1@40000000 { >> + compatible = "designated-movable-block"; >> + reusable; >> + reg = <0x0 0x40000000 0x0 0x30000000>; >> + }; >> + >> + DMB2@80000000 { >> + compatible = "designated-movable-block"; >> + reusable; >> + reg = <0x0 0x80000000 0x0 0x2fc00000>; >> + }; >> + }; >> -- >> 2.25.1 >> >> Thank you for the review! -Doug