Skip to content

Instantly share code, notes, and snippets.

View superm1's full-sized avatar

Mario Limonciello superm1

View GitHub Profile
@superm1
superm1 / edid-decode.txt
Created March 5, 2024 20:39
Framework 16 EDID
edid-decode (hex):
00 ff ff ff ff ff ff 00 09 e5 c9 0b 00 00 00 00
30 20 01 04 a5 22 16 78 03 3d 35 ae 50 43 b1 25
0e 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 34 70 00 a0 a0 40 a0 60 30 20
f6 0c 59 d7 10 00 00 1a 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 fe 00 42
4f 45 20 43 51 0a 20 20 20 20 20 20 00 00 00 fe
00 4e 45 31 36 30 51 44 4d 2d 4e 5a 36 0a 01 0a
@superm1
superm1 / ftrace.txt
Created January 23, 2024 17:44
6.8-rc1 GPU scheduler ftrace
# captured using this command
# trace-cmd record -e gpu_scheduler:drm_sched_job -e gpu_scheduler:drm_run_job -e gpu_scheduler:drm_sched_process_job -e gpu_scheduler:drm_sched_job_wait_dep
cpus=16
gnome-shel:cs0-1706 [004] 44.895256: drm_sched_job: entity=0xffffa00d52574810, id=135, fence=0xffffa00d9baf9c40, ring=gfx_0.0.0, job count:0, hw job count:0
kworker/u32:0-11 [001] 44.895322: drm_run_job: entity=0xffffa00d52574810, id=135, fence=0xffffa00d9baf9c40, ring=gfx_0.0.0, job count:0, hw job count:1
gnome-shel:cs0-1706 [004] 44.895501: drm_sched_job: entity=0xffffa00d52574810, id=136, fence=0xffffa00d9baf9580, ring=gfx_0.0.0, job count:0, hw job count:1
kworker/u32:0-11 [001] 44.895563: drm_run_job: entity=0xffffa00d52574810, id=136, fence=0xffffa00d9baf9580, ring=gfx_0.0.0, job count:0, hw job count:2
<idle>-0 [009] 44.897117: drm_sched_process_job: fence=0xffffa00d9baf9c40 signaled
<idle>-0 [009] 44.897530: drm_
@superm1
superm1 / s2idle_report-2023-12-08.txt
Last active December 8, 2023 16:21
Framework 13 6.6.5 s2idle report (on Ubuntu 22.04 + GNOME)
2023-12-08 10:15:06,814 INFO: Debugging script for s2idle on AMD systems
2023-12-08 10:15:06,814 INFO: 💻 Framework Laptop 13 (AMD Ryzen 7040Series) (Laptop) running BIOS 3.3 (03.03) released 10/17/2023 and EC unknown
2023-12-08 10:15:06,814 INFO: 🐧 Ubuntu 22.04.3 LTS
2023-12-08 10:15:06,814 INFO: 🐧 Kernel 6.6.5
2023-12-08 10:15:06,816 INFO: Checking prerequisites for s2idle
2023-12-08 10:15:06,816 INFO: ✅ Logs are provided via systemd
2023-12-08 10:15:06,816 INFO: ✅ AMD Ryzen 5 7640U w/ Radeon 760M Graphics (family 19 model 74)
2023-12-08 10:15:06,816 INFO: ✅ LPS0 _DSM enabled
2023-12-08 10:15:06,988 INFO: ✅ ACPI FADT supports Low-power S0 idle
2023-12-08 10:15:06,989 DEBUG: /sys/module/gpiolib_acpi/parameters/ignore_wake is not configured
@superm1
superm1 / servo.py
Created July 12, 2023 16:26
servo docker launcher
#!/usr/bin/env python3
# Copyright 2022 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import docker
import logging
import argparse
IMAGE = "us-docker.pkg.dev/chromeos-hw-tools/servod/servod:release"
### Keybase proof
I hereby claim:
* I am superm1 on github.
* I am superm1 (https://keybase.io/superm1) on keybase.
* I have a public key whose fingerprint is 0B0B 6E49 4E9D 5EFB 3918 0D9A 2D19 2CA6 2477 0276
To claim this, I am signing this object:
@superm1
superm1 / gist:100a2ed20449f684ebb84c392e35dbed
Created February 23, 2018 19:02
Make sure all buses reserve at least one bus number
Root of issue was that XHCI controller wasn't visible:
[ 320.557898] pci_bus 0000:3a: [bus 3a] partially hidden behind bridge 0000:02 [bus 02-39]
[ 320.557899] pci_bus 0000:3a: [bus 3a] partially hidden behind bridge 0000:01 [bus 01-39]
It was missing from PCI tree:
-[0000:00]-+-00.0
+-02.0
+-04.0
+-08.0
@superm1
superm1 / gist:912eaa117c67496e963dbae42f0c4063
Created February 21, 2018 15:42
build failure for #409
$ git describe
1.0.5-10-g767210e
$ ninja -C build test
ninja: Entering directory `build'
[1/220] Generating builder-test-firmware with a custom command.
[2/220] Generating colorhug-test-firmware with a custom command.
[3/220] Generating hwid-test-firmware with a custom command.
[4/220] Generating installed-cab123 with a custom command.
[5/220] Generating installed-cab124 with a custom command.
[6/220] Generating noreqs-test-firmware with a custom command.