[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 2/4] docs, xen/arm: Introduce static heap memory


  • To: Julien Grall <julien@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 7 Sep 2022 14:12:53 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=12+37N4Z3aYYq6cSIeYWSWpqZjUlnG2PQcA/ZS9uVWc=; b=Nr48S+hIkhW2TwFgtpm+FxJ2oRJF40dz0Vq/kLi6bA3gZaw1nhcC5Rkn/alRYWEnJaMXPdV9SM0f5cQv5mky06chvO6qOxVLbAdfoBur0bXLYwjHASHxA7CQI+90Nsp0eH2x8OfAlJCWyF19suZwnBzJmWly6mkC7bf4gd+WvupxcIGS4ze9p1iD8aqJFnX3BQKHx1BRTx82BAH+7rs1Tg5G77KIFwIaddBrurEH++QpsRlH/VQVUHYB/+tP7SlLeuXIKExYSJzCa099Mam7TxETl0QDYSTRgG38hKzTTPephxszspQqY66kw6oj25isTNhYjCSmnAQ9r7BUYEoqgA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iuDbQg7WVZPBMMSincH31M1bzLYxQBlEnFPh6fhXigJaOOMsuQW+ZU4HCGSqnZ42yh4fjdnVUADpA2rlkgnGnMtmOYPWcz3XBa/3lhyizmauEA1ptkiPVwg/eHel4rfe1yjm2JgSSYP1zsWdLm0WUv7C8Xl6wzvzg7gvYOKk/EsZJ5fGJUZhOyHJf2G9DQ5EnO2BWfZe14oLGjq6jNKlrVEiIYJDE+pgpEljAHqj+o0zZfyti5SpQc7KEjL8/oWGJ1byAxbzHWA4dTqetTiWX2JrTyZu72Yk1GSIHtsjLQRCBg80CNwh+bNW4V8MOSBHVgidha+HSkMTHQbXPQ0hQA==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Wei Chen <wei.chen@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Penny Zheng <penny.zheng@xxxxxxx>
  • Delivery-date: Wed, 07 Sep 2022 12:13:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Julien,

On 07/09/2022 13:36, Julien Grall wrote:
> 
> Hi Henry,
> 
> While reviewing the binding sent by Penny I noticed some inconsistency
> with the one you introduced. See below.
> 
> On 07/09/2022 09:36, Henry Wang wrote:
>> +- xen,static-heap
>> +
>> +    Property under the top-level "chosen" node. It specifies the address
>> +    and size of Xen static heap memory. Note that at least a 64KB
>> +    alignment is required.
>> +
>> +- #xen,static-heap-address-cells and #xen,static-heap-size-cells
>> +
>> +    Specify the number of cells used for the address and size of the
>> +    "xen,static-heap" property under "chosen".
>> +
>> +Below is an example on how to specify the static heap in device tree:
>> +
>> +    / {
>> +        chosen {
>> +            #xen,static-heap-address-cells = <0x2>;
>> +            #xen,static-heap-size-cells = <0x2>;
> 
> Your binding, is introduce #xen,static-heap-{address, size}-cells
> whereas Penny's one is using #{address, size}-cells even if the property
> is not "reg".
> 
> I would like some consistency in the way we define bindings. Looking at
> the tree, we already seem to have introduced
> #xen-static-mem-address-cells. So maybe we should follow your approach?
> 
> That said, I am wondering whether we should just use one set of property
> name.
> 
> I am open to suggestion here. My only request is we are consistent (i.e.
> this doesn't depend on who wrote the bindings).
> 
In my opinion we should follow the device tree specification which states
that the #address-cells and #size-cells correspond to the reg property.
This would mean that for all the custom properties we introduce we need
custom address and size properties (just like for static-mem/static-heap).

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.