Re: [PATCH] platform/x86: dell-wmi-sysman: work around for BIOS bug

2020-12-07 Thread Hans de Goede
Hi, On 12/2/20 2:19 PM, Divya Bharathi wrote: > BIOS sets incorrect value (zero) when SET value passed for integer attribute > with + sign. Added workaround to remove + sign before passing input to BIOS > > Co-developed-by: Mario Limonciello > Signed-off-by: Mario Limonciello > Co-developed-by:

[PATCH] platform/x86: dell-wmi-sysman: work around for BIOS bug

2020-12-02 Thread Divya Bharathi
BIOS sets incorrect value (zero) when SET value passed for integer attribute with + sign. Added workaround to remove + sign before passing input to BIOS Co-developed-by: Mario Limonciello Signed-off-by: Mario Limonciello Co-developed-by: Prasanth KSR Signed-off-by: Prasanth KSR Signed-off-by:

Re: [PATCH] platform/x86: dell-wmi-sysman: work around for BIOS bug

2020-12-02 Thread Hans de Goede
Hi, On 12/2/20 7:56 AM, Divya Bharathi wrote: > BIOS sets incorrect value (zero) when SET value passed for integer attribute > with + sign. Added workaround to remove + sign before passing input to BIOS > > Co-developed-by: Mario Limonciello > Signed-off-by: Mario Limonciello > Co-developed-by:

[PATCH] platform/x86: dell-wmi-sysman: work around for BIOS bug

2020-12-01 Thread Divya Bharathi
BIOS sets incorrect value (zero) when SET value passed for integer attribute with + sign. Added workaround to remove + sign before passing input to BIOS Co-developed-by: Mario Limonciello Signed-off-by: Mario Limonciello Co-developed-by: Prasanth KSR Signed-off-by: Prasanth KSR Signed-off-by:

Re: [PATCH v2] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-04 Thread Andy Shevchenko
ic int cht_int33fe_probe(struct i2c_client >>> *client) >>> struct device *dev = &client->dev; >>> struct i2c_board_info board_info; >>> struct cht_int33fe_data *data; >>> + struct i2c_client *max17047; >>>

Re: [PATCH v2] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-04 Thread Hans de Goede
)); - strlcpy(board_info.type, "max17047", I2C_NAME_SIZE); - board_info.properties = max17047_props; - - data->max17047 = i2c_acpi_new_device(dev, 1, &board_info); - if (!data->max17047) - return -EPROBE_DEFER; /* Wait for the i2c-adapter t

Re: [PATCH v2] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-04 Thread Andy Shevchenko
I_FAILURE(status)) { > @@ -75,13 +112,25 @@ static int cht_int33fe_probe(struct i2c_client > *client) >   if (!data) >   return -ENOMEM; >   > - memset(&board_info, 0, sizeof(board_info)); > - strlcpy(board_info.type, "max17047", I2C_NAME_SIZE);

Re: [PATCH v2] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-04 Thread Mika Westerberg
On Sat, Sep 02, 2017 at 06:20:40PM +0200, Hans de Goede wrote: > At least one BIOS enumerates the max17047 both through the INT33FE ACPI > device (it is right there in the resources table) as well as through a > separate MAX17047 device. > > This commit checks for the max17047 already being enumer

[PATCH v2] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-02 Thread Hans de Goede
s; - - data->max17047 = i2c_acpi_new_device(dev, 1, &board_info); - if (!data->max17047) - return -EPROBE_DEFER; /* Wait for the i2c-adapter to load */ + /* Work around BIOS bug, see comment on cht_int33fe_find_max17047 */ + max17047 = cht_int33fe_find

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-02 Thread Mika Westerberg
On Fri, Sep 01, 2017 at 11:58:55PM +0200, Hans de Goede wrote: > Given that on the device in question where we need this workaround there > is only ever 1 max17047, including the instance number in the check really > is a non-problem, but if there is a strong preference for me to change > the check

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-01 Thread Hans de Goede
Hi, On 09/01/2017 11:19 AM, Mika Westerberg wrote: On Thu, Aug 31, 2017 at 07:04:46PM +0300, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:52 PM, Hans de Goede wrote: On 14-08-17 22:45, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede wrote: +int cht_int33fe_che

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-01 Thread Mika Westerberg
On Thu, Aug 31, 2017 at 07:04:46PM +0300, Andy Shevchenko wrote: > On Mon, Aug 14, 2017 at 11:52 PM, Hans de Goede wrote: > > On 14-08-17 22:45, Andy Shevchenko wrote: > >> On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede > >> wrote: > > >>> +int cht_int33fe_check_for_max17047(struct device *dev,

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-31 Thread Jarkko Nikula
On 08/31/2017 07:04 PM, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:52 PM, Hans de Goede wrote: On 14-08-17 22:45, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede wrote: +int cht_int33fe_check_for_max17047(struct device *dev, void *data) +{ + const char *

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-31 Thread Andy Shevchenko
On Mon, Aug 14, 2017 at 11:52 PM, Hans de Goede wrote: > On 14-08-17 22:45, Andy Shevchenko wrote: >> On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede >> wrote: >>> +int cht_int33fe_check_for_max17047(struct device *dev, void *data) >>> +{ >>> + const char *name = dev_name(dev); >>> +

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-31 Thread Hans de Goede
47) - return -EPROBE_DEFER; /* Wait for the i2c-adapter to load */ + /* Work around BIOS bug, see comment on cht_int33fe_find_max17047 */ + max17047 = cht_int33fe_find_max17047(); + if (max17047) { + /* Pre-existing i2c-client for the max17047, add device-props

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-14 Thread Hans de Goede
Hi, On 14-08-17 22:45, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede wrote: At least one BIOS enumerates the max17047 both through the INT33FE ACPI device (it is right there in the resources table) as well as through a separate MAX17047 device. This commit checks for

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-14 Thread Andy Shevchenko
On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede wrote: > At least one BIOS enumerates the max17047 both through the INT33FE ACPI > device (it is right there in the resources table) as well as through a > separate MAX17047 device. > > This commit checks for the max17047 already being enumerated thr

[PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-08-14 Thread Hans de Goede
board_info.properties = max17047_props; - - data->max17047 = i2c_acpi_new_device(dev, 1, &board_info); - if (!data->max17047) - return -EPROBE_DEFER; /* Wait for the i2c-adapter to load */ + /* Work around BIOS bug, see comment on cht_int33fe_find_max

Re: FW/BIOS Bug category for oops.kernel.org

2014-11-03 Thread Peter Zijlstra
On Mon, Nov 03, 2014 at 10:34:43PM +0100, Borislav Petkov wrote: > On Mon, Nov 03, 2014 at 10:26:10PM +0100, Peter Zijlstra wrote: > > Hi oops.kernel.org folks, > > > > I'm wanting to collect information on FW/BIOS bugs, and I figured that > > we could use the oops.kernel.org infrastructure to do

Re: FW/BIOS Bug category for oops.kernel.org

2014-11-03 Thread Borislav Petkov
On Mon, Nov 03, 2014 at 10:26:10PM +0100, Peter Zijlstra wrote: > Hi oops.kernel.org folks, > > I'm wanting to collect information on FW/BIOS bugs, and I figured that > we could use the oops.kernel.org infrastructure to do this. > > Now, I'd prefer to not use the regular BUG/WARN because it might

FW/BIOS Bug category for oops.kernel.org

2014-11-03 Thread Peter Zijlstra
Hi oops.kernel.org folks, I'm wanting to collect information on FW/BIOS bugs, and I figured that we could use the oops.kernel.org infrastructure to do this. Now, I'd prefer to not use the regular BUG/WARN because it might confuse users and the stacktrace is entirely pointless -- we know were/why

[PATCH 48/49] ACPI: Harden acpi_table_parse_entries() against BIOS bug

2012-10-06 Thread Len Brown
From: Fenghua Yu Parsing acpi table entries may fall into an infinite loop on a buggy BIOS which has entry length=0 in acpi table. Instead of kernel hang with few failure clue which leads to heavy lifting debug effort, this patch hardens kernel boot by booting into non NUMA mode. The debug info

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-11 Thread Adko Branil
Mikael writes: >Please try the patch below, which implements the fix I described a >week ago. It's for 3.6-rc4 but should work in any recent kernel. >Without this patch one of my test machines always throws a lockdep >warning involving pdc_sata_hardreset and pdc_interrupt during bootup, >but with

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-10 Thread Borislav Petkov
On Sun, Sep 02, 2012 at 10:04:53PM +0200, Mikael Pettersson wrote: > pdc_hard_reset_port needs to serialize because hard reset has to flip > a port-specific bit in a controller register that's shared by all > ports, so it takes the host lock. But now an interrupt occurs during > the hard reset, and

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-10 Thread Borislav Petkov
On Fri, Sep 07, 2012 at 04:32:56AM -0700, Adko Branil wrote: > After updating bios no more crashes happened, i tested it many times > on heavy HDD IO loads, with many kernels (including CONFIG_PREEMPT > kernels). Alriiight, one of the most seldom times where a BIOS update actually fixes things :-)

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-08 Thread Adko Branil
>Please try the patch below, which implements the fix I described a >week ago. It's for 3.6-rc4 but should work in any recent kernel. >Without this patch one of my test machines always throws a lockdep >warning involving pdc_sata_hardreset and pdc_interrupt during bootup, >but with the patch the w

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-08 Thread Mikael Pettersson
Adko Branil writes: > After updating bios no more crashes happened, i tested it many times > on heavy HDD IO loads, with many kernels (including CONFIG_PREEMPT > kernels). But now if enable "Cool'n' Quiet" option in bios,  > CONFIG_PREEMPT_VOLUNTARY kernel with passed "nosmp" at boot time, > c

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-07 Thread Adko Branil
After updating bios no more crashes happened, i tested it many times on heavy HDD IO loads, with many kernels (including CONFIG_PREEMPT kernels). But now if enable "Cool'n' Quiet" option in bios,  CONFIG_PREEMPT_VOLUNTARY kernel with passed "nosmp" at boot time, crashes during boot process with

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-03 Thread Adko Branil
> But now an interrupt occurs during the hard >reset, and pdc_interrupt also has to take the host lock. I have 4 sata connectors on the motherboard - http://www.hardwareheaven.com/reviews/asusA8V/ If i understand right, just 2 of them are linked to promise controller. Well i changed the conn

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-02 Thread Mikael Pettersson
Adko Branil writes: > >Right near the end there's a lockdep warning about a deadlock > > >between sata_promise's hardreset thing and the machine getting a > >ata_bmdma_interrupt. > > >But since I don't know this code, it would be nice if you could take a > >look at it. > > I picked up 3

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-30 Thread Adko Branil
>Right near the end there's a lockdep warning about a deadlock >between sata_promise's hardreset thing and the machine getting a >ata_bmdma_interrupt. >But since I don't know this code, it would be nice if you could take a >look at it. I picked up 3 more dmesg after rebooting, and 2 more oopses.

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-30 Thread Borislav Petkov
On Wed, Aug 29, 2012 at 10:31:43AM -0700, Adko Branil wrote: > And one more thing i forgot - during kernel compilation i noticed this: > > WARNING: modpost: Found 1 section mismatch(es). > To see full details build your kernel with: > 'make CONFIG_DEBUG_SECTION_MISMATCH=y' > > > > And when i co

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-30 Thread Borislav Petkov
On Thu, Aug 30, 2012 at 11:58:08AM +0200, Borislav Petkov wrote: > Kernel is 3.5.2, 32-bit. Correction: 64-bit. -- Regards/Gruss, Boris. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at ht

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-29 Thread Adko Branil
And one more thing i forgot - during kernel compilation i noticed this: WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' And when i compiled with "make CONFIG_DEBUG_SECTION_MISMATCH=y", somewhere at the end was:

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-27 Thread Borislav Petkov
On Mon, Aug 27, 2012 at 10:01:12AM -0700, Adko Branil wrote: > >Stupid question: have you tried replacing your DIMMs to see whether this > >can be caused by a faulty DRAM? > > I just tried it - i have 2 banks memory each of 1 Mb - i replaced You mean 1 Gb each, right? > the first , then the secon

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-27 Thread Adko Branil
>Stupid question: have you tried replacing your DIMMs to see whether this >can be caused by a faulty DRAM? I just tried it - i have 2 banks memory each of 1 Mb - i replaced the first , then the second, then replaced both and put memory from another computer, tried another slots as well - the sam

Re: HDD problem, software bug, bios bug, or hardware ?

2012-08-26 Thread Borislav Petkov
Adding linux-kernel to CC. On Sat, Aug 25, 2012 at 06:36:11AM -0700, Adko Branil wrote: > Here i post few more panics, the last 3-4 or 5 of them are with boot > option "nosmp". I will take a look at the motherboard to see is there > any visual sign for this plague after 2 days probably, as i am no

Re: PCI Express MMCONFIG and BIOS Bug messages..

2007-04-29 Thread Robert Hancock
Jesse Barnes wrote: On Sunday, April 29, 2007, Robert Hancock wrote: Problem is that even if we read the MMCONFIG table location from the hardware registers, that doesn't mean we can trust the result. It could be that the BIOS hasn't lied about where it put the table, it just stuck it someplace

Re: PCI Express MMCONFIG and BIOS Bug messages..

2007-04-29 Thread Jesse Barnes
On Sunday, April 29, 2007, Robert Hancock wrote: > Problem is that even if we read the MMCONFIG table location from the > hardware registers, that doesn't mean we can trust the result. It could > be that the BIOS hasn't lied about where it put the table, it just stuck > it someplace completely unsu

Re: PCI Express MMCONFIG and BIOS Bug messages..

2007-04-29 Thread Robert Hancock
right now to handle a common i965 BIOS bug. Also there is the nasty case of the Apple EFI boxes where only mmconfig works which has to be handled too. I expect eventually the logic to be: - If we know the hardware: read it from hw registers; trust them; ignore BIOS. - Otherwise check e820 and ACPI

Re: PCI Express MMCONFIG and BIOS Bug messages..

2007-04-29 Thread Andi Kleen
now to handle a common i965 BIOS bug. Also there is the nasty case of the Apple EFI boxes where only mmconfig works which has to be handled too. I expect eventually the logic to be: - If we know the hardware: read it from hw registers; trust them; ignore BIOS. - Otherwise check e820 and ACPI resou

Re: PCI Express MMCONFIG and BIOS Bug messages..

2007-04-28 Thread Robert Hancock
Chuck Ebbert wrote: Robert Hancock wrote: I've seen a lot of systems (including brand new Xeon-based servers from IBM and HP) that output messages on boot like: PCI: BIOS Bug: MCFG area at f000 is not E820-reserved PCI: Not using MMCONFIG. So Microsoft is explicitly telling the

Re: PCI Express MMCONFIG and BIOS Bug messages..

2007-04-19 Thread Chuck Ebbert
Robert Hancock wrote: > I've seen a lot of systems (including brand new Xeon-based servers from > IBM and HP) that output messages on boot like: > > PCI: BIOS Bug: MCFG area at f000 is not E820-reserved > PCI: Not using MMCONFIG. > > > So Microsoft is explicitl

PCI Express MMCONFIG and BIOS Bug messages..

2007-04-18 Thread Robert Hancock
I've seen a lot of systems (including brand new Xeon-based servers from IBM and HP) that output messages on boot like: PCI: BIOS Bug: MCFG area at f000 is not E820-reserved PCI: Not using MMCONFIG. As I understand it, this is sort of a sanity check mechanism to make sure the MCFG ad

Re: PCI BIOS Bug messages

2007-01-09 Thread Robert Hancock
Vasudevan S wrote: I run Fedora Core 6 on the 'compaq nc6320' laptop. I am using the '2.6.19.1' kernel. While booting the kernel, I noticed the following error message: PCI: BIOS Bug: MCFG area at f800 is not E820-reserved PCI: Not using MMCONFIG. After some search,

PCI BIOS Bug messages

2007-01-09 Thread Vasudevan S
I run Fedora Core 6 on the 'compaq nc6320' laptop. I am using the '2.6.19.1' kernel. While booting the kernel, I noticed the following error message: PCI: BIOS Bug: MCFG area at f800 is not E820-reserved PCI: Not using MMCONFIG. After some search, I commented out

Re: [OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread Sebastian Kemper
On Fri, Dec 01, 2006 at 03:32:47PM -0800, [EMAIL PROTECTED] wrote: > On Fri, Dec 01, 2006 at 03:29:22PM -0800, Pete Zaitcev wrote: > > On Fri, 1 Dec 2006 15:23:39 -0800, [EMAIL PROTECTED] wrote: > > > > > BIOS handoff assumes an SMI, right? Could SMI be masked? > > > > That might be a bad idea,

Re: [OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread thockin
On Fri, Dec 01, 2006 at 03:29:22PM -0800, Pete Zaitcev wrote: > On Fri, 1 Dec 2006 15:23:39 -0800, [EMAIL PROTECTED] wrote: > > > BIOS handoff assumes an SMI, right? Could SMI be masked? > > That might be a bad idea, because things like fans may be controlled > by SMM BIOS. The best thing we can

Re: [OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread thockin
On Fri, Dec 01, 2006 at 03:02:01PM -0800, Pete Zaitcev wrote: > On Fri, 1 Dec 2006 19:28:55 +0100, Sebastian Kemper <[EMAIL PROTECTED]> wrote: > > > I also increased the wait time from 5 seconds to 20 in > > drivers/usb/host/pci-quirks.c but that didn't change anything. > > That was a good try, b

Re: [OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread Pete Zaitcev
On Fri, 1 Dec 2006 15:23:39 -0800, [EMAIL PROTECTED] wrote: > BIOS handoff assumes an SMI, right? Could SMI be masked? That might be a bad idea, because things like fans may be controlled by SMM BIOS. The best thing we can do is to follow the published procedure, and maybe insert a workaround if

Re: [OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread Pete Zaitcev
On Fri, 1 Dec 2006 19:28:55 +0100, Sebastian Kemper <[EMAIL PROTECTED]> wrote: > I also increased the wait time from 5 seconds to 20 in > drivers/usb/host/pci-quirks.c but that didn't change anything. That was a good try, but I thought maybe it needs doing something twice, or having some extra bi

Re: [OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread Sebastian Kemper
4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 16384 bind 8192) TCP reno registered Machine check exception polling time

[OHCI] BIOS handoff failed (BIOS bug?)

2006-12-01 Thread Sebastian Kemper
Hello all, I sometimes get this message when I boot kernel 2.6.19. Could this be related to the BIOS option "USB keyboard support"? When I turn it off I never get the "handoff failed" message afaik. But I need it to access lilo. Now I use an USB->PS2 adapter and turn "USB keyboard support" off. I

RE: BIOS Bug

2005-02-08 Thread Aleksey Gorelov
>>>-Original Message- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] On Behalf Of >Enrico Bartky >>>Sent: Monday, February 07, 2005 7:12 AM >>>To: linux-kernel@vger.kernel.org >>>Subject: BIOS Bug >>> >>>

Re: BIOS Bug

2005-02-08 Thread Enrico Bartky
Aleksey Gorelov schrieb: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Enrico Bartky Sent: Monday, February 07, 2005 7:12 AM To: linux-kernel@vger.kernel.org Subject: BIOS Bug Hello, on my notebook, when I plugged in my USB keyboard the kernel doesnt

RE: BIOS Bug

2005-02-07 Thread Aleksey Gorelov
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Enrico Bartky >Sent: Monday, February 07, 2005 7:12 AM >To: linux-kernel@vger.kernel.org >Subject: BIOS Bug > >Hello, > >on my notebook, when I plugged in my USB key

BIOS Bug

2005-02-07 Thread Enrico Bartky
Hello, on my notebook, when I plugged in my USB keyboard the kernel doesnt boot correctly, ... ... BIOS hangoff failed ( 112, 1010001 ) continuing after BIOS bug irq 192, pci mem 0xfebff000 new usb device registered, assigned bus number 1 ... then the notebook hangs. If I boot without the

2.2.18pre25 + i810e audio: IRQ 0? (BIOS bug?)

2000-12-10 Thread Anil B. Somayaji
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This weekend I've been installing Debian 2.2 on an HP Pavilion 8756C, and I haven't been able to get sound working. The machine has an Intel 810e multifunction contoller onboard. The i810_audio module seems to be able to find the right device, but c