Closed Bug 1696691 Opened 4 years ago Closed 2 years ago

If /proc/bus/pci is inaccessible, libpci aborts the process

Categories

(Core :: Graphics, defect, P3)

Desktop
Linux
defect

Tracking

()

VERIFIED FIXED
105 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox103 --- wontfix
firefox104 --- wontfix
firefox105 --- verified

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.

See Also: → 1700601
Blocks: wr-linux
See Also: → 1726510
See Also: 1726510
See Also: → 1732580
See Also: 1732580
Has Regression Range: --- → yes

This failure causes hardware acceleration to be disabled on a laptop with Qualcomm Snapdragon 7c (sc7180). Hardware acceleration in Chromium works fine.

Attachment #9288001 - Attachment description: Bug 1696691 - Check that we can access /sys/bus/pri before loading libpci. → Bug 1696691 - Check that we can access /sys/bus/pci before loading libpci.
Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/44cb37057289 Check that we can access /sys/bus/pci before loading libpci. r=rmader
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch

Can you confirm that it is fixed in nightly?

Flags: needinfo?(leonard)

Can you point me to the aarch64 nightly builds for Linux? I couldn't find any

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.

Attached file about:support.txt
Attached file about-support.txt

It works well. Thank you. Please see the relevant output from about:support below.

Please uplift this fix to 104.

Flags: needinfo?(leonard) → needinfo?(aosmond)
Status: RESOLVED → VERIFIED
Flags: needinfo?(aosmond)

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
Attachment #9288001 - Flags: approval-mozilla-esr102?
Attachment #9288001 - Flags: approval-mozilla-beta?

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.

Attachment #9288001 - Flags: approval-mozilla-esr102?
Attachment #9288001 - Flags: approval-mozilla-beta?

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 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(aosmond)
Flags: needinfo?(aosmond)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: