[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/6] arm/mpu: Implement early_fdt_map support in MPU systems
- To: "Orzel, Michal" <michal.orzel@xxxxxxx>
- From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
- Date: Thu, 17 Jul 2025 13:05:24 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=amd.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=EfgAk3shGh1JgQKMrPqq5FDS8e+5A5cGyqHr7wf71ps=; b=RJiK739ny2WAAZNtlI3pMpSzZLQkHQWGJnTiwagLpA3Baa4wkkRhTmD5kIA8IB8vJ9ymIu+86DaF1Zs0ERqgb4aqP0tztg8wLJOkPQgHy+XCzKsR2pBtPcu1DX6bBBEcUz0kRL4VpG7G4mnyd8K+LqZhC335ey8XC5yRSV4WCd87H9XaW76Ka5CdhKGeYYAsa1AODe0rAdkdIuHbgBh5cp64Yh9dnvipjD6AEFRh9YkhTXL0EnM2hgR+qlAZ1qYLNfMEZlGWGi1DmixST/Ccja+ABkafggzxClfnB3ajIgGl5Gm8QAfSI9ewEyofU3azJJakqLlYDA6s5h3/YqY22w==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=EfgAk3shGh1JgQKMrPqq5FDS8e+5A5cGyqHr7wf71ps=; b=MUQzEbMCNYVy6lwEdyvaRUtIY9QzHesz/9Vf7GPtrDpJOSoTA0RvIUmCw4S1XpZnX+yNP4Czyp3ph+yXZ5mpJ7pKmKRqqTgy2zAPaS9nSrupAxb9hSDWmiSvOFRIwOkKSBVoZDxjz344kgNeEQFV7v9Ds5RAERKicpx/L+IVfd148n1Bfdrr40jiCgUfvUaqeR7GgwYm5yvRKwSokzTZEox3M2JmHYE9N+WOnFmQFzCqNBO77XnEsLkhqbZaLxD2SR3R4CQ9FUwUYVTKlfpFWNxckjuqfn+CjxFkcxdo0gZz2F9cAOztytclifZFTGubUvlLivsAGKFsGNrngVZaew==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=TobyLHs2S3rPdI1oNzb+TcjyzBKTdwACscY3CfGPcQFLspDJk4DgMrYMzjF1RzOgaUJSWlh0yYIri5tuQJqI4bTCLiv5wEn3X2mq3nx10f99p1ReBrK1Bo543Ww0dTjp/3V6xzViZf90BMOiBR64w8ilYjhS9KI33Z9OmYyJUEPQs09dmy6PkgVMOUsu5pb0aIwniQMxLGtviJmAVxFqpmjMLCp0+JTumfYYpgKJalWR3uJuMoQ3UO0SAUW9JRRRo2HaYtwjQuM/ngMKznxSslOLqzCZJTSU8KkwixmbC+TpcEYgLWW4XxR4DYJPADfR2MUrURs6PqkWiUfKHRrPUw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eoEd5S60Oks3u4gP3wgEUc86BSXPbUjyXIhyX9PWalquMQpsfB6YuBJKiWyLSbDBgmGjsTSlMWuAf6LBcKW6i54iSNN+6xhT+UA7Rs9Rd6GfU8DbORxb5WzaYaks9CH0ZTn14bDnYw3c40MhGcMI8pu9iR08KBR5sutmly813Y9jAh7f22jGiSRFIU5b0jUNRwnNV6xNsH60QUZmU5o15NQnu6qCBFIEUUaeMPg9S8LjX+j/oDf5Kl2fgioo2puhHvHuFqVKyNanv8XpUb0wm30giSGVMpGHPs/8scNT0gXPfU6PgideVZ4vdJowdbm54WF5H0JJhJN3bodtE8EHnw==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Hari Limaye <Hari.Limaye@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Delivery-date: Thu, 17 Jul 2025 13:06:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Thread-index: AQHb9xn3Gft3gY6gG0eTB3jDtAWVF7Q2RtIAgAAAoYCAAAEegA==
- Thread-topic: [PATCH v3 5/6] arm/mpu: Implement early_fdt_map support in MPU systems
Hi Michal,
> On 17 Jul 2025, at 14:00, Orzel, Michal <michal.orzel@xxxxxxx> wrote:
>
>
>
> On 17/07/2025 14:58, Hari Limaye wrote:
>> Hi Michal,
>>
>>> On 17 Jul 2025, at 13:54, Orzel, Michal <michal.orzel@xxxxxxx> wrote:
>>>> + /*
>>>> + * DTB starting at a different address has been mapped, so destroy
>>>> this
>>>> + * before continuing.
>>> I don't understand this scenario. Can you describe it in more details?
>>> I know that early_fdt_map will be called twice. First time, mapped_fdt_base
>>> ==
>>> INVALID_PADDR and second time, mapped_fdt_base == fdt_paddr. What's the
>>> other
>>> option?
>>>
>>> ~Michal
>>>
>>
>> This was intended as more of a sanity check than a situation that was
>> expected to occur. Maybe you think it makes more sense to remove this and
>> just add an assert that `mapped_fdt_base == INVALID_PADDR` here?
> Yes, assert would be much better here. I can't think of a scenario, where
> fdt_paddr would differ depending on the call.
so you are right it can’t happen today, this was put in place in case between
two different call the DTB was relocated somewhere else in the future.
It’s not the case right now, but we thought about that when doing this function.
Anyway if you think the complexity is not worth we can add just an assert there.
Cheers,
Luca
|