Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1250323rwb; Sun, 18 Sep 2022 03:59:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5j4k01hVWvqj38SpHvpBOccA/KWXUL9RuL/8aA42gPYIbx7RVGJXB6cI1a+F3DXy6HmAMb X-Received: by 2002:a17:906:7c8f:b0:771:3912:3942 with SMTP id w15-20020a1709067c8f00b0077139123942mr9673297ejo.387.1663498742617; Sun, 18 Sep 2022 03:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663498742; cv=none; d=google.com; s=arc-20160816; b=GOy2jtbHJBfi/n7/WyVM5mdz/BTWGXTbQ5drhKPJYTDx77ZhQhF9Ira/UzfFC9INQb GXcWSMDM6u8wvmQP0VYsng+5zsSFECec49urYgVwvS3rPL7DqyNIa3+e5baHEGI+zG+x KlKpR4c7qg0bEEKcNZGYcsaW410nrA5ZY4WzF4bDPLkstKIJ828ikDF+2Vyj82D8keMq VgO+M9TdxCXmgh8HbMLG19B1DhruF37+U5ynSeXNs4RU2p8OdfDRKdKl3Pm+tXD62vxN IipiDQvilbNvnr89fIsr+GYp+nyLClzeZfdvGYkxIkC8Gx3RQI5YjPTTpvBXnf2cf6kj taFw== 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=ce5cvWhhANY4HGxf0tRAuv3blHoMqL+HG3bwTNXRg7o=; b=t/XyP4fO/RkQKr4+zs7g+almmhYDgj+odNhdoGofxoj85zWt5a8OLELFCqoXmIguz2 v5Bac0E2WBAbaFhKjxBfnNG7yKujxx3c3O86KPIT2Hko8Lw13gJ/bhq+Wz7sEZt1PcMZ ywi1jdf9Hi+BNhg9GfTpgSU0McuyAck9ZX3F2d3gctaZEVn8K3CYQrWAYLfq2l2g1tv0 GSlm8ZTZr0Y2BfxKfnAcGBxonJGYj7RidZDicnwqwUxGXTPXpX8V5IwPAbQu/95PLlel qnBbuAjG9BZkW92K1Blqh6tWDJJPtsbR19kaRVKzQq/kzWPq3pMlIumMKjHC6lGpJDM3 7/fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cv2CnAB1; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js4-20020a17090797c400b0078068c9d23fsi10540722ejc.83.2022.09.18.03.58.37; Sun, 18 Sep 2022 03:59:02 -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=@linaro.org header.s=google header.b=Cv2CnAB1; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbiIRKbc (ORCPT + 99 others); Sun, 18 Sep 2022 06:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbiIRKb3 (ORCPT ); Sun, 18 Sep 2022 06:31:29 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 996F01E3CD for ; Sun, 18 Sep 2022 03:31:27 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id x27so9143179lfu.0 for ; Sun, 18 Sep 2022 03:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=ce5cvWhhANY4HGxf0tRAuv3blHoMqL+HG3bwTNXRg7o=; b=Cv2CnAB1JfcEP+Qy5kSj1OisEBQTHOgZCWQdVEyN3+Mw7zERm6O+cEMRyg7ye0Mst4 wJZeoxG7W/cSqjAmthTQ6nwOcRaVBfElh02x5xuz1V1mx4Fg7CLL9bfu9rjgdlVF0SxA 2pq8IeVOGLcA/W7jRYIUQ8gk/jgMrRExOig/Sp7mBOV69JqTsKRzO+YKwIa1wodOxO12 1R5eCcqAOaPdKxGK3fpX0/PDMU4ZbxMRXdMr27cEy63fHDxCztyc3NjHCxXaAy6HrEXw r5Ph8WrazcmMTI/cO04jF8kh+kDe5POzr5yce5IoJNjqmWMHT+BemfAJIeXRaxW4Y/h1 KSbA== 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=ce5cvWhhANY4HGxf0tRAuv3blHoMqL+HG3bwTNXRg7o=; b=e9UsoX0O4gokDskz93Uznu9lkPLFjXPs98uA1QY1HP7+F0NJwyvZFs8r3c9dygHZnK BscBzxHCKMhfDRmqUClkTnPkIUTJKiZEJNtuWa6IVcl2bIULmkdLV0kPQ73Djuavr87a b40oBuPPjL/dmVUnpwVQjUbf+ykFh9fayxTG9YvCbCC4YGd3MZjhIlQ8QhpzePMHPQub aKxRodS3EcukPQufTZe0mkl+/aOhbpP/KiyqOjwCuyJtF+aJx+5HhioIo+fD+7z+9cq8 uhDb2jDGZ3eHWTZTXzF7Cf+luMOn9ysq1Sg5L/rDjp1+S/Qx2D6eeKl9ZCYXYaP4uV4s 7v0w== X-Gm-Message-State: ACrzQf1zp2xBYoduIjaTrcZrrspYbMB1hWwu71UUUfCzTE8jGieBZbrm 7IeNwbuBIlj2H0D44HK34MEzPQ== X-Received: by 2002:a05:6512:1188:b0:499:6fbf:d751 with SMTP id g8-20020a056512118800b004996fbfd751mr4618770lfr.51.1663497085827; Sun, 18 Sep 2022 03:31:25 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id o19-20020a056512053300b0049496608d58sm4589948lfc.155.2022.09.18.03.31.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Sep 2022 03:31:25 -0700 (PDT) Message-ID: <07d87203-6fe1-c612-cb79-9080e1988454@linaro.org> Date: Sun, 18 Sep 2022 11:31:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 16/21] dt-bindings: reserved-memory: introduce designated-movable-block Content-Language: en-US To: Doug Berger , 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> <57f19774-39a1-03a6-fe68-83d7e4b16521@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <57f19774-39a1-03a6-fe68-83d7e4b16521@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 14/09/2022 18:13, Doug Berger wrote: > 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. The submission of entire thread was ok. What is missing is the explanation in this commit. This commit must be self-explanatory (e.g. in explaining "Why are you doing it?"), not rely on other commits for such explanation. > >> >> 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. Rephrasing the question: why OS memory layout and OS behavior is a property of hardware (DTS)? Best regards, Krzysztof