Skip to content

Instantly share code, notes, and snippets.

@hh1599
hh1599 / first run
Created November 25, 2022 18:36
modified pmtable 11-25
base address (high): 0x3, (low): 0xbe300000
table version: 0x450005
table base address: 0x3be300000
transfer table: []
0000: -68.28723907470703
0004: -3.103748217258798e+28
0008: -6474139749580800.0
000C: -34154429284352.0
0010: -2.4870237908238336e+16
0014: -132333772472320.0
@hh1599
hh1599 / gamescope
Created November 25, 2022 18:13
game mode crashing logs
wlserver: [backend/headless/backend.c:82] Creating headless backend
wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
wlserver: [backend/session/session.c:110] Successfully loaded libseat session
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
vulkan: selecting physical device 'AMD Radeon Graphics (RADV REMBRANDT)': queue family 1
vulkan: physical device supports DRM format modifiers
drm: opening DRM node '/dev/dri/card0'
base address (high): 0x3, (low): 0xbe300000
table version: 0x450005
table base address: 0x3be300000
transfer table: [4521989, 3, 0, 0, 0]
0000: 22.000001907348633
0004: 3.638683557510376
0008: 24.000001907348633
000C: 7.08429479598999
0010: 24.000001907348633
0014: 6.233255386352539
@hh1599
hh1599 / pmtable.py
Last active November 20, 2022 21:02
import os
import struct
import sys
SMN_INDEX_REG = 0x60
SMN_DATA_REG = 0x64
SMN_MSG_REG = 0x3b10a20
SMN_RSP_REG = 0x3b10a80
SMN_ARG_REG = 0x3b10a88
@hh1599
hh1599 / scanout.py
Created September 27, 2022 16:34
modified scan.py
import os
import struct
SMN_INDEX_REG = 0x60
SMN_DATA_REG = 0x64
SMN_MSG_REG = 0x3b10a20
SMN_RSP_REG = 0x3b10a80
SMN_ARG_REG = 0x3b10a88
@hh1599
hh1599 / scan.py output
Last active September 28, 2022 23:29
6800U scan
01: ['0x1', '0x0', '0x0', '0x0', '0x0']
02: ['0x4452e00', '0x0', '0x0', '0x0', '0x0']
03: ['0x11', '0x0', '0x0', '0x0', '0x0']
04: ['0x0', '0x0', '0x0', '0x0', '0x0']
05: ['0x0', '0x0', '0x0', '0x0', '0x0']
06: ['0x450004', '0x0', '0x0', '0x0', '0x0']
07: ['0xfd']
08: ['0xfd']
09: ['0xff']
0a: ['0xff']
@hh1599
hh1599 / iomem
Created September 23, 2022 17:14
6800u
00000000-00000fff : Reserved
00001000-0009ffff : System RAM
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00
00000000-00000000 : PCI Bus 0000:00