Skip to content

[PW_SID:1091276] Bluetooth: btintel_pcie: fix stale cache in set_dxstate fallback check#155

Open
BluezTestBot wants to merge 6 commits into
workflowfrom
1091276
Open

[PW_SID:1091276] Bluetooth: btintel_pcie: fix stale cache in set_dxstate fallback check#155
BluezTestBot wants to merge 6 commits into
workflowfrom
1091276

Conversation

@BluezTestBot
Copy link
Copy Markdown

btintel_pcie_set_dxstate() falls back to checking the controller state via
btintel_pcie_in_d3/d0() when the alive interrupt is missed. However, these
helpers read boot_stage_cache, which is only updated by the interrupt
handler. As such, if the interrupt was missed, the cache is stale and the
fallback check always fails, exhausting all retries and returning -EBUSY,
causing suspend to abort.

The fix involves re-reading the hardware register before the fallback state
check, consistent with btintel_pcie_resume().

Fixes: e57362f ("Bluetooth: btintel_pcie: Add support for _suspend() / _resume()")

Signed-off-by: Vladimir V. Kondratyev vladimirkondratyev2@gmail.com

drivers/bluetooth/btintel_pcie.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

tedd-an and others added 6 commits May 6, 2026 20:37
This patch adds workflow files for ci:

[sync.yml]
 - The workflow file for scheduled work
 - Sync the repo with upstream repo and rebase the workflow branch
 - Review the patches in the patchwork and creates the PR if needed

[ci.yml]
 - The workflow file for CI tasks
 - Run CI tests when PR is created

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
This replaces the bzcafe action with bluez/action-ci so we can maintain
everything in the github bluez organization

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This attempts to sync every 5 minutes instead of 30.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
bluez/action-ci uses master as default branch for workflow which is
incorrect for kernel

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
The CI action now creates individual GitHub Check Runs per test, which
requires 'checks: write' permission on the GITHUB_TOKEN. Also make the
pull_request trigger types explicit to include 'reopened', allowing CI
to be retriggered by closing and reopening a PR.
btintel_pcie_set_dxstate() falls back to checking the controller state via
btintel_pcie_in_d3/d0() when the alive interrupt is missed. However, these
helpers read boot_stage_cache, which is only updated by the interrupt
handler. As such, if the interrupt was missed, the cache is stale and the
fallback check always fails, exhausting all retries and returning -EBUSY,
causing suspend to abort.

The fix involves re-reading the hardware register before the fallback state
check, consistent with btintel_pcie_resume().

Fixes: e57362f ("Bluetooth: btintel_pcie: Add support for _suspend() / _resume()")

Signed-off-by: Vladimir V. Kondratyev <vladimirkondratyev2@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

CheckPatch
Desc: Run checkpatch.pl script
Duration: 0.69 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

GitLint
Desc: Run gitlint
Duration: 0.30 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

SubjectPrefix
Desc: Check subject contains "Bluetooth" prefix
Duration: 0.11 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

BuildKernel
Desc: Build Kernel for Bluetooth
Duration: 27.57 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

CheckAllWarning
Desc: Run linux kernel with all warning enabled
Duration: 30.23 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

CheckSparse
Desc: Run sparse tool with linux kernel
Duration: 28.95 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

BuildKernel32
Desc: Build 32bit Kernel for Bluetooth
Duration: 27.07 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

TestRunnerSetup
Desc: Setup kernel and bluez for test-runner
Duration: 582.94 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

IncrementalBuild
Desc: Incremental build with the patches in the series
Duration: 25.20 seconds
Result: PASS

@github-actions github-actions Bot force-pushed the workflow branch 2 times, most recently from 5c3256e to 75a1a12 Compare May 11, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants