Skip to content

lib: bh_arc: tensix_init: add DEST register wipe at init#1002

Open
ShLiTT wants to merge 2 commits intotenstorrent:mainfrom
ShLiTT:wipe_dest_regs
Open

lib: bh_arc: tensix_init: add DEST register wipe at init#1002
ShLiTT wants to merge 2 commits intotenstorrent:mainfrom
ShLiTT:wipe_dest_regs

Conversation

@ShLiTT
Copy link
Contributor

@ShLiTT ShLiTT commented Feb 10, 2026

  • Add wipe_dest() which:
    1. Loads the TRISC wipe firmware from SPI flash to all non-harvested Tensix L1
      via NOC multicast
    2. Sets TRISC 0 reset PC and releases it from soft reset
    3. Waits for all cores to signal completion via an atomic counter
      (global_sync() with 10ms timeout)
    4. Re-asserts TRISC 0 soft reset
  • Add global_sync() helper to poll a counter on a designated Tensix core
  • Add noc2axi_write32_fw() helper for 32-bit NOC writes during SPI transfer
  • Call wipe_dest() from tensix_init() after wipe_l1()

raw/refs/heads/main/zephyr/blobs/fw_pack-grayskull.tar.gz"
description: "Grayskull FW"
doc-url: https://tenstorrent.com
- path: tt_blackhole_trisc_dest_wipe.bin
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this merged to the internal repository?

If so we should document the git hash, or some version, from which it came from...

If not, we should do that first, then do above.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sry I just caught 0.2. Is that accurate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What would be a good format to add git hash? I am not sure if having a commented source is good enough...

# Source: <full-commit-hash> in t6py

Copy link
Contributor

Choose a reason for hiding this comment

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

Appologies @ShLiTT ; you have a verion 0.2 there. I'm not sure if that's accurate or not but that'll probably do, so long as internally the verison is being tracked as well.

Add a 4KB read-only destwipe partition at 0x22c000 for the TRISC
dest wipe firmware blob in the Blackhole fixed partitions dtsi.

Signed-off-by: Sherry Li <xiaoruli@tenstorrent.com>
Add wipe_dest() to zero the DEST register of every non-harvested
Tensix core during initialization. Loads a TRISC wipe firmware
from SPI flash to Tensix L1 via multicast, runs it on TRISC 0,
and waits for all cores to complete via an atomic counter with a
10ms timeout before re-asserting soft reset.

Signed-off-by: Sherry Li <xiaoruli@tenstorrent.com>
@ShLiTT
Copy link
Contributor Author

ShLiTT commented Feb 11, 2026

This pr needs to be merged after merge-request 2357 landing in t6py.

@ShLiTT ShLiTT marked this pull request as ready for review February 11, 2026 19:44
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.

3 participants