Update GPU pcid driver configs

Keep the shipped device-services image config aligned with the local AMD and Intel GPU pcid definitions after the schema change to [[drivers]].

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-18 07:01:10 +01:00
parent 355c2983ed
commit 29b72fd0c5
3 changed files with 50 additions and 12 deletions
+38
View File
@@ -12,6 +12,44 @@ data = ""
directory = true directory = true
mode = 0o755 mode = 0o755
[[files]]
path = "/lib/pcid.d/intel_gpu.toml"
data = """
# PCID configuration for Intel GPU auto-detection
[[drivers]]
name = "Intel GPU (VGA compatible)"
class = 0x03
vendor = 0x8086
subclass = 0x00
command = ["redox-drm"]
[[drivers]]
name = "Intel GPU (3D controller)"
class = 0x03
vendor = 0x8086
subclass = 0x02
command = ["redox-drm"]
"""
[[files]]
path = "/lib/pcid.d/amd_gpu.toml"
data = """
# PCID configuration for AMD GPU auto-detection
[[drivers]]
name = "AMD GPU (VGA compatible)"
class = 0x03
vendor = 0x1002
subclass = 0x00
command = ["redox-drm"]
[[drivers]]
name = "AMD GPU (3D controller)"
class = 0x03
vendor = 0x1002
subclass = 0x02
command = ["redox-drm"]
"""
[[files]] [[files]]
path = "/usr/lib/init.d/05_firmware-loader.service" path = "/usr/lib/init.d/05_firmware-loader.service"
data = """ data = """
+6 -6
View File
@@ -2,16 +2,16 @@
# When pcid detects an AMD GPU (vendor 0x1002, class 0x03), # When pcid detects an AMD GPU (vendor 0x1002, class 0x03),
# it launches redox-drm with the PCI device location. # it launches redox-drm with the PCI device location.
[[device]] [[drivers]]
vendor = 0x1002 name = "AMD GPU (VGA compatible)"
class = 0x03 class = 0x03
vendor = 0x1002
subclass = 0x00 subclass = 0x00
command = ["redox-drm"] command = ["redox-drm"]
args = ["$BUS", "$DEV", "$FUNC"]
[[device]] [[drivers]]
vendor = 0x1002 name = "AMD GPU (3D controller)"
class = 0x03 class = 0x03
vendor = 0x1002
subclass = 0x02 subclass = 0x02
command = ["redox-drm"] command = ["redox-drm"]
args = ["$BUS", "$DEV", "$FUNC"]
+6 -6
View File
@@ -2,16 +2,16 @@
# When pcid detects an Intel GPU (vendor 0x8086, class 0x03), # When pcid detects an Intel GPU (vendor 0x8086, class 0x03),
# it launches redox-drm with the PCI device location. # it launches redox-drm with the PCI device location.
[[device]] [[drivers]]
vendor = 0x8086 name = "Intel GPU (VGA compatible)"
class = 0x03 class = 0x03
vendor = 0x8086
subclass = 0x00 subclass = 0x00
command = ["redox-drm"] command = ["redox-drm"]
args = ["$BUS", "$DEV", "$FUNC"]
[[device]] [[drivers]]
vendor = 0x8086 name = "Intel GPU (3D controller)"
class = 0x03 class = 0x03
vendor = 0x8086
subclass = 0x02 subclass = 0x02
command = ["redox-drm"] command = ["redox-drm"]
args = ["$BUS", "$DEV", "$FUNC"]