If /proc/bus/pci is inaccessible, libpci aborts the process
Categories
(Core :: Graphics, defect, P3)
Tracking
()
People
(Reporter: aosmond, Assigned: aosmond)
References
(Blocks 3 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(3 files)
PCI detection is optional and should fail gracefully. This is failing on the PinePhone, probably other ARM targets. We should check to see if /proc/bus/pci is accessible before calling any libpci methods.
Updated•4 years ago
|
Updated•3 years ago
|
Comment 1•2 years ago
|
||
This failure causes hardware acceleration to be disabled on a laptop with Qualcomm Snapdragon 7c (sc7180). Hardware acceleration in Chromium works fine.
Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Chrome has an explicit check for /sys/bus/pci, let's mirror it:
Comment 5•2 years ago
|
||
bugherder |
Assignee | ||
Comment 6•2 years ago
|
||
Can you confirm that it is fixed in nightly?
Comment 7•2 years ago
|
||
Can you point me to the aarch64 nightly builds for Linux? I couldn't find any
Assignee | ||
Comment 8•2 years ago
|
||
Huh, you raise a good point. There does not appear to be one. I manually kicked off a build for mozilla-central:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6ef44ba37573120b0a528dfbe86a8db8cf79f293
It should finish in an hour or so.
Assignee | ||
Comment 9•2 years ago
|
||
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
It works well. Thank you. Please see the relevant output from about:support below.
Please uplift this fix to 104.
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 13•2 years ago
|
||
Comment on attachment 9288001 [details]
Bug 1696691 - Check that we can access /sys/bus/pci before loading libpci.
Beta/Release Uplift Approval Request
- User impact if declined: Hardware acceleration may be denied unnecessarily for ARM users
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It just checks to see if we can access the PCI system paths before attempting to use libpci, which crashes our GL probe process if we cannot. Trivial well understood change.
- String changes made/needed:
- Is Android affected?: Yes
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 14•2 years ago
|
||
Comment on attachment 9288001 [details]
Bug 1696691 - Check that we can access /sys/bus/pci before loading libpci.
Let's ride the trains instead, given issues like bug 1783053.
Comment 15•2 years ago
|
||
The patch landed in nightly and beta is affected.
:aosmond, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox104
towontfix
.
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•