Shiyang Ruan wrote:
> The length of Physical Address in General Media Event Record/DRAM Event
> Record is 64-bit, so the field mask should be defined as such length.

Can you include this user visible side-effect of this change. Looks like
this could cause usages of CXL_DPA_FLAGS_MASK to return an incorrect
result?

> 
> Signed-off-by: Shiyang Ruan <ruansy.f...@fujitsu.com>
> ---
>  drivers/cxl/core/trace.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/cxl/core/trace.h b/drivers/cxl/core/trace.h
> index 89445435303a..388a87d972c2 100644
> --- a/drivers/cxl/core/trace.h
> +++ b/drivers/cxl/core/trace.h
> @@ -253,11 +253,11 @@ TRACE_EVENT(cxl_generic_event,
>   * DRAM Event Record
>   * CXL rev 3.0 section 8.2.9.2.1.2; Table 8-44
>   */
> -#define CXL_DPA_FLAGS_MASK                   0x3F
> +#define CXL_DPA_FLAGS_MASK                   0x3FULL
>  #define CXL_DPA_MASK                         (~CXL_DPA_FLAGS_MASK)
>  
> -#define CXL_DPA_VOLATILE                     BIT(0)
> -#define CXL_DPA_NOT_REPAIRABLE                       BIT(1)
> +#define CXL_DPA_VOLATILE                     BIT_ULL(0)
> +#define CXL_DPA_NOT_REPAIRABLE                       BIT_ULL(1)
>  #define show_dpa_flags(flags)        __print_flags(flags, "|",               
>    \
>       { CXL_DPA_VOLATILE,                     "VOLATILE"              }, \
>       { CXL_DPA_NOT_REPAIRABLE,               "NOT_REPAIRABLE"        }  \
> -- 
> 2.34.1
> 



Reply via email to