public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] hwtracing: hisi_ptt: Fix reset timeout handling and clean up trace start
@ 2026-04-14 17:25 Pradhan, Sanman
  2026-04-14 17:25 ` [PATCH v2 1/2] hwtracing: hisi_ptt: Propagate DMA reset timeout in trace_start() Pradhan, Sanman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pradhan, Sanman @ 2026-04-14 17:25 UTC (permalink / raw)
  To: yangyicong@hisilicon.com, jonathan.cameron@huawei.com
  Cc: alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org, yangyccccc@gmail.com, Sanman Pradhan

From: Sanman Pradhan <psanman@juniper.net>

Patch 1: Propagate the DMA reset timeout error from
  hisi_ptt_wait_dma_reset_done() instead of discarding it. De-assert
  the reset bit and log an error on timeout. Move ctrl->started to the
  successful path so a failed start does not leave the trace marked as
  active.

Patch 2: Remove the unnecessary 16 MiB memset of trace buffers in
  hisi_ptt_trace_start(). The driver only copies data that hardware has
  written, so the zeroing is not needed.

Changes since v1:
  - Patch 1: Return bool from hisi_ptt_wait_dma_reset_done() for
    consistency with the other wait helpers
  - Patch 1: Add pci_err() on timeout
  - Patch 1: De-assert RST before returning on timeout
  - Patch 1: Move ctrl->started to the successful path
  - Dropped "Use the passed buffer index in hisi_ptt_update_aux()" patch
  - Patch 2 is unchanged

Sanman Pradhan (2):
  hwtracing: hisi_ptt: Propagate DMA reset timeout in trace_start()
  hwtracing: hisi_ptt: Remove unnecessary trace buffer zeroing in
    trace_start()

 drivers/hwtracing/ptt/hisi_ptt.c | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-17 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 17:25 [PATCH v2 0/2] hwtracing: hisi_ptt: Fix reset timeout handling and clean up trace start Pradhan, Sanman
2026-04-14 17:25 ` [PATCH v2 1/2] hwtracing: hisi_ptt: Propagate DMA reset timeout in trace_start() Pradhan, Sanman
2026-04-16 17:25   ` Yicong Yang
2026-04-14 17:25 ` [PATCH v2 2/2] hwtracing: hisi_ptt: Remove unnecessary trace buffer zeroing " Pradhan, Sanman
2026-04-17 12:45 ` [PATCH v2 0/2] hwtracing: hisi_ptt: Fix reset timeout handling and clean up trace start Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox