Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
add7acc
rtkit: wait for a stopped coprocessor's CPU_STATUS.STOPPED, not a fix…
RyanTheTide Nov 19, 2026
b7da87e
kboot: refuse a trial payload whose watchdog U-Boot would take over
RyanTheTide Nov 19, 2026
3082dd6
kboot: disable the T6040/T6041 AOP when its firmware segments are not…
RyanTheTide Nov 19, 2026
e25efc4
sptm_virt: call AURA_TRAP_DELAY_NS a diagnostic and record what it found
RyanTheTide Nov 19, 2026
c4846ff
usb_cdc: wait for the HPM firmware after the cold reset
RyanTheTide Nov 19, 2026
2857b6c
tps6598x: wait for the firmware after the debugusb reset
RyanTheTide Nov 19, 2026
c8b9c54
usb_cdc: name the schedule flags and the recovery budget
RyanTheTide Nov 19, 2026
a8b5b0c
usb: name the ATC USB2 PHY and PIPE register fields in the CDC paths
RyanTheTide Nov 19, 2026
8ca0aed
j813_n1: release the N1 through the ADT function-reset helper
RyanTheTide Nov 19, 2026
4a0786b
pcie: name the endpoint reset waits and poll config readiness
RyanTheTide Nov 19, 2026
7861a47
pcie: take the N1's PERST# pad and refclk time from the ADT on J813
RyanTheTide Nov 19, 2026
48f1e35
pcie, j813_n1: describe the steps, not macOS driver names, in comments
RyanTheTide Nov 19, 2026
70977b4
pcie: stop the ANS power-off if a PHY clock does not drop
RyanTheTide Nov 19, 2026
f5e5efb
j873: poll for the eUSB2 PHY's UTMI clock and name its settle times
RyanTheTide Nov 19, 2026
6a90c82
kboot: remove a speaker amp group's configuration when its DT update …
RyanTheTide Nov 19, 2026
9153229
tests: build the T6030 display host test against today's kboot_atc.c
RyanTheTide Nov 19, 2026
498505b
ci: run the host tests that need no files from a Mac
RyanTheTide Nov 19, 2026
887030e
dptx-phy: T8152: fail activation when calibration does not complete
RyanTheTide Nov 19, 2026
d4f9ebd
dcp: name the T8152 ATC and dptx-phy settle delays
RyanTheTide Nov 19, 2026
73bfd57
dcp: dptx-port: name the IOReturn codes and the virtual device call
RyanTheTide Nov 19, 2026
4417747
dcp: describe the T8152 ATC steps without driver-internal names
RyanTheTide Nov 19, 2026
bd57ef3
tests: give the PCIe sequence harness pcie.h's constants and the time…
RyanTheTide Nov 19, 2026
f38e2ae
usb_cdc: keep the flag mask out of the aligned flag block
RyanTheTide Nov 19, 2026
d040d9d
pcie: print the config address as unsigned long
RyanTheTide Nov 19, 2026
e4c3134
ci: install qemu-user for the host tests
RyanTheTide Nov 19, 2026
763a85f
tps6598x: fail the reset wait when the controller rejects Gaid
RyanTheTide Nov 21, 2026
51793fb
pcie: cap the ADT's perst-to-config at the 1 s reset-ready bound
RyanTheTide Nov 21, 2026
7a6ad77
kboot: AOP: disable a failed handoff in place when the DT is full
RyanTheTide Nov 21, 2026
f224aa4
pcie: wrap the perst-to-config comments at 100 columns
RyanTheTide Nov 21, 2026
a0e2a1a
gfya
github-actions[bot] Nov 22, 2026
595c59a
Restore the assistant policy copies from the default branch
RyanTheTide Nov 22, 2026
1305d89
agent-policy: sync assistant instruction files to .github/aurora/AGEN…
github-actions[bot] Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,53 @@ merge. To change the policy, edit .github/aurora/AGENTS.md.
- Only public code goes in. Never copy code from proprietary sources.
- Changes are tested on the hardware they affect before they are merged.

## Pre-PR checklist

Synced from [aurora-silicon/agent-guidelines](https://github.com/aurora-silicon/agent-guidelines/blob/f7edafb3ce3b/pre-pr-checklist.md)
at f7edafb3ce3b. Change it there, then sync the copy here; do not edit this section
on its own. These are the checks Aurora's review agents apply.

Each item is a hard rule unless it says "default". If your change fails one, fix the change, or say in the PR why it can't be done yet and keep the PR a draft.

### 1. No model gating: works on every Mac that has the hardware (hard)

- **No chip, SoC, board or firmware-version gates** unless truly unavoidable. Decide from what the machine reports: ADT/DT properties of the block, its compatible, capability or feature bits, probed registers, firmware capability fields, ALSA control ranges. Never `if chip == …`, `if board == …`, `if fw == 27.2`, or a per-chip table where a property can carry the value.
- If a gate really is unavoidable, the commit message says why, and the gate uses the narrowest hardware property.
- Prove the change on every Mac you have that contains the block, not only the one you wrote it for. Ask for test runs on the ones you don't have.
- **Chicken and egg:** if the property must first come from the boot loader or DT, land that side first. The consumer reads it with today's behaviour as the fallback when it is absent, and the fallback is removed after a release has carried the property.

### 2. Production-ready, no hacks (hard)

- Works on the **default kernel command line**: no new cmdline or module parameters, environment variables or manual steps needed for a feature to work.
- No sleeps or retries over a race, no magic delay or depth ("the value that worked"), no disabled checks, no lab-only code paths.
- Development boots (one-shot test boots) may use extra parameters. Remove them and re-prove on the default command line before the PR.
- One kernel tree and one command line for every Mac. Only the devicetrees differ.

### 3. Safety (hard)

- **Safety values come from the machine, never from hardcoding.** Limits, caps, thresholds, timings and filters that protect hardware (speaker excursion and thermal limits, gain caps, high-pass corners, power and thermal limits, voltage and current ceilings) are read from what the Mac hands over: its ADT/DT, its own firmware or tuning bundle on the ESP, or control ranges the driver reports. No per-model safety tables or magic numbers in code. If the machine doesn't provide a value, the feature stays off or muted; it never falls back to a guessed constant.
- Speakers: **speakerguardd v2 only**. Never weaken or bypass protection. If a capability or limit can't be established from the machine, stay muted.
- Every test boot has a dead-man. Read registers before writing them.
- No Stage 1, boot-object, LocalPolicy or 1TR change without the machine's owner.
- Before any USB-C VDM or HPM reset, confirm which Mac is on the far end of the cable.

### 4. Clean-room and attribution (hard)

- No Apple code, strings, firmware, disassembly output or Apple tuning values in public code, PRs, issues or channels. Our own traces and measurements are fine.
- Commits carry human identity only, with a human `Signed-off-by`. No agent co-author or sign-off and no `Assisted-by` in commits. When an agent helped, disclose it at the end of the PR body with a plain `Assisted-by:` line naming the model or tool (exact wording, vendor prefix, and punctuation are flexible; do not nitpick format).
- Carry other people's commits unchanged. No force pushes to shared branches.

### 5. Evidence (default, high bar)

- A run on the affected hardware with the numbers: what ran, on which Mac, kernel and build, and the result. Include a regression run: 0 SELinux denials, 0 failed units, 0 new kernel errors.
- Performance claims: a same-machine A/B with conformance unchanged on every GPU generation the change applies to.

### 6. Naming (hard)

- The Vulkan driver is **Borealis** (Aurora Silicon's Vulkan driver, in Mesa). Never call our work Honeykrisp or "hk" in prose: PR and issue text, commit messages, docs, reports and user-facing names.
- Code keeps the identifiers it has today. Until the rename in [aurora-silicon/mesa#591](https://github.com/aurora-silicon/mesa/pull/591) is merged, Borealis lives in `src/asahi/vulkan/` with `hk_`/`HK_` symbols; after it lands, new code uses its `brl_` prefix.
- Names shared with upstream or fixed by an interface stay as they are: the Gallium `asahi` driver, `src/asahi/`, the DRM UAPI (`asahi_drm.h`, `DRM_ASAHI_*`) and Asahi or m1n1 names in upstream code. New paths and names of our own use Aurora, not Asahi or m1n1.

## Testing and collaboration

- Use the Context Mode plugin whenever it can reduce low-signal output.
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,29 @@ jobs:
CC: ${{ matrix.compiler == 'llvm' && 'clang' || 'gcc' }}
run: tests/run-t8122-gpu26-identity.sh

- name: Install host test tools
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y device-tree-compiler qemu-user

# The host tests of tests/run-*.sh that need no files from a Mac
- name: Run host tests
if: matrix.os == 'ubuntu-latest'
env:
CC: ${{ matrix.compiler == 'llvm' && 'clang' || 'gcc' }}
run: |
for t in kboot-audio logo payload-profile t6030-display t8122-air-pmp t8122-full-start \
t8122-gpu-diagnostics; do
echo "::group::run-$t"
sh "tests/run-$t.sh"
echo "::endgroup::"
done

- name: Run the M3 start.S move gate under qemu
if: matrix.os == 'ubuntu-latest' && matrix.compiler == 'llvm'
run: PATH="$(llvm-config --prefix)/bin:$PATH" sh tests/run-m3-move-gate.sh

arm64-native:
name: Pytest (ubuntu-24.04-arm, native start.S)
runs-on: ubuntu-24.04-arm
Expand Down
47 changes: 47 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,53 @@ merge. To change the policy, edit .github/aurora/AGENTS.md.
- Only public code goes in. Never copy code from proprietary sources.
- Changes are tested on the hardware they affect before they are merged.

## Pre-PR checklist

Synced from [aurora-silicon/agent-guidelines](https://github.com/aurora-silicon/agent-guidelines/blob/f7edafb3ce3b/pre-pr-checklist.md)
at f7edafb3ce3b. Change it there, then sync the copy here; do not edit this section
on its own. These are the checks Aurora's review agents apply.

Each item is a hard rule unless it says "default". If your change fails one, fix the change, or say in the PR why it can't be done yet and keep the PR a draft.

### 1. No model gating: works on every Mac that has the hardware (hard)

- **No chip, SoC, board or firmware-version gates** unless truly unavoidable. Decide from what the machine reports: ADT/DT properties of the block, its compatible, capability or feature bits, probed registers, firmware capability fields, ALSA control ranges. Never `if chip == …`, `if board == …`, `if fw == 27.2`, or a per-chip table where a property can carry the value.
- If a gate really is unavoidable, the commit message says why, and the gate uses the narrowest hardware property.
- Prove the change on every Mac you have that contains the block, not only the one you wrote it for. Ask for test runs on the ones you don't have.
- **Chicken and egg:** if the property must first come from the boot loader or DT, land that side first. The consumer reads it with today's behaviour as the fallback when it is absent, and the fallback is removed after a release has carried the property.

### 2. Production-ready, no hacks (hard)

- Works on the **default kernel command line**: no new cmdline or module parameters, environment variables or manual steps needed for a feature to work.
- No sleeps or retries over a race, no magic delay or depth ("the value that worked"), no disabled checks, no lab-only code paths.
- Development boots (one-shot test boots) may use extra parameters. Remove them and re-prove on the default command line before the PR.
- One kernel tree and one command line for every Mac. Only the devicetrees differ.

### 3. Safety (hard)

- **Safety values come from the machine, never from hardcoding.** Limits, caps, thresholds, timings and filters that protect hardware (speaker excursion and thermal limits, gain caps, high-pass corners, power and thermal limits, voltage and current ceilings) are read from what the Mac hands over: its ADT/DT, its own firmware or tuning bundle on the ESP, or control ranges the driver reports. No per-model safety tables or magic numbers in code. If the machine doesn't provide a value, the feature stays off or muted; it never falls back to a guessed constant.
- Speakers: **speakerguardd v2 only**. Never weaken or bypass protection. If a capability or limit can't be established from the machine, stay muted.
- Every test boot has a dead-man. Read registers before writing them.
- No Stage 1, boot-object, LocalPolicy or 1TR change without the machine's owner.
- Before any USB-C VDM or HPM reset, confirm which Mac is on the far end of the cable.

### 4. Clean-room and attribution (hard)

- No Apple code, strings, firmware, disassembly output or Apple tuning values in public code, PRs, issues or channels. Our own traces and measurements are fine.
- Commits carry human identity only, with a human `Signed-off-by`. No agent co-author or sign-off and no `Assisted-by` in commits. When an agent helped, disclose it at the end of the PR body with a plain `Assisted-by:` line naming the model or tool (exact wording, vendor prefix, and punctuation are flexible; do not nitpick format).
- Carry other people's commits unchanged. No force pushes to shared branches.

### 5. Evidence (default, high bar)

- A run on the affected hardware with the numbers: what ran, on which Mac, kernel and build, and the result. Include a regression run: 0 SELinux denials, 0 failed units, 0 new kernel errors.
- Performance claims: a same-machine A/B with conformance unchanged on every GPU generation the change applies to.

### 6. Naming (hard)

- The Vulkan driver is **Borealis** (Aurora Silicon's Vulkan driver, in Mesa). Never call our work Honeykrisp or "hk" in prose: PR and issue text, commit messages, docs, reports and user-facing names.
- Code keeps the identifiers it has today. Until the rename in [aurora-silicon/mesa#591](https://github.com/aurora-silicon/mesa/pull/591) is merged, Borealis lives in `src/asahi/vulkan/` with `hk_`/`HK_` symbols; after it lands, new code uses its `brl_` prefix.
- Names shared with upstream or fixed by an interface stay as they are: the Gallium `asahi` driver, `src/asahi/`, the DRM UAPI (`asahi_drm.h`, `DRM_ASAHI_*`) and Asahi or m1n1 names in upstream code. New paths and names of our own use Aurora, not Asahi or m1n1.

## Testing and collaboration

- Use the Context Mode plugin whenever it can reduce low-signal output.
Expand Down
47 changes: 47 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,53 @@ merge. To change the policy, edit .github/aurora/AGENTS.md.
- Only public code goes in. Never copy code from proprietary sources.
- Changes are tested on the hardware they affect before they are merged.

## Pre-PR checklist

Synced from [aurora-silicon/agent-guidelines](https://github.com/aurora-silicon/agent-guidelines/blob/f7edafb3ce3b/pre-pr-checklist.md)
at f7edafb3ce3b. Change it there, then sync the copy here; do not edit this section
on its own. These are the checks Aurora's review agents apply.

Each item is a hard rule unless it says "default". If your change fails one, fix the change, or say in the PR why it can't be done yet and keep the PR a draft.

### 1. No model gating: works on every Mac that has the hardware (hard)

- **No chip, SoC, board or firmware-version gates** unless truly unavoidable. Decide from what the machine reports: ADT/DT properties of the block, its compatible, capability or feature bits, probed registers, firmware capability fields, ALSA control ranges. Never `if chip == …`, `if board == …`, `if fw == 27.2`, or a per-chip table where a property can carry the value.
- If a gate really is unavoidable, the commit message says why, and the gate uses the narrowest hardware property.
- Prove the change on every Mac you have that contains the block, not only the one you wrote it for. Ask for test runs on the ones you don't have.
- **Chicken and egg:** if the property must first come from the boot loader or DT, land that side first. The consumer reads it with today's behaviour as the fallback when it is absent, and the fallback is removed after a release has carried the property.

### 2. Production-ready, no hacks (hard)

- Works on the **default kernel command line**: no new cmdline or module parameters, environment variables or manual steps needed for a feature to work.
- No sleeps or retries over a race, no magic delay or depth ("the value that worked"), no disabled checks, no lab-only code paths.
- Development boots (one-shot test boots) may use extra parameters. Remove them and re-prove on the default command line before the PR.
- One kernel tree and one command line for every Mac. Only the devicetrees differ.

### 3. Safety (hard)

- **Safety values come from the machine, never from hardcoding.** Limits, caps, thresholds, timings and filters that protect hardware (speaker excursion and thermal limits, gain caps, high-pass corners, power and thermal limits, voltage and current ceilings) are read from what the Mac hands over: its ADT/DT, its own firmware or tuning bundle on the ESP, or control ranges the driver reports. No per-model safety tables or magic numbers in code. If the machine doesn't provide a value, the feature stays off or muted; it never falls back to a guessed constant.
- Speakers: **speakerguardd v2 only**. Never weaken or bypass protection. If a capability or limit can't be established from the machine, stay muted.
- Every test boot has a dead-man. Read registers before writing them.
- No Stage 1, boot-object, LocalPolicy or 1TR change without the machine's owner.
- Before any USB-C VDM or HPM reset, confirm which Mac is on the far end of the cable.

### 4. Clean-room and attribution (hard)

- No Apple code, strings, firmware, disassembly output or Apple tuning values in public code, PRs, issues or channels. Our own traces and measurements are fine.
- Commits carry human identity only, with a human `Signed-off-by`. No agent co-author or sign-off and no `Assisted-by` in commits. When an agent helped, disclose it at the end of the PR body with a plain `Assisted-by:` line naming the model or tool (exact wording, vendor prefix, and punctuation are flexible; do not nitpick format).
- Carry other people's commits unchanged. No force pushes to shared branches.

### 5. Evidence (default, high bar)

- A run on the affected hardware with the numbers: what ran, on which Mac, kernel and build, and the result. Include a regression run: 0 SELinux denials, 0 failed units, 0 new kernel errors.
- Performance claims: a same-machine A/B with conformance unchanged on every GPU generation the change applies to.

### 6. Naming (hard)

- The Vulkan driver is **Borealis** (Aurora Silicon's Vulkan driver, in Mesa). Never call our work Honeykrisp or "hk" in prose: PR and issue text, commit messages, docs, reports and user-facing names.
- Code keeps the identifiers it has today. Until the rename in [aurora-silicon/mesa#591](https://github.com/aurora-silicon/mesa/pull/591) is merged, Borealis lives in `src/asahi/vulkan/` with `hk_`/`HK_` symbols; after it lands, new code uses its `brl_` prefix.
- Names shared with upstream or fixed by an interface stay as they are: the Gallium `asahi` driver, `src/asahi/`, the DRM UAPI (`asahi_drm.h`, `DRM_ASAHI_*`) and Asahi or m1n1 names in upstream code. New paths and names of our own use Aurora, not Asahi or m1n1.

## Testing and collaboration

- Use the Context Mode plugin whenever it can reduce low-signal output.
Expand Down
Loading