From: Jason Wessel <jason.wessel@windriver.com>
To: Daniel Thompson <daniel.thompson@linaro.org>,
Baolin Wang <baolin.wang@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>, Ingo Molnar <mingo@kernel.org>,
Mark Brown <broonie@kernel.org>,
<kgdb-bugreport@lists.sourceforge.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kdb: Change timespec to use timespec64
Date: Thu, 25 Jan 2018 08:49:02 -0600 [thread overview]
Message-ID: <faba1dca-6eb5-d803-4585-588509195535@windriver.com> (raw)
In-Reply-To: <20180125113808.3bzgh6zloosw76yv@oak.lan>
On 01/25/2018 05:38 AM, Daniel Thompson wrote:
> On Thu, Jan 25, 2018 at 05:18:54PM +0800, Baolin Wang wrote:
>> On 25 January 2018 at 16:55, Arnd Bergmann <arnd@arndb.de> wrote:
>>> On Thu, Jan 25, 2018 at 9:05 AM, Baolin Wang <baolin.wang@linaro.org> wrote:
>>>> @@ -2554,7 +2554,7 @@ static int kdb_summary(int argc, const char **argv)
>>>> kdb_printf("domainname %s\n", init_uts_ns.name.domainname);
>>>> kdb_printf("ccversion %s\n", __stringify(CCVERSION));
>>>>
>>>> - now = __current_kernel_time();
>>>> + now = current_kernel_time64();
>>>> kdb_gmtime(&now, &tm);
>>>> kdb_printf("date %04d-%02d-%02d %02d:%02d:%02d "
>>>> "tz_minuteswest %d\n",
>>>
>>> Thanks for picking this one up again, we should find a permanent solution here.
>>> Unfortunately you patch is incorrect, as we cannot safely call
>>> current_kernel_time64()
>>> from NMI context.
>>
>> Ah, thanks for pointing out the issue, since I do not know what
>> context the function will be called in kdb.
>>
>>>
>>> The __ prefix on __current_kernel_time() indicates that this is a special call
>>> that intentionally doesn't read the hardware time to avoid taking locks that
>>> might already be held in the context from which we entered the debugger.
>>>
>>> See https://patchwork.kernel.org/patch/10002097/ for my earlier patch.
>>
>> This patch had not been merged into mainline?
>
> Not yet (and I'm afraid it's not in kgdb-next either) but the ack from Jason is from
> this kernel cycle so we'll see what can be done!
>
>
I thought for what ever reason this was going through the time keeper subtree. I added it immediately to kgdb-next so it will be evaluated in the linux-next tree in the next day or so, and we can get this merged in the merge window.
Thanks,
Jason.
next prev parent reply other threads:[~2018-01-25 14:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-25 8:05 Baolin Wang
2018-01-25 8:55 ` Arnd Bergmann
2018-01-25 9:18 ` Baolin Wang
2018-01-25 11:38 ` Daniel Thompson
2018-01-25 14:49 ` Jason Wessel [this message]
2018-01-25 15:12 ` Arnd Bergmann
2018-01-26 1:40 ` Baolin Wang
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=faba1dca-6eb5-d803-4585-588509195535@windriver.com \
--to=jason.wessel@windriver.com \
--cc=arnd@arndb.de \
--cc=baolin.wang@linaro.org \
--cc=broonie@kernel.org \
--cc=daniel.thompson@linaro.org \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@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
all inboxes | Powered by JetHome®