From: "Kuppuswamy, Sathyanarayanan" <sathyaosid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Andy Shevchenko
<andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: Alessandro Zummo
<a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org>,
"x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>,
Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Alexandre Belloni
<alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Zha Qipeng <qipeng.zha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>,
"dvhart-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org"
<dvhart-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>,
Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Andy Shevchenko <andy-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
Souvik Kumar Chakravarty
<souvik.k.chakravarty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
linux-rtc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Platform Driver
<platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kupuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: Re: [RFC v5 1/8] platform/x86: intel_pmc_ipc: Use spin_lock to protect GCR updates
Date: Sun, 8 Oct 2017 11:54:13 -0700 [thread overview]
Message-ID: <3e38abb3-efce-49b9-ce2d-854c42bdfb12@gmail.com> (raw)
In-Reply-To: <CAHp75VdaTvaOgNJE1vHHDfT2V8MYyQFnpr0qdUmBVJ2743eQKA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Andy,
On 10/8/2017 11:38 AM, Andy Shevchenko wrote:
> On Sun, Oct 8, 2017 at 1:19 AM,
> <sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>> From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
>>
>> 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")
>> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kupuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
>> * Rebased this patch on top of Andy's review branch.
> Oh, what I asked you is to use vanilla kernel as a base.
> Please, be sure (you assured me, though it's not true)
I did test this patch on top of 4.14-rc3, but I have included another
patch (""platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe
function") from your review branch before testing.
I assumed that your will be pushing this patch along with devm_* fixes
patch (since you already reviewed it), So I re-based them together on
top of 4.14-rc3. Sorry, it looks like my assumption is incorrect.
> that it's
> applied against vanilla (or our fixes branch) and send just this one
> patch separately.
I will send it separately now.
>
> No need to resend v5 right now.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-10-08 18:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-07 22:19 [RFC v5 0/8] PMC/PUNIT IPC driver cleanup sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA
2017-10-07 22:19 ` [RFC v5 1/8] platform/x86: intel_pmc_ipc: Use spin_lock to protect GCR updates sathyanarayanan.kuppuswamy
[not found] ` <e70046c8d49173840f8ee7218e8b2288301f8e67.1507414288.git.sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-08 18:38 ` Andy Shevchenko
[not found] ` <CAHp75VdaTvaOgNJE1vHHDfT2V8MYyQFnpr0qdUmBVJ2743eQKA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-08 18:54 ` Kuppuswamy, Sathyanarayanan [this message]
2017-10-07 22:19 ` [RFC v5 2/8] platform/x86: intel_pmc_ipc: Use MFD framework to create dependent devices sathyanarayanan.kuppuswamy
2017-10-07 22:19 ` [RFC v5 3/8] platform/x86: intel_pmc_ipc: Use regmap calls for GCR updates sathyanarayanan.kuppuswamy
[not found] ` <cover.1507414288.git.sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-07 22:19 ` [RFC v5 4/8] platform: x86: Add generic Intel IPC driver sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA
[not found] ` <983bc2330acc5eb3f384e9aed7ceba22b5c7ea5f.1507414288.git.sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-09 4:53 ` Chakravarty, Souvik K
2017-10-09 7:11 ` Christoph Hellwig
2017-10-10 0:27 ` sathyanarayanan kuppuswamy
[not found] ` <0f54e44a-5ba0-ed0f-7efe-eff05e8b79d8-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-10 6:27 ` Christoph Hellwig
2017-10-10 22:09 ` sathyanarayanan kuppuswamy
2017-10-11 3:57 ` Chakravarty, Souvik K
2017-10-07 22:19 ` [RFC v5 5/8] platform/x86: intel_punit_ipc: Fix resource ioremap warning sathyanarayanan.kuppuswamy
2017-10-07 22:19 ` [RFC v5 6/8] platform/x86: intel_punit_ipc: Use generic intel ipc device calls sathyanarayanan.kuppuswamy
2017-10-09 5:07 ` Chakravarty, Souvik K
2017-10-10 22:28 ` sathyanarayanan kuppuswamy
2017-10-11 3:32 ` Chakravarty, Souvik K
2017-10-07 22:19 ` [RFC v5 7/8] platform/x86: intel_pmc_ipc: Use generic Intel IPC " sathyanarayanan.kuppuswamy
[not found] ` <dd7c7656d70de9621fa82d0175358492b39a187d.1507414288.git.sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-09 5:18 ` Chakravarty, Souvik K
2017-10-07 22:19 ` [RFC v5 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=3e38abb3-efce-49b9-ce2d-854c42bdfb12@gmail.com \
--to=sathyaosid-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org \
--cc=alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=andy-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=dvhart-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rtc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=qipeng.zha-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=sathyanarayanan.kuppuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=sathyanarayanan.kupuswamy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=souvik.k.chakravarty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
--cc=wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org \
--cc=x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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