Skip to content

Instantly share code, notes, and snippets.

View anarsoul's full-sized avatar

Vasily Khoruzhick anarsoul

View GitHub Profile
#![no_std]
#![no_main]
use embassy_executor::Spawner;
use embassy_net::{IpListenEndpoint, Runner, StackResources, tcp::TcpSocket};
use embassy_time::{Duration, Timer};
use esp_alloc as _;
use esp_backtrace as _;
use esp_hal::{
clock::CpuClock,
commit 2aa34af7b51f0db67f8cd51a800a1ae3d988e110
Author: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Wed Jul 16 18:12:10 2025 -0700
lima: ppir: don't depend on reg nir def indices to be starting after SSA
Since 7b70b419b528("nir: always index SSA defs before printing")
register indices are always start at zero, so we cannot rely anymore on
them starting after all the SSA indices
[611166.704631] nouveau 0000:01:00.0: sec2(gsp): mbox 00000098 00000001
[611166.704636] nouveau 0000:01:00.0: sec2(gsp):booter-load: boot failed: -5
[611166.704689] ------------[ cut here ]------------
[611166.704690] WARNING: CPU: 2 PID: 669 at drivers/gpu/drm/nouveau/nvkm/subdev/gsp/tu102.c:194 tu102_gsp_init+0xae/0xd0 [nouveau]
[611166.704910] Modules linked in: typec_displayport snd_usb_audio snd_usbmidi_lib snd_ump snd_rawmidi hid_logitech_hidpp hid_logitech_dj ccm snd_seq_dummy snd_hrtimer rfcomm snd_seq snd_seq_device nf_conntrack_netlink xt_nat xt_tcpudp iptable_raw veth xt_conntrack xt_MASQUERADE bridge stp llc ip6table_nat ip6table_filter ip6_tables xt_set ip_set iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter xfrm_user xfrm_algo overlay iwlmvm snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel qrtr snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common snd_soc_hdac_hda cmac snd_sof_intel_hda_mlink algif_hash snd_sof_intel_hda algif_skcipher soundwir
Jun 17 11:14:02 anarsoul-xps15 kernel: ------------[ cut here ]------------
Jun 17 11:14:02 anarsoul-xps15 kernel: WARNING: CPU: 0 PID: 3005 at drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/rpc.c:164 r535_gsp_msgq_wait+0x9a/0xb0 [nouveau]
Jun 17 11:14:02 anarsoul-xps15 kernel: Modules linked in: ccm snd_seq_dummy snd_hrtimer rfcomm snd_seq snd_seq_device nf_conntrack_netlink xt_nat xt_tcpudp iptable_raw veth xt_conntrack xt_MASQUERADE bridge stp llc ip6table_nat ip6table_filter ip6_tables xt_set ip_set iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter xfrm_user xfrm_algo overlay qrtr cmac algif_hash algif_skcipher af_alg bnep intel_uncore_frequency intel_uncore_frequency_common intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp nouveau iwlmvm snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence snd_sof_pci snd_sof_xtensa_dsp sn
Jun 17 11:04:10 anarsoul-xps15 kernel: nouveau 0000:01:00.0: gsp: mmu fault queued
Jun 17 11:04:10 anarsoul-xps15 kernel: nouveau 0000:01:00.0: gsp: rc: engn:00000001 chid:0 type:31 scope:1 part:233
Jun 17 11:04:10 anarsoul-xps15 kernel: nouveau 0000:01:00.0: fifo:001001:0000:0000:[(udev-worker)[459]] errored - disabling channel
Jun 17 11:04:10 anarsoul-xps15 kernel: nouveau 0000:01:00.0: DRM: channel 0 killed!
Jun 17 11:10:15 anarsoul-xps15 kernel: nouveau 0000:01:00.0: gsp: rc: engn:00000001 chid:0 type:32 scope:1 part:233
Jun 17 11:10:15 anarsoul-xps15 kernel: nouveau 0000:01:00.0: fifo:001001:0000:0000:[(udev-worker)[462]] errored - disabling channel
Jun 17 11:10:15 anarsoul-xps15 kernel: nouveau 0000:01:00.0: DRM: channel 0 killed!
Jun 17 11:10:15 anarsoul-xps15 kernel: nouveau 0000:01:00.0: gsp: rc: engn:00000001 chid:0 type:32 scope:1 part:233
Jun 17 11:10:26 anarsoul-xps15 kernel: nouveau 0000:01:00.0: vkcube[2245]: job timeout, channel 3 killed!
Jun 17 11:12:13 anarsoul-xps15 kernel: nouveau 0000:01:00.0: DRM: failed to idle channel 1 [DRM]
[ 0.000000] Linux version 6.16.0-rc1-00004-gaef17cb3d3c4 (anarsoul@anarsoul-xps15) (gcc (GCC) 15.1.1 20250425, GNU ld (GNU Binutils) 2.44.0) #24 SMP PREEMPT_DYNAMIC Tue Jun 10 18:19:29 PDT 2025
[ 3.565902] nouveau 0000:01:00.0: enabling device (0000 -> 0003)
[ 3.565980] nouveau 0000:01:00.0: NVIDIA TU117 (167000a1)
[ 3.695189] nouveau 0000:01:00.0: gsp: RM version: 535.113.01
[ 3.764273] nouveau 0000:01:00.0: bios: version 90.17.1c.40.4b
[ 5.028342] nouveau 0000:01:00.0: drm: VRAM: 4096 MiB
[ 5.028346] nouveau 0000:01:00.0: drm: GART: 536870912 MiB
[ 5.069235] nouveau 0000:01:00.0: drm: MM: using COPY for buffer copies
[ 5.069401] [drm] Initialized nouveau 1.4.0 for 0000:01:00.0 on minor 0
[ 5.070711] nouveau 0000:01:00.0: [drm] No compatible format found
[ 29.042680] ------------[ cut here ]------------
[ 29.042683] WARNING: CPU: 11 PID: 87 at drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:201 r535_gsp_msgq_wait+0x9a/0xb0 [nouveau]
[ 29.042895] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep uvcvideo cdc_acm videobuf2_vmalloc btusb uvc videobuf2_memops btrtl videobuf2_v4l2 btintel videobuf2_common btbcm btmtk videodev bluetooth mc snd_seq_dummy snd_hrtimer snd_seq snd_seq_device veth nf_conntrack_netlink xt_nat xt_tcpudp iptable_raw xt_conntrack xt_MASQUERADE bridge stp llc ip6table_nat ip6table_filter ip6_tables xt_set ip_set iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter xfrm_user xfrm_algo hid_multitouch overlay dell_pc platform_profile qrtr snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils sn
use embassy_sync::blocking_mutex::raw::RawMutex;
use embassy_sync::mutex::Mutex;
use embedded_hal_async::i2c;
use core::fmt::Debug;
use core::ops::DerefMut;
use esp_hal::gpio::AnyPin;
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum I2cDeviceError {
/// An operation on the inner I2C bus failed.
20:23:16 anarsoul@anarsoul-xps15 console ±|main ✗|→ cargo run --release 10.1.1.152 Tujad.tap
Compiling zxmit v0.3.0 (/home/anarsoul/src/zx-wifi/zxmit/pcutil/console)
Finished `release` profile [optimized] target(s) in 17.02s
Running `target/release/zxmit 10.1.1.152 Tujad.tap`
zxmit 0.3.0 (c) Alex Nihirash & Vasily Khoruzhick
2025-05-08T03:23:48.419Z INFO [zxmit] Short filaname will be Tujad.tap
2025-05-08T03:23:48.419Z INFO [zxmit] Establishing connection to 10.1.1.152:6144
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 49/49
2025-05-08T03:24:18.661Z INFO [zxmit] Compressed 49343 bytes into 25638 bytes, ratio: 0.5195874, elapsed: 29.10s
2025-05-08T03:24:18.661Z INFO [zxmit] Done!