[PATCH ath-next v4 4/8] wifi: ath12k: add device DP stats reset support via debugfs
Jeff Johnson
jeff.johnson at oss.qualcomm.com
Tue Sep 22 17:12:01 PDT 2026
On 8/18/2026 10:32 PM, Pardeep Kaur wrote:
> From: Hariharan Ramanathan <hariharan.ramanathan at oss.qualcomm.com>
>
> There is no way to reset device DP stats counters without reloading
> the driver, making it difficult to isolate issues to a specific time
> window during debugging.
>
> Add a write handler to the device_dp_stats debugfs file so that
> writing 'reset' clears all device DP stats counters. Change the file
> mode from 0400 to 0600 to allow write access. Use
> simple_write_to_buffer() to correctly handle partial writes and
> non-zero ppos, consistent with ath12k_write_simulate_fw_crash() in
in what? the last sentence seems to be truncated. Or perhaps just s/ in$/./?
if there are no other comments in the thread there is no need to repost just
for this. Instead just let me know what text you really want here.
>
> No lock is taken around the memset since the counters are updated
> locklessly in the datapath; taking dp_lock would be misleading as it
> does not protect device_stats updates.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6.r1-00402-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Hariharan Ramanathan <hariharan.ramanathan at oss.qualcomm.com>
> Co-developed-by: Pardeep Kaur <pardeep.kaur at oss.qualcomm.com>
> Signed-off-by: Pardeep Kaur <pardeep.kaur at oss.qualcomm.com>
More information about the ath12k
mailing list