All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: maillists.shan@gmail.com
Cc: xen-devel@lists.xensource.com, jun.nakajima@intel.com,
	konrad.wilk@oracle.com, donald.d.dugger@intel.com,
	dietmar.hahn@ts.fujitsu.com, jbeulich@suse.com
Subject: Re: [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors
Date: Thu, 09 May 2013 16:45:57 -0400	[thread overview]
Message-ID: <518C0B05.6040403@oracle.com> (raw)
In-Reply-To: <1368131669-1629-1-git-send-email-boris.ostrovsky@oracle.com>

On 05/09/2013 04:34 PM, Boris Ostrovsky wrote:
> Currently only a few Intel models have VPMU workaround turned on. It
> appears, however, that this issue exists on more models than what is
> covered by check_pmc_quirk(). Since we don't know exactly which cpus
> are affected we should turn this workaround on for all family 6
> processors.

Haitao,

A few weeks ago we had an email thread about this issue
(http://lists.xen.org/archives/html/xen-devel/2013-03/msg02618.html)
Did you have a chance to clarify with your HW folks what this is?

We kept hitting this on various models which is why I am suggesting this
patch (and I think it should be considered for 4.3).

-boris


>
> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> ---
>   xen/arch/x86/hvm/vmx/vpmu_core2.c | 16 +++++-----------
>   1 file changed, 5 insertions(+), 11 deletions(-)
>
> diff --git a/xen/arch/x86/hvm/vmx/vpmu_core2.c b/xen/arch/x86/hvm/vmx/vpmu_core2.c
> index 9f152b4..15b2036 100644
> --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c
> +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c
> @@ -65,8 +65,7 @@
>   #define PMU_FIXED_WIDTH_MASK     (((1 << PMU_FIXED_WIDTH_BITS) -1) << PMU_FIXED_WIDTH_SHIFT)
>   
>   /*
> - * QUIRK to workaround an issue on Nehalem processors currently seen
> - * on family 6 cpus E5520 (model 26) and X7542 (model 46).
> + * QUIRK to workaround an issue on various family 6 cpus.
>    * The issue leads to endless PMC interrupt loops on the processor.
>    * If the interrupt handler is running and a pmc reaches the value 0, this
>    * value remains forever and it triggers immediately a new interrupt after
> @@ -79,15 +78,10 @@ bool_t __read_mostly is_pmc_quirk;
>   
>   static void check_pmc_quirk(void)
>   {
> -    u8 family = current_cpu_data.x86;
> -    u8 cpu_model = current_cpu_data.x86_model;
> -    is_pmc_quirk = 0;
> -    if ( family == 6 )
> -    {
> -        if ( cpu_model == 47 || cpu_model == 46 || cpu_model == 42 ||
> -             cpu_model == 26 )
> -            is_pmc_quirk = 1;
> -    }
> +    if ( current_cpu_data.x86 == 6 )
> +        is_pmc_quirk = 1;
> +    else
> +        is_pmc_quirk = 0;
>   }
>   
>   static int core2_get_pmc_count(void);

  reply	other threads:[~2013-05-09 20:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 20:34 [PATCH] Intel/vpmu: Use Intel VPMU quirk on all family 6 processors Boris Ostrovsky
2013-05-09 20:45 ` Boris Ostrovsky [this message]
2013-05-10  9:46   ` George Dunlap
2013-05-16 12:30     ` Jan Beulich
2013-05-30 16:33       ` Boris Ostrovsky
2013-05-30 16:38         ` George Dunlap
2013-05-30 16:44           ` Boris Ostrovsky
2013-05-30 16:44         ` Jan Beulich
2013-05-30 16:50           ` Dugger, Donald D
  -- strict thread matches above, loose matches on Subject: below --
2013-05-31  3:53 Auld, Will
2013-05-31  8:04 ` Jan Beulich
2013-05-31  8:11   ` Auld, Will

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=518C0B05.6040403@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=dietmar.hahn@ts.fujitsu.com \
    --cc=donald.d.dugger@intel.com \
    --cc=jbeulich@suse.com \
    --cc=jun.nakajima@intel.com \
    --cc=konrad.wilk@oracle.com \
    --cc=maillists.shan@gmail.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.