diff options
Diffstat (limited to 'frame-steamos')
| -rw-r--r-- | frame-steamos/patches.toml | 74 | ||||
| -rw-r--r-- | frame-steamos/recovery-watchdog.c | 4 |
2 files changed, 39 insertions, 39 deletions
diff --git a/frame-steamos/patches.toml b/frame-steamos/patches.toml index ba71ff9..ba19bad 100644 --- a/frame-steamos/patches.toml +++ b/frame-steamos/patches.toml @@ -1,54 +1,54 @@ # SPDX-FileCopyrightText: 2026 Tomasz Kramkowski <tomasz@kramkow.ski> # SPDX-License-Identifier: CC0-1.0 -target = "Frame SteamOS 0.5.9, SteamVR build 26655409" +target = "Frame SteamOS 0.5.10, SteamVR build 26774667" template = "template.py" [[targets]] path = "/opt/steamvr/tools/vrlink/bin/linuxarm64/vrlink" -sha256 = "d1d438f00ffd43f21e45a5489081720ca45723af14fadf3ef438111ac28785eb" +sha256 = "0a7ea7cfc3c52ba06debde52483709d2985d885ca45c2bb9054db9f42fca8aad" edits = [ # Clear submitted frame IDs after a reset so a newly received # frame cannot be skipped because it was submitted before reset. # SteamOS 0.5.9 already clears ready IDs and handles DQBUF EAGAIN. - [0x587A4, "f5f70014"], + [0x57DEC, "13d00214"], [ - 0x96778, - "6142229162422a9100008092200081a83f0002ebc1ffff54622200910508ff17", + 0x10BE38, + "6142229162422a9100008092200081a83f0002ebc1ffff5462220091e72ffd17", ], # Fix a possible bug where a missing frame wouldn't trigger a # request when a newer frame arrived and the gap straddled the 16 # bit wrapping boundary. - [0x58940, "a102024b213c00133f080071ab0100547316931a06000014"], - [0x5896C, "613e0053"], + [0x57F70, "a102024b213c00133f080071cb0100547316931a07000014"], + [0x57FA0, "613e0053"], # Ignore packets which are for an older frame when re-assembling. # There are 16 slots and this could otherwise cause an old packet # to override a newer one. - [0x58858, "dff70014"], - [0x967D4, "c00a40b96000f837a002004b60007837c03240391d08ff176508ff17"], + [0x57EBC, "f6cf0214"], + [0x10BE94, "c00a40b96000f837a002004b60007837c03240390630fd174230fd17"], # Avoid two corner cases: # - After reset, wait for a complete recovery frame instead of # simply waiting for _a_ frame to avoid trying to start decoding # from a frame which depends on prior ones. # - Ignore frames which complete reassembly but which are older # than the last submitted frame. - [0x55C38, "ee020114"], + [0x550B0, "80db0214"], [ - 0x967F0, - "091c41f92a8940b9ca00f8370b0840b96b010a4b0b017837fd7bbea90cfdfe170a3040398a0000340a544d391f2003d54aff0f37c0035fd6", + 0x10BEB0, + "091c41f92a8940b9ca00f8370b0840b96b010a4b0b017837fd7bbea97a24fd170a3040398a0000340a544d391f2003d54aff0f37c0035fd6", ], # To compensate for the first of the above two fixes, any frames # which completed out of order before a recovery frame must be # revisited after that frame. - [0x58480, "411d1f54"], + [0x57AA0, "41225a54"], [ - 0x96828, - "800e4092000f008b000440f9010840b93f00146be1e8e054fefcfe974507ff17", + 0x10BEE8, + "800e4092400f008b000440f9010840b93f00146b81e4a5546c24fd97222ffd17", ], # If decoder submission fails, request reset without advancing the # last-submitted frame number as though submission succeeded. - [0x584F8, "d4f80014"], - [0x96848, "40e8e03400cb45f92b07ff17"], + [0x57B18, "fcd00214"], + [0x10BF08, "e0e3a53440cb45f9032ffd17"], # With FEC, audio gets sent as two blocks (A, B) followed by their # parity (A^B) block. If the next block arrives (C) while the # headset has received B but not A and is still waiting for A^B @@ -56,15 +56,15 @@ edits = [ # worth of audio (10.67ms) rather than just skipping one missed # block (5.33ms) and flushing the second one (B). This fixes that # issue by just flushing B in that case. - [0x3E5D0, "a1600114"], + [0x3D9C0, "55390314"], [ - 0x96854, - "2000004b6000f836e2ff9f520000020b1f080071acebd3548beed354620080522308c21a6384021b03ebd3346f9ffe17", + 0x10BF14, + "2000004b6000f836e2ff9f520000020b1f0800712cd598540bd89854620080522308c21a6384021b83d49834bbc6fc17", ], # Patch incorrect sequence gap calculation when sequence numbers # wrap modulo 65535 (recurring theme...) - [0x3E7D8, "2b600114"], - [0x96884, "6000f836e1ff9f520000010b5b9ffe17"], + [0x3DBC8, "df380314"], + [0x10BF44, "6000f836e1ff9f520000010ba7c6fc17"], # Don't request retransmission of frames that the headset has # already moved ahead of (i.e. the last-submitted frame or older). # Assume that a frame with a size of 4 MiB with missing metadata is @@ -74,10 +74,10 @@ edits = [ # frame's metadata fragment continue which will contain and # populate the size field allowing the retransmit request code to # work normally from that point. - [0x578D8, "effb0014"], + [0x56E70, "39d40214"], [ - 0x96894, - "831e41f9648840b99f04003180000054e400044b4493e034e400783780324039e091e035951240b9bf025071f503951a0904ff179204ff17", + 0x10BF54, + "821e41f9448840b99f04003180000054e400044b048aa534e400783780324039a088a535951240b9bf025071f503951abf2bfd17482cfd17", ], # Don't trigger a reset if more than 512 missing fragments need to # be requested as a result of a time based repair. Instead stop @@ -85,33 +85,33 @@ edits = [ # entry so that a request for a fresh metadata fragment can always # be sent. This avoids an unnecessary reset and can speed up # recovery. - [0x57B6C, "58fb0014"], + [0x5710C, "a0d30214"], [ - 0x968CC, - "130080523f040031e194e05484364079a0fe0f11007c0a539f00006b4294e05402008012e2c30079330080529e04ff17", + 0x10BF8C, + "130080523f040031e18ba55484364079a0fe0f11007c0a539f00006b8200005403008012e3c30079330080523f040031552cfd17", ], - [0x57BA8, "55fb0014"], - [0x968FC, "8a3240394a01130a4a4d0011852240b9a804ff17"], - [0x57C18, "7f020a6b6c040054"], - [0x57C78, "7f020a6b6c010054"], - [0x57CA0, "7f020a6bedeaff5453050011647a1f53"], + [0x57160, "9cd30214"], + [0x10BFD0, "8a3240394a01130a4a4d0011852240b9612cfd17"], + [0x571D0, "7f020a6b6c040054"], + [0x57230, "7f020a6b6c010054"], + [0x57258, "7f020a6bede9ff5453050011617a1f53"], # Do not send a frame ACK before the frame-history queue has an # entry. The empty queue otherwise produces a bogus ACK 0 during # reconnect. - [0x45228, "40bc2854"], - [0x969B0, "941e44f95451d7b4e00315aad115fe9787bafe17"], + [0x44640, "80d16354"], + [0x10C070, "941644f9143c9cb4e00315aa5d40fc97dde1fc17"], ] [targets.compiled] sources = ["recovery-watchdog.c"] -imports = { fec_error_check = 0x586f0, check_stuck = 0x34b60, v4l2_vtable = 0x25b7d8 } +imports = { fec_error_check = 0x57d38, check_stuck = 0x34008, v4l2_vtable = 0x257778 } # Keep the existing decoder watchdog running while waiting for a recovery # frame. This is needed to avoid a lockup caused by the above # recovery-frame-wait patch where the recovery frame gets lost in transit. [[targets.compiled.hooks]] -address = 0x4eb28 +address = 0x4dfb0 length = 4 kind = "call" target = "recovery_watchdog" diff --git a/frame-steamos/recovery-watchdog.c b/frame-steamos/recovery-watchdog.c index d6dfa8b..0c82806 100644 --- a/frame-steamos/recovery-watchdog.c +++ b/frame-steamos/recovery-watchdog.c @@ -33,11 +33,11 @@ ASSERT_OFFSET(struct Renderer, codec, 0x10); struct Client { unsigned char unknown_000[0x1b0]; struct Renderer *renderer; - unsigned char unknown_1b8[0x7e06 - 0x1b8]; + unsigned char unknown_1b8[0x7dde - 0x1b8]; uint8_t did_ever_receive_bookend; }; ASSERT_OFFSET(struct Client, renderer, 0x1b0); -ASSERT_OFFSET(struct Client, did_ever_receive_bookend, 0x7e06); +ASSERT_OFFSET(struct Client, did_ever_receive_bookend, 0x7dde); struct FecReceiver { unsigned char unknown_000[0x88]; |
