From owner-freebsd-mips@FreeBSD.ORG Sat Jul 17 13:27:24 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9F72106566B; Sat, 17 Jul 2010 13:27:24 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by mx1.freebsd.org (Postfix) with ESMTP id D4A298FC1B; Sat, 17 Jul 2010 13:27:23 +0000 (UTC) Received: by vws14 with SMTP id 14so4224553vws.17 for ; Sat, 17 Jul 2010 06:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=jBYk3g0CthyVltpCeDPeW69T78CPcvRl9pI8fCBppuo=; b=isVMFSqHiYFOQt2B72Gz8V/VYpIeeArsfyXUXB0621Lo6Fw90rr6w0RfJUz3zWncb8 FZ+P93Penz8GGez4Zn6XdW0/ZKkMZfBLPSIUD4LHOe4luiKm7DoFPrVsp/nSOYqtfy6F XtYMcwfBBbQ/E8sCZgWkI252TgoxrMWbi1K38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qrutVyt+rjRduZ8v9pR4i1MAK0ex4rSPDQNXjW9gS91uAriQeLhFPZg62idUCkuIjN w8YibkZaD66zIuYVrZYf2dXSv6lNqB6fk34vCy3ie7e2vZOiEgj1fA+RDbqeoTynnfJt i5b364gvZbRPmcRwBBZlTdIViCNryx9KuCjE4= MIME-Version: 1.0 Received: by 10.220.75.148 with SMTP id y20mr1424916vcj.4.1279373243022; Sat, 17 Jul 2010 06:27:23 -0700 (PDT) Received: by 10.220.188.138 with HTTP; Sat, 17 Jul 2010 06:27:22 -0700 (PDT) In-Reply-To: <4C41A248.8090605@FreeBSD.org> References: <4C41A248.8090605@FreeBSD.org> Date: Sat, 17 Jul 2010 18:57:22 +0530 Message-ID: From: "Jayachandran C." To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Cc: Neel Natu , freebsd-mips@freebsd.org Subject: Re: [RFC] Event timers on MIPS X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2010 13:27:24 -0000 2010/7/17 Alexander Motin : > 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 > > Could somebody falimiar with MIPS review/test my patch and extend it to > RMI hardware? XLR uses an on-chip PIC clock (running at 66MHz) for cpu 0 and count/compare clock (running at CPU freq) for the other CPUs, hope this is supported with the new code. Other than that, I should be able to merge the code into XLR specific rmi/tick.c rmi/clock.c, if it works on other MIPS platforms. JC.