[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 31/42] hw/pci-host/gpex-acpi: Add support for dsdt constru
|
From: |
Alex Bennée |
|
Subject: |
Re: [PATCH v4 31/42] hw/pci-host/gpex-acpi: Add support for dsdt construction for pxb-cxl |
|
Date: |
Wed, 26 Jan 2022 12:24:02 +0000 |
|
User-agent: |
mu4e 1.7.6; emacs 28.0.91 |
Jonathan Cameron <Jonathan.Cameron@huawei.com> writes:
> On Tue, 25 Jan 2022 17:15:58 +0000
> Alex Bennée <alex.bennee@linaro.org> wrote:
>
>> Jonathan Cameron <Jonathan.Cameron@huawei.com> writes:
>>
>> > This adds code to instantiate the slightly extended ACPI root port
>> > description in DSDT as per the CXL 2.0 specification.
>> >
>> > Basically a cut and paste job from the i386/pc code.
>>
>> This fails to build on all machines:
>>
>> FAILED: qemu-system-mips64el
>> c++ -m64 -mcx16 -o qemu-system-mips64el
<snip>
>> /usr/lib/x86_64-linux-gnu/libssh.so -lstdc++ -Wl,--end-group
>> /usr/bin/ld: /lib/x86_64-linux-gnu/libtirpc.so.3: warning: common of
>> `rpc_createerr@@GLIBC_2.2.5' overridden by definition from
>> /lib/x86_64-linux-gnu/libc.so.6
>> /usr/bin/ld: libcommon.fa.p/hw_pci-host_gpex-acpi.c.o: in function
>> `acpi_dsdt_add_gpex':
>> /home/alex/lsrc/qemu.git/builds/all/../../hw/pci-host/gpex-acpi.c:191:
>> undefined reference to `build_cxl_osc_method'
>> collect2: error: ld returned 1 exit status
>> [1600/2203] Linking target qemu-system-or1k
<snip>
>> > @@ -175,7 +187,11 @@ void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig
>> > *cfg)
>> > cfg->pio.base, 0, 0, 0);
>> > aml_append(dev, aml_name_decl("_CRS", crs));
>> >
>> > - acpi_dsdt_add_pci_osc(dev);
>> > + if (is_cxl) {
>> > + build_cxl_osc_method(dev);
>>
>> Either we need an #ifdef gate on CONFIG_ACPI_CXL
>
> error: attempt to use poisoned "CONFIG_ACPI_CXL"
Hmm I'm not sure why that happened. We generally poison symbols to stop
making configuration changes objects that are shared between binaries. I
guess softmmu_ss must be shared then. Paolo?
>
>> or possibly a stub
>> implementation (with a g_assert_not_reached()).
> That works.
>
> Turns out I was too lazy thinking riscv was enough to exercise the
> not CXL support case.
>
> Lesson learned - mips64el now in my standard config :)
> I'd not realized there were ACPI supporting MIPS machines...
It's worth making sure your gitlab account is setup to run the CI loop
because it's the first thing I do when I review a series ;-)
https://gitlab.com/stsquad/qemu/-/pipelines/456700583
--
Alex Bennée
[PATCH v4 32/42] pci/pcie_port: Add pci_find_port_by_pn(), Jonathan Cameron, 2022/01/24
[PATCH v4 33/42] CXL/cxl_component: Add cxl_get_hb_cstate(), Jonathan Cameron, 2022/01/24
[PATCH v4 34/42] mem/cxl_type3: Add read and write functions for associated hostmem., Jonathan Cameron, 2022/01/24
[PATCH v4 35/42] cxl/cxl-host: Add memops for CFMWS region., Jonathan Cameron, 2022/01/24
[PATCH v4 36/42] arm/virt: Allow virt/CEDT creation, Jonathan Cameron, 2022/01/24
[PATCH v4 38/42] RFC: softmmu/memory: Add ops to memory_region_ram_init_from_file, Jonathan Cameron, 2022/01/24
[PATCH v4 37/42] hw/arm/virt: Basic CXL enablement on pci_expander_bridge instances pxb-cxl, Jonathan Cameron, 2022/01/24
[PATCH v4 39/42] hw/cxl/component Add a dumb HDM decoder handler, Jonathan Cameron, 2022/01/24
[PATCH v4 40/42] i386/pc: Enable CXL fixed memory windows, Jonathan Cameron, 2022/01/24
[PATCH v4 41/42] qtest/acpi: Add reference CEDT tables., Jonathan Cameron, 2022/01/24