Skip to content

graphics_card: add drm_node field (New)#2341

Open
Saviq wants to merge 1 commit intocanonical:mainfrom
Saviq:add-drm-node
Open

graphics_card: add drm_node field (New)#2341
Saviq wants to merge 1 commit intocanonical:mainfrom
Saviq:add-drm-node

Conversation

@Saviq
Copy link
Collaborator

@Saviq Saviq commented Feb 17, 2026

Description

Adds a drm_node field to the graphics_card resource:

bus: pci                                                                                                                                                                                                                              
category: VIDEO                                                                                                                                                                                                                       
driver: i915                                                                                                                                                                                                                          
drm_node: /dev/dri/card1                                                                                                                                                                                                              gpu_count: 1
index: 1                                                                                                                                                                                                                              path: /devices/pci0000:00/0000:00:02.0
pci_device_name: 0000:00:02.0                                                                                                                                                                                                         prime_gpu_offload: Off
product: Meteor Lake-P [Intel Arc Graphics]                                                                                                                                                                                           product_id: 32085
product_slug: Meteor_Lake_P__Intel_Arc_Graphics_                                                                                                                                                                                      subproduct_id: 9
subvendor_id: 61713                                                                                                                                                                                                                   switch_to_cmd: false
vendor: Intel Corporation                                                                                                                                                                                                             vendor_id: 32902
vendor_slug: Intel_Corporation

Resolved issues

Closes: #2283

Documentation

N/A

Tests

The com.canonical.certification::graphics_card resource has drm_node on my Intel HW above and on a Raspberry Pi:

bus: drm
category: VIDEO
driver: v3d
drm_node: /dev/dri/card0
gpu_count: 2
index: 1
name: dri/card0
path: /devices/platform/axi/1002000000.v3d/drm/card0
prime_gpu_offload: Off
product: drm-platform-1002000000_v3d
product_slug: drm_platform_1002000000_v3d
switch_to_cmd: false
vendor: PCI ID 0x0
vendor_slug: PCI_ID_0x0

bus: drm
category: VIDEO
driver: vc4-drm
drm_node: /dev/dri/card1
gpu_count: 2
index: 2
name: dri/card1
path: /devices/platform/axi/axi:gpu/drm/card1
prime_gpu_offload: Off
product: drm-platform-axi_gpu
product_slug: drm_platform_axi_gpu
switch_to_cmd: false
vendor: PCI ID 0x0
vendor_slug: PCI_ID_0x0

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.30%. Comparing base (c47a234) to head (2a2d61b).

Files with missing lines Patch % Lines
providers/resource/bin/graphics_card_resource.py 25.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2341      +/-   ##
==========================================
- Coverage   55.31%   55.30%   -0.01%     
==========================================
  Files         413      413              
  Lines       44503    44511       +8     
  Branches     8203     8205       +2     
==========================================
+ Hits        24615    24617       +2     
- Misses      19030    19036       +6     
  Partials      858      858              
Flag Coverage Δ
provider-resource 39.65% <25.00%> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Saviq
Copy link
Collaborator Author

Saviq commented Feb 17, 2026

Do we still need to support Py3.5/3.6? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'str' object has no attribute 'get' in udevadm

1 participant