[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5793c7cd-8223-48e2-9c91-f92be09d3dab@icloud.com>
Date: Thu, 27 Feb 2025 19:55:09 +0800
From: Zijun Hu <zijun_hu@...oud.com>
To: Rob Herring <robh@...nel.org>
Cc: William McVicker <willmcvicker@...gle.com>,
Zijun Hu <quic_zijuhu@...cinc.com>, Saravana Kannan <saravanak@...gle.com>,
Maxime Ripard <mripard@...nel.org>, Robin Murphy <robin.murphy@....com>,
Grant Likely <grant.likely@...retlab.ca>, Marc Zyngier <maz@...nel.org>,
Andreas Herrmann <andreas.herrmann@...xeda.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Catalin Marinas <catalin.marinas@....com>, Mike Rapoport <rppt@...nel.org>,
Oreoluwa Babatunde <quic_obabatun@...cinc.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org, kernel-team@...roid.com
Subject: Re: [PATCH v4 09/14] of: reserved-memory: Fix using wrong number of
cells to get property 'alignment'
On 2025/2/27 05:30, Rob Herring wrote:
> Every time this code is touched, it breaks. This is not even the only
> breakage right now[1].
>
>> 2) IMO, the spec may be right.
>> The type of size is enough to express any alignment wanted.
>> For several kernel allocators. type of 'alignment' should be the type
>> of 'size', NOT the type of 'address'
> As I said previously, it can be argued either way.
>
> Rob
>
> [1] https://lore.kernel.org/all/20250226115044.zw44p5dxlhy5eoni@pengutronix.de/
this issue may be a downstream issue as well.
based on comments. they expects the CMA area is within 4G range.
but the wrong alloc-ranges config make the range (0x42000000 +
0xc0000000) > 4G across 4G boundary.
Powered by blists - more mailing lists