Skip to content

jaguar3: SetWideTxIgiFloor, the wide-TX IGI floor at run time - #609

Merged
josephnef merged 3 commits into
OpenIPC:masterfrom
gilankpam:pr/igi-floor-setter
Dec 5, 2026
Merged

josephnef merged 3 commits into
OpenIPC:masterfrom
gilankpam:pr/igi-floor-setter

Conversation

@gilankpam

Copy link
Copy Markdown
Contributor

The gap

DeviceConfig::Tuning::wide_tx_igi_floor is fixed at construction. Its comment already says the edge is per unit, and that 0x35 costs idle-channel RX sensitivity that was estimated but not measured. One more 8812EU, measured below, shows the edge also moves with the channel, and that the cost is large. So no single construction-time value fits. A caller that wants the lowest safe floor has to start low and raise it while the radio runs, and today it cannot.

The change

  • IRtlRadio::SetWideTxIgiFloor(uint8_t floor) (Jaguar3). It records the floor and re-applies it under _reg_mu, under the same rule as the construction-time value: after the session's first ≥ 40 MHz frame, while tuned that wide; every retune re-applies it. Values above 0x7f return false. Other generations return false (default virtual).
    • Callable from any thread, including while a sender is blocked in bulk-OUT, because the sender holds no lock.
    • Throws on a failed USB transfer. The floor is recorded before any register access, so after a throw the DIG tick still enforces it.
  • PhydmRuntimeJaguar3::set_igi_floor clamps IGI at once whenever the floor is lowered, not only when it drops to 0. IGI goes to max(new floor, top of the channel's DIG window) instead of keeping the old floor's gain until DIG walks it down. The rule is a pure jaguar3::igi_on_floor_change (IgiFloor.h) with an igi_floor selftest. The old dropped-to-0 behaviour is unchanged.
  • build_tx_block arms on the first wide frame even when the floor is 0, so a floor set later still applies. With 0 the apply writes no register; it is still one _reg_mu take per session, and the hot path stays lock-free.

Measured

One 8812EU (USB high speed), MCS2/40/LDPC, 1400-byte frames, sent with no gap (ceiling ~2790 frames/s). IGI pinned with DIG off; share of the ceiling per value:

IGI 144(-) 157(+) 100(+)
0x24, 0x22 100 % 100 % 100 %
0x20 98-99 % 100 % 100 %
0x1f 41-47 % 94 % 97 %
0x1e 40-45 % 95 % 97 %
0x1c 44-56 % 35 % 54 %

This unit's edge is 0x1f on 144 and 0x1c on 157 and 100. 20 MHz frames run at full rate at every IGI from 0x08 to 0x24.

What the floor costs the receiver. A second card sent MCS0/20 frames at three levels while the 8812EU transmitted at 40 MHz and counted them per floor. Reception falls from ~99 % to 0 in one floor step, about 19-23 IGI above the frames' RSSI (chip units):

RSSI last floor that hears first floor that is deaf
62 0x51 0x52
47 0x45 0x46
44 0x43 0x44

Extended down, 0x35 is deaf below an RSSI of about 28-30 and 0x22-0x24 below about 9-11. The weakest frames either card decoded at IGI 0x1e-0x20 were at RSSI 16 (13-15 dB SNR). So on this unit 0x35 costs at least ~12 dB of sensitivity to weak frames, against 0-4 dB for a floor just above its edge.

A caller using the setter. It starts at a low floor and raises it when its TX stalls (longest send ≥ 30 ms, or PUB queue backlog ≥ 60 %). It reverts if the stall does not clear and keeps the value after 3 clean 1 s windows. Windows with CLM busy ≥ 20 % are not judged. A 60 fps video downlink at 40 MHz, 170 s runs (330 s with the jammer); "spread" is p99 − p50 frame arrival per 30 s slice:

channel, start floor floor moves video
161, 0x22 (MCS2) none 60 fps; spread 17-21 ms for the first 60 s, then 6 ms
161, 0x1e (MCS2; below this unit's edge) 0x20 at 2 s, 0x24 at 6 s, kept at 9 s 60 fps; spread 13-19 ms to ~100 s, then 5 ms
161, 0x22 (adaptive MCS) none 60 fps; spread ≤ 6.6 ms
161, 0x1e (adaptive MCS) 0x20 at 2 s, 0x24 at 4 s, kept at 7 s 60 fps; clean after the first slice
144, a second card jamming at ~56 % airtime (MCS2) none in 5½ min 32-35 fps, the same as with the controller off

161 is rough for its first minute at MCS2 whatever the floor (the 0x22 row never moves).

Build: full, no-Jaguar3 and Jaguar3-only configure + build; ctest 92/92 (83/83 Jaguar3-only). The igi_floor selftest was revert-checked: with the old dropped-to-0-only clamp, the three "lowered" checks fail.

Not covered

  • One 8812EU. No 8812CU with a floor change at run time.
  • The receiver-cost rows go down to RSSI 44 only; the lower thresholds are extrapolated along the measured line.
  • 80 MHz.
  • No caller in this tree. The controller above lives in an application; this PR adds only the setter.

🤖 Generated with Claude Code

DeviceConfig::Tuning::wide_tx_igi_floor is fixed at construction. The edge
below which a Jaguar3 transmitter loses 40 MHz capacity differs per unit and
per channel, and the 0x35 default costs uplink sensitivity, so a caller that
wants the lowest safe floor has to move it while the radio runs.

IRtlRadio::SetWideTxIgiFloor(floor) records the new floor and re-applies it
under _reg_mu, under the same rule as the construction-time value (after the
session's first >= 40 MHz frame, while tuned that wide; every retune
re-applies it). It is callable while another thread is blocked in bulk-OUT,
and it can throw on a failed USB transfer; the floor is recorded first, so
the DIG tick enforces it either way. Default: false (unsupported).

PhydmRuntimeJaguar3::set_igi_floor now clamps IGI at once whenever the floor
is lowered, not only when it is dropped to 0: a lowered non-zero floor pulls
IGI down to max(floor, top of the channel's DIG window). The rule is a pure
function (jaguar3/IgiFloor.h) with an igi_floor selftest.

The TX arm in build_tx_block now runs on the first wide frame even when the
floor is 0, so a floor set later still applies; with a floor of 0 the apply
writes no register, and it takes _reg_mu once per session as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Allow Jaguar3 wide-TX IGI floor changes at runtime

✨ Enhancement 🐞 Bug fix 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Add a Jaguar3 radio setter so callers can adjust the wide-TX IGI floor without restarting.
• Apply floor changes immediately and retain wide-frame eligibility when the initial floor is zero.
• Test IGI behavior when floors rise, fall, or are disabled.
Merge Risk 🟡 Medium

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The setter, first-wide-frame arm, retune application and PHY IGI transition helper jointly control one bounded end-to-end behavior: wide-channel transmission while the same radio's DIG state is adjusted.
  • The RX sensitivity effect is a coupled consequence of that same IGI policy, not an independent technical-layer capability.
  • Weak-frame reception is coupled to the same wide-TX IGI-floor policy and register state as transmission; it is not a separate storage, API or deployment capability.
  • The changed path ends at the same radio operation capability.
Behavioral complexity 🔴 High 🧩 Multiple interactions

  • Before, the configured floor was applied only through session/retune logic.
  • After, a mutable floor can change concurrently with TX, immediately adjust IGI, persist across reinitialization, and interact with first-wide-frame arming, retunes, DIG windows and register-read failures.
  • New correctness conditions are: serialize the live update with register users; apply the floor only for the correct session/width state; lower or clear IGI immediately without violating the channel window; and preserve the previous floor when the pre-application read throws.
  • Before: one configuration value governed the session.
  • After: runtime updates and transitions must maintain these interacting state and ordering invariants.
Potential damage 🟡 Medium 🩹 Recoverable

  • Conditionally, a floor below the unit/channel's effective wide-TX edge can reduce send throughput or produce failed sends.
  • The affected behavior is the addressed radio's wide-channel transmission; no persistent application state is written.
  • Recovery requires raising or clearing the live floor, restarting/reinitializing the session, or retrying affected traffic; code rollback alone may leave an already-set live floor until the object is repaired or restarted.
  • New sends can recover after the floor is corrected or the session is restarted, but packets already failed or missed require caller retransmission where available.
Assessed commit c89d162
Diagram

graph TD
  Caller["Radio caller"] --> Setter["Runtime setter"] --> Gate{"Wide TX active"} --> Runtime["DIG runtime"] --> Registers["IGI registers"]
  Frame["First wide frame"] --> Gate
  Retune["Channel retune"] --> Gate
Loading
High-Level Assessment

Keep the live floor in Jaguar3 and reuse its existing width and wide-frame gating. Relying on construction-time configuration would require a restart, while waiting for a DIG tick would delay the sensitivity benefit after lowering the floor.

Files changed (9) +118 / -24

Enhancement (3) +41 / -11
IRtlRadio.hExpose an optional runtime IGI floor setter +12/-0

Expose an optional runtime IGI floor setter

• Adds SetWideTxIgiFloor with a default unsupported result. Documents eligibility, validation, threading, and USB failure behavior.

src/IRtlRadio.h

RtlJaguar3Device.cppApply the live floor and arm on every first wide frame +24/-11

Apply the live floor and arm on every first wide frame

• Implements the validated, register-serialized setter and reads the live floor when applying the width-dependent policy. A first wide frame now arms eligibility even when the current floor is zero.

src/jaguar3/RtlJaguar3Device.cpp

RtlJaguar3Device.hStore Jaguar3's live wide-TX floor +5/-0

Store Jaguar3's live wide-TX floor

• Declares the setter override and adds an atomic floor initialized from device configuration.

src/jaguar3/RtlJaguar3Device.h

Bug fix (2) +32 / -10
IgiFloor.hDefine the immediate IGI adjustment rule +23/-0

Define the immediate IGI adjustment rule

• Adds a pure function that selects an IGI write when a floor rises, falls, or is disabled, using the channel's DIG window as a lower-floor bound.

src/jaguar3/IgiFloor.h

PhydmRuntimeJaguar3.cppClamp IGI immediately after lowering a floor +9/-10

Clamp IGI immediately after lowering a floor

• Uses the new adjustment rule so nonzero floor reductions need not wait for a DIG tick. Preserves the no-register-access path when both old and new floors are zero.

src/jaguar3/PhydmRuntimeJaguar3.cpp

Tests (2) +40 / -0
CMakeLists.txtRegister the IGI floor selftest +8/-0

Register the IGI floor selftest

• Builds the standalone IGI floor selftest and adds it to CTest.

CMakeLists.txt

igi_floor_selftest.cppCover raised, lowered, dropped, and unchanged floors +32/-0

Cover raised, lowered, dropped, and unchanged floors

• Checks the pure IGI adjustment rule against normal and DFS window bounds, including lowered nonzero floors.

tests/igi_floor_selftest.cpp

Documentation (2) +5 / -3
DeviceConfig.hPoint configuration users to the runtime setter +1/-0

Point configuration users to the runtime setter

• Documents the new API alongside the construction-time wide-TX IGI floor setting.

src/DeviceConfig.h

PhydmRuntimeJaguar3.hDocument immediate behavior for lowered floors +4/-3

Document immediate behavior for lowered floors

• Clarifies that lowering a floor to a nonzero value also clamps IGI immediately.

src/jaguar3/PhydmRuntimeJaguar3.h

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Failed floor writes look successful 🐞 Bug ≡ Correctness
Description
SetWideTxIgiFloor() returns true after set_igi() even when an IGI register write fails, because
the register-write path discards the transport's failure result. On a failed USB control write, the
requested floor may not reach the chip, and disabling DIG leaves no periodic correction.
Code

src/jaguar3/RtlJaguar3Device.cpp[R2376-2377]

+  apply_igi_floor_locked(_channel.Channel, _channel.ChannelWidth);
+  return true;
Evidence
The new setter reports success after applying the floor. Its apply path reaches set_igi(), whose
two BB writes use a void adapter method that ignores the boolean result of rtw_write32; USB
synchronous writes return false on failure. DIG is optional, so it cannot be relied on to correct a
failed write.

src/jaguar3/RtlJaguar3Device.cpp[2370-2377]
src/jaguar3/PhydmRuntimeJaguar3.cpp[27-46]
src/RtlAdapter.cpp[257-274]
src/UsbTransport.h[329-341]
src/jaguar3/PhydmRuntimeJaguar3.cpp[228-235]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new setter reports success when an IGI register write fails, contrary to its documented failure behavior.
## Fix Focus Areas
- src/jaguar3/RtlJaguar3Device.cpp[2370-2377]
- src/jaguar3/PhydmRuntimeJaguar3.cpp[27-46]
- src/RtlAdapter.cpp[257-274]
## Recommended Fix
Make the IGI write path check the transport's write result and propagate failure to the setter. Preserve the floor-recording-before-I/O behavior, and test a failed write.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Retrying a lowered floor leaves gain high ✓ Resolved Bug Correctness
Description
set_igi_floor() records the new floor before reading IGI, but igi_on_floor_change() lowers IGI
only when that floor is below the previously recorded value. If the read throws during a lowering
request, retrying the same value sees equal floors and skips the clamp; the gain remains high until
a DIG tick, or indefinitely when DIG is disabled.

Grey Divider

Tip of the day
💡 Did you know, you can open the rule or relationship behind a finding in one click

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@josephnef josephnef left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setter behaves as described. I checked it on a second 8812EU (bare BL-M8812EU2, 0bda:a81a), channel 157(+) at 40 MHz, MCS2/40/LDPC, 1400-byte frames, with this PR merged together with #610 (clean merge, full build, ctest 96/96 with the two MT7612U generator checks skipped). IGI was read out of band (chipstate --no-claim --peek 0x1d70:4) while the probe held the interface.

Reproduced

Step IGI observed
Set 0x30 before any wide frame unchanged (DIG window)
First wide frame, floor 0x35 0x35
0x35 → 0x24 0x24 at once
0x24 → 0x1e 0x22 at once, then DIG walks it to 0x1e
Raise to 0x22, 0x2c, 0x35 at once
0x80 refused
  • No-gap flood: 2745–2780 frames/s at IGI 0x22 and above. At 0x1e it fell to 2381 with 15 send timeouts, then 1590 with 60, and was back at 2746 in the step that raised the floor to 0x22.
  • A device constructed with wide_tx_igi_floor = 0 stalls at 0x1e (2026 frames/s, 21 timeouts) and takes a run-time 0x35 (2743 frames/s), so the build_tx_block arming change works.

Requested before merge

  1. Land the measurements in the tree, not only in this description (inline on DeviceConfig.h).
  2. An in-tree caller. Nothing in the repo calls the setter, so neither table can be reproduced from the tree. tests/cca_gates_probe.cpp was added for the same reason for the gate split; one small probe could cover this and GetTxQueuePages together.

Also

  • Fork CI has not run on this PR; it needs a green run.
  • Three non-blocking notes inline.

Limits of my check: one unit, one channel, one run per arm, TX power at −20 dB (this module's bench supply sags at full power under a no-gap flood, on master too), and host-side submitted rates rather than frames counted by a witness receiver. I did not reproduce the receiver-cost table.

Comment thread src/DeviceConfig.h Resolved
Comment thread src/jaguar3/IgiFloor.h Resolved
Comment thread src/IRtlRadio.h Resolved
tests/igi_floor_probe.cpp (IgiFloorProbe) is the in-tree caller for
IRtlRadio::SetWideTxIgiFloor: it floods a 40 MHz tune, walks the floor
through a list and prints the rate, failed sends, longest send and IGI per
step; --rx-ta counts a second card's frames and their RSSI per step, for
the receiver-cost table.

The per-channel edge and the receiver cost measured on one 8812EU now live
in docs/experiments/8822c-ht40-tx-stall.md and the
DeviceConfig::Tuning::wide_tx_igi_floor comment, with their scope, in place
of the "per unit" / "estimated, not measured" text.

PhydmRuntimeJaguar3::set_igi_floor reads IGI before it records the new
floor: a throw on that read now changes nothing, so a retry of the same
lowered floor still clamps (before, it saw prev == floor and skipped the
clamp, which stuck under skip_dig).

The SetWideTxIgiFloor comment now says only the read throws (BB writes
drop their result), that a floor at or below the DIG window bottom acts
like no floor, and that the live value outlives Stop / Init / InitWrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gilankpam

Copy link
Copy Markdown
Contributor Author

Pushed dfd03c4.

  1. Measurements in the tree. The DeviceConfig.h comment and docs/experiments/8822c-ht40-tx-stall.md (new section "Edge per channel, and what the floor costs") now carry both tables and their scope: one 8812EU, cost rows down to RSSI 44, the rest extrapolated. The "per unit" / "estimated, not measured" text is gone; src/jaguar3/CLAUDE.md follows.

  2. In-tree caller. tests/igi_floor_probe.cpp (IgiFloorProbe) floods a 40 MHz tune, walks the floor, and prints one line per step: rate, failed sends, longest send, and IGI at the end of the step. --rx-ta adds a second card's frame count and RSSI, for the cost table. It also checks that 0x80 is refused. jaguar3: GetTxQueuePages, the PUB TX queue's free and configured pages #610 will rebase on this and add the queue-page column to the same probe.

    Run on the original 8812EU (157(+), MCS2/40/LDPC, 1400 B, no gap, 4 s per step):

    floor IGI at end frames/s failed
    0x1e 0x1e 2628 0
    0x20 / 0x22 / 0x24 / 0x35 same 2788-2793 0
    0x24 (lowered) 0x24 2794 0
    0x1e (lowered) 0x1e 2749 0

    With a second card sending MCS0/20 on 157 (RSSI 60-62 at the DUT), it hears up to floor 0x50 and is deaf at 0x54. That matches the 0x51/0x52 row. Witness counts were ~40 % of what was sent, because the flood holds the air. Single runs.

    Limit: the setter cannot take IGI below the channel's DIG window (0x1e non-DFS, 0x20 DFS), so the 0x1c-0x1f rows on 144 and 100 need a pinned IGI that no public API offers. The doc and the probe header both say so.

  3. CI. Every upstream run for this branch is action_required and waiting on a maintainer approval to run workflows from the fork. Could you approve them? Locally: full, no-Jaguar3 and Jaguar3-only configure + build; ctest 92/92, 92/92, 83/83.

Qodo #1 (failed floor writes look successful).
Not changing this here. PHY_SetBBReg8812 drops the transfer result for every BB write in the tree. Checking it only on this path would make one setter disagree with every other BB write, and the fix belongs in the shared write path, not in this PR. The contract now says so (IRtlRadio.h). Qodo #2 is fixed (see the IgiFloor.h thread).

@josephnef josephnef left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review of dfd03c4. Everything from the first round is addressed; one new blocker, from CI.

Blocking

  • The MSVC job fails on the new probe (build (windows-latest, Release, cl), error C2589 at tests/igi_floor_probe.cpp lines 91 and 168). See the inline comment.

Resolved

  • DeviceConfig.h, the experiment doc and src/jaguar3/CLAUDE.md carry the measurements and their scope.
  • set_igi_floor reads IGI before it records the floor.
  • The IRtlRadio.h contract covers the read-only throw, the floor below the DIG window, and persistence across re-init.
  • Declining Qodo's failed-write finding here is fine by me: it belongs in the shared BB write path.

Checked on hardware (BL-M8812EU2, ch 157(+), MCS2/40/LDPC, 1400 B, the probe built from the #610 head, which includes this branch):

  • No gap, 4 s per step, floors 0x35, 0x24, 0x1e, 0x22, 0x35, 0x1c: igi read 0x35, 0x24, 0x1e, 0x22, 0x35, 0x1e; 2792-2813 frames/s and 0 failed sends at every step; 0x80 refused; probe exit 0.
  • At 0x1e this run kept full rate (2792 frames/s). My first-round run on the same unit fell to 2381 and then 1590. So that unit's behaviour at 0x1e is not stable between sessions; single runs both times.

Non-blocking

  • As shipped the probe did not complete on my bench. See the inline comment on the power knob.

Limits: one unit, one channel, one run per arm, host-side submitted rates only, TX power at -20 dB through a local patch to the probe. I did not rerun the receiver-cost table.

Comment thread tests/igi_floor_probe.cpp Resolved
Comment thread tests/igi_floor_probe.cpp Resolved
NOMINMAX before the libusb include, as the other libusb tools do, so
windows.h does not turn std::max into its macro (C2589).

--pwr-qdb N applies SetTxPowerOffsetQdb(N) after bring-up, so the probe
reproduces the doc's -20 dB run-time row and runs on a bench whose supply
sags under a full-power flood.

A step whose register access throws prints a FAIL line and the walk goes
on, as the setter's contract tells callers to catch, instead of an
uncaught terminate.

The doc's run-time paragraph adds the second session on the same unit,
which kept full rate at 0x1e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@josephnef josephnef left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review of c89d162. The MSVC blocker is fixed and everything from the earlier rounds is addressed.

Resolved

  • NOMINMAX above the libusb include; build (windows-latest, Release, cl) passes, CI 30/30.
  • --pwr-qdb applies the offset after InitWrite and prints it; the doc names the flag.
  • A throwing step prints FAIL step ..., counts toward exit 1, and the walk continues.

Checked on hardware (BL-M8812EU2, ch 157(+), MCS2/40/LDPC, 1400 B, the probe unpatched from the #610 head with --pwr-qdb -80, no gap, 4 s per step, exit 0):

floor IGI frames/s failed
0x35 0x35 2818 0
0x24 0x24 2791 0
0x1e 0x1e 2296 27
0x22 0x22 2795 0
0x35 0x35 2795 0
0x1c 0x1e 2221 29

This session the unit stalled at 0x1e again, as in my first round and unlike my second, which fits the doc's "not stable between sessions".

Limits: one unit, one channel, one run per arm, host-side submitted rates only. The throwing-step path is checked by reading; I could not force a register-read failure on the bench.

@josephnef
josephnef merged commit 33c5cdc into OpenIPC:master Dec 5, 2026
30 checks passed
josephnef added a commit to gilankpam/devourer that referenced this pull request Dec 5, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
josephnef added a commit that referenced this pull request Dec 5, 2026
#610)

## The gap

When a Jaguar3 transmitter holds 40 MHz frames (low IGI on a quiet
channel, `docs/experiments/8822c-ht40-tx-stall.md`), the frames back up
inside the chip. A bulk-OUT send blocks only once the chip's queue is
full, so a caller that watches send timing sees the stall late or never.
The PUB queue's free-page count does show it, but today only
`DumpChipState` reads it, as a log line.

## The change

`IRtlRadio::GetTxQueuePages(uint16_t& free_pages, uint16_t&
total_pages)` (Jaguar3) reads `REG_FIFOPAGE_INFO_5` (0x0240; free pages
in bits 27:16, configured pages in 11:0), the same field `DumpChipState`
prints.

- One control read under `_reg_mu`. Callable from any thread at a
supervisory cadence (never per frame), including while a sender is
blocked in bulk-OUT, since EP0 is separate from the bulk pipe.
- Throws on a failed USB transfer.
- Other generations return false and leave the outputs untouched
(default virtual).

## Measured

One 8812EU, MCS2/40, 1400-byte frames at a fixed offered load, silent
144(-) with no other traffic, IGI pinned, 10 s per cell, sampled every
200 ms. "Empty" means free pages at the idle value 1745.

| offered | IGI | sent | queue empty in | lowest free pages | longest
blocked send |
|---|---|---|---|---|---|
| 790 frames/s (28 % air) | 0x22, 0x20 | 100 % | 100 % of samples | 1745
| 0-9 ms |
| 790 frames/s | 0x1e | 94-100 % | 12-45 % | 17-1197 | 0-124 ms |
| 1980 frames/s (70 % air) | 0x22 | 100 % | 100 % | 1713 | 0 ms |
| 1980 frames/s | 0x1e | 60 % | 0 % | 17 | 154 ms |

At 790 frames/s and 0x1e, one run had no blocked send at all, yet it
sent 98 %, its worst 200 ms carried 68 % of the offered load, and the
queue was empty in only 14 % of samples. The free count separates the
stalled state where send timing does not.

The same reading drove a run-time floor controller (with
`SetWideTxIgiFloor`, #609). Once per second it took the deepest backlog:
healthy seconds reached 40 % backlog in 1 % of seconds, seconds at IGI
0x1e in 90 %.

Build: full, no-Jaguar3 and Jaguar3-only configure + build; `ctest`
91/91 (82/82 Jaguar3-only). No selftest: the method is one register read
and a field split.

## Not covered

- One 8812EU; no 8812CU reading.
- Only the PUB page pool (INFO_5); the per-queue reservations
(INFO_1..4) are not read.
- No caller in this tree.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Joseph <162703152+josephnef@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants