From: Bart Van Assche <bvanassche@acm.org>
To: Ziqi Chen <quic_ziqichen@quicinc.com>,
quic_asutoshd@quicinc.com, quic_cang@quicinc.com,
quic_nguyenb@quicinc.com, mani@kernel.org,
stanley.chu@mediatek.com, adrian.hunter@intel.com,
beanhuo@micron.com, avri.altman@wdc.com,
junwoo80.lee@samsung.com, martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, Alim Akhtar <alim.akhtar@samsung.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:TRACING" <linux-trace-kernel@vger.kernel.org>
Subject: Re: [PATCH v5] scsi: ufs: core: Add trace event for MCQ
Date: Mon, 13 Mar 2023 14:09:27 -0700 [thread overview]
Message-ID: <5ee20e75-8a61-be89-5302-45f390a0cbd6@acm.org> (raw)
In-Reply-To: <1678699023-6645-1-git-send-email-quic_ziqichen@quicinc.com>
On 3/13/23 02:16, Ziqi Chen wrote:
> Added a new trace event to record MCQ relevant information
> for each request in MCQ mode, include hardware queue ID,
> SQ tail slot, CQ head slot and CQ tail slot.
Added a new trace event ... -> Add the MCQ information in the existing
trace event ...
From Documentation/process/submitting-patches.rst: "Describe your
changes in imperative mood, e.g. "make xyzzy do frotz"".
> Changes to v1:
> - Adjust the order of fileds to keep them aligned.
^^^^^^
fields?
> - u32 intr, doorbell;
> + u32 doorbell = 0, hwq_id = 0;
> + u32 intr;
Since hwq_id can be assigned the value -1, shouldn't its type be changed
from u32 into int, int16_t or int32_t?
> + struct ufs_hw_queue *hwq = NULL;
Is this pointer only used inside one branch of the if-statement below?
If so, can it be moved under "if (is_mcq_enabled(hba)) {"?
> + "%s: %s: tag: %u, DB: 0x%x, size: %d, IS: %u, LBA: %llu, opcode: 0x%x (%s), group_id: 0x%x, hqid: %d",
Consider changing "hqid" into "hwq_id" to make the trace information
easier to understand.
Thanks,
Bart.
next prev parent reply other threads:[~2023-03-13 21:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 9:16 [PATCH v5] scsi: ufs: core: Add trace event for MCQ Ziqi Chen
2023-03-13 21:09 ` Bart Van Assche [this message]
2023-03-14 9:34 ` Ziqi Chen
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=5ee20e75-8a61-be89-5302-45f390a0cbd6@acm.org \
--to=bvanassche@acm.org \
--cc=adrian.hunter@intel.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=jejb@linux.ibm.com \
--cc=junwoo80.lee@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mhiramat@kernel.org \
--cc=quic_asutoshd@quicinc.com \
--cc=quic_cang@quicinc.com \
--cc=quic_nguyenb@quicinc.com \
--cc=quic_ziqichen@quicinc.com \
--cc=rostedt@goodmis.org \
--cc=stanley.chu@mediatek.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