Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP1940492: the graphics/2_valid_opengl_renderer_AMD-GPU test failed #85

Closed
beliaev-maksim opened this issue Nov 28, 2022 · 2 comments
Closed
Labels

Comments

@beliaev-maksim
Copy link
Member

This issue was migrated from https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1940492

Summary

Status Created on Heat Importance Security related
New 2021-08-19 03:07:49 6 High False

Description

[Summary]
This test case would try to validate OpenGL renderer is AMD GPU with DRI_RPIME=1 argument.
But in desktop platform, we would connect a monitor to AMD GPU before power on the system.
At this moment the primary GPU provider is AMD GPU, that means the default renderer is AMD GPU, and the OpenGL renderer is Intel GPU with DRI_PRIME=1.

--------------[ Running job 2 / 2. Estimated time left: unknown ]---------------
------------[ Check the OpenGL renderer (AMD GPU and DRI_PRIME=1) ]-------------
ID: com.canonical.certification::graphics/2_valid_opengl_renderer_Navi_10__Radeon_Pro_W5700_
Category: com.canonical.plainbox::graphics
... 8< -------------------------------------------------------------------------
OpenGL renderer string: Mesa Intel(R) Graphics (RKL GT1)
ERROR: renderer is Intel when DRI_PRIME=1

[Steps to reproduce]

  1. Connect a monitor to AMD GPU.
  2. Power on system and boot into OS.
  3. Install checkbox and provider
  4. Run valid_opengl_renderer with below command.
    Cmd> checkbox-cli run com.canonical.certification::graphics_card com.canonical.certification::graphics/2_valid_opengl_renderer_Navi_10__Radeon_Pro_W5700_

[Expected result]
The valid_opengl_renderer test passed

[Actual result]
The valid_opengl_renderer test failed

[Failure rate]
10/10

[Additional information]
CID: 202010-28295
SKU: RDT-RKL-DVT2.1-C1
Image: canonical-oem-somerville-focal-amd64-20200502-85+fossa-proposed-release+X124
bios-version: 1.2.0
GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4c8a] (rev 04)
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:7312]
kernel-version: 5.10.0-1043-oem

[Stage]
Issue reported and logs collected right after it happened

Attachments

checkbox-session.tgz
snap_list.log
acpidump.log
sosreport-u-Precision-3650-Tower-2021-08-18-diwskum.tar.gz
display_logs.tar

Tags:
['cbox-13', 'hwe-graphics', 'ihv-amd']

@beliaev-maksim
Copy link
Member Author

This thread was migrated from launchpad.net

https://launchpad.net/~stanley31 wrote on 2021-08-19 03:08:15:

Automatically attached

https://launchpad.net/~stanley31 wrote on 2021-08-19 03:08:16:

Automatically attached

https://launchpad.net/~stanley31 wrote on 2021-08-19 03:08:20:

Automatically attached

https://launchpad.net/~stanley31 wrote on 2021-08-19 03:08:23:

Automatically attached

https://launchpad.net/~stanley31 wrote on 2021-08-19 03:09:51:

It would be better we could check which GPU is primary.

https://launchpad.net/~stanley31 wrote on 2021-09-09 10:00:37:

I have collected the response via glxinfo and xrandr on a Desktop (has both iGPU and dGPU) in different scenario.

Connect a monitor only to iGPU port.

  1. Connect a monitor to onboard DP port.
  2. Power on the system and boot into OS.
  3. Open a terminal and launch following commands.
  • glxinfo -B > dp_in_intel/glxinfo.log
  • DRI_PRIME=1 glxinfo -B > dp_in_intel/glxinfo_with_dri_prime1.log
  • xrandr --listproviders > dp_in_intel/xrandr_listproviders.log

Connect a monitor only to AMD dGPU port.

  1. Connect a monitor to AMD DP port.
  2. Power on the system and boot into OS.
  3. Open a terminal and launch following commands.
  • glxinfo -B > dp_in_amd/glxinfo.log
  • DRI_PRIME=1 glxinfo -B > dp_in_amd/glxinfo_with_dri_prime1.log
  • xrandr --listproviders > dp_in_amd/xrandr_listproviders.log

Connect two monitor to Both Intel iGPU and AMD dGPU port.

  1. Connect a monitor to AMD DP port.
  2. Connect a monitor to onboard DP port.
  3. Power on the system and boot into OS.
  4. Open a terminal and launch following commands.
  • glxinfo -B > dp_in_both/glxinfo.log
  • DRI_PRIME=1 glxinfo -B > dp_in_both/glxinfo_with_dri_prime1.log
  • xrandr --listproviders > dp_in_both/xrandr_listproviders.log

@yphus
Copy link
Contributor

yphus commented Jun 7, 2023

Reworking graphic cards test is now tracked here

@yphus yphus closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants