Comment 3 for bug 1908490

Revision history for this message
jeremyszu (os369510) wrote :

@Sylvain,

In this case, the DUT is a desktop.
Which mean the system is not as the laptop to share the memory between iGPU and dGPU.
The DRI_PRIME=1 is still could be given to direct rendering to selected drm but not sure the performance and power consulting whether will better then iGPU because there may not have shared memory and DMA enabled on those buses.

Here are some suggestions:
1. Add a condition to specify this test case only if the DUT is a laptop/AIO. If there is no existing information in current checkbox then could consider to check `/sys/kernel/debug/vgaswitcheroo/switch`[2] is exist or not. To skip related test case if the file not exist there.
2. If you think the desktop is worth to test DRI_PRIME then it needs to consider if attach more than two GPUs case and which GPU is currently displaying.
3. BTW, if the GPUs are more than one[1] then continue but always use DRI_PRIME=1. It looks like the application will always force to render to specific drm. May need to refer $INDEX as well.

[1] https://git.launchpad.net/plainbox-provider-checkbox/tree/bin/graphics_env.sh#n16
[2] https://01.org/linuxgraphics/gfx-docs/drm/gpu/vga-switcheroo.html