Skip to content
Merged
Changes from all commits
Commits
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
12 changes: 11 additions & 1 deletion .github/workflows/hw-spdm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ jobs:
LDFLAGS="-L${{ steps.wolfssl.outputs.prefix }}/lib"
make -j"$(nproc)"

- name: Reset TPM before detect (shared GPIO 4 reset line)
if: steps.health.outcome == 'success'
run: |
# Mirror spdm_test.sh gpio_reset(): both vendors share this reset line.
# Without this, caps sees a chip left in SPDM-locked state or stale TIS
# from a prior run and returns all-zero vendor/device IDs.
gpioset gpiochip0 4=0 2>/dev/null && sleep 0.1 && gpioset gpiochip0 4=1 2>/dev/null || true
Comment thread
aidangarske marked this conversation as resolved.
sleep 2

- name: Detect ${{ matrix.vendor }} TPM on SPI CS ${{ matrix.spi_cs }}
id: detect
if: steps.health.outcome == 'success'
Expand Down Expand Up @@ -175,7 +184,7 @@ jobs:
done

- name: Post-job cleanup
if: always() && steps.health.outcome == 'success' && steps.detect.outputs.present == 'true'
if: always() && steps.health.outcome == 'success'
Comment thread
aidangarske marked this conversation as resolved.
env:
LD_LIBRARY_PATH: ${{ steps.wolfssl.outputs.prefix }}/lib
run: |
Expand All @@ -184,6 +193,7 @@ jobs:
sleep 1
gpioset gpiochip0 4=0 2>/dev/null && sleep 0.1 && gpioset gpiochip0 4=1 2>/dev/null || true
sleep 2
# unlock/flush only meaningful if the chip was detected; ignore errors otherwise
./examples/spdm/spdm_ctrl --connect --unlock 2>/dev/null || true
./examples/management/flush 2>/dev/null || true
Comment thread
aidangarske marked this conversation as resolved.
echo "[cleanup] done"
Expand Down
Loading