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

Rafał Bilski
2006-06-29T15:40:56Z

> Hi Rafał,
>
> Any code to show? Just in case... ;-)
>
> Groeten,
> Bart
>

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ł

----------------------------------------------------------------------
PS. Fajny portal... >>> http://link.interia.pl/f196a