* [PULL 0/1] ufs fix for 2023-12-05
@ 2023-12-05 5:30 Jeuk Kim
2023-12-05 5:30 ` [PULL 1/1] hw/ufs: avoid generating the same ID string for different LU devices Jeuk Kim
2023-12-05 21:32 ` [PULL 0/1] ufs fix for 2023-12-05 Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Jeuk Kim @ 2023-12-05 5:30 UTC (permalink / raw)
To: stefanha; +Cc: jeuk20.kim, jeuk20.kim, qemu-block, qemu-devel
From: Jeuk Kim <jeuk20.kim@samsung.com>
The following changes since commit 1664d74c50739401c8b40e8b514d12b5fc250067:
tests/avocado: Update yamon-bin-02.22.zip URL (2023-12-04 08:17:35 -0500)
are available in the Git repository at:
https://gitlab.com/jeuk20.kim/qemu.git tags/pull-ufs-20231205
for you to fetch changes up to 80a37b039ea9473d038bcef8bb64f4213affeae8:
hw/ufs: avoid generating the same ID string for different LU devices (2023-12-05 13:57:18 +0900)
----------------------------------------------------------------
ufs fixes for 8.2
- Fix QEMU not starting when creating two UFS host controllers
----------------------------------------------------------------
Akinobu Mita (1):
hw/ufs: avoid generating the same ID string for different LU devices
hw/ufs/ufs.c | 8 ++++++++
1 file changed, 8 insertions(+)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL 1/1] hw/ufs: avoid generating the same ID string for different LU devices
2023-12-05 5:30 [PULL 0/1] ufs fix for 2023-12-05 Jeuk Kim
@ 2023-12-05 5:30 ` Jeuk Kim
2023-12-05 21:32 ` [PULL 0/1] ufs fix for 2023-12-05 Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Jeuk Kim @ 2023-12-05 5:30 UTC (permalink / raw)
To: stefanha
Cc: jeuk20.kim, jeuk20.kim, qemu-block, qemu-devel, Akinobu Mita,
Philippe Mathieu-Daudé
From: Akinobu Mita <akinobu.mita@gmail.com>
QEMU would not start when trying to create two UFS host controllers and
a UFS logical unit for each with the following options:
-device ufs,id=bus0 \
-device ufs-lu,drive=drive1,bus=bus0,lun=0 \
-device ufs,id=bus1 \
-device ufs-lu,drive=drive2,bus=bus1,lun=0 \
This is because the same ID string ("0:0:0/scsi-disk") is generated
for both UFS logical units.
To fix this issue, prepend the parent pci device's path to make
the ID string unique.
("0000:00:03.0/0:0:0/scsi-disk" and "0000:00:04.0/0:0:0/scsi-disk")
Resolves: #2018
Fixes: 096434fea13a ("hw/ufs: Modify lu.c to share codes with SCSI subsystem")
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Jeuk Kim <jeuk20.kim@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231204150543.48252-1-akinobu.mita@gmail.com>
Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
---
hw/ufs/ufs.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c
index 68c5f1f6c9..eccdb852a0 100644
--- a/hw/ufs/ufs.c
+++ b/hw/ufs/ufs.c
@@ -1323,9 +1323,17 @@ static bool ufs_bus_check_address(BusState *qbus, DeviceState *qdev,
return true;
}
+static char *ufs_bus_get_dev_path(DeviceState *dev)
+{
+ BusState *bus = qdev_get_parent_bus(dev);
+
+ return qdev_get_dev_path(bus->parent);
+}
+
static void ufs_bus_class_init(ObjectClass *class, void *data)
{
BusClass *bc = BUS_CLASS(class);
+ bc->get_dev_path = ufs_bus_get_dev_path;
bc->check_address = ufs_bus_check_address;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL 0/1] ufs fix for 2023-12-05
2023-12-05 5:30 [PULL 0/1] ufs fix for 2023-12-05 Jeuk Kim
2023-12-05 5:30 ` [PULL 1/1] hw/ufs: avoid generating the same ID string for different LU devices Jeuk Kim
@ 2023-12-05 21:32 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2023-12-05 21:32 UTC (permalink / raw)
To: Jeuk Kim; +Cc: stefanha, jeuk20.kim, jeuk20.kim, qemu-block, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-05 21:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 5:30 [PULL 0/1] ufs fix for 2023-12-05 Jeuk Kim
2023-12-05 5:30 ` [PULL 1/1] hw/ufs: avoid generating the same ID string for different LU devices Jeuk Kim
2023-12-05 21:32 ` [PULL 0/1] ufs fix for 2023-12-05 Stefan Hajnoczi
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).