iq-x7181-evk: add x1 el2 DTBO building and FIT DTB mapping#2234
iq-x7181-evk: add x1 el2 DTBO building and FIT DTB mapping#2234Xinzheng Long (xinlon-z) wants to merge 2 commits into
Conversation
dab0278 to
c63d267
Compare
Test Results 103 files + 34 628 suites +272 6h 47m 42s ⏱️ + 3h 31m 32s For more details on these failures, see this check. Results for commit 6e835a4. ± Comparison against base commit 28629bd. ♻️ This comment has been updated with latest results. |
c63d267 to
cf1560f
Compare
Head branch was pushed to by a user without write access
cf1560f to
589e7d8
Compare
|
Do we need this for wrynose? |
589e7d8 to
56c8e5f
Compare
Done, rebased to the latest FIT DTB config format |
56c8e5f to
56b9a3e
Compare
KVM support on IQ-X5121 Evaluation Kit requires applying the el2 DTBO at boot. Add FIT_DTB_COMPATIBLE entries to allow UEFI to correctly match and apply the x1-el2.dtbo(shared the same one with IQ-X7181 #2234 ) overlay when booting with KVM. Generated ITS file overview ``` $ cat build/tmp/deploy/images/iq-x5121-evk/qclinux-fit-image.its /dts-v1/; / { description = "Kernel fitImage for Qualcomm Linux Reference Distro/7.0+git/iq-x5121-evk"; #address-cells = <1>; images { fdt-qcom-metadata.dtb { description = "Flattened Device Tree blob"; type = "qcom_metadata"; compression = "none"; data = /incbin/("/local/mnt/workspace/xinlon/work/purwa-mainline/build/tmp/work/iq_x5121_evk-qcom-linux/linux-qcom-next/7.0+git/build/arch/arm64/boot/dts/qcom/qcom-metadata.dtb"); arch = "arm64"; }; fdt-x1-el2.dtbo { description = "Flattened Device Tree blob"; type = "flat_dt"; compression = "none"; data = /incbin/("/local/mnt/workspace/xinlon/work/purwa-mainline/build/tmp/work/iq_x5121_evk-qcom-linux/linux-qcom-next/7.0+git/build/arch/arm64/boot/dts/qcom/x1-el2.dtbo"); arch = "arm64"; }; fdt-purwa-iot-evk.dtb { description = "Flattened Device Tree blob"; type = "flat_dt"; compression = "none"; data = /incbin/("/local/mnt/workspace/xinlon/work/purwa-mainline/build/tmp/work/iq_x5121_evk-qcom-linux/linux-qcom-next/7.0+git/build/arch/arm64/boot/dts/qcom/purwa-iot-evk.dtb"); arch = "arm64"; }; }; configurations { conf-1 { description = "FDT Blob"; fdt = "fdt-purwa-iot-evk.dtb"; compatible = "qcom,purwa-evk"; }; conf-2 { description = "FDT Blob"; fdt = "fdt-purwa-iot-evk.dtb", "fdt-x1-el2.dtbo"; compatible = "qcom,purwa-evk-el2kvm"; }; }; }; ``` KVM Boot log: ``` root@iq-x5121-evk:~# dmesg | grep kvm [ 0.092851] kvm [1]: nv: 570 coarse grained trap handlers [ 0.092985] kvm [1]: nv: 710 fine grained trap handlers [ 0.093060] kvm [1]: IPA Size Limit: 44 bits [ 0.093071] kvm [1]: GICv4 support disabled [ 0.093072] kvm [1]: GICv3: no GICV resource entry [ 0.093073] kvm [1]: disabling GICv2 emulation [ 0.093088] kvm [1]: GIC system register CPU interface enabled [ 0.093100] kvm [1]: vgic interrupt IRQ9 [ 0.093119] kvm [1]: Broken CNTVOFF_EL2, trapping virtual timer [ 0.093123] kvm [1]: VHE mode initialized successfully root@iq-x5121-evk:~# ls -alh /dev/kvm crw-rw-rw- 1 root kvm 10, 232 Mar 13 15:35 /dev/kvm ``` Pending by issue: #1962
56b9a3e to
3d8b72f
Compare
|
rebased to latest commit |
|
This should be merged after #2082 |
Head branch was pushed to by a user without write access
3d8b72f to
480c7ac
Compare
hi Ricardo Salveti (@ricardosalveti) Dmitry Baryshkov (@lumag) , I noticed that PR #2082 has already been closed. Could this PR be merged first? |
Dmitry Baryshkov (lumag)
left a comment
There was a problem hiding this comment.
We can't switch yet to FIT DTB mapping. The dtb.bin is a part of SPI NOR and it is not being reflashed because of the issue on the LAVA side (the fix is only a part of the unreleased QDL). We are waiting for it to be fixed. Until then, the FIT DTB needs to be disabled for IQ-X7181 EVK.
|
Pls comiple a fresh build and invoke testing |
KVM support on iq-x7181-evk requires the X1 EL2 DTBO. To support this enable EL2 DTB overlay generation on kernel DT list. Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
KVM support on iq-x7181-evk requires the X1 EL2 DTBO. To support this enable EL2 DTB overlay generation on kernel DT list. Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
480c7ac to
6e835a4
Compare
|
releted-PR: #2349 |
KVM support on IQ-X7181 Evaluation Kit requires applying the el2 DTBO at boot. Add FIT_DTB_COMPATIBLE entries to allow UEFI to correctly match and apply the
x1-el2.dtbooverlay when booting with KVM.Generated ITS file overview
Related PR: qualcomm-linux/qcom-dtb-metadata#89
KVM Boot log: