mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Thompson <daniel.thompson@linaro.org>
To: Baolin Wang <baolin.wang@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
	Jason Wessel <jason.wessel@windriver.com>,
	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 11:38:08 +0000	[thread overview]
Message-ID: <20180125113808.3bzgh6zloosw76yv@oak.lan> (raw)
In-Reply-To: <CAMz4kuKu9pONLRbh6wKT88QV_vyBW1AQ=ss-qx0s6_i+-AxX9g@mail.gmail.com>

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!


Daniel.

  reply	other threads:[~2018-01-25 11:38 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 [this message]
2018-01-25 14:49       ` Jason Wessel
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=20180125113808.3bzgh6zloosw76yv@oak.lan \
    --to=daniel.thompson@linaro.org \
    --cc=arnd@arndb.de \
    --cc=baolin.wang@linaro.org \
    --cc=broonie@kernel.org \
    --cc=jason.wessel@windriver.com \
    --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®