public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: x86 maintainers <x86@kernel.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -tip] x86: cpu_debug.c prepare report if files are less or more then expected
Date: Tue, 14 Apr 2009 15:46:55 +0200	[thread overview]
Message-ID: <20090414134655.GD27163@elte.hu> (raw)
In-Reply-To: <1239711444.3079.13.camel@ht.satnam>


* Jaswinder Singh Rajput <jaswinder@kernel.org> wrote:

> This will prepare the report to update cpu_debug
> 
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ---
>  arch/x86/include/asm/cpu_debug.h |    1 +
>  arch/x86/kernel/cpu/cpu_debug.c  |   12 ++++++++++++
>  2 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/x86/include/asm/cpu_debug.h b/arch/x86/include/asm/cpu_debug.h
> index 2228020..b64da5d 100644
> --- a/arch/x86/include/asm/cpu_debug.h
> +++ b/arch/x86/include/asm/cpu_debug.h
> @@ -187,6 +187,7 @@ enum cpu_processor_bit {
>  #define	CPU_ALL			(CPU_INTEL_ALL | CPU_AMD_ALL)
>  
>  #define MAX_CPU_FILES		512
> +#define MIN_CPU_FILES		10
>  
>  struct cpu_private {
>  	unsigned		cpu;
> diff --git a/arch/x86/kernel/cpu/cpu_debug.c b/arch/x86/kernel/cpu/cpu_debug.c
> index 46e29ab..1c3ebd4 100644
> --- a/arch/x86/kernel/cpu/cpu_debug.c
> +++ b/arch/x86/kernel/cpu/cpu_debug.c
> @@ -838,6 +838,14 @@ static int cpu_init_allreg(unsigned cpu, struct dentry *dentry)
>  	return err;
>  }
>  
> +/* Send Report to maintainer if files are less or more then expected */ 
> +static void send_report(int files, struct cpuinfo_x86 *cpui)
> +{
> +	pr_info("Please report \"cpu_debug files %d for %x:%x:%x:%x\" to"
> +		" jaswinderrajput@gmail.com\n", files, cpui->x86_vendor,
> +		cpui->x86, cpui->x86_model, cpui->x86_mask);

i'd rather see this reported to linux-kernel@vger.kernel.org, plus 
please use a WARN_ONCE() instead of a pr_info(). Hitting this is a 
bug we want to fix.

	Ingo

  reply	other threads:[~2009-04-14 13:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14 12:17 [PATCH -tip] x86: cpu_debug.c prepare report if files are less or more then expected Jaswinder Singh Rajput
2009-04-14 13:46 ` Ingo Molnar [this message]
2009-04-14 15:37   ` Jaswinder Singh Rajput
2009-04-14 16:10     ` Jaswinder Singh Rajput

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=20090414134655.GD27163@elte.hu \
    --to=mingo@elte.hu \
    --cc=jaswinder@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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