Re: [PATCH v5 2/9] drm/panthor: Rename neural accelerator feature macro to NX
From: Steven Price
Date: Thu Dec 03 2026 - 10:34:28 EST
On 24/11/2026 16:19, Karunika Choo wrote:
> Rename GPU_FEATURES_NEURAL_ENGINE to GPU_FEATURES_NX.
> Update the panthor_hw helper to use the new name.
NIT: It would be good to explain why, i.e. that Arm now refers to this
block as a "Neural Accelerator" (abbreviated to NX) rather than a neural
engine. So we're updating to match the newer specs.
> Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
> Reviewed-by: Liviu Dudau <liviu.dudau@xxxxxxx>
> Signed-off-by: Karunika Choo <karunika.choo@xxxxxxx>
Reviewed-by: Steven Price <steven.price@xxxxxxx>
> ---
> v4:
> - Collect R-bs from Liviu and Boris
>
> drivers/gpu/drm/panthor/panthor_gpu_regs.h | 2 +-
> drivers/gpu/drm/panthor/panthor_hw.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/panthor/panthor_gpu_regs.h b/drivers/gpu/drm/panthor/panthor_gpu_regs.h
> index 5340966caef37..c7581b6d4c5be 100644
> --- a/drivers/gpu/drm/panthor/panthor_gpu_regs.h
> +++ b/drivers/gpu/drm/panthor/panthor_gpu_regs.h
> @@ -67,7 +67,7 @@
>
> #define GPU_FEATURES 0x60
> #define GPU_FEATURES_RAY_INTERSECTION BIT(2)
> -#define GPU_FEATURES_NEURAL_ENGINE BIT(4)
> +#define GPU_FEATURES_NX BIT(4)
> #define GPU_FEATURES_RAY_TRAVERSAL BIT(5)
>
> #define GPU_TIMESTAMP_OFFSET 0x88
> diff --git a/drivers/gpu/drm/panthor/panthor_hw.h b/drivers/gpu/drm/panthor/panthor_hw.h
> index eeca936f44bae..f770dc40e6216 100644
> --- a/drivers/gpu/drm/panthor/panthor_hw.h
> +++ b/drivers/gpu/drm/panthor/panthor_hw.h
> @@ -64,7 +64,7 @@ static inline bool panthor_hw_has_pwr_ctrl(struct panthor_device *ptdev)
> static inline bool panthor_hw_has_neural(struct panthor_device *ptdev)
> {
> return (GPU_ARCH_MAJOR(ptdev->gpu_info.gpu_id) >= 14 &&
> - ptdev->gpu_info.gpu_features & GPU_FEATURES_NEURAL_ENGINE);
> + ptdev->gpu_info.gpu_features & GPU_FEATURES_NX);
> }
>
> #endif /* __PANTHOR_HW_H__ */