Linux ACPI
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] ACPI / LPSS: Only call pwm_add_table for the first PWM controller
Date: Thu, 06 Jul 2017 22:44:55 +0200	[thread overview]
Message-ID: <6978852.i014fFYBpT@aspire.rjw.lan> (raw)
In-Reply-To: <5a6aa544-fbe5-6eb2-901f-39a3814cea1d@redhat.com>

On Thursday, July 06, 2017 08:08:03 PM Hans de Goede wrote:
> Hi,
> 
> On 06-07-17 19:11, Andy Shevchenko wrote:
> > On Thu, 2017-07-06 at 18:49 +0200, Hans de Goede wrote:
> >> At least on the UP board SBC both PWMs are enabled leading to us
> >> trying to add the same pwm_lookup twice, which leads to the following:
> >>
> >> [    0.902224] list_add double add: new=ffffffffb8efd400,
> >>                 prev=ffffffffb8efd400, next=ffffffffb8eeede0.
> >> [    0.912466] ------------[ cut here ]------------
> >> [    0.917624] kernel BUG at lib/list_debug.c:31!
> >> [    0.922588] invalid opcode: 0000 [#1] SMP
> >> ...
> >> [    1.027450] Call Trace:
> >> [    1.030185]  pwm_add_table+0x4c/0x90
> >> [    1.034181]  bsw_pwm_setup+0x1a/0x20
> >> [    1.038175]  acpi_lpss_create_device+0xfe/0x420
> >> ...
> >>
> >> This commit fixes this by only calling pwm_add_table for the first
> >> PWM controller (which is the one used for the backlight).
> >>
> > 
> > Thanks, my comment below.
> > 
> > For the quick fix I agree on this:
> > Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Thank you.
> 
> Rafael, can we get this added to 4.13 soonish please ? One of the 2
> commits this fixes has been causing trouble for some users since 4.11.3.

Should be possible.

Thanks,
Rafael


      parent reply	other threads:[~2017-07-06 20:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-06 16:49 [PATCH] ACPI / LPSS: Only call pwm_add_table for the first PWM controller Hans de Goede
2017-07-06 17:11 ` Andy Shevchenko
2017-07-06 18:08   ` Hans de Goede
2017-07-06 18:19     ` Andy Shevchenko
2017-07-06 18:50       ` Hans de Goede
2017-07-06 20:44     ` Rafael J. Wysocki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6978852.i014fFYBpT@aspire.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=hdegoede@redhat.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox