All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeuk Kim <jeuk20.kim@gmail.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: fam@euphon.net, pbonzini@redhat.com, qemu-block@nongnu.org,
	jeuk20.kim@samsung.com, j-young.choi@samsung.com,
	minwoo.im@samsung.com
Subject: Re: [PULL 2/2] hw/ufs: Add support MCQ of UFSHCI 4.0
Date: Wed, 29 May 2024 08:14:24 +0900	[thread overview]
Message-ID: <b6231f60-db8a-4dc0-a5db-b1d608059e6e@gmail.com> (raw)
In-Reply-To: <19857a64-0f57-4f7c-877e-c4d0e884c4f1@linaro.org>


On 5/29/2024 2:06 AM, Richard Henderson wrote:
> On 5/27/24 23:12, Jeuk Kim wrote:
>> From: Minwoo Im <minwoo.im@samsung.com>
>>
>> This patch adds support for MCQ defined in UFSHCI 4.0.  This patch
>> utilized the legacy I/O codes as much as possible to support MCQ.
>>
>> MCQ operation & runtime register is placed at 0x1000 offset of UFSHCI
>> register statically with no spare space among four registers (48B):
>>
>>     UfsMcqSqReg, UfsMcqSqIntReg, UfsMcqCqReg, UfsMcqCqIntReg
>>
>> The maxinum number of queue is 32 as per spec, and the default
>> MAC(Multiple Active Commands) are 32 in the device.
>>
>> Example:
>>     -device ufs,serial=foo,id=ufs0,mcq=true,mcq-maxq=8
>>
>> Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
>> Reviewed-by: Jeuk Kim <jeuk20.kim@samsung.com>
>> Message-Id: <20240528023106.856777-3-minwoo.im@samsung.com>
>> Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
>> ---
>>   hw/ufs/trace-events |  17 ++
>>   hw/ufs/ufs.c        | 475 ++++++++++++++++++++++++++++++++++++++++++--
>>   hw/ufs/ufs.h        |  98 ++++++++-
>>   include/block/ufs.h |  23 ++-
>>   4 files changed, 593 insertions(+), 20 deletions(-)
>
> Fails build:
>
> https://gitlab.com/qemu-project/qemu/-/jobs/6960270722
>
> In file included from trace/trace-hw_ufs.c:5:
> ../hw/ufs/trace-events:28:24: error: format specifies type 'unsigned 
> char' but the argument has type 'uint32_t' (aka 'unsigned int') 
> [-Werror,-Wformat]
>                      , cqid, addr);
>                        ^~~~
> ../hw/ufs/trace-events:25:112: error: format specifies type 'unsigned 
> char' but the argument has type 'uint32_t' (aka 'unsigned int') 
> [-Werror,-Wformat]
>             qemu_log("ufs_err_dma_write_cq " "failed to write cq 
> entry. cqid %"PRIu8", hwaddr %"PRIu64"" "\n", cqid, addr);
> ~~~~~~~                      ^~~~
> 2 errors generated.
>
>
>
> r~


Sorry about that.

I'll fix it and send it back to you.



      reply	other threads:[~2024-05-28 23:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  6:12 [PULL 0/2] ufs queue Jeuk Kim
2024-05-28  6:12 ` [PULL 1/2] hw/ufs: Update MCQ-related fields to block/ufs.h Jeuk Kim
2024-05-28  6:12 ` [PULL 2/2] hw/ufs: Add support MCQ of UFSHCI 4.0 Jeuk Kim
2024-05-28 17:06   ` Richard Henderson
2024-05-28 23:14     ` Jeuk Kim [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=b6231f60-db8a-4dc0-a5db-b1d608059e6e@gmail.com \
    --to=jeuk20.kim@gmail.com \
    --cc=fam@euphon.net \
    --cc=j-young.choi@samsung.com \
    --cc=jeuk20.kim@samsung.com \
    --cc=minwoo.im@samsung.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.