All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeuk Kim <jeuk20.kim@gmail.com>
To: qemu-devel@nongnu.org
Cc: jeuk20.kim@samsung.com, kwolf@redhat.com, hreitz@redhat.com,
	qemu-block@nongnu.org, j-young.choi@samsung.com,
	jaemyung.lee@samsung.com
Subject: [PATCH 0/2] hw/ufs: Complete UFSHCI 4.1 link bring-up and MCQ tagging
Date: Mon, 29 Jun 2026 10:19:33 +0900	[thread overview]
Message-ID: <cover.1782695495.git.jeuk20.kim@samsung.com> (raw)

This series fixes two gaps that prevent a UFSHCI 4.1 host from bringing the
emulated device up and using it over MCQ.

Patch 1 adds minimal DME_GET/SET handling for the PA layer attributes that a
host reads and writes when negotiating the link power mode after
DME_LINK_STARTUP. Previously every DME command other than LINK_STARTUP and
HIBER_{ENTER,EXIT} returned FAILURE, so the power-mode change could not
complete.

Patch 2 populates cqe.task_tag (and lun) in the MCQ completion path. The
device reports version 4.1, for which the request tag is conveyed in the CQE
task_tag field instead of being derived from the command descriptor base
address, so completions were all decoded as tag 0.

Jeuk Kim (2):
  hw/ufs: Emulate DME_GET/SET for PA layer attributes
  hw/ufs: Populate cqe.task_tag for UFSHCI 4.1 tag decoding

 hw/ufs/ufs.c        | 46 +++++++++++++++++++++++++++++++++++++++++++++
 include/block/ufs.h | 18 +++++++++++++++++-
 2 files changed, 63 insertions(+), 1 deletion(-)

-- 
2.43.0



                 reply	other threads:[~2026-06-29  1:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=cover.1782695495.git.jeuk20.kim@samsung.com \
    --to=jeuk20.kim@gmail.com \
    --cc=hreitz@redhat.com \
    --cc=j-young.choi@samsung.com \
    --cc=jaemyung.lee@samsung.com \
    --cc=jeuk20.kim@samsung.com \
    --cc=kwolf@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 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.