Comment 8 for bug 1343089

Revision history for this message
Pierre Equoy (pieq) wrote :

I was discussing with Po-Hsu today because we've been experimenting this when certifying devices with dual GPUs. Below is an example using a laptop with Intel+AMD GPUs.

First of all, in the "About This Computer" window, I can see "Graphics Intel® Broadwell" or "Graphics AMD Radeon R7 M265 Series" depending on what GPU has been activated.

lspci gives me a different yet similar output:

$ lspci -nn | grep '\[03'
00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09)
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265] [1002:6604] (rev ff)

But when using plainbox, I cannot see the graphic card names:

$ plainbox run -i "2013.com.canonical.certification::graphics_card_resource" --dont-suppress-output
WARNING plainbox.runner: execution_ctrl_list not passed to JobRunner
===============================[ Analyzing Jobs ]===============================
=============================[ Session Statistics ]=============================
This session is about 0.00% complete
Estimated duration cannot be determined for automated jobs.
Estimated duration cannot be determined for manual jobs.
Size of the desired job list: 1
Size of the effective execution plan: 1
===========================[ Running Selected Jobs ]============================
---------------------------[ graphics_card_resource ]---------------------------
ID: 2013.com.canonical.certification::graphics_card_resource
Category: 2013.com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
bus: pci
category: VIDEO
driver: i915
index: 1
path: /devices/pci0000:00/0000:00:02.0
product: PCI ID 0x1616
product_id: 5654
subproduct_id: 8726
subvendor_id: 4156
vendor: Intel Corporation
vendor_id: 32902

bus: pci
category: VIDEO
driver: pcieport
index: 2
path: /devices/pci0000:00/0000:00:1c.4/0000:04:00.0
product: PCI ID 0x6604
product_id: 26116
subproduct_id: 32774
subvendor_id: 4156
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
vendor_id: 4098

The output is the same even after updating the PCI IDs with 'sudo update-pciids'.

This results in tests looking like:

- Color depth tests
     Test color depth info for PCI ID 0x1616
     Test color depth info for PCI ID 0x6604
- Compiz support tests
     Test Compiz support for PCI ID 0x1616
     Test Compiz support for PCI ID 0x6604
- Default resolution tests
     Test default resolution for PCI ID 0x1616
     Test default resolution for PCI ID 0x6604
- Default resolution tests
     Test default resolution for PCI ID 0x1616
     Test default resolution for PCI ID 0x6604

That's especially confusing when we have to switch between GPUs! :)
(and yes, I didn't know about the 'lspci -nn | grep '\[03'' command until this morning ;))

Could Checkbox/Plainbox use another method to guess the GPU names? The one used by the "About this computer" window seems to work pretty well (I've never seen it fail although I've tested quite a few devices already).

Thanks!