gddr6x temp reading rtx 4090
This commit is contained in:
@@ -7,14 +7,16 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
int map_size = 4096UL;
|
int map_size = 4096UL;
|
||||||
void *map_base, *virt_addr;
|
void *map_base, *virt_addr;
|
||||||
uint32_t read_result, base_offset, temp;
|
uint32_t read_result, base_offset, temp;
|
||||||
uint32_t bar = 0xFB000000;
|
//uint32_t bar = 0xFB000000; // GA102 + GA104
|
||||||
uint32_t offset = bar + 0x0000E2A8; // GA102
|
uint32_t bar = 0xEC000000; // AD102 (RTX 4090)
|
||||||
|
uint32_t offset = bar + 0x0000E2A8; // GA102 + AD102
|
||||||
//uint32_t offset = bar + 0x0000EE50; // GA104
|
//uint32_t offset = bar + 0x0000EE50; // GA104
|
||||||
|
|
||||||
char *MEM_RES = "\x2f\x64\x65\x76\x2f\x6d\x65\x6d";
|
char *MEM_RES = "\x2f\x64\x65\x76\x2f\x6d\x65\x6d";
|
||||||
|
|||||||
Reference in New Issue
Block a user