mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Luck, Tony" <tony.luck@intel.com>
Cc: linux-kernel@vger.kernel.org,
	Chen Gong <gong.chen@linux.intel.com>,
	Borislav Petkov <bp@alien8.de>
Subject: Re: [git pull] RAS changes (queue for 3.3)
Date: Sun, 18 Dec 2011 09:27:08 +0100	[thread overview]
Message-ID: <20111218082708.GC4144@elte.hu> (raw)
In-Reply-To: <4eeb9b412912414dcf@agluck-desktop.sc.intel.com>


* Luck, Tony <tony.luck@intel.com> wrote:

> Hi Ingo,
> 
> Kicking the tires on the new version of the RAS tree at kernel.org 2.0 (so
> please say if you'd like to see my "please pull" script to format this e-mail
> differently).
> 
> Only one patch for this test - you said you liked it in https://lkml.org/lkml/2011/12/9/24
> 
> please pull from:
> 
> 	git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git mce-inject
> 	HEAD=2c29d9dd577b74b44e580f957ea44d1df73af23a
> 
> This will update the files shown below.
> 
> Thanks!
> 
> -Tony
> 
>  arch/x86/include/asm/mce.h              |    9 ++++---
>  arch/x86/kernel/cpu/mcheck/mce-inject.c |   34 +++++++++++++++++++++++++++---
>  2 files changed, 35 insertions(+), 8 deletions(-)

Pulled, thanks Tony!

Small nit for future pulls:

> Chen Gong (1):
>       x86: add IRQ context simulation in module mce-inject

In -tip we standardized on one particular convention of 
capitalizing commit tites, i.e. the above should have been:

>       x86: Add IRQ context simulation in module mce-inject

And we also try to put (sub-)subsystem qualifiers into the 
title, i.e.:

>       x86/mce: Add IRQ context simulation in module mce-inject

Another capitalization detail is comment blocks:


+                               /*
+                                * don't wait because mce_irq_ipi is necessary
+                                * to be sync with following raise_local
+                                */

We try to capitalize these consistently as well - i.e. "Don't".

This bit also shows an ugly looking line wrapping symptom:

+                               smp_call_function_many(mce_inject_cpumask,
+                                       mce_irq_ipi, NULL, 0);

which suggests that raise_mce() would be grateful for some 
cleanup and refactoring love. The whole injection logic is now 
large and complex enough to move into its own helper function.

Btw., the printk()s could be standardized as well:

                                printk(KERN_ERR
-                               "Timeout waiting for mce inject NMI %lx\n",
+                               "Timeout waiting for mce inject %lx\n",

You could use a standard prefix like "x86 RAS: Timeout waiting 
for ..." for all RAS related messages.

These are small details, not worth rebasing your tree for, but 
would be nice to fix these things in followup cleanup commit(s).

Thanks,

	Ingo

      reply	other threads:[~2011-12-18  8:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 19:25 Luck, Tony
2011-12-18  8:27 ` Ingo Molnar [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=20111218082708.GC4144@elte.hu \
    --to=mingo@elte.hu \
    --cc=bp@alien8.de \
    --cc=gong.chen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    /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

Powered by JetHome