Skip to content

Instantly share code, notes, and snippets.

View superm1's full-sized avatar

Mario Limonciello superm1

View GitHub Profile
@superm1
superm1 / ftrace.txt
Created January 23, 2024 17:44
6.8-rc1 GPU scheduler ftrace
View ftrace.txt
# 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)
View s2idle_report-2023-12-08.txt
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
View servo.py
#!/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"
View gist:757f8c9ebdab91e3d1497433e6491233
### 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
View gist:100a2ed20449f684ebb84c392e35dbed
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
View gist:912eaa117c67496e963dbae42f0c4063
$ 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.