Firmware Error (ACPI): Failure looking up [\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND

2018-07-13 Thread O. Hartmann
Hello.

The target host is a

Fujitsu Esprimo Q956
Firmware V5.0.0.11 R1.26.0 for A3413-A1x
Date 05/25/2018
BIOS Revision 1.26

FreeBSD 11.2-RELEASE and 12-CURRENT (ISO Image from 9th July 2018, r336134) are
spamming the console with an annoying error:

Jul 13 10:00:32  kernel: Firmware Error (ACPI): Failure looking up
[\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20171214/psargs-503) Jul 13 10:00:32
kernel: ACPI Error: Method parse/execution failed \_TZ.TZ00._TMP, AE_NOT_FOUND
(20171214/psparse-677) Jul 13 10:00:32  kernel: Firmware Error (ACPI): Failure
looking up [\_SB.PCI0.LPCB.HEC.ECAV], AE_NOT_FOUND (20171214/psargs-503)

The error is repeated endless.

Can this be fixed?

Thanks in advance and kind regards,

Oliver
___
freebsd-acpi@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"


Re: ACPI Error on HP ProBook 430 G2

2016-12-20 Thread O. Hartmann
Am Tue, 20 Dec 2016 18:09:20 +0300
Vladimir Zakharov  schrieb:

> Hello!
> 
> Some time ago new ACPI messages appeared on console and in /var/log/messages. 
> Like
> these:
> 
> ACPI Error: Needed type [Reference], found [Processor] 0xf800043b8980
> (20161117/exresop-111) ACPI Exception: AE_AML_OPERAND_TYPE, While resolving 
> operands
> for [OpcodeName unavailable] (20161117/dswexec-498) ACPI Error: Method 
> parse/execution
> failed [\134_SB.PCI0.LPCB.EC0.PPNT] (Node 0xf80004396640), 
> AE_AML_OPERAND_TYPE
> (20161117/psparse-560) ACPI Error: Method parse/execution failed
> [\134_SB.PCI0.LPCB.EC0._Q04] (Node 0xf80004396c40), AE_AML_OPERAND_TYPE
> (20161117/psparse-560) acpi_ec0: evaluation of query method _Q04 failed:
> AE_AML_OPERAND_TYPE
> 
> I'm sure that there were no such messages earlier. Suspend/resume works
> for me. But after disconnecting power line hw.acpi.acline still equals
> to 1. And powerd/powerdxx do not adjust CPU frequency anymore.
> 
> System info:
> $ uname -a
> FreeBSD vzakharov 12.0-CURRENT FreeBSD 12.0-CURRENT #14 r310326M: Tue Dec 20 
> 16:42:21
> MSK 2016 root@vzakharov:/home/obj/usr/src/sys/GENERIC-NODEBUG  amd64
> 
> dmesg: http://pastebin.com/cYD8cR0b
> hw.acpi: http://pastebin.com/Tht9B0FZ
> acpidump: http://vzakharov.ru/z2v-HPProBook430G2.asl
> 
> 
> PS. I'm not subscribed to freebsd-acpi. So keep me in CC, please.
> 

I see lots of ACPI errors also shortly on a Lenovo E540 UEFI notebook running 
most recent
CURRENT ...

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpT1RJuMP0UH.pgp
Description: OpenPGP digital signature


IASL complains about he same error in two different UEFI firmwares

2014-09-23 Thread O. Hartmann

Trying to fix an GPU issue on a laptop, I followed the steps as described in 
handbook,
chapter 12.17, debugging ASL/AML code.

I dumped on two different systems the ASL via

acpidump -dt as described and tried to recompile the result via iasl.


The outcome is a bit disturbing. IASL complains about the very same errors on 
two
diffrent systems.I'll show only one here, since the code block is identical.

System 1:  1

FreeBSD 11.0-CURRENT #2 r272016: Tue Sep 23 08:20:00 CEST 2014 amd64

VT: running with driver "vga".
CPU: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (3300.10-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306a9  Family=0x6  Model=0x3a  Stepping=9
  
Features=0xbfebfbff
  
Features2=0x3d9ae3bf
  AMD Features=0x28100800
  AMD Features2=0x1
  Structured Extended Features=0x281
  XSAVE Features=0x1
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16286003200 (15531 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: 



root@gate [~] iasl gate.asl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130823-64
Copyright (c) 2000 - 2013 Intel Corporation

Compiler aborting due to parser-detected syntax error(s)
gate.asl  12314: Package (0x06)
Error6126 -  syntax error ^ 

ASL Input: gate.asl - 12334 lines, 366705 bytes, 4399 keywords

Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Code portion at line 12314:

[...]
Package (0x06)
{
0x8000,
0x8000,
0x8000,
0x8000,
0x8000,
0x8000
}



System 2:

11.0-CURRENT #0 r272019: Tue Sep 23 09:38:59 CEST 2014 amd64


info: [drm] Initialized drm 1.1.0 20060810
CPU: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz (2494.28-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306c3  Family=0x6  Model=0x3c  Stepping=3
  
Features=0xbfebfbff
  
Features2=0x7fdafbbf,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800
  AMD Features2=0x21
  Structured Extended 
Features=0x27ab
  XSAVE Features=0x1
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 9636413440 (9190 MB)
avail memory = 8149209088 (7771 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: 


root@hermann: [~] iasl lenovo.asl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130823-64
Copyright (c) 2000 - 2013 Intel Corporation

Compiler aborting due to parser-detected syntax error(s)
lenovo.asl  18919: Package (0x06)
Error6126 -syntax error ^ 

ASL Input: lenovo.asl - 18939 lines, 634937 bytes, 7991 keywords

Compilation complete. 

[...]
Package (0x06)
{
0x8000,
0x8000,
0x8000,
0x8000,
0x8000,
0x8000
}
1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations


signature.asc
Description: PGP signature


Support for Lenovo acpi_video and nVidia GT740M Optimus video adaptor

2014-09-23 Thread O. Hartmann

I have a Lenovo ThinkPad E540 which has the following CPU:


FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
VT: running with driver "efifb".
info: [drm] Initialized drm 1.1.0 20060810
CPU: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz (2494.28-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306c3  Family=0x6  Model=0x3c  Stepping=3
  
Features=0xbfebfbff
  
Features2=0x7fdafbbf,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800
  AMD Features2=0x21
  Structured Extended 
Features=0x27ab
  XSAVE Features=0x1
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 9636413440 (9190 MB)
avail memory = 8149209088 (7771 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: 
[...]

This laptop has a integrated HD4600 iGPU (Haswell CPU) as well as a nVidia GT 
740M GPU,
which is supposed to be with Optimus technology. I will refer to this issue 
later in this
post.

ACPI_VIDEO/ACPI_IBM:

loading both of these ACPI kernel modules seem not to provide any 
fiunctionality as
expected. The laptop runs with 100% brightness of the LCD and consumes the 
battery very
quickly. Trying 
#
#   Display
#
hw.acpi.video.lcd0.fullpower=75
hw.acpi.video.lcd1.fullpower=75
hw.acpi.video.lcd0.econony=50
hw.acpi.video.lcd1.econony=50
hw.acpi.video.lcd0.brigthness=75
hw.acpi.video.lcd1.brigthness=75

in /etc/sysctl remains without effect. I presume this is due to the laptop is 
neither
supported by the acpi_ibm.ko nor acpi_video.ko modules either?

Is there a way to manipulate the LCD brightnes? The Firmware Lenovo provides 
doesn't
allow without operating system running the change of the brightness or muting 
the
speakers with FN + FXX key, as it is provided by many other EFI/UEFI firmwares.


iGPU/GPU/Optimus:


Another serious issue is the built-in video adaptor. In UEFI, I have the 
opportunity of
selecting either "integrated" or "nVidia Optimus". Selecting "integrated" is 
supposed to
utilize the built in iGPU HD4600 - which is since Haswell's dawn unsupported in 
FreeBSD.
So, for some reasons along with my work, I'd like to have the dedicated GPU 
anyway, the
nVidia GT 740M.
And here is the culprit.

First, I do not know whether this device is a hybrid or real discrete GPU with 
the
ability of sharing, what nVidia calls Optimus.
Starting X11 with any of the nVidia provided BLOBs (xf86-video-nv doesn't 
support modern
GPUs like that and FreeBSD doesn't have, in contrary to many Linux 
distributions, modern
xf86-video-nouveau: the driver is simply extinct from the ports) with 340.24, 
340.32 and
343.13 gives a blank vt() console screen with a carrett in the uppermost 
lefthand corner.

Checking the the Xorg.log I realize, that the driver recognizes the existence 
of the GPU,
but it doesn't reveal any(!) display sockets, not even the built-in LCD. 
Whenever the
nvidia driver tries to access the video hardware, I see this messages popping 
up on the
console, indicating that there is something wrong, I presume:

[...]
Sep 21 09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: 
Argument #4 type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 
type
mismatch - Found [Buffer], ACPI requires [Package] (20130823/nsarguments-97) 
Sep 21
09:38:30 hermann kernel: ACPI Error: Field [TBF3] at 270336 exceeds Buffer 
[NULL] size
262144 (bits) (20130823/dsopcode-249) Sep 21 09:38:30 hermann kernel: ACPI 
Error: Method
parse/execution failed [\_SB_.PCI0.PEG_.VID_.GETB] (Node 0xf800044ef740),
AE_AML_BUFFER_LIMIT (20130823/psparse-553) Sep 21 09:38:30 hermann kernel: ACPI 
Error:
Method parse/execution failed [\_SB_.PCI0.PEG_.VID_._ROM] (Node 
0xf800044ef780),
AE_AML_BUFFER_LIMIT (20130823/psparse-553) Sep 21 09:38:30 hermann kernel: ACPI 
Warning:
\_SB_.PCI0.PEG_.VID_._DSM: Argument #