From: Sizhe Liu <liusizhe5@huawei.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: <rostedt@goodmis.org>, <mhiramat@kernel.org>,
<mathieu.desnoyers@efficios.com>, <corbet@lwn.net>,
<skhan@linuxfoundation.org>, <bhelgaas@google.com>,
<yangyccccc@gmail.com>, <jic23@kernel.org>,
<john.g.garry@oracle.com>, <will@kernel.org>,
<james.clark@linaro.org>, <mike.leach@arm.com>,
<leo.yan@linux.dev>, <peterz@infradead.org>, <mingo@redhat.com>,
<acme@kernel.org>, <namhyung@kernel.org>, <mark.rutland@arm.com>,
<alexander.shishkin@linux.intel.com>, <jolsa@kernel.org>,
<irogers@google.com>, <adrian.hunter@intel.com>,
<wangyushan12@huawei.com>, <shenyang39@huawei.com>,
<gaozhihao6@h-partners.com>, <yuzhichengcheng@h-partners.com>,
<liyihang9@h-partners.com>, <linux-kernel@vger.kernel.org>,
<linux-pci@vger.kernel.org>, <linux-perf-users@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-doc@vger.kernel.org>, <linuxarm@huawei.com>,
<prime.zeng@hisilicon.com>, <fanghao11@huawei.com>,
<wuyifan50@huawei.com>
Subject: Re: [PATCH 10/10] perf hisi-ptt: Add decoder version compatibility
Date: Wed, 29 Jul 2026 16:13:11 +0800 [thread overview]
Message-ID: <d216745f-a23f-4f36-a462-22f4814baf48@huawei.com> (raw)
In-Reply-To: <20260713174951.GA1245033@bhelgaas>
On 2026/7/14 1:49, Bjorn Helgaas wrote:
> On Thu, Jun 04, 2026 at 03:50:05PM +0800, Sizhe Liu wrote:
>> The hisi_ptt packet decoder now performs detailed field-level parsing
>> of TLP header DW2 and DW3 based on the message type classified from
>> DW0 (added in the previous patches). However, trace data recorded
>> with older versions of the tool does not contain the information
>> needed for this detailed parsing, and should continue to use the
>> generic field-name-only output.
> Add blank line between paragraphs. Also applies to 05/10.
>
>> Introduce a version field (V1/V2) in the auxtrace info record to
>> distinguish between the two data formats:
> IMO a blank line here would also improve readability. And consider
> indenting bullet points a couple spaces. Also applies to other commit
> logs in this series, including sample formats.
>
>> - V1 (legacy): auxtrace priv contains only PMU type. DW2 and DW3
>> are printed with generic field names only, no message-type-based
>> field decoding.
>> - V2 (current): auxtrace priv contains PMU type and version. DW2
>> and DW3 are decoded according to the TLP message type (MWr, Msg,
>> Atomic, IO, CPL, Cfg) with detailed field names.
> Could use imperative mood, e.g.,
>
> - V1 (legacy): auxtrace priv contains only PMU type. Print DW2 and
> DW3 generic field names only, no message-type-based field
> decoding.
>
> - V2 (current): auxtrace priv contains PMU type and version. Decode
> DW2 and DW3 according to the TLP message type (MWr, Msg, Atomic,
> IO, CPL, Cfg) with detailed field names.
Thanks, all the preceding suggestions will be modified in v2.
>> At recording time, set the version to HISI_PTT_DECODER_V2 in the
>> auxtrace info. At decoding time, determine the version from the
>> priv data size and the version field:
>> - If priv_size >= V2, read the version from priv[1].
>> - If priv_size < V2, assume V1 for backward compatibility.
>> - If version is unknown (future), warn and decode auxtrace as v2.
>>
>> Also add the version to the dump output alongside the PMU type.
>> Adjust hisi_ptt_pkt_size position to adapt to compilation.
> AFAICS this series adds new functionality and probably doesn't qualify
> for "stable" tags, given the documented rules. But I think the
> maintainers are pretty aggressive about backporting things anyway.
Hi Bjorn,
Thanks for your response and for clarifying the policy regarding the
stable tag.
You're right, patches 03-10 in this series are new functionality and
shouldwait
for the next merge window.
For patch 01 and patch 02, they do fix the issue of inaccurate packet
parsing,
I think it is better to separate them from the patch series.
I am sending them individually after fixing the C bitfields issues if
that makes things clearer.
If you have any suggestions on this split, please feel free to let me know.
Regards,
Sizhe
prev parent reply other threads:[~2026-07-29 8:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 7:49 [PATCH 00/10] perf hisi-ptt: Enhance TLP packet decoder with field-level parsing and versioning Sizhe Liu
2026-06-04 7:49 ` [PATCH 01/10] perf hisi-ptt: Fix spelling and abbreviation errors Sizhe Liu
2026-06-04 7:49 ` [PATCH 02/10] perf hisi-ptt: Fix PTT trace TLP Header parsing Sizhe Liu
2026-06-04 7:49 ` [PATCH 03/10] perf hisi-ptt: Rename hisi_ptt_4dw union for reuse Sizhe Liu
2026-06-04 7:49 ` [PATCH 04/10] perf hisi-ptt: Abstract trace data buf and offset Sizhe Liu
2026-06-04 7:50 ` [PATCH 05/10] perf hisi-ptt: Complete the field names for 4DW and 8DW packets Sizhe Liu
2026-06-04 7:50 ` [PATCH 06/10] perf hisi-ptt: Extract the raw data printing part Sizhe Liu
2026-06-04 7:50 ` [PATCH 07/10] perf hisi-ptt: Merge 4DW and 8DW HEAD0 printing Sizhe Liu
2026-06-04 7:50 ` [PATCH 08/10] perf hisi-ptt: Add parsing of supported message types Sizhe Liu
2026-06-04 7:50 ` [PATCH 09/10] perf hisi-ptt: Add field-level parsing for header DW2/DW3 Sizhe Liu
2026-06-04 7:50 ` [PATCH 10/10] perf hisi-ptt: Add decoder version compatibility Sizhe Liu
2026-07-13 17:49 ` Bjorn Helgaas
2026-07-29 8:13 ` Sizhe Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d216745f-a23f-4f36-a462-22f4814baf48@huawei.com \
--to=liusizhe5@huawei.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=corbet@lwn.net \
--cc=fanghao11@huawei.com \
--cc=gaozhihao6@h-partners.com \
--cc=helgaas@kernel.org \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jic23@kernel.org \
--cc=john.g.garry@oracle.com \
--cc=jolsa@kernel.org \
--cc=leo.yan@linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=liyihang9@h-partners.com \
--cc=mark.rutland@arm.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=mike.leach@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=prime.zeng@hisilicon.com \
--cc=rostedt@goodmis.org \
--cc=shenyang39@huawei.com \
--cc=skhan@linuxfoundation.org \
--cc=wangyushan12@huawei.com \
--cc=will@kernel.org \
--cc=wuyifan50@huawei.com \
--cc=yangyccccc@gmail.com \
--cc=yuzhichengcheng@h-partners.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox