[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1807301357100.2518@nanos.tec.linutronix.de>
Date: Mon, 30 Jul 2018 14:08:45 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Jacek Tomaka <jacekt@....com>
cc: LKML <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...hat.com>,
Jacek Tomaka <jacekt@...eo.com>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] perf/x86/intel: Add support for MISPREDICT bit on Knights
Landing cpus
On Sat, 28 Jul 2018, Jacek Tomaka wrote:
> From: Jacek Tomaka <jacekt@...eo.com>
>
> Knights Landing supports half baked LBR_FORMAT_TIME format. The addresses are linear but it does have MISPREDICT bit but nothing else.
I really have no idea what you are trying to explain here.
> Unfortunately IA32_PERF_CAPABILITIES[5:0] will report LBR_FORMAT_LIP. This change teaches LBR about this Knights Landing quirk.
Please use proper line breaks around 78 characters. Also 'This change...'
is equally wrong as 'This patch...'. We know already that this is a
change/patch, right?
See Documentation/process/submitting-patches.rst and search for 'This
patch'.
> ---
> arch/x86/events/intel/lbr.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c
> index cf372b9055..0f73e60315 100644
> --- a/arch/x86/events/intel/lbr.c
> +++ b/arch/x86/events/intel/lbr.c
> @@ -1230,4 +1230,10 @@ void intel_pmu_lbr_init_knl(void)
>
> x86_pmu.lbr_sel_mask = LBR_SEL_MASK;
> x86_pmu.lbr_sel_map = snb_lbr_sel_map;
> +
> + /* Knights Landing supports half baked LBR format. The addresses are linear but it does have MISPREDICT bit.
> + * Unfortunately IA32_PERF_CAPABILITIES[5:0] will report LBR_FORMAT_LIP.
> + */
This also wants proper line breaks and please use proper comment style:
/*
* This is how a proper multi-line should
* be formatted.
*/
> + if (x86_pmu.intel_cap.lbr_format == LBR_FORMAT_LIP)
> + lbr_desc[LBR_FORMAT_LIP] |= LBR_EIP_FLAGS;
Thanks,
tglx
Powered by blists - more mailing lists