[Bug 266259] www/firefox 104: high CPU usage

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 30 Oct 2022 22:18:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266259

--- Comment #9 from Riccardo Torrini <riccardo@torrini.org> ---
Used some hints from here:
https://wiki.archlinux.org/title/intel_graphics#DRI3_issues

This is my current xorg.conf (very minimalistic):
Section "Device"
        Identifier  "Device0"
        Driver      "intel"
EndSection

Added some options:
- "dri" "3"
- "AccelMethod" "sna"
- "TearFree" "true"
- "TripleBuffer" "true"
but no differences.

Changed driver from "intel" to "modesetting":
[  4874.032] (II) Initializing extension DRI2
[  5857.446] (II) Initializing extension DRI3
[  5857.448] (II) AIGLX: Screen 0 is not DRI2 capable
running /usr/local/bin/xscreensaver-hacks/glhanoi fullscreen I got ~30 fps

Back to intel:
[  6117.810] (II) intel(0): [DRI2] Setup complete
[  6117.810] (II) intel(0): [DRI2]   DRI driver: iris
[  6117.810] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[  6117.810] (II) intel(0): DRI2: Enabled
[  6117.810] (II) intel(0): DRI3: Disabled
[  6117.849] (II) Initializing extension DRI3
[  6117.882] (II) GLX: Initialized DRI2 GL provider for screen 0
[  6117.882] (II) Initializing extension DRI2
running /usr/local/bin/xscreensaver-hacks/glhanoi fullscreen I got ~54 fps

I also noticed a random screen freeze (several seconds) not only using Firefox
but also changing focus on xterm (or typing this message)

From dmesg.boot:
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] Unable to create a private tmpfs mount, hugepage support will be
disabled(-19).
[drm] Got stolen memory base 0xc4000000, size 0x4000000
drmn0: successfully loaded firmware image 'i915/kbl_dmc_ver1_04.bin'
drmn0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] Initialized i915 1.6.0 20200917 for drmn0 on minor 0

Grafana still not working on firefox (on any test)

What should be the "right" X.org configuration for an i5-7600 (KabyLake)?
I'm not sure that all problems are from firefox, maybe some drm issue.
I'm really out of ideas for more test :-(

-- 
You are receiving this mail because:
You are the assignee for the bug.