From: Randy Dunlap <randy.dunlap@oracle.com>
To: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@elte.hu>,
Alan Cox <alan@linux.intel.com>
Subject: Re: [PATCH 2/2] x86/mrst: add more timer config options
Date: Mon, 17 May 2010 12:56:19 -0700 [thread overview]
Message-ID: <20100517125619.a0e123cd.randy.dunlap@oracle.com> (raw)
In-Reply-To: <1274124183-23431-3-git-send-email-jacob.jun.pan@linux.intel.com>
On Mon, 17 May 2010 12:23:03 -0700 Jacob Pan wrote:
> Always-on local APIC timer (ARAT) has been introduced to Medfield, along
> with the platform APB timers we have more timer configuration options
> between Moorestown and Medfield.
>
> This patch adds run-time detection of avaiable timer features so that
> we can treat Medfield as a variant of Moorestown and set up the optimal
> timer options for each platform. i.e.
>
> Medfield: per cpu always-on local APIC timer
> Moorestown: per cpu APB timer
>
> Manual override is possible via cmdline option x86_mrst_timer.
which is documented where??
>
> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
> ---
> arch/x86/include/asm/apb_timer.h | 2 +-
> arch/x86/include/asm/mrst.h | 1 +
> arch/x86/kernel/apb_timer.c | 18 ++++++-----
> arch/x86/kernel/mrst.c | 64 ++++++++++++++++++++++++++++++++-----
> 4 files changed, 67 insertions(+), 18 deletions(-)
> diff --git a/arch/x86/kernel/mrst.c b/arch/x86/kernel/mrst.c
> index f1ccabd..87c5c7d 100644
> --- a/arch/x86/kernel/mrst.c
> +++ b/arch/x86/kernel/mrst.c
> @@ -25,6 +25,29 @@
> #include <asm/i8259.h>
> #include <asm/apb_timer.h>
>
> +/**
Don't use /** since this is not a kernel-doc comment block.
> + * the clockevent devices on Moorestown/Medfield can be APBT or LAPIC clock,
> + * cmdline option x86_mrst_timer can be used to override the configuration
> + * to prefer one or the other.
> + * at runtime, there are basically three timer configurations:
> + * 1. per cpu apbt clock only
> + * 2. per cpu always-on lapic clocks only, this is Penwell/Medfield only
> + * 3. per cpu lapic clock (C3STOP) and one apbt clock, with broadcast.
> + *
> + * by default (without cmdline option), platform code first detects cpu type
> + * to see if we are on lincroft or penwell, then set up both lapic or apbt
> + * clocks accordingly.
> + * i.e. by default, medfield uses configuration #2, moorestown uses #1.
> + * config #3 is supported but not recommended on medfield.
> + *
> + * rating and feature summary:
> + * lapic (with C3STOP) --------- 100
> + * apbt (always-on) ------------ 110
> + * lapic (always-on,ARAT) ------ 150
> + */
> +
> +int mrst_timer_options __cpuinitdata;
> +
> static u32 sfi_mtimer_usage[SFI_MTMR_MAX_NUM];
> static struct sfi_timer_table_entry sfi_mtimer_array[SFI_MTMR_MAX_NUM];
> int sfi_mtimer_num;
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next prev parent reply other threads:[~2010-05-17 19:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 19:23 [PATCH 0/2] v3 Moorestown updated patches 2,3,4 of v2 Jacob Pan
2010-05-17 19:23 ` [PATCH 1/2] x86/mrst: add cpu type detection Jacob Pan
2010-05-17 19:23 ` [PATCH 2/2] x86/mrst: add more timer config options Jacob Pan
2010-05-17 19:56 ` Randy Dunlap [this message]
2010-05-17 20:26 ` jacob pan
2010-05-17 20:28 ` Randy Dunlap
2010-05-17 20:27 ` Thomas Gleixner
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=20100517125619.a0e123cd.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=alan@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jacob.jun.pan@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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.