OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 6:37 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Fri Aug 19, 2022 11:12 am 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
devc1 wrote:
One Last Question, is the Page Attribute Table (PAT) available on all x64 Processors ?

Yes.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Fri Aug 19, 2022 11:21 am 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
devc1 wrote:
One Last Question, is the Page Attribute Table (PAT) available on all x64 Processors ?
You know, the merest amount of research would have told you to just look into the bloody documentation, that contains such helpful sentences as:
Intel SDM wrote:
The PAT was introduced to the IA-32 architecture on the Pentium III processor. It is also available on the Pentium 4 and Intel Xeon processors.
Since those developments are far older than the development of 64-bit mode, the answer to your question is yes.

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Fri Aug 19, 2022 11:55 am 
Offline
Member
Member
User avatar

Joined: Fri Jun 11, 2021 6:02 am
Posts: 96
Location: Belgium
Instead of using PAT you may want to use non-temporal instructions instead, which has the same effect.

I use NT instructions since I want to keep my microkernel API free from any architecture-specific details where possible.

_________________
My OS is Norost B (website, Github, sourcehut)
My filesystem is NRFS (Github, sourcehut)


Top
 Profile  
 
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Fri Aug 19, 2022 12:50 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
nullplan wrote:
Intel SDM wrote:
The PAT was introduced to the IA-32 architecture on the Pentium III processor.

But it was introduced on the Pentium II...

Demindiro wrote:
Instead of using PAT you may want to use non-temporal instructions instead, which has the same effect.

Unfortunately, those instructions may not have the same effect:

Intel SDM wrote:
The memory type of the region being written to can override the non-temporal hint, if the memory address specified for the non-temporal store is in an uncacheable (UC) or write protected (WP) memory region.

Firmware may set up the MTRRs so that the framebuffer is UC. You'll need to change the MTRRs or override the MTRRs with the PAT to make non-temporal instructions work correctly, so you might as well set it to WC and make all instructions non-temporal.


Top
 Profile  
 
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Fri Aug 19, 2022 1:00 pm 
Offline
Member
Member
User avatar

Joined: Fri Jun 11, 2021 6:02 am
Posts: 96
Location: Belgium
Octocontrabass wrote:
Firmware may set up the MTRRs so that the framebuffer is UC. You'll need to change the MTRRs or override the MTRRs with the PAT to make non-temporal instructions work correctly, so you might as well set it to WC and make all instructions non-temporal.


From what I understand it is not possible to override the MTRR if it set to UC.

Attachment:
2022-08-19-205902_1053x600_scrot.png
2022-08-19-205902_1053x600_scrot.png [ 115.5 KiB | Viewed 457 times ]

_________________
My OS is Norost B (website, Github, sourcehut)
My filesystem is NRFS (Github, sourcehut)


Top
 Profile  
 
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Fri Aug 19, 2022 1:02 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
Demindiro wrote:
From what I understand it is not possible to override the MTRR if it set to UC.

Look at table 11-7 instead of table 11-6.


Top
 Profile  
 
 Post subject: Re: High Performance Graphics Driver for most devices
PostPosted: Mon Aug 22, 2022 7:46 pm 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
Understandable, thanks !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot], SemrushBot [Bot] and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group