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

From: Rafał Bilski
Date: Thu Jun 29 2006 - 11:39:23 EST


> 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

-
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/