Received: from mailapp01.imgtec.com ([195.59.15.196]:12476 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27011344AbbAUJfGcko4W (ORCPT ); Wed, 21 Jan 2015 10:35:06 +0100 Message-ID: <54BF72C3.60306@imgtec.com> Date: Wed, 21 Jan 2015 09:34:59 +0000 From: Markos Chandras MIME-Version: 1.0 Subject: Re: [PATCH RFC v2 27/70] MIPS: kernel: cevt-r4k: Add MIPS R6 to the c0_compare_interrupt handler References: <1421405389-15512-1-git-send-email-markos.chandras@imgtec.com> <1421405389-15512-28-git-send-email-markos.chandras@imgtec.com> <20150120091414.GA23188@jhogan-linux.le.imgtec.org> In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: "Maciej W. Rozycki" , James Hogan Cc: linux-mips@linux-mips.org, Leonid Yegoshin Message-ID: <20150121093459.4zfF1pswjaJyUwV_b-pUwkfU-HHDAhRwEZxzhbTb5aY@z> On 01/20/2015 02:33 PM, Maciej W. Rozycki wrote: > On Tue, 20 Jan 2015, James Hogan wrote: > >>> While a preexisting bug, this is simply not true, there's CP0.Cause.TI to >>> examine for a timer interrupt pending. Please fix your change to use >>> `c0_compare_int_pending' instead and synchronise with stuff posted by >>> James (cc-ed) at . >> >> I'm not sure I follow what you mean. This change makes it treat r6 like >> it treats r2 (i.e. there is still a Cause.TI bit), which sounds correct >> to me. I'm guessing cpu_has_mips_r6 doesn't imply cpu_has_mips_r2. > > Correct, R6 is not backwards compatible with R2 so it doesn't set the R2 > flag and consequently any compatibility that does exist has to be handled > explicitly; see 28/70 for the details of the flag setup. > > Maciej > So i guess the original patch is fine then? otherwise, like James said, I am not sure what's wrong with it (apart from the fact that it will conflict with what James posted on http://patchwork.linux-mips.org/patch/8900/). Such conflicts will be taken care of when Ralf is ready to merge R6. -- markos