All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
@ 2018-08-07 13:37 bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:37 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1367 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

            Bug ID: 107516
           Summary: Firefox for WebGL fallbacks to swrast_dri.so, not
                    using radeon_si.so
           Product: DRI
           Version: DRI git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: bugs.freedesktop.org@pm.port0.org

With recent build of libdrm (2.4.93) Mozilla Firefox cannot use accelerated
WebGL, use software emulation instead.

HW. AMD RX560 and AMD WX2100 (RX550).

SW. Ubuntu 16.04 with kernels 4.17.X and 4.18.rc from
http://kernel.ubuntu.com/~kernel-ppa/mainline/, plus Oibaf's PPA builds of drm,
mesa, etc. https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

Symptoms. Firefox works OK, but on site with WebGL it works very slow - due to
fallback to software GL rendering.

Note. about:support page in Firefox DOES show correct driver info:
WebGL 1 Driver Renderer X.Org -- AMD Radeon Pro WX2100 (POLARIS12, DRM 3.26.0,
4.18.0-041800rc6-generic, LLVM 6.0.1)

But, on WebGL site (ex. windy.com), swrast_dri.so get loaded and eats all CPU
cores.

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

[-- Attachment #1.2: Type: text/html, Size: 2799 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
@ 2018-08-07 13:41 ` bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 660 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #1 from Mike <bugs.freedesktop.org@pm.port0.org> ---
Possibly related to bugs 107384 and/or 98629.

If firefox start with LIBGL_DEBUG=verbose parameter, it shows:
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: amdgpu_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: amdgpu

I.e. it cannot retrieve device info (and name of driver as "radeonsi"), trying
to load non-existant amdgpu_dri.so, then fallbacks to swrast_dri.so

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

[-- Attachment #1.2: Type: text/html, Size: 1497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
@ 2018-08-07 13:41 ` bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 473 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

Mike <bugs.freedesktop.org@pm.port0.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=107384

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

[-- Attachment #1.2: Type: text/html, Size: 1157 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
  2018-08-07 13:41 ` bugzilla-daemon
@ 2018-08-07 13:41 ` bugzilla-daemon
  2018-08-07 13:44 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 472 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

Mike <bugs.freedesktop.org@pm.port0.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=98629

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

[-- Attachment #1.2: Type: text/html, Size: 1156 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-08-07 13:41 ` bugzilla-daemon
@ 2018-08-07 13:44 ` bugzilla-daemon
  2018-08-07 13:49 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 332 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #2 from Mike <bugs.freedesktop.org@pm.port0.org> ---
One more thing. This bug might be firefox-specific, because other OpenGL apps,
say, glxgears, use correct driver and get HW accel.

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

[-- Attachment #1.2: Type: text/html, Size: 1159 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-08-07 13:44 ` bugzilla-daemon
@ 2018-08-07 13:49 ` bugzilla-daemon
  2018-08-07 13:58 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:49 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 345 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #3 from Emil Velikov <emil.l.velikov@gmail.com> ---
The FF sandboxing is fairly, ahem, strange. The following Mozilla bug addresses
that.

https://bugzilla.mozilla.org/show_bug.cgi?id=1480755#c1

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

[-- Attachment #1.2: Type: text/html, Size: 1241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-08-07 13:49 ` bugzilla-daemon
@ 2018-08-07 13:58 ` bugzilla-daemon
  2018-08-07 13:59 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:58 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 473 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #4 from Mike <bugs.freedesktop.org@pm.port0.org> ---
(In reply to Emil Velikov from comment #3)
> https://bugzilla.mozilla.org/show_bug.cgi?id=1480755#c1

Indeed, this is Firefox's problem.

Аlthough security.sandbox.content.read_path_whitelist trick didn't work for me,
I think this bug should be resolved as INVALID.

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

[-- Attachment #1.2: Type: text/html, Size: 1441 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-08-07 13:58 ` bugzilla-daemon
@ 2018-08-07 13:59 ` bugzilla-daemon
  2018-08-07 14:24 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 13:59 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 439 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

Mike <bugs.freedesktop.org@pm.port0.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

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

[-- Attachment #1.2: Type: text/html, Size: 1295 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-08-07 13:59 ` bugzilla-daemon
@ 2018-08-07 14:24 ` bugzilla-daemon
  2018-08-22 17:03 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-07 14:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 371 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #5 from Mike <bugs.freedesktop.org@pm.port0.org> ---
PS. security.sandbox.content.read_path_whitelist works.
Need to add /sys/ (with trailing slash, as
https://wiki.mozilla.org/Security/Sandbox says), and restart Firefox.

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

[-- Attachment #1.2: Type: text/html, Size: 1314 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (7 preceding siblings ...)
  2018-08-07 14:24 ` bugzilla-daemon
@ 2018-08-22 17:03 ` bugzilla-daemon
  2018-08-22 17:06 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-22 17:03 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 519 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kai@dev.carbon-project.org

--- Comment #6 from Michel Dänzer <michel@daenzer.net> ---
*** Bug 107660 has been marked as a duplicate of this bug. ***

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

[-- Attachment #1.2: Type: text/html, Size: 2200 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (8 preceding siblings ...)
  2018-08-22 17:03 ` bugzilla-daemon
@ 2018-08-22 17:06 ` bugzilla-daemon
  2018-08-22 17:07 ` bugzilla-daemon
  2018-09-03  9:35 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-22 17:06 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
Emil, as it might take a while for users to get the related Firefox sandbox
change, would it be possible for libdrm to fall back to the same method that
worked before?

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

[-- Attachment #1.2: Type: text/html, Size: 1247 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (9 preceding siblings ...)
  2018-08-22 17:06 ` bugzilla-daemon
@ 2018-08-22 17:07 ` bugzilla-daemon
  2018-09-03  9:35 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-08-22 17:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 372 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DRM/AMDgpu                  |libdrm

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

[-- Attachment #1.2: Type: text/html, Size: 1120 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so
  2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
                   ` (10 preceding siblings ...)
  2018-08-22 17:07 ` bugzilla-daemon
@ 2018-09-03  9:35 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-09-03  9:35 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1241 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=107516

--- Comment #8 from Gian-Carlo Pascutto <gcp@sjeng.org> ---
To clarify the underlying cause of this:

>Earlier commit reworked our sysfs handling to use realpath.
>Sadly that backfired since the Firefox sandboxing mechanism rejects
>that. Despite the files/folders being in the allowed list, of the
>sandboxing mechanism.

The problem is that the underlying implementation of realpath() in libc will
issue lstat calls on each of the path components. In Mesa's case, this will
cause it to try to stat /sys, which is not on the list of allowed paths. This
in turn causes the realpath() call to fail. If this failure isn't handled
things broke.

Firefox 62 and later will now specifically allow the stat call (only).

>Oddly enough, the Chromium sandboxing doesn't complain about any of
>this.

I'm not sure how much of Chromium's GPU sandbox is enabled by default (on
non-Chromebooks), but they literally just did the same fix as we did a few days
ago:
https://chromium.googlesource.com/chromium/src/+/8655d49f657d3878c937f1387b3d31fa66c8e76a%5E%21/content/gpu/gpu_sandbox_hook_linux.cc

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

[-- Attachment #1.2: Type: text/html, Size: 2345 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-09-03  9:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-07 13:37 [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using radeon_si.so bugzilla-daemon
2018-08-07 13:41 ` bugzilla-daemon
2018-08-07 13:41 ` bugzilla-daemon
2018-08-07 13:41 ` bugzilla-daemon
2018-08-07 13:44 ` bugzilla-daemon
2018-08-07 13:49 ` bugzilla-daemon
2018-08-07 13:58 ` bugzilla-daemon
2018-08-07 13:59 ` bugzilla-daemon
2018-08-07 14:24 ` bugzilla-daemon
2018-08-22 17:03 ` bugzilla-daemon
2018-08-22 17:06 ` bugzilla-daemon
2018-08-22 17:07 ` bugzilla-daemon
2018-09-03  9:35 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.