Re: [PATCH] docs/cxl: Add serial number for persistent-memdev

2025-03-25 Thread Yuquan Wang
> -原始邮件- > 发件人: "Jonathan Cameron" > 发送时间:2025-03-13 02:10:35 (星期四) > 收件人: "Yuquan Wang" > 抄送: qemu-devel@nongnu.org, linux-...@vger.kernel.org > 主题: Re: [PATCH] docs/cxl: Add serial number for persistent-memdev > > On Wed, 5

Re: [PATCH] docs/cxl: Add serial number for persistent-memdev

2025-03-05 Thread Yuquan Wang
> > On Tue, 4 Mar 2025 14:22:48 +0800 > Yuquan Wang wrote: > > > > > > > On Thu, Feb 20, 2025 at 04:12:13PM +, Jonathan Cameron wrote: > > > > On Mon, 17 Feb 2025 19:20:39 +0800 > > > > Yuquan Wang wrote: > > > > &g

[PATCH] docs/cxl: Add serial number for persistent-memdev

2025-03-03 Thread Yuquan Wang
Add serial number parameter in the cxl persistent examples. Signed-off-by: Yuquan Wang --- docs/system/devices/cxl.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/system/devices/cxl.rst b/docs/system/devices/cxl.rst index 882b036f5e..e307caf3f8

Re: [PATCH] docs/cxl: Add serial number for persistent-memdev

2025-03-03 Thread Yuquan Wang
> > On Thu, Feb 20, 2025 at 04:12:13PM +, Jonathan Cameron wrote: > > On Mon, 17 Feb 2025 19:20:39 +0800 > > Yuquan Wang wrote: > > > > > Add serial number parameter in the cxl persistent examples. > > > > > > Signed-off-by: Yuquan Wa

Re: [PATCH] docs/cxl: Add serial number for persistent-memdev

2025-02-20 Thread Yuquan Wang
> > Looks good. I've queued it up on my gitlab staging tree, but > Michael if you want to pick this one directly that's fine as well. > > I should be pushing out my gitlab tree shortly (bit of networking > fun to deal with). > Hi, Jonathan About qemu side, I have another question: Could the qe

[PATCH] docs/cxl: Add serial number for persistent-memdev

2025-02-17 Thread Yuquan Wang
Add serial number parameter in the cxl persistent examples. Signed-off-by: Yuquan Wang --- docs/system/devices/cxl.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/system/devices/cxl.rst b/docs/system/devices/cxl.rst index 882b036f5e..e307caf3f8

Re: [PATCH 1/1] mem/cxl-type3: Add a default value of sn

2025-02-12 Thread Yuquan Wang
On Tue, Feb 11, 2025 at 09:26:55AM +, Jonathan Cameron wrote: > On Tue, 11 Feb 2025 10:24:13 +0800 > Yuquan Wang wrote: > > > The previous default value of sn is UI64_NULL which would cause the > > cookie of nd_interleave_set be '0' and the "invalid in

[PATCH 0/1] mem/cxl-type3: Add a default value of sn

2025-02-10 Thread Yuquan Wang
the failure of label validation, so this defines '1' as the default value of serial number to fix the problem. Yuquan Wang (1): mem/cxl-type3: Add a default value of sn hw/mem/cxl_type3.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) -- 2.34.1

[PATCH 1/1] mem/cxl-type3: Add a default value of sn

2025-02-10 Thread Yuquan Wang
the failure of label validation, so this defines '1' as the default value of serial number to fix the problem. Signed-off-by: Yuquan Wang --- hw/mem/cxl_type3.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.

[PATCH 1/1] cxl/cxl-host: Support creation of a new CXL Host Bridge

2025-01-16 Thread Yuquan Wang
#x27;target_chb' to record the target list of CXLHostBridge. And necessary is to adjust the logic of 'cxl_cfmws_find_device' and 'cxl_fmws_link_targets' to allow different types of cxl host bridge. Move 'cxl_get_hb_cstate' & 'cxl_get_hb_passthrough' fr

[PATCH 0/1] cxl/cxl-host: Support creation of a new CXL Host Bridge

2025-01-16 Thread Yuquan Wang
ypes of cxl host bridge. Move 'cxl_get_hb_cstate' & 'cxl_get_hb_passthrough' from pxb code into cxl-host code. Link: [1]: https://lore.kernel.org/linux-cxl/20220616141950.23374-1-jonathan.came...@huawei.com/ [2]: https://lists.nongnu.org/archive/html/qemu-arm/2024-11/msg00522.

[RFC PATCH v4 0/1] Sbsa-ref CXL Enablement

2024-12-10 Thread Yuquan Wang
o do it. This series patches are here to hopefully some comments to guide me! Link: [1]: https://lists.nongnu.org/archive/html/qemu-arm/2024-12/msg00350.html [2]: https://lore.kernel.org/linux-cxl/20220616141950.23374-1-jonathan.came...@huawei.com/ [3]: https://edk2.groups.io/g/devel/message/120

[RFC PATCH v4 1/1] hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW

2024-12-10 Thread Yuquan Wang
CXL_MMIO_HIGH To provide CFMWs on sbsa-ref, this extends 1TB space from the hole above RAM Memory [SBSA_MEM] for CXL Fixed Memory Window: - 1T CXL_FIXED_WINDOW Signed-off-by: Yuquan Wang --- docs/system/arm/sbsa.rst | 4 ++ hw/arm/sbsa-ref.c| 135

[PATCH 1/1] cxl/cxl-host: Support creation of a new CXL Host Bridge

2024-12-06 Thread Yuquan Wang
#x27;target_chb' to record the target list of CXLHostBridge. And necessary is to adjust the logic of 'cxl_cfmws_find_device' and 'cxl_fmws_link_targets' to allow different types of cxl host bridge. Move 'cxl_get_hb_cstate' & 'cxl_get_hb_passthrough' fr

[PATCH 0/1] cxl/cxl-host: Support creation of a new CXL Host Bridge

2024-12-06 Thread Yuquan Wang
ypes of cxl host bridge. Move 'cxl_get_hb_cstate' & 'cxl_get_hb_passthrough' from pxb code into cxl-host code. Link: [1]: https://lore.kernel.org/linux-cxl/20220616141950.23374-1-jonathan.came...@huawei.com/ [2]: https://lists.nongnu.org/archive/html/qemu-arm/2024-11/msg00522.

[RFC PATCH v3 1/1] hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW

2024-11-25 Thread Yuquan Wang
CXL_MMIO_HIGH To provide CFMWs on sbsa-ref, this extends 1TB space from the hole above RAM Memory [SBSA_MEM] for CXL Fixed Memory Window: - 1T CXL_FIXED_WINDOW Signed-off-by: Yuquan Wang --- docs/system/arm/sbsa.rst | 4 + hw/arm/sbsa-ref.c | 139 ++- hw

[RFC PATCH v3 0/1] Sbsa-ref CXL Enablement

2024-11-25 Thread Yuquan Wang
ink: [1]: https://lore.kernel.org/linux-cxl/20220616141950.23374-1-jonathan.came...@huawei.com/ [2]: https://edk2.groups.io/g/devel/topic/rfc_edk2_patch_v3_0_1/109403423# [3]: https://edk2.groups.io/g/devel/topic/rfc_patch_edk2_platforms_v3/109768222 Yuquan Wang (1): hw/arm/sbsa-ref: Support CX

[RFC PATCH v2 0/1] Sbsa-ref CXL Enablement

2024-11-05 Thread Yuquan Wang
awei.com/ [2]: https://edk2.groups.io/g/devel/topic/rfc_edk2_patch_v3_0_1/109403423# [3]: https://edk2.groups.io/g/devel/topic/rfc_patch_edk2_platforms_v2/109403456 Yuquan Wang (1): hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW docs/system/arm/sbsa.rst | 4 ++ hw/arm/sbsa-ref.c | 122 +

[RFC PATCH v2 1/1] hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW

2024-11-05 Thread Yuquan Wang
To provide CFMWs on sbsa-ref, this extends 1TB space from the hole above RAM Memory [SBSA_MEM] for CXL Fixed Memory Window. Signed-off-by: Yuquan Wang --- docs/system/arm/sbsa.rst | 4 ++ hw/arm/sbsa-ref.c | 122 +- hw/cxl/cxl-host-stubs.c | 2 + hw

[RFC EDK2 PATCH v2 1/1] MdePkg/IndustryStandard: add definitions for CXL3.1 CEDT

2024-10-30 Thread Yuquan Wang
This adds #defines and struct typedefs for the various structure types in the CXL3.1 CXL Early Discovery Table (CEDT). Signed-off-by: Yuquan Wang --- .../IndustryStandard/CxlEarlyDiscoveryTable.h | 113 ++ 1 file changed, 113 insertions(+) create mode 100644 MdePkg/Include

[RFC EDK2 PATCH v2 0/1] MdePkg/IndustryStandard: add definitions for CXL3.1 CEDT

2024-10-30 Thread Yuquan Wang
t cxl on Qemu sbsa-ref platform, but it relies on CXL ACPI elements within compiled UEFI flash instead of virt/i386 using qemu-build-Acpi tables. Thus I create the header file CxlEarlyDiscoveryTable.h as the fundamental format for CEDT building in edk2-platforms. Yuquan Wang (1):

Re: [RFC PATCH 1/2] hw/arm/sbsa-ref: Enable CXL Host Bridge by pxb-cxl

2024-10-24 Thread Yuquan Wang
hanks Yuquan Wang >On 30.08.2024 06:15, Yuquan Wang wrote: >> The memory layout places 1M space for 16 host bridge register regions >> in the sbsa-ref memmap. In addition, this creates a default pxb-cxl >> (bus_nr=0xfe) bridge with one cxl-rp on sbsa-ref. > >

[RFC PATCH 1/2] hw/arm/sbsa-ref: Enable CXL Host Bridge by pxb-cxl

2024-08-29 Thread Yuquan Wang
The memory layout places 1M space for 16 host bridge register regions in the sbsa-ref memmap. In addition, this creates a default pxb-cxl (bus_nr=0xfe) bridge with one cxl-rp on sbsa-ref. Signed-off-by: Yuquan Wang --- hw/arm/sbsa-ref.c | 54 --- 1

[RFC PATCH 0/2] Sbsa-ref CXL Enablement

2024-08-29 Thread Yuquan Wang
e me! Link: [1]: https://lore.kernel.org/linux-cxl/20220616141950.23374-1-jonathan.came...@huawei.com/ [2]: https://edk2.groups.io/g/devel/topic/rfc_patch_0_1/108173029 [3]: https://edk2.groups.io/g/devel/topic/rfc_patch_edk2_platforms/108173682 Yuquan Wang (2): hw/arm/sbsa-ref: Enable CXL Ho

[RFC PATCH 2/2] hw/arm/sbsa-ref: Support CXL Fixed Memory Window

2024-08-29 Thread Yuquan Wang
id=cxl-mem1 \ -hda ubuntu.ext4 \ -pflash SBSA_FLASH0.fd \ -pflash SBSA_FLASH1.fd \ I'm not sure if the new space layout would bring a series of bad influence, this patch is here to hopefully some comments to guide me! Signed-off-by: Yuquan Wang --- hw/arm/sbsa-ref.c | 73 +

[RFC PATCH edk2-platforms 0/2] add basic support for CXL on sbsa-ref

2024-08-29 Thread Yuquan Wang
groups.io/g/devel/topic/rfc_patch_0_1/108173029 Yuquan Wang (2): SbsaQemu: Add acpi0016 & acpi0017 objects into DSDT SbsaQemu: AcpiTables: Add CEDT Table Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 30 +- .../Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 20 +- Silicon/Qemu/Sb

[RFC PATCH edk2-platforms 1/2] SbsaQemu: Add acpi0016 & acpi0017 objects into DSDT

2024-08-29 Thread Yuquan Wang
f the new space layout would bring a series of bad influence, but it seems that the base address and size of cxl host bridge is ok. Signed-off-by: Yuquan Wang --- Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 30 +- .../Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 14 + Silicon/Qemu/SbsaQemu/A

[RFC PATCH edk2-platforms 2/2] SbsaQemu: AcpiTables: Add CEDT Table

2024-08-29 Thread Yuquan Wang
-off-by: Yuquan Wang --- .../Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 6 +- Silicon/Qemu/SbsaQemu/AcpiTables/Cedt.aslc| 70 +++ Silicon/Qemu/SbsaQemu/SbsaQemu.dec| 7 ++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 Silicon/Qemu/Sbsa

[RFC PATCH 1/1] MdePkg/IndustryStandard: add definitions for ACPI 6.4 CEDT

2024-08-29 Thread Yuquan Wang
This adds #defines and struct typedefs for the various structure types in the ACPI 6.4 CXL Early Discovery Table (CEDT). Signed-off-by: Yuquan Wang --- MdePkg/Include/IndustryStandard/Acpi64.h | 5 ++ .../IndustryStandard/CXLEarlyDiscoveryTable.h | 69 +++ 2 files changed

[RFC PATCH 0/1] MdePkg/IndustryStandard: add definitions for ACPI 6.4 CEDT

2024-08-29 Thread Yuquan Wang
build-Acpi tables. Thus I create the header file CXLEarlyDiscoveryTable.h as the fundamental format for CEDT building in edk2-platforms. Yuquan Wang (1): MdePkg/IndustryStandard: add definitions for ACPI 6.4 CEDT MdePkg/Include/IndustryStandard/Acpi64.h | 5 ++ .../IndustrySta

Re: CXL numa error on arm64 qemu virt machine

2024-05-17 Thread Yuquan Wang
On Fri, May 10, 2024 at 06:16:46PM +0100, Jonathan Cameron wrote: > > https://git.kernel.org/pub/scm/linux/kernel/git/jic23/cxl-staging.git/log/?h=arm-numa-fixes > Thank you :) > I've run out of time to sort out cover letters and things + just before the > merge > window is never a good time get

Re: CXL numa error on arm64 qemu virt machine

2024-05-09 Thread Yuquan Wang
On Wed, May 08, 2024 at 01:02:52PM +0100, Jonathan Cameron wrote: > > > [0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x4000-0xbfff] > > [0.00] ACPI: SRAT: Node 1 PXM 1 [mem 0xc000-0x13fff] > > [0.00] ACPI: Unknown target node for memory at 0x100, > > assumi

CXL numa error on arm64 qemu virt machine

2024-05-08 Thread Yuquan Wang
Hello, Jonathan Recently I run some cxl tests on qemu virt(branch:cxl-2024-04-22-draft) but met some problems. Problems: 1) the virt machine could not set the right numa topology from user input; My Qemu numa set: -object memory-backend-ram,size=2G,id=mem0 \ -numa node,nodeid=0,cpus=0-1,memdev

[PATCH 0/1] qemu-options.hx: Fix typo for interleave-granularity of CFMW

2024-04-07 Thread Yuquan Wang
This patch fixes the unit typo of interleave-granularity of CXL Fixed Memory Window in qemu-option.hx. Yuquan Wang (1): qemu-options.hx: Fix typo for interleave-granularity of CFMW qemu-options.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.34.1

[PATCH 1/1] qemu-options.hx: Fix typo for interleave-granularity of CFMW

2024-04-07 Thread Yuquan Wang
This patch fixes the unit typo of interleave-granularity of CXL Fixed Memory Window in qemu-option.hx. Signed-off-by: Yuquan Wang wangyuquan1...@phytium.com.cn --- qemu-options.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index

RE: Questions about CXL device (type 3 memory) hotplug

2024-03-27 Thread Yuquan Wang
On Mon, May 22, 2023 at 05:11:39PM -0700, Dan Williams wrote: > Yasunori Gotou (Fujitsu) wrote: [...] Hi, all There was some confusions about CXL device hotplug when I recently tried to use Qemu to emulate CXL device hotplug and verify the relevant functions of kernel. > > Q1) Can PCIe hotplug d

[PATCH v2 1/1] cxl/mem: Fix for the index of Clear Event Record Handle

2024-03-17 Thread Yuquan Wang
The dev_dbg info for Clear Event Records mailbox command would report the handle of the next record to clear not the current one. This was because the index 'i' had incremented before printing the current handle value. Signed-off-by: Yuquan Wang --- drivers/cxl/core/mbox.c | 2

[PATCH v2 0/1] cxl/mem: Fix for the index of Clear Event Record Handle

2024-03-17 Thread Yuquan Wang
hen the kernel printed: [ 1639.106181] cxl_pci :0d:00.0: Event log '0': Clearing 0 However, the line 36 in 'hw/cxl/cxl-events.c': log->next_handle = 1; It will set the actual handle value of injected event to '1'. With this fix, the kernel will print: [ 122

[PATCH 1/1] cxl/mem: Fix for the index of Clear Event Record Handle

2024-03-15 Thread Yuquan Wang
to 'clear_cnt' which can be easier for developers to distinguish and understand. Signed-off-by: Yuquan Wang --- drivers/cxl/core/mbox.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c index 9ad

[PATCH 0/1] cxl/mem: Fix for the index of Clear Event Record Handle

2024-03-15 Thread Yuquan Wang
hen the kernel printed: [ 1639.106181] cxl_pci :0d:00.0: Event log '0': Clearing 0 However, the line 36 in 'hw/cxl/cxl-events.c': log->next_handle = 1; It will set the actual handle value of injected event to '1'. With this fix, the kernel will print: [ 122.

Re: [PATCH v9 0/7] QEMU CXL Provide mock CXL events and irq support

2024-03-14 Thread Yuquan Wang
Hello, Jonathan When during the test of qmps of CXL events like "cxl-inject-general-media-event", I am confuesd about the argument "flags". According to "qapi/cxl.json" in qemu, this argument represents "Event Record Flags" in Common Event Record Format. However, it seems like the specific 'Eve

Enabling internal errors for VH CXL devices: [was: Re: Questions about CXL RAS injection test in qemu]

2024-03-07 Thread Yuquan Wang
On 2024-03-07 20:10, jonathan.cameron wrote: > Hack is fine the relevant device with lspci -tv and then use > setpci -s 0d:00.0 0x208.l=0 > to clear all the mask bits for uncorrectable errors. Thanks! The suggestions from you and Terry did work! BTW, is my understanding below about CXL RAS corr

Questions about CXL RAS injection test in qemu

2024-03-06 Thread Yuquan Wang
Hello, Jonathan Recently I met some problems on CXL RAS tests. I tried to use "cxl-inject-uncorrectable-errors" and "cxl-inject-correctable-error" qmp to inject CXL errors, however, there was no any kernel printing information in my qemu machine. And the qmp connection was unstable that made

Re: CXL Namespaces of ACPI disappearing in Qemu demo

2023-09-06 Thread Yuquan Wang
Hi, Jonathan On 2023-09-05 22:34, jonathan.cameron wrote: > > As I understand it the distinction is more about the format / contents of > that memory > than how you access them. Yes, RCH DP RCRB includes registers from PCIe Type 1 Config Header and PCIe capabilities and extended capabilities w

Re: CXL Namespaces of ACPI disappearing in Qemu demo

2023-09-05 Thread Yuquan Wang
Hi, Jonathan On 2023-09-04 20:43, jonathan.cameron wrote: > > At the system design level, MMIO space of Root complex register space via RCRB > does not map in a similar fashion to PCIE MMIO space (which is handled via > address decoding in the PCIE fabric). It is much more similar to MMIO for >

[PATCH 1/1] hw/arm/sbsa-ref: set 'slots' property of xhci

2023-07-09 Thread Yuquan Wang
This extends the slots of xhci to 64, since the default xhci_sysbus just supports one slot. Signed-off-by: Wang Yuquan Signed-off-by: Chen Baozi --- hw/arm/sbsa-ref.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 64e1cbce17..bc89eb4806 100644 --

[PATCH 0/1] hw/arm/sbsa-ref: set 'slots' property of xhci

2023-07-09 Thread Yuquan Wang
As the default xhci_sysbus just supports only one usb slot, it can not meet the working requirement of this bord. Therefore, we extend the slots of xhci to 64. Yuquan Wang (1): hw/arm/sbsa-ref: set 'slots' property of xhci hw/arm/sbsa-ref.c | 1 + 1 file changed, 1 insertion(+) -- 2.34.1

[PATCH v5 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-21 Thread Yuquan Wang
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this uses XHCI to provide a usb controller with 64-bit DMA capablity instead of EHCI. Bumping platform version to 0.3 with this change. Signed-off-by: Y

[PATCH v5 0/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-21 Thread Yuquan Wang
Please review the change. - sbsa-ref: Replace EHCI with XHCI on sysbus. This work bumps the platform version directly to 0.3 because the addition of ITS will take sbsa-ref to 0.2 version. Yuquan Wang (1): hw/arm/sbsa-ref: use XHCI to replace EHCI docs/system/arm/sbsa.rst | 2 +- hw/arm

Re: [PATCH v4 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-20 Thread Yuquan Wang
On 2023-06-21 01:24, Leif wrote: > Leif, do you think we should bump the minor version here? I think that makes sense, yes. / Leif Thanks for everyone's guidance. There is a new confusion: Which minor version should I bump to (2 or 3) ? As I found that Marcin’s latest patch (add ITS sup

A confusion about CXL in arm virt machine

2023-06-16 Thread Yuquan Wang
Hi, Gregory There is one confusion about CXL in QEMU I hope to consult. If you have some time to look at this email, I would have better understanding of CXL emulation in QEMU. On docs/system/devices/cxl.rst , Gregory wrote: A very simple setup with just one directly attached CXL Type 3 Volat

[PATCH v4 0/1] use XHCI to replace EHCI

2023-06-06 Thread Yuquan Wang
Please review the change. - sbsa-ref: Replace EHCI with XHCI on sysbus. This version updates relevant Kconfig and sbsa.rst file. Yuquan Wang (1): hw/arm/sbsa-ref: use XHCI to replace EHCI docs/system/arm/sbsa.rst | 2 +- hw/arm/Kconfig | 2 +- hw/arm/sbsa-ref.c| 21

[PATCH v4 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-06 Thread Yuquan Wang
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this uses system bus XHCI to provide a usb controller with 64-bit DMA capablity instead of EHCI. Signed-off-by: Yuquan Wang --- docs/system/arm/sbsa.rst

Re: [PATCH v3 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-05 Thread Yuquan Wang
Hi, Marcin On Mon, 5 Jun 2023 11:59:16 +0200, Marcin Juszkiewicz wrote: > > W dniu 5.06.2023 o 11:55, Yuquan Wang pisze: > > The current sbsa-ref cannot use EHCI controller which is only > > able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. > > Hence

[PATCH v3 0/1] use XHCI to replace EHCI

2023-06-05 Thread Yuquan Wang
Please review the change. - sbsa-ref: Replace EHCI with XHCI on sysbus. Yuquan Wang (1): hw/arm/sbsa-ref: use XHCI to replace EHCI hw/arm/sbsa-ref.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) -- 2.34.1

[PATCH v3 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-05 Thread Yuquan Wang
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this uses XHCI to provide a usb controller with 64-bit DMA capablity instead of EHCI. Signed-off-by: Yuquan Wang --- hw/arm/sbsa-ref.c

Re: [PATCH 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-01 Thread Yuquan Wang
Hi, Leif On Thu, 1 Jun 2023 18:59:56 +0100, Leif Lindholm wrote: > > +Ard > > On Thu, Jun 01, 2023 at 16:01:43 +0100, Peter Maydell wrote: > > > >> Also has EHCI never worked, or has it worked in some modes and so this > > > >> change should be versioned? > > > > > > > > AIUI, EHCI has never wor

[PATCH v2 0/1] hw/arm/sbsa-ref: add XHCI controller on PCIe

2023-05-31 Thread Yuquan Wang
Please review the change. - sbsa-ref: Add an XHCI on PCIe bus to provide an availiable usb controller. Yuquan Wang (1): hw/arm/sbsa-ref: add XHCI controller on PCIe hw/arm/sbsa-ref.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.34.1

[PATCH v2 1/1] hw/arm/sbsa-ref: add XHCI controller on PCIe

2023-05-31 Thread Yuquan Wang
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this add an XHCI on PCIe to provide a usb controller with 64-bit DMA capablity. Signed-off-by: Yuquan Wang --- hw/arm/sbsa-ref.c | 2 ++ 1 file chang

[PATCH v1 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-05-31 Thread Yuquan Wang
The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this uses XHCI to provide a usb controller with 64-bit DMA capablity instead of EHCI. Signed-off-by: Yuquan Wang Chan

[PATCH v1 0/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-05-31 Thread Yuquan Wang
Please review the change. - Replace EHCI with XHCI on sbsa-ref board. v1 patchset has fixed my commit rebase problem in the last version. Yuquan Wang (1): hw/arm/sbsa-ref: use XHCI to replace EHCI hw/arm/sbsa-ref.c | 16 1 file changed, 8 insertions(+), 8 deletions