qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* PCI Hotplug ACPI device names only 3 characters long
@ 2023-09-05 15:05 Marcello Sylverster Bauer
  2023-09-05 15:09 ` Philippe Mathieu-Daudé
  2023-09-05 16:44 ` Michael S. Tsirkin
  0 siblings, 2 replies; 8+ messages in thread
From: Marcello Sylverster Bauer @ 2023-09-05 15:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst, imammedo, ani, Patrick Rudolph

Greetings,

I'm currently working on a project to support Intel IPU6 in QEMU via 
VFIO so that the guest system can access the camera. This requires 
extending the ACPI device definition so that the guest knows how to 
access the camera.

However, I cannot extend the PCI devices because their names are not 4 
characters long and therefore do not follow the ACPI specification.

When I use '-acpitable' to include my own SSDT for the IPU6 PCI device, 
it does not allow me to declare the device as an External Object because 
it automatically adds padding underscores.

e.g.
Before:
```
External(_SB.PCI0.S18.SA0, DeviceObj)
```
After:
```
External(_SB.PCI0.S18_.SA0_, DeviceObj)
```

Adding the underscore padding is hard coded in iASL and also in QEMU 
when parsing an ASL file. (see: build_append_nameseg())

So here are my questions:
1. Is there a solution to extend the ACPI PCI device using '-acpitable' 
without having to patch iASL or QEMU?
2. Are there any plans to change the names to comply with the ACPI spec? 
(e.g. use "S%.03X" format string instead)

Thanks
Marcello


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-06 10:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05 15:05 PCI Hotplug ACPI device names only 3 characters long Marcello Sylverster Bauer
2023-09-05 15:09 ` Philippe Mathieu-Daudé
2023-09-05 15:21   ` Marcello Sylverster Bauer
2023-09-05 16:44 ` Michael S. Tsirkin
2023-09-05 17:45   ` Marcello Sylverster Bauer
2023-09-05 20:43     ` Michael S. Tsirkin
2023-09-06  8:19       ` Igor Mammedov
2023-09-06 10:45         ` Marcello Sylverster Bauer

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).