From fb3e976f2e86f2737e9c4c2492c9a69660e5a3a9 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Sun, 26 Apr 2026 22:13:49 +0200 Subject: [PATCH 1/3] ldr: fix 1333 latency max bug -- index 0 is a valid latency --- .../loader/source/oc/mariko/calculate_timings.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/mariko/calculate_timings.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/mariko/calculate_timings.cpp index 02d4d11f..7133ca36 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/mariko/calculate_timings.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/mariko/calculate_timings.cpp @@ -34,8 +34,8 @@ namespace ams::ldr::hoc::pcv::mariko { latency += index * latencyStep; } - static u32 GetMaxLatencyIndex(volatile u32 *latencyArray, u32 latencySize) { - u32 maxIndex = 0; + static s32 GetMaxLatencyIndex(volatile u32 *latencyArray, u32 latencySize) { + s32 maxIndex = -1; for (u32 i = 0; i < latencySize; ++i) { if (latencyArray[i]) { maxIndex = i; @@ -65,18 +65,18 @@ namespace ams::ldr::hoc::pcv::mariko { } void HandleLatency(u32 freq) { - static u32 rlIndexMax = GetMaxLatencyIndex(C.readLatency, std::size(C.readLatency)); - static u32 wlIndexMax = GetMaxLatencyIndex(C.writeLatency, std::size(C.writeLatency)); + static s32 rlIndexMax = GetMaxLatencyIndex(C.readLatency, std::size(C.readLatency)); + static s32 wlIndexMax = GetMaxLatencyIndex(C.writeLatency, std::size(C.writeLatency)); constexpr u32 ReadLatencyStep = 4; constexpr u32 WriteLatencyStep = 2; bool autoLatencyRead = false, autoLatencyWrite = false; - if (rlIndexMax == 0) { + if (rlIndexMax == -1) { AutoLatency(RL, freq, ReadLatencyStep); autoLatencyRead = true; } - if (wlIndexMax == 0) { + if (wlIndexMax == -1) { AutoLatency(WL, freq, WriteLatencyStep); autoLatencyWrite = true; } @@ -120,6 +120,7 @@ namespace ams::ldr::hoc::pcv::mariko { } } + /* DBI is always enabled. */ mrw2 = static_cast(((rlIndex & 0x7) | ((wlIndex & 0x7) << 3) | ((0 & 0x1) << 6))); } From 9bb6b3383b92636a39fc62e395d36867f6926bb2 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:51:57 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24c57a55..6ced26b0 100644 --- a/README.md +++ b/README.md @@ -163,10 +163,10 @@ Refer to COMPILATION.md * **B3711 (halop)** - EOS * **sys-clk team (m4xw, p-sam, natinusala)** - sys-clk * **Dominatorul** - Soctherm driver, guides, general help -* **b0rd2death** - Ultrahand sys-clk & Status Monitor fork +* **ppkantorski** - Ultrahand sys-clk & Status Monitor fork * **MasaGratoR and ZachyCatGames** - General help * **MasaGratoR** - Status Monitor & Display Refresh Rate driver -* **Dominatorul, Samybigio, Arcdelta, Miki, Happy, Flopsider, Winnerboi77, Blaise, Alvise, TDRR, agjeococh, frost, letum00, and Xenshen** - Testing +* **Dominatorul, Samybigio, Arcdelta, Miki, Happy, tetetete-ctrl, Winnerboi77, Blaise, Alvise, TDRR, agjeococh, frost, letum00, and Xenshen** - Testing * **Samybigio2011, Miki** - Italian translations * **angelblaster** - Korean translations * **q1332348216-glitch** - Chinese translations From 9eea39325d0baae25a6b4021fddb7ccb6767f2fe Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:52:54 +0200 Subject: [PATCH 3/3] Update about_gui.cpp --- Source/hoc-clk/overlay/src/ui/gui/about_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/hoc-clk/overlay/src/ui/gui/about_gui.cpp b/Source/hoc-clk/overlay/src/ui/gui/about_gui.cpp index 08b4fd31..67e58ed9 100644 --- a/Source/hoc-clk/overlay/src/ui/gui/about_gui.cpp +++ b/Source/hoc-clk/overlay/src/ui/gui/about_gui.cpp @@ -205,7 +205,7 @@ void AboutGui::listUI() ); this->listElement->addItem( - new tsl::elm::ListItem("Flopsider") + new tsl::elm::ListItem("tetetete-ctrl") ); this->listElement->addItem( @@ -270,7 +270,7 @@ void AboutGui::listUI() ); this->listElement->addItem( - new tsl::elm::ListItem("b0rd2death - Ultrahand") + new tsl::elm::ListItem("ppkantorski - Ultrahand") ); this->listElement->addItem(