Re: [PATCH v3 08/11] cxl/region: Implement endpoint decoder address translation
From: Gregory Price
Date: Thu Sep 18 2025 - 09:59:41 EST
On Wed, Sep 17, 2025 at 04:51:37PM -0400, Gregory Price wrote:
> You have to do the alignment because the translation function (may)
> only work on granularity alignment.
>
> Example:
> endpoint1->to_hpa(0) => 0x0
> endpoint1->to_hpa(0xfffffff) => 0xffffe00
0x3ffffe00
> endpoint2->to_hpa(0) => 0x100
> endpoint2->to_hpa(0xfffffff) => 0xfffff00
0x3fffff00
minor corrections above if intending to use for documentation