From: "Kuppuswamy, Sathyanarayanan" <sathyaosid@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
"x86@kernel.org" <x86@kernel.org>,
Wim Van Sebroeck <wim@iguana.be>, Ingo Molnar <mingo@redhat.com>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Zha Qipeng <qipeng.zha@intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
"dvhart@infradead.org" <dvhart@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
Lee Jones <lee.jones@linaro.org>,
Andy Shevchenko <andy@infradead.org>,
Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>,
linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Platform Driver <platform-driver-x86@vger.kernel.org>
Subject: Re: [RFC v4 2/8] platform/x86: intel_pmc_ipc: Use spin_lock to protect GCR updates
Date: Sat, 7 Oct 2017 15:29:49 -0700 [thread overview]
Message-ID: <98547c75-c7a8-cdb8-a0e0-50d115df286a@gmail.com> (raw)
In-Reply-To: <CAHp75VdFybPNxXU5URVHBBWROV6h1eX+u_R-r5Kue08kBUmGHQ@mail.gmail.com>
Hi,
On 10/7/2017 9:13 AM, Andy Shevchenko wrote:
> On Sat, Oct 7, 2017 at 5:33 AM,
> <sathyanarayanan.kuppuswamy@linux.intel.com> wrote:
>> From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
>>
>> Currently, update_no_reboot_bit() function implemented in this driver
>> uses mutex_lock() to protect its register updates. But this function is
>> called with in atomic context in iTCO_wdt_start() and iTCO_wdt_stop()
>> functions in iTCO_wdt.c driver, which in turn causes "sleeping into
>> atomic context" issue. This patch fixes this issue by replacing the
>> mutex_lock() with spin_lock() to protect the GCR read/write/update APIs.
>>
>> Fixes: 9d855d4 ("platform/x86: intel_pmc_ipc: Fix iTCO_wdt GCS memory
>> mapping failure")
> I think it need to be a one line.
Fixed it in v5 version. But it crosses 80 char limit. I am not sure
whether its alright.
>
> Does it apply on top of v4.14-rc3 ?
Yes. Just checked it now. It applies cleanly on top of v4.14-rc3. But
v5 patch set is re-based on top of your review branch.
So it has dependency on a patch ( "platform/x86: intel_pmc_ipc: Use
devm_* calls in driver probe function") in your review branch.
> Btw, this patch should be first in the series.
Fixed it in v5 version.
>
>
next prev parent reply other threads:[~2017-10-07 22:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-07 2:33 [RFC v4 0/8] PMC/PUNIT IPC driver cleanup sathyanarayanan.kuppuswamy
2017-10-07 2:33 ` [RFC v4 1/8] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices sathyanarayanan.kuppuswamy
2017-10-07 2:33 ` [RFC v4 2/8] platform/x86: intel_pmc_ipc: Use spin_lock to protect GCR updates sathyanarayanan.kuppuswamy
2017-10-07 16:13 ` Andy Shevchenko
2017-10-07 22:29 ` Kuppuswamy, Sathyanarayanan [this message]
2017-10-07 2:33 ` [RFC v4 3/8] platform/x86: intel_pmc_ipc: Use regmap calls for " sathyanarayanan.kuppuswamy
2017-10-07 2:33 ` [RFC v4 4/8] platform: x86: Add generic Intel IPC driver sathyanarayanan.kuppuswamy
2017-10-07 2:33 ` [RFC v4 5/8] platform/x86: intel_punit_ipc: Fix resource ioremap warning sathyanarayanan.kuppuswamy
2017-10-07 2:34 ` [RFC v4 6/8] platform/x86: intel_punit_ipc: Use generic intel ipc device calls sathyanarayanan.kuppuswamy
2017-10-07 2:34 ` [RFC v4 7/8] platform/x86: intel_pmc_ipc: Use generic Intel IPC " sathyanarayanan.kuppuswamy
2017-10-07 2:34 ` [RFC v4 8/8] platform/x86: intel_scu_ipc: " sathyanarayanan.kuppuswamy
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=98547c75-c7a8-cdb8-a0e0-50d115df286a@gmail.com \
--to=sathyaosid@gmail.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@infradead.org \
--cc=dvhart@infradead.org \
--cc=hpa@zytor.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=qipeng.zha@intel.com \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=souvik.k.chakravarty@intel.com \
--cc=tglx@linutronix.de \
--cc=wim@iguana.be \
--cc=x86@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;
as well as URLs for NNTP newsgroup(s).