How BIOS configure caches...

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
AmA
Posts: 23
Joined: Thu Oct 07, 2010 8:23 pm

How BIOS configure caches...

Post by AmA »

I know about modifing caching trough CRXs and MSRs. Is BIOS doing something more than using this registers when dealing with CPU caches at boot/resume time? What exactly people means when saying: "BIOS configure and enable caches"?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: How BIOS configure caches...

Post by Combuster »

What it means is that the bios configures all the caching mechanism to the best allowable settings - i.e. all RAM is fully cacheable, while I/O mostly isn't unless the device says it's safe.

In other words: ignore cache settings unless you have a very good reason to modify them.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
AmA
Posts: 23
Joined: Thu Oct 07, 2010 8:23 pm

Re: How BIOS configure caches...

Post by AmA »

Combuster wrote:What it means is that the bios configures all the caching mechanism to the best allowable settings - i.e. all RAM is fully cacheable, while I/O mostly isn't unless the device says it's safe.
I was thinking initially that "BIOS enable caches" means that if BIOS do not do that, the OS would not be able to benefit from caches, in other words there would be not caches in the computer for the session. I guess that all times people(specs) write "Bios configure and enable caches" should write "BIOS configure and enable caching" instead.
Combuster wrote:In other words: ignore cache settings unless you have a very good reason to modify them.
Currently I am in an early development stage. I parse the E820 output to create a paging structure that makes possible the access of all the possibly needed memory. Marking al pages just cache enabled. Really basic configuration at this moment. I guess that BIOS uses MTRRs to configure caching policies where needed, so, latter I could modify my page allocation function to read MTRRs and map and configure the page structure regard BIOS polices.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: How BIOS configure caches...

Post by jal »

AmA wrote:
Combuster wrote:I guess that all times people(specs) write "Bios configure and enable caches" should write "BIOS configure and enable caching"
Aren't these functionally synonymous? To enable caching, you must enable caches...


JAL
Post Reply