mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mikael Pettersson <mikpe@csd.uu.se>
To: johnstul@us.ibm.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] bt_ioremap question / cyclone-timer_A1 patch
Date: Tue, 9 Jul 2002 13:03:18 +0200 (MET DST)	[thread overview]
Message-ID: <200207091103.NAA05525@harpo.it.uu.se> (raw)

On 08 Jul 2002 19:36:23 -0700, john stultz wrote:
>	I've been working on improving performance of do_gettimeofday on
>certain NUMA hardware (see my earlier tsc-disable posts for why the TSCs
>cannot be used), and I wanted to run this by the list to make sure I'm
>not doing anything too daft. 
>
>Mainly I'm concerned about my usage of bt_ioremap. Early in the boot
>processes, I need to map in a couple of chipset registers and poke
>values into them.

How early? If this is just to get gettimeofday() working, can't it
wait until the regular initcalls are done?

> However one of the registers needs to be kept mapped
>for the life of the system (look for "cyclone_timer" below). I couldn't
>find any documentation on whether memory mapped with bt_ioremap can be
>held across mem_init(). It seems to "just work" but I wanted to find out
>if I really should be re-mapping the register w/ ioremap once it becomes
>available. 

If you look in include/asm-i386/fixmap.h you'll see that the BT ioremap
pages are temporary, and they do disappear once mem_init() [or whatever]
is done [pgtable.h sets VMALLOC_END to just below FIXADDR_START, which
protects the permanent fixmaps but intensionally not the temporary ones].
If it seemed to work for you then that's just luck, or perhaps it does
work in highmem kernels?

For things that must be mapped very early and continue to be mapped as
long as the kernel is up, you need a permanent fixmap. fixmap.h has a
number of permanent fixmaps defined #ifdef CONFIG_* and you can easily
add your own there, under #ifdef CONFIG_X86_IBMEXA.

/Mikael

             reply	other threads:[~2002-07-09 11:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09 11:03 Mikael Pettersson [this message]
2002-07-10  2:18 ` john stultz
  -- strict thread matches above, loose matches on Subject: below --
2002-07-09  2:36 john stultz

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=200207091103.NAA05525@harpo.it.uu.se \
    --to=mikpe@csd.uu.se \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®