Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 11:22:33 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        mav@FreeBSD.ORG
Cc:        neel@FreeBSD.ORG, freebsd-mips@FreeBSD.ORG
Subject:   Re: [RFC] Event timers on MIPS
Message-ID:  <20100717.112233.994790107173916507.imp@bsdimp.com>
In-Reply-To: <4C41A248.8090605@FreeBSD.org>
References:  <4C41A248.8090605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <4C41A248.8090605@FreeBSD.org>
            Alexander Motin <mav@FreeBSD.org> writes:
: Hi.
: 
: I've made a patch, updating MIPS timer code (except RMI) to utilize new
: MI event timer infrastructure. I've successfully built QEMU and XLR
: kernels with the patch. Unluckily I can't test how it works, unless
: somebody teach me how to cook QEMU to run it. I also haven't ported RMI
: timers drivers, as I am not sure how that hardware is intended to work.
: 
: Patch for HEAD can be found here:
: http://people.freebsd.org/~mav/timers_mips.patch

I'll have to take a look at things.  On MIPS, the COMPARE register is
per core, so you don't need to send an IPI if you are using that
hardware.  IPIs are a little expensive, IIRC, since they tend to have
bad cache effects and put extra pressure on the TLBs.

It wasn't clear from these patches if you are using one core to do the
signalling for all the others or not.  If so, that represents a bit of
a regression.  I'm also not sure about not having a per-cpu timer's
effect on performance on a 16 or 32 core MIPS box...

: Could somebody falimiar with MIPS review/test my patch and extend it to
: RMI hardware?

I see someone else has commented on that.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100717.112233.994790107173916507.imp>