qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Jeuk Kim <jeuk20.kim@gmail.com>, 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: Tue, 28 May 2024 10:06:24 -0700	[thread overview]
Message-ID: <19857a64-0f57-4f7c-877e-c4d0e884c4f1@linaro.org> (raw)
In-Reply-To: <71a82d3f0555e65c98df129ce0e38b2aa5681ec0.1716876237.git.jeuk20.kim@samsung.com>

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~


  reply	other threads:[~2024-05-28 17:07 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 [this message]
2024-05-28 23:14     ` Jeuk Kim

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=19857a64-0f57-4f7c-877e-c4d0e884c4f1@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=fam@euphon.net \
    --cc=j-young.choi@samsung.com \
    --cc=jeuk20.kim@gmail.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 \
    /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;
as well as URLs for NNTP newsgroup(s).