hw/riscv/virt.c: aplic/imsic DT fixes
Status from this message: Applied to riscv-to-apply.next
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 10 repliesApplied
- v11 patch 4 repliesSuperseded
Changes in v2 from the cover letter
- added patches 2 to 7 to fix the dt-validate warnings on imsics and
aplic notes
- v1 link: https://lore.kernel.org/qemu-riscv/[email protected]/
[1] https://lore.kernel.org/qemu-riscv/[email protected]/
[2] https://lore.kernel.org/all/20240529-rust-tile-a05517a6260f@spud/
[3] https://lore.kernel.org/qemu-riscv/20240530-landed-shriek-9362981afade@spud/
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | hw/riscv/virt.c: add address-cells in create_fdt_one_aplic()hw/ include/ | +3 | 1 reply | |
| 2/8 | hw/riscv/virt.c: add aplic nodename helperhw/ | +8 | 1 reply | |
| 3/8 | hw/riscv/virt.c: rename aplic nodename to 'interrupt-controller'hw/ | +1 | 1 reply | |
| 4/8 | hw/riscv/virt.c: aplic DT: add 'qemu, aplic' to 'compatible'hw/ | +6 | 1 reply | |
| 5/8 | hw/riscv/virt.c: aplic DT: rename prop to 'riscv, delegation'hw/ | +1 | 1 reply | |
| 6/8 | hw/riscv/virt.c: change imsic nodename to 'interrupt-controller'hw/ | +2 | 1 reply | |
| 7/8 | hw/riscv/virt.c: imsics DT: add 'qemu, imsics' to 'compatible'hw/ | +7 | 1 reply | |
| 8/8 | hw/riscv/virt.c: imsics DT: add '#msi-cells'hw/ | +1 | 1 reply |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Alistair Francis |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | R-b |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/8] hw/riscv/virt.c: aplic/imsic DT fixes
Hi,
This is a series that is being spun from the reviews given on patch 1 [1]. We'll fix some DT validation issues we have in the 'virt' machine
[2] that aren't related to missing extensions in the DT spec.
I'll leave to maintainers to squash the patches as they see fit. I split it this way to make it easier to bissect possible bugs that these individual changes can cause.
These are the types of DT warnings solved by this series:
/home/danielhb/work/qemu/riscv64_virt.dtb: aplic@d000000: $nodename:0: 'aplic@d000000' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: aplic@d000000: compatible:0: 'riscv,aplic' is not one of ['qemu,aplic']
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: aplic@d000000: compatible: ['riscv,aplic'] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: aplic@d000000: Unevaluated properties are not allowed ('compatible' was unexpected)
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml#
(...)/home/danielhb/work/qemu/riscv64_virt.dtb: imsics@28000000: $nodename:0: 'imsics@28000000' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: imsics@28000000: compatible:0: 'riscv,imsics' is not one of ['qemu,imsics']
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: imsics@28000000: compatible: ['riscv,imsics'] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: imsics@28000000: '#msi-cells' is a required property
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml#/home/danielhb/work/qemu/riscv64_virt.dtb: imsics@28000000: Unevaluated properties are not allowed ('compatible' was unexpected)
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml#
[3] explains how to run 'dt-validate' to reproduce them. To generate a 'processed schema' file what I did was:
- in the Linux kernel tree, run 'make dt_binding_check'. Please note that this might require installation of additional python stuff (e.g.swig, python3-devel)
- I used the generated file 'Documentation/devicetree/bindings/processed-schema.json' as a 'processed schema'.
Series applicable on both master and alistair/riscv-to-apply.next.
Changes from v1:
- added patches 2 to 7 to fix the dt-validate warnings on imsics and
aplic notes
- v1 link: https://lore.kernel.org/qemu-riscv/[email protected]/
[1] https://lore.kernel.org/qemu-riscv/[email protected]/
[2] https://lore.kernel.org/all/20240529-rust-tile-a05517a6260f@spud/
[3] https://lore.kernel.org/qemu-riscv/20240530-landed-shriek-9362981afade@spud/
Daniel Henrique Barboza (8):
hw/riscv/virt.c: add address-cells in create_fdt_one_aplic() hw/riscv/virt.c: add aplic nodename helper hw/riscv/virt.c: rename aplic nodename to 'interrupt-controller' hw/riscv/virt.c: aplic DT: add 'qemu,aplic' to 'compatible' hw/riscv/virt.c: aplic DT: rename prop to 'riscv,delegation' hw/riscv/virt.c: change imsic nodename to 'interrupt-controller' hw/riscv/virt.c: imsics DT: add 'qemu,imsics' to 'compatible' hw/riscv/virt.c: imsics DT: add '#msi-cells'
hw/riscv/virt.c | 36 +++++++++++++++++++++++++++--------- include/hw/riscv/virt.h | 1 + 2 files changed, 28 insertions(+), 9 deletions(-)
Signature · 1 line
2.45.1