| To: | "Dennis.Yxun" <dennis.yxun@gmail.com> |
|---|---|
| Subject: | Re: Problem About Vectored interrupt |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Sat, 19 Mar 2011 18:22:54 +0100 |
| Cc: | linux-mips@linux-mips.org, "Anoop P.A." <Anoop_P.A@pmc-sierra.com> |
| In-reply-to: | <AANLkTimK1xpHwvfE95rEMCikk8-0EkGjn4b5DwYWyN-E@mail.gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <AANLkTinhM4PUmLbWeAyavf-JPM1Xpu9pJVkXDq4c-f0C@mail.gmail.com> <AANLkTinsQrZJsXt0SKRfe3S0cNGT+uuW-t3Jo4Ob4=B4@mail.gmail.com> <A7DEA48C84FD0B48AAAE33F328C02014033DADEC@BBY1EXM11.pmc_nt.nt.pmc-sierra.bc.ca> <AANLkTikWUehOmyD6Nk3Abz=u7FEb8NMtX2-N4r5HHuY9@mail.gmail.com> <AANLkTimK1xpHwvfE95rEMCikk8-0EkGjn4b5DwYWyN-E@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Sat, Mar 19, 2011 at 08:42:17AM +0800, Dennis.Yxun wrote: > HI ALL: > Again, found that when come to set vect irq 7, do additional data flush > fix my problem, here is the patch > > diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c > index e971043..850ce58 100644 > --- a/arch/mips/kernel/traps.c > +++ b/arch/mips/kernel/traps.c > @@ -1451,6 +1451,9 @@ static void *set_vi_srs_handler(int n, vi_handler_t > addr, int srs) > *w = (*w & 0xffff0000) | (((u32)handler >> 16) & 0xffff); > w = (u32 *)(b + ori_offset); > *w = (*w & 0xffff0000) | ((u32)handler & 0xffff); > + /* FIXME: need flash data cache, for timer irq */ > + if (n == 7) > + flush_data_cache_page((unsigned int)b); > local_flush_icache_range((unsigned long)b, > (unsigned long)(b+handler_len)); The call local_flush_icache_range should already flushes the cache and there should be no reason why a 2nd range makes it any better - or why it would only be needed for irq 7 - and the timer isn't necessarily always irq 7. What is your hardware platform and processor? Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Problem About Vectored interrupt, Dennis.Yxun |
|---|---|
| Next by Date: | Re: [RFC PATCH 1/2] genirq: Add chip hooks for taking CPUs on/off line., Thomas Gleixner |
| Previous by Thread: | Re: Problem About Vectored interrupt, Dennis.Yxun |
| Next by Thread: | Re: Problem About Vectored interrupt, Dennis.Yxun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |