Re: [RFC PATCH 03/13] drm/amdgpu: add a flag to track ras debugfs creation status

2025-01-10 Thread Alex Deucher
On Fri, Jan 10, 2025 at 12:10 PM Mario Limonciello wrote: > > On 1/9/2025 21:19, Gerry Liu wrote: > > > > > >> 2025年1月9日 01:19,Mario Limonciello >> > 写道: > >> > >> On 1/8/2025 07:59, Jiang Liu wrote: > >>> Add a flag to track ras debugfs creation status, to avoid

Re: [RFC PATCH 03/13] drm/amdgpu: add a flag to track ras debugfs creation status

2025-01-10 Thread Mario Limonciello
On 1/9/2025 21:19, Gerry Liu wrote: 2025年1月9日 01:19,Mario Limonciello > 写道: On 1/8/2025 07:59, Jiang Liu wrote: Add a flag to track ras debugfs creation status, to avoid possible incorrect reference count management for ras block object  in function amdgpu_r

Re: [RFC PATCH 03/13] drm/amdgpu: add a flag to track ras debugfs creation status

2025-01-09 Thread Gerry Liu
> 2025年1月9日 01:19,Mario Limonciello 写道: > > On 1/8/2025 07:59, Jiang Liu wrote: >> Add a flag to track ras debugfs creation status, to avoid possible >> incorrect reference count management for ras block object in function >> amdgpu_ras_aca_is_supported(). > > Rather than taking a marker posi

Re: [RFC PATCH 03/13] drm/amdgpu: add a flag to track ras debugfs creation status

2025-01-08 Thread Mario Limonciello
On 1/8/2025 07:59, Jiang Liu wrote: Add a flag to track ras debugfs creation status, to avoid possible incorrect reference count management for ras block object in function amdgpu_ras_aca_is_supported(). Rather than taking a marker position, why not just check for obj->fs_data.debugfs_name to

[RFC PATCH 03/13] drm/amdgpu: add a flag to track ras debugfs creation status

2025-01-08 Thread Jiang Liu
Add a flag to track ras debugfs creation status, to avoid possible incorrect reference count management for ras block object in function amdgpu_ras_aca_is_supported(). Signed-off-by: Jiang Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 9 ++