Page MenuHomeFreeBSD

acpi_spmc(4): Constraints: Clearer message on handle retrieve error
ClosedPublic

Authored by olce on May 4 2026, 8:32 PM.
Tags
None
Referenced Files
F160344523: D56808.id177398.diff
Tue, Jun 23, 12:34 PM
F160282543: D56808.id177644.diff
Mon, Jun 22, 10:06 PM
Unknown Object (File)
Thu, Jun 11, 2:19 AM
Unknown Object (File)
Mon, Jun 8, 10:50 AM
Unknown Object (File)
Thu, Jun 4, 12:13 PM
Unknown Object (File)
Wed, Jun 3, 8:26 AM
Unknown Object (File)
Wed, Jun 3, 3:13 AM
Unknown Object (File)
Wed, Jun 3, 12:11 AM
Subscribers

Details

Summary

Currently, the "failed to get handle for ..." log messages on attach are
a bit alarming and no context is provided. Print out that these are
retrieved when trying to match constraints and that such failures are
ignored, which should make administrators worry less.

While here, remove duplicated handle retrieving code in
acpi_spmc_check_constraints() because:

  1. As is, it is dead code: We 'continue' if the handle is NULL, i.e., not already resolved, before trying to resolve it again.
  2. This code is called after device suspension, which might make some objects disappear from the ACPI namespace. In any case, it seems unlikely that, suddenly, new objects would appear.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.May 4 2026, 8:32 PM
This revision is now accepted and ready to land.May 7 2026, 2:36 AM

(Context impact. Nothing really changed.)

This revision now requires review to proceed.May 7 2026, 7:58 PM
This revision is now accepted and ready to land.May 10 2026, 1:11 PM

(Context impact, no real change.)

This revision now requires review to proceed.May 12 2026, 1:31 PM
This revision is now accepted and ready to land.May 12 2026, 2:07 PM