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

Bart Hartgers
2006-06-30T10:46:23Z

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/