GRUB2 and poking MMIO registers? (The Wiki says so)
Posted: Thu Apr 28, 2022 8:30 am
In the Intel HD Graphics Wiki article, there's a puzzling fragment that says:
I have to admit, poking MMIO registers from the boot menu / terminal could be useful for experimenting with the hardware, so it would be great if this feature were real. But the Wiki article doesn't seem to provide any details about that, neither I could find them anywhere else in the Wiki nor on the Forums (nor anywhere else in the Net, for that matter).
Any ideas what they might be talking about in that article?
Does anyone know what read/write commands are they talking about? I dug through GRUB's documentation and I couldn't find anything related to reading/writing MMIO memory (or any memory whatsoever). There are no read/write listed in the commands list. Are there some undocumented commands I should be aware of, or the Wiki is simply lying?Experimenting with the device
There are various tools available to study the behavior of the graphics device for simpler tasks in order to gain an understanding of how something is done. One way to do so is to use Intel's graphics debugging utilities (The intel-gpu-tools package), which allow reading and writing to the device registers from the terminal. This can be very useful, for instance, this method proved invaluable when studying the GMBUS. The same can be done using GRUB2’s built in terminal by obtaining the MMIO base address using lspci and then using the read/write commands to perform the associated operation on the desired register.
I have to admit, poking MMIO registers from the boot menu / terminal could be useful for experimenting with the hardware, so it would be great if this feature were real. But the Wiki article doesn't seem to provide any details about that, neither I could find them anywhere else in the Wiki nor on the Forums (nor anywhere else in the Net, for that matter).
Any ideas what they might be talking about in that article?