RE: [PATCH] drm/amdgpu: make amdgpu device attr_update() function more efficient

2024-03-27 Thread Wang, Yang(Kevin)
[AMD Official Use Only - General] -Original Message- From: Lazar, Lijo Sent: Wednesday, March 27, 2024 2:22 PM To: Wang, Yang(Kevin) ; amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander Subject: Re: [PATCH] drm/amdgpu: make amdgpu device attr_update() function more

Re: [PATCH] drm/amdgpu: make amdgpu device attr_update() function more efficient

2024-03-27 Thread Lazar, Lijo
On 3/26/2024 2:32 PM, Yang Wang wrote: > add a new enumeration type to identify device attribute node, > this method is relatively more efficient compared with 'strcmp' in > update_attr() function. > > Signed-off-by: Yang Wang > --- > drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 +-- >

Re: [PATCH] drm/amdgpu: make amdgpu device attr_update() function more efficient

2024-03-27 Thread Ma, Jun
Reviewed-by: Ma Jun On 3/26/2024 5:02 PM, Yang Wang wrote: > add a new enumeration type to identify device attribute node, > this method is relatively more efficient compared with 'strcmp' in > update_attr() function. > > Signed-off-by: Yang Wang > --- > drivers/gpu/drm/amd/pm/amdgpu_pm.c

[PATCH] drm/amdgpu: make amdgpu device attr_update() function more efficient

2024-03-26 Thread Yang Wang
add a new enumeration type to identify device attribute node, this method is relatively more efficient compared with 'strcmp' in update_attr() function. Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 +-- drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h | 41