[coreboot] [coreboot - Bug #121] T520: Hangs in OS

2024-04-28 Thread Patrick Rudolph
Issue #121 has been updated by Patrick Rudolph.


Jun Muta wrote in #note-91:
> Patrick Rudolph wrote in #note-89:
> > I checked the vendor BIOS for (X220, T420 and T420s) and it hard-codes PSI2 
> > and PSI3 values to 0 in PowerManagment2.efi.
> > The X230 vendor BIOS does not hard-code those values in PowerManagment2.efi.
> > Thus this is likely a bug in the voltage regulator used on Sandy-Bridge 
> > platforms.
> > 
> > I've created https://review.coreboot.org/c/coreboot/+/82070 based on this, 
> > please test.
> 
> Hi Patrick,
> I've recently started using Libreboot and I'm having this issue on my T430. 
> Do you happen to know what the values are for the T430?

I check PowerManagment2.efi in T430 vendor firmware and it does not hard-code 
PSI2 and PSI3 to 0.
It's likely a different problem, not related to the VR12 configuration.

It looks like this only applies to Sandy-Bridge series, as reported here it 
only affects X220, T420, T520, T420s.



Bug #121: T520: Hangs in OS 
https://ticket.coreboot.org/issues/121#change-1819

* Author: Firstname Lastname
* Status: In Progress
* Priority: Normal
* Category: chipset configuration
* Start date: 2017-06-09
* Affected hardware: SNB, IVY
* Affected OS: -

I have been running coreboot since 2017.04.15 and have experienced hangs ever 
since then. It was suggested by folk on the IRC that I run memtest to check for 
incorrect raminit causing errors, however I have run memtest for 12 hours 
straight with no errors.

Due to the ambiguous nature of the hangs (immediate freeze with no warning 
signs, audio gets stuck repeating the last 50ms or so of noise, not sure what 
this effect is called) I don't have much useful information other than the 
.config and dmesg. However one thing I can say with high confidence is that the 
hangs occur significantly more frequently in Linux (*buntu distros) than 
Windows 10. Within an hour of launching Linux a hang is likely, whereas Windows 
typically runs for many hours before a hang occurs. I considered this an 
insignificant anecdotal anomaly at first but over the course of the nearly 2 
months I have been running coreboot it seems to be a solid trend. The hangs 
occur anywhere, typically during mere desktop usage or basic web browsing.

Additionally there is another form of hang I experience where the screen goes 
black except for some sort of graphical corruption down the left side 
(http://i.imgur.com/4zWrlpX.jpg), whether this is related to the more common 
total freeze hangs I don't know but I figured I should include it nonetheless. 
These hangs only occur about 1:20 compared to the regular hangs.



---Files
config (20.7 KB)
dmesg.txt (57.3 KB)
cbmem-raminit.txt (62 KB)
lspci.txt (29.6 KB)
cpuinfo.txt (3.94 KB)
defconfig (1023 Bytes)
defconfig (699 Bytes)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] New Defects reported by Coverity Scan for coreboot

2024-04-28 Thread scan-admin--- via coreboot
Hi,

Please find the latest report on new defect(s) introduced to coreboot found 
with Coverity Scan.

2 new defect(s) introduced to coreboot found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1544382:  Null pointer dereferences  (REVERSE_INULL)
/src/drivers/i2c/rt5645/rt5645.c: 30 in rt5645_fill_ssdt()



*** CID 1544382:  Null pointer dereferences  (REVERSE_INULL)
/src/drivers/i2c/rt5645/rt5645.c: 30 in rt5645_fill_ssdt()
24  .speed = config->bus_speed ? : I2C_SPEED_FAST,
25  .resource = scope,
26  };
27  struct acpi_dp *dp;
28  int curr_index = 0;
29 
>>> CID 1544382:  Null pointer dereferences  (REVERSE_INULL)
>>> Null-checking "config" suggests that it may be null, but it has already 
>>> been dereferenced on all paths leading to the check.
30  if (!config)
31  return;
32 
33  const char *name = acpi_device_name(dev);
34  if (!scope || !name)
35  return;

** CID 1544381:  Integer handling issues  (DIVIDE_BY_ZERO)
/src/mainboard/dell/optiplex_9020/mainboard.c: 310 in get_pkg_power()



*** CID 1544381:  Integer handling issues  (DIVIDE_BY_ZERO)
/src/mainboard/dell/optiplex_9020/mainboard.c: 310 in get_pkg_power()
304 static uint16_t get_pkg_power(void)
305 {
306 uint8_t rapl_power_unit = rdmsr(0x606).lo & 0xf;
307 if (rapl_power_unit)
308 rapl_power_unit = 2 << (rapl_power_unit - 1);
309 uint16_t pkg_power_info = rdmsr(0x614).lo & 0x7fff;
>>> CID 1544381:  Integer handling issues  (DIVIDE_BY_ZERO)
>>> In expression "pkg_power_info / rapl_power_unit", division by 
>>> expression "rapl_power_unit" which may be zero has undefined behavior.
310 if (pkg_power_info / rapl_power_unit > 0x41)
311 return 32;
312 else
313 return 16;
314 }
315 



To view the defects in Coverity Scan visit, 
https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu5RTlgzSxHNU8YEiZyg63VT4oV0wHomK1tUxgwyYstzK0M2Ed2Cv7gFreqR3FCBLpU-3DVg8s_3AAg4m2Qo6X8uGGmBm-2BJP2cELf0dkUfIv8-2BPwY7td4r9Jgz-2FXYe-2B7X4gdTCESXd679KQWQnL7MTJlQCe04ibt-2F-2BAqkhnBFuL9fipLXW-2FcOzqJ0RI1vYe-2FABWtFAaVM0fcpt3lpPYoKw1lwtgMe2rxbMPdHKm011M9JxGaF8nhGvZJMbf9Cz4ZoJp4dV0iVCGf9pIP7qsgmmtl4dlHgE4IQ-3D-3D

___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] [coreboot - Bug #121] T520: Hangs in OS

2024-04-28 Thread Jun Muta
Issue #121 has been updated by Jun Muta.


Patrick Rudolph wrote in #note-89:
> I checked the vendor BIOS for (X220, T420 and T420s) and it hard-codes PSI2 
> and PSI3 values to 0 in PowerManagment2.efi.
> The X230 vendor BIOS does not hard-code those values in PowerManagment2.efi.
> Thus this is likely a bug in the voltage regulator used on Sandy-Bridge 
> platforms.
> 
> I've created https://review.coreboot.org/c/coreboot/+/82070 based on this, 
> please test.

Hi Patrick,
I've recently started using Libreboot and I'm having this issue on my T430. Do 
you happen to know what the values are for the T430?


Bug #121: T520: Hangs in OS 
https://ticket.coreboot.org/issues/121#change-1818

* Author: Firstname Lastname
* Status: In Progress
* Priority: Normal
* Category: chipset configuration
* Start date: 2017-06-09
* Affected hardware: SNB, IVY
* Affected OS: -

I have been running coreboot since 2017.04.15 and have experienced hangs ever 
since then. It was suggested by folk on the IRC that I run memtest to check for 
incorrect raminit causing errors, however I have run memtest for 12 hours 
straight with no errors.

Due to the ambiguous nature of the hangs (immediate freeze with no warning 
signs, audio gets stuck repeating the last 50ms or so of noise, not sure what 
this effect is called) I don't have much useful information other than the 
.config and dmesg. However one thing I can say with high confidence is that the 
hangs occur significantly more frequently in Linux (*buntu distros) than 
Windows 10. Within an hour of launching Linux a hang is likely, whereas Windows 
typically runs for many hours before a hang occurs. I considered this an 
insignificant anecdotal anomaly at first but over the course of the nearly 2 
months I have been running coreboot it seems to be a solid trend. The hangs 
occur anywhere, typically during mere desktop usage or basic web browsing.

Additionally there is another form of hang I experience where the screen goes 
black except for some sort of graphical corruption down the left side 
(http://i.imgur.com/4zWrlpX.jpg), whether this is related to the more common 
total freeze hangs I don't know but I figured I should include it nonetheless. 
These hangs only occur about 1:20 compared to the regular hangs.



---Files
config (20.7 KB)
dmesg.txt (57.3 KB)
cbmem-raminit.txt (62 KB)
lspci.txt (29.6 KB)
cpuinfo.txt (3.94 KB)
defconfig (1023 Bytes)
defconfig (699 Bytes)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] [coreboot - Bug #121] T520: Hangs in OS

2024-04-28 Thread Anastasios Koutian
Issue #121 has been updated by Anastasios Koutian.


Patrick Rudolph wrote in #note-89:
> I checked the vendor BIOS for (X220, T420 and T420s) and it hard-codes PSI2 
> and PSI3 values to 0 in PowerManagment2.efi.
> The X230 vendor BIOS does not hard-code those values in PowerManagment2.efi.
> Thus this is likely a bug in the voltage regulator used on Sandy-Bridge 
> platforms.
> 
> I've created https://review.coreboot.org/c/coreboot/+/82070 based on this, 
> please test.

Hi Patrick, I have cherry-picked your commit on top of coreboot main and I am 
testing on my T420. I will inform you of the results.


Bug #121: T520: Hangs in OS 
https://ticket.coreboot.org/issues/121#change-1817

* Author: Firstname Lastname
* Status: In Progress
* Priority: Normal
* Category: chipset configuration
* Start date: 2017-06-09
* Affected hardware: SNB, IVY
* Affected OS: -

I have been running coreboot since 2017.04.15 and have experienced hangs ever 
since then. It was suggested by folk on the IRC that I run memtest to check for 
incorrect raminit causing errors, however I have run memtest for 12 hours 
straight with no errors.

Due to the ambiguous nature of the hangs (immediate freeze with no warning 
signs, audio gets stuck repeating the last 50ms or so of noise, not sure what 
this effect is called) I don't have much useful information other than the 
.config and dmesg. However one thing I can say with high confidence is that the 
hangs occur significantly more frequently in Linux (*buntu distros) than 
Windows 10. Within an hour of launching Linux a hang is likely, whereas Windows 
typically runs for many hours before a hang occurs. I considered this an 
insignificant anecdotal anomaly at first but over the course of the nearly 2 
months I have been running coreboot it seems to be a solid trend. The hangs 
occur anywhere, typically during mere desktop usage or basic web browsing.

Additionally there is another form of hang I experience where the screen goes 
black except for some sort of graphical corruption down the left side 
(http://i.imgur.com/4zWrlpX.jpg), whether this is related to the more common 
total freeze hangs I don't know but I figured I should include it nonetheless. 
These hangs only occur about 1:20 compared to the regular hangs.



---Files
config (20.7 KB)
dmesg.txt (57.3 KB)
cbmem-raminit.txt (62 KB)
lspci.txt (29.6 KB)
cpuinfo.txt (3.94 KB)
defconfig (1023 Bytes)
defconfig (699 Bytes)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] [coreboot - Bug #121] T520: Hangs in OS

2024-04-28 Thread Patrick Rudolph
Issue #121 has been updated by Patrick Rudolph.


I checked the vendor BIOS for (X220, T420 and T420s) and it hard-codes PSI2 and 
PSI3 values to 0 in PowerManagment2.efi.
The X230 vendor BIOS does not hard-code those values in PowerManagment2.efi.
Thus this is likely a bug in the voltage regulator used on Sandy-Bridge 
platforms.

I've created https://review.coreboot.org/c/coreboot/+/82070 based on this, 
please test.


Bug #121: T520: Hangs in OS 
https://ticket.coreboot.org/issues/121#change-1816

* Author: Firstname Lastname
* Status: In Progress
* Priority: Normal
* Category: chipset configuration
* Start date: 2017-06-09
* Affected hardware: SNB, IVY
* Affected OS: -

I have been running coreboot since 2017.04.15 and have experienced hangs ever 
since then. It was suggested by folk on the IRC that I run memtest to check for 
incorrect raminit causing errors, however I have run memtest for 12 hours 
straight with no errors.

Due to the ambiguous nature of the hangs (immediate freeze with no warning 
signs, audio gets stuck repeating the last 50ms or so of noise, not sure what 
this effect is called) I don't have much useful information other than the 
.config and dmesg. However one thing I can say with high confidence is that the 
hangs occur significantly more frequently in Linux (*buntu distros) than 
Windows 10. Within an hour of launching Linux a hang is likely, whereas Windows 
typically runs for many hours before a hang occurs. I considered this an 
insignificant anecdotal anomaly at first but over the course of the nearly 2 
months I have been running coreboot it seems to be a solid trend. The hangs 
occur anywhere, typically during mere desktop usage or basic web browsing.

Additionally there is another form of hang I experience where the screen goes 
black except for some sort of graphical corruption down the left side 
(http://i.imgur.com/4zWrlpX.jpg), whether this is related to the more common 
total freeze hangs I don't know but I figured I should include it nonetheless. 
These hangs only occur about 1:20 compared to the regular hangs.



---Files
config (20.7 KB)
dmesg.txt (57.3 KB)
cbmem-raminit.txt (62 KB)
lspci.txt (29.6 KB)
cpuinfo.txt (3.94 KB)
defconfig (1023 Bytes)
defconfig (699 Bytes)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org