Re: [PATCH] (Longhaul 1/5) PCI: Protect bus master DMA from Longhaulby rw semaphores

From: Bart Hartgers
Date: Fri Jun 30 2006 - 06:50:34 EST


Rafał Bilski wrote:
> I'm using this for L2 cache:
> preempt_disable();
> local_irq_save(flags);
> rdmsr(MSR_VIA_FCR, lo, hi);
> flush_cache_all();
> wrmsr(MSR_VIA_FCR, lo | 1 << 8, hi);
> and this doesn't stop the processor, but when I'm adding
> 1 << 13 or 1 << 14 CPU stops. I have tried
> flush_cache_all();
> wrmsr(MSR_VIA_FCR, lo | 1 << 8, hi);
> flush_cache_all();
> wrmsr(MSR_VIA_FCR, lo | 1 << 8 | 1 << 13, hi);
> and
> flush_cache_all();
> wrmsr(MSR_VIA_FCR, lo | 1 << 8 | 1 << 13, hi);
> and more, but result was always the same.
>
> I will be very gratefull if You tell me what I'm doing wrong.
>
> Rafał

Sorry, I have no idea. The code looks fine.


--
Bart Hartgers - TUE Eindhoven - http://plasimo.phys.tue.nl/bart/contact/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/