You are not logged in.

#1 2016-05-08 02:38:18

Fandekasp
Member
From: Japan
Registered: 2012-02-12
Posts: 25
Website

[FIXED] XPS 13 2016 Intel Graphics GPU

I've used a XPS 13 9350 for the past 2 months, and did without fancy graphics so far. But I really need to have the GPU working properly to get usable perfs on webgl applications such as labster.

Right now, the experience is very slow, my 4 cpu processors being used at 100%. Since I have an Intel Corporation Skylake integrated Graphics, I'm running intel_gpu_top to monitor the gpu usage, and all I can see is the Graphics Arbiter (GAM) going sometimes up to 4%...
https://i.gyazo.com/fbf36ba8747c659ac60 … dd2ba9.png

htop

  2  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||96.7%]   Load average: 6.05 2.99 2.46 
  3  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||94.7%]   Uptime: 01:13:25
  4  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||97.4%]
  Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||                    3.65G/7.65G]
  Swp[                                                                            0K/8.00G]

  PID CPU% MEM%   TIME+  Command                                                                                                                                                             
 6167 336.  9.0  5:59.38 /opt/google/chrome/chrome --type=gpu-process --channel=6069.0.1689799703 --window-depth=24 --disable-gpu-driver-bug-workarounds --enable-unsafe-es3-apis --disable-b
 6203 87.3  9.0  1:25.51 /opt/google/chrome/chrome --type=gpu-process --channel=6069.0.1689799703 --window-depth=24 --disable-gpu-driver-bug-workarounds --enable-unsafe-es3-apis --disable-b
 6204 84.0  9.0  1:23.94 /opt/google/chrome/chrome --type=gpu-process --channel=6069.0.1689799703 --window-depth=24 --disable-gpu-driver-bug-workarounds --enable-unsafe-es3-apis --disable-b
 6205 80.0  9.0  1:22.70 /opt/google/chrome/chrome --type=gpu-process --channel=6069.0.1689799703 --window-depth=24 --disable-gpu-driver-bug-workarounds --enable-unsafe-es3-apis --disable-b
 6206 78.7  9.0  1:21.90 /opt/google/chrome/chrome --type=gpu-process --channel=6069.0.1689799703 --window-depth=24 --disable-gpu-driver-bug-workarounds --enable-unsafe-es3-apis --disable-b
 2857 18.5  0.5 10:10.11 /usr/lib/xorg-server/Xorg -nolisten tcp :0 vt1 -auth /tmp/serverauth.kvuNcxYdgf
 7003  4.6 12.4  0:40.20 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
10459  4.0  0.0  2:52.82 intel_gpu_top
 6926  3.3  5.8  0:23.90 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
 3086  2.0  0.2  2:17.60 /usr/bin/pulseaudio --daemonize=no
 6069  2.0  4.0  0:15.62 /opt/google/chrome/chrome --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers
 3202  1.3  0.2  1:25.16 /usr/bin/pulseaudio --daemonize=no 
 2904  1.3  0.1  0:51.27 i3bar -t --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.2864
 3035  1.3  0.4  0:25.58 termite -e zsh -is eval '_zsh_tmux_plugin_run'
26935  0.7  0.1  0:18.83 htop
 7006  0.7 12.4  0:00.61 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
 7761  0.7 12.4  0:00.32 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
 6441  0.7  0.9  0:00.72 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
 5577  0.7  0.3  0:15.59 tmux -f /home/dori/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git/plugins/tmux/tmux.extra.conf new-session
 6213  0.7  1.7  0:02.01 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
 7827  0.7  4.0  0:00.24 /opt/google/chrome/chrome --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers        
 6309  0.7  0.9  0:00.45 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
 7013  0.7  2.7  0:05.83 /opt/google/chrome/chrome --type=renderer --enable-unsafe-es3-apis --enable-webgl-draft-extensions --enable-features=IncidentReportingModuleLoadAnalysis<SafeBrowsin
14538  0.7  0.5  0:01.93 /usr/bin/docker daemon -H fd://

intel_gpu_top

       render busy:   0%:                                        render space: 0/16384

                          task  percent busy
                           GAM:   3%: ▋                       vert fetch: 0 (0/sec)
                          GAFS:   0%:                         prim fetch: 0 (0/sec)
                            CS:   0%:                      VS invocations: 0 (0/sec)
                                                           GS invocations: 0 (0/sec)
                                                                GS prims: 0 (0/sec)
                                                           CL invocations: 0 (0/sec)
                                                                CL prims: 0 (0/sec)
                                                           PS invocations: 0 (0/sec)
                                                           PS depth pass: 0 (0/sec)

Since I had to spend some time to get graphics working without too much glitches 2 months ago, here are my confs:

$ uname -a
Linux xps13 4.5.2-1-ARCH #1 SMP PREEMPT Thu Apr 21 18:21:27 CEST 2016 x86_64 GNU/Linux

$ egrep -v '(#|^$)' /etc/mkinitcpio.conf
MODULES="intel_agp i915 nvme"
BINARIES=""
FILES=""
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

$ cat /etc/X11/xorg.conf.d/20-intel.conf         
Section "Device"
	Identifier 	"Intel Graphics"
	Driver		"intel"
        Option 		"AccelMethod" 	"uxa"
	#Option      "AccelMethod"  "glamor"
        #Option      "AccelMethod"  "glamor"
        # Not using because trying i915.enable_rc6=0 kernel boot param
	# https://wiki.archlinux.org/index.php/intel_graphics#Skylake_Support
	Option 		"DRI" 	"false"
	#Option 		"DRI" 	"3"
	Option      "TearFree"    "true"
EndSection

$ cat /boot/loader/entries/arch.conf 
title 		Arch Linux
linux		/vmlinuz-linux
initrd 		/initramfs-linux.img
options 	root=PARTUUID=210ed5e9-502a-4b4d-8591-b8c7283c41a6 rw quiet
#options 	root=PARTUUID=210ed5e9-502a-4b4d-8591-b8c7283c41a6 rw resume=PARTUUID=061a912a-1bed-4d99-8424-c0e057f9eea9

$ cat /etc/modprobe.d/i915.conf 
options i915 enable_rc6=0
#options i915 enable_rc6=1 enable_fbc=1 lvds_downclock=1 semaphores=1

$ for pkg in xf86-video-intel mesa-libgl; do pacman -Qs $pkg; done
local/xf86-video-intel 1:2.99.917+641+ge4ef6e9-1 (xorg-drivers xorg)
    X.org Intel i810/i830/i915/945G/G965+ video drivers
local/mesa-libgl 11.2.1-1
    Mesa 3-D graphics library

$ lsmod | grep i915          
i915                 1146880  3
video                  36864  3 i915,dell_wmi,dell_laptop
button                 16384  1 i915
intel_gtt              20480  1 i915
i2c_algo_bit           16384  1 i915
drm_kms_helper        106496  1 i915
drm                   290816  5 ttm,i915,drm_kms_helper

$ sudo lspci  -v -s  $(lspci | grep VGA | cut -d" " -f 1)
00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 0a) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 0704
        Flags: bus master, fast devsel, latency 0, IRQ 122
        Memory at db000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 90000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [100] Process Address Space ID (PASID)
        Capabilities: [200] Address Translation Service (ATS)
        Capabilities: [300] Page Request Interface (PRI)
        Kernel driver in use: i915
        Kernel modules: i915

It looks like my GPU is never used, and all computation handled by the CPU instead.
Can someone help me fix this issue, so I can use this computer to its full potential ? Or at least get a not-too-slow experience with webgl applications on chrome...

Thanks in advance!

EDIT 1: I've installed the firmware components GuC and DMC from https://01.org/linuxgraphics/intel-linu … -firmwares. But after rebooting, I'm not sure how to verify if these components are working and monitor their performances. gpu still looks unused

Last edited by Fandekasp (2016-05-08 05:18:42)

Offline

#2 2016-05-08 03:49:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [FIXED] XPS 13 2016 Intel Graphics GPU

Read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_code and don't paste pictures of text, paste the actual text.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-05-08 04:09:59

Fandekasp
Member
From: Japan
Registered: 2012-02-12
Posts: 25
Website

Re: [FIXED] XPS 13 2016 Intel Graphics GPU

Sorry about that, fixed. The text didn't really matter, it was just an illustration to the sentence above it (100% cpu usage, 0% gpu usage).


To go back to my problem, here are more information from the result of PowerTop


Idle stats                             

          Package   |             Core    |            CPU 0       CPU 2

                    |             GPU     |
                    |                     |
                    | Powered On100.0%    |
                    | RC6         0.0%    |
                    | RC6p        0.0%    |
                    | RC6pp       0.0%    |
                    |                     |

Device stats

     Usage     Device name
             27.4%        CPU core
             33.9 ops/s   GPU core
             27.4%        CPU misc
             27.4%        DRAM
            100.0%        Audio codec hwC0D2: Intel
            100.0%        Audio codec hwC0D0: Realtek (pulseaudio )
             33.9 ops/s   GPU misc
             54.3%        Display backlight
            100.0%        USB device: BCM2045A0 (Broadcom Corp)
            100.0%        USB device: Touchscreen (ELAN)
            100.0%        USB device: Integrated_Webcam_HD (CKFEH41I451030014652)
            100.0%        USB device: xHCI Host Controller
            100.0%        Radio device: btusb
            100.0%        USB device: xHCI Host Controller
            100.0%        Radio device: brcmfmac
              5.1 pkts/s  Network interface: wlp58s0 (brcmfmac)
              0.0 pkts/s  nic:docker0
              0.0%        PCI Device: Intel Corporation Skylake Host Bridge/DRAM Registers
              0.0%        PCI Device: Intel Corporation Skylake Integrated Graphics

Summary: 901.4 wakeups/second,  96.6 GPU ops/seconds, 0.0 VFS ops/sec and 18.3% CPU use

It confuses it that GPU ops/seconds is reported by powertop when intel_gpu_top doesn't return anything



Also, it seems that my recent installation of GuC and DMC firmwares wasn't successful, will debug:

$ journalctl -b | grep i915
May 08 12:12:37 xps13 kernel: [drm:csr_load_work_fn [i915]] *ERROR* Unknown stepping info, firmware loading failed
May 08 12:12:37 xps13 kernel: [drm:csr_load_work_fn [i915]] *ERROR* Failed to load DMC firmware, disabling rpm
May 08 12:12:37 xps13 kernel: [drm] Initialized i915 1.6.0 20151218 for 0000:00:02.0 on minor 0
May 08 12:12:37 xps13 kernel: i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
May 08 12:12:37 xps13 kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_exit [i915])

Last edited by Fandekasp (2016-05-08 04:29:58)

Offline

#4 2016-05-08 05:18:16

Fandekasp
Member
From: Japan
Registered: 2012-02-12
Posts: 25
Website

Re: [FIXED] XPS 13 2016 Intel Graphics GPU

Well, it looks like I could fix my issue by removing /etc/X11/xorg.conf.d/20-intel.conf and removing the package xf86-video-intel (hence restarting Xorg with modesetting and glamor, which are the default)

Found from https://www.reddit.com/r/archlinux/comm … ideointel/

Offline

Board footer

Powered by FluxBB