Bug 213039 - ACPI ERROR: No Handler for Region on HP 250 G5 Notebook PC (W4M67EA)
Summary: ACPI ERROR: No Handler for Region on HP 250 G5 Notebook PC (W4M67EA)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: Vladimir Kondratyev
URL:
Keywords:
Depends on: 207419
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-28 08:58 UTC by Ozgur Konstantin Kazancci
Modified: 2019-03-27 19:38 UTC (History)
3 users (show)

See Also:


Attachments
Screenshots of ACPI kernel error messages (573.52 KB, image/jpeg)
2016-09-28 08:58 UTC, Ozgur Konstantin Kazancci
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ozgur Konstantin Kazancci 2016-09-28 08:58:22 UTC
Created attachment 175220 [details]
Screenshots of ACPI kernel error messages

I get the kernel ACPI errors attached in screenshots. 
The laptop is: HP 250 G5 Notebook PC (W4M67EA)
OS: FreeBSD 10.3-RELEASE
Comment 1 Ozgur Konstantin Kazancci 2016-09-28 09:06:25 UTC
The error messages show randomly in the console. 
It's a FreeBSD 10.3-RELEASE default installation, nothing was modified.
Comment 2 Anthony Jenkins 2016-09-29 01:07:28 UTC
I have a fix for the missing CMOS handler - try applying this patch to FreeBSD-11 or higher.

https://github.com/ScoobiFreeBSD/freebsd/commit/5f9f91e144116d17a6ee0267890747f0fcee272f.patch
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-03-10 20:20:45 UTC
A commit references this bug:

Author: wulf
Date: Sun Mar 10 20:19:44 UTC 2019
New revision: 344982
URL: https://svnweb.freebsd.org/changeset/base/344982

Log:
  atrtc(4): install ACPI RTC/CMOS operation region handler

  FreeBSD base system does not provide an ACPI handler for the PC/AT RTC/CMOS
  device with PnP ID PNP0B00; on some HP laptops, the absence of this handler
  causes suspend/resume and poweroff(8) to hang or fail [1], [2]. On these
  laptops EC _REG method queries the RTC date/time registers via ACPI
  before suspending/powering off. The handler should be registered before
  acpi_ec driver is loaded.

  This change adds handler to access CMOS RTC operation region described in
  section 9.15 of ACPI-6.2 specification [3]. It is installed only for ACPI
  version of atrtc(4) so it should not affect old ACPI-less i386 systems.

  It is possible to disable the handler with loader tunable:
  debug.acpi.disabled=atrtc

  Informational debugging printf can be enabled by setting hw.acpi.verbose=1
  in loader.conf

  [1] https://wiki.freebsd.org/Laptops/HP_Envy_6Z-1100
  [2] https://wiki.freebsd.org/Laptops/HP_Notebook_15-af104ur
  [3] https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf

  PR:		207419, 213039
  Submitted by:	Anthony Jenkins <Scoobi_doo@yahoo.com>
  Reviewed by:	ian
  Discussed on:	acpi@, 2013-2015, several threads
  MFC after:	2 weeks
  Differential Revision:	https://reviews.freebsd.org/D19314

Changes:
  head/sys/x86/isa/atrtc.c
Comment 4 Vladimir Kondratyev freebsd_committer freebsd_triage 2019-03-13 09:50:03 UTC
Hello Ozgur,

Could you test a change referenced in "Comment 3"?
Comment 5 commit-hook freebsd_committer freebsd_triage 2019-03-27 19:16:41 UTC
A commit references this bug:

Author: wulf
Date: Wed Mar 27 19:16:04 UTC 2019
New revision: 345589
URL: https://svnweb.freebsd.org/changeset/base/345589

Log:
  MFC: r344982, r345022

  atrtc(4): install ACPI RTC/CMOS operation region handler

  FreeBSD base system does not provide an ACPI handler for the PC/AT RTC/CMOS
  device with PnP ID PNP0B00; on some HP laptops, the absence of this handler
  causes suspend/resume and poweroff(8) to hang or fail [1], [2]. On these
  laptops EC _REG method queries the RTC date/time registers via ACPI
  before suspending/powering off. The handler should be registered before
  acpi_ec driver is loaded.

  This change adds handler to access CMOS RTC operation region described in
  section 9.15 of ACPI-6.2 specification [3]. It is installed only for ACPI
  version of atrtc(4) so it should not affect old ACPI-less i386 systems.

  It is possible to disable the handler with loader tunable:
  debug.acpi.disabled=atrtc

  Informational debugging printf can be enabled by setting hw.acpi.verbose=1
  in loader.conf

  [1] https://wiki.freebsd.org/Laptops/HP_Envy_6Z-1100
  [2] https://wiki.freebsd.org/Laptops/HP_Notebook_15-af104ur
  [3] https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf

  PR:		207419, 213039
  Submitted by:	Anthony Jenkins <Scoobi_doo@yahoo.com>
  Reviewed by:	ian
  Discussed on:	acpi@, 2013-2015, several threads
  Differential Revision:	https://reviews.freebsd.org/D19314

Changes:
_U  stable/12/
  stable/12/sys/x86/isa/atrtc.c
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-03-27 19:18:47 UTC
A commit references this bug:

Author: wulf
Date: Wed Mar 27 19:17:43 UTC 2019
New revision: 345590
URL: https://svnweb.freebsd.org/changeset/base/345590

Log:
  MFC: r344982, r345022

  atrtc(4): install ACPI RTC/CMOS operation region handler

  FreeBSD base system does not provide an ACPI handler for the PC/AT RTC/CMOS
  device with PnP ID PNP0B00; on some HP laptops, the absence of this handler
  causes suspend/resume and poweroff(8) to hang or fail [1], [2]. On these
  laptops EC _REG method queries the RTC date/time registers via ACPI
  before suspending/powering off. The handler should be registered before
  acpi_ec driver is loaded.

  This change adds handler to access CMOS RTC operation region described in
  section 9.15 of ACPI-6.2 specification [3]. It is installed only for ACPI
  version of atrtc(4) so it should not affect old ACPI-less i386 systems.

  It is possible to disable the handler with loader tunable:
  debug.acpi.disabled=atrtc

  Informational debugging printf can be enabled by setting hw.acpi.verbose=1
  in loader.conf

  [1] https://wiki.freebsd.org/Laptops/HP_Envy_6Z-1100
  [2] https://wiki.freebsd.org/Laptops/HP_Notebook_15-af104ur
  [3] https://uefi.org/sites/default/files/resources/ACPI_6_2.pdf

  PR:		207419, 213039
  Submitted by:	Anthony Jenkins <Scoobi_doo@yahoo.com>
  Reviewed by:	ian
  Discussed on:	acpi@, 2013-2015, several threads
  Differential Revision:	https://reviews.freebsd.org/D19314

Changes:
_U  stable/11/
  stable/11/sys/x86/isa/atrtc.c
Comment 7 Vladimir Kondratyev freebsd_committer freebsd_triage 2019-03-27 19:38:48 UTC
Fixed along with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207419