From: Nathan Chancellor <nathan@kernel.org>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Kiran K <kiran.k@intel.com>
Cc: linux-bluetooth@vger.kernel.org,
chethan.tumkur.narayan@intel.com,
chandrashekar.devegowda@intel.com, ravindra@intel.com
Subject: Re: [PATCH v1 1/3] Revert "Bluetooth: btintel_pcie: sync mbox tlv parsing with GP0 alive interrupt"
Date: Tue, 24 Nov 2026 15:42:02 -0700 [thread overview]
Message-ID: <20261124224202.GA3166904@ax162> (raw)
In-Reply-To: <179546281177.3078240.11094667377301570869.git-patchwork-notify@kernel.org>
On Mon, Nov 23, 2026 at 07:40:11PM +0000, patchwork-bot+bluetooth@kernel.org wrote:
> - [v1,3/3] Bluetooth: btintel_pcie: Serialize MAC access requests
> https://git.kernel.org/bluetooth/bluetooth-next/c/5bf3a9b6b720
As pointed out by the kbuild test robot, this breaks the build when
context analysis is enabled (i.e., with clang-23+) with:
drivers/bluetooth/btintel_pcie.c:1055:12: error: mutex 'data->mac_access_lock' is not held on every path through here [-Werror,-Wthread-safety-analysis]
1055 | for (i = 0; i < config_set->num_pairs; i++) {
| ^
drivers/bluetooth/btintel_pcie.c:1040:4: note: mutex acquired here
1040 | mutex_lock(&data->mac_access_lock);
| ^
include/linux/mutex.h:193:26: note: expanded from macro 'mutex_lock'
193 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
| ^
drivers/bluetooth/btintel_pcie.c:1112:4: error: releasing mutex 'data->mac_access_lock' that was not held [-Werror,-Wthread-safety-analysis]
1112 | mutex_unlock(&data->mac_access_lock);
| ^
2 errors generated.
I am now seeing this error in -next. I guess
btintel_pcie_apply_yoyo_config_sets() could be marked with
__context_unsafe(/* conditional locking */)
since conditional locking is unsupported with context analysis to my
understanding but I am not sure if there is another better solution.
--
Cheers,
Nathan
prev parent reply other threads:[~2026-11-24 22:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 6:55 [PATCH v1 1/3] Revert "Bluetooth: btintel_pcie: sync mbox tlv parsing with GP0 alive interrupt" Kiran K
2026-11-23 6:55 ` [PATCH v1 2/3] Bluetooth: btintel_pcie: Serialize doorbell writes and target reads Kiran K
2026-11-23 6:55 ` [PATCH v1 3/3] Bluetooth: btintel_pcie: Serialize MAC access requests Kiran K
2026-11-23 20:44 ` kernel test robot
2026-11-23 11:56 ` [v1,1/3] Revert "Bluetooth: btintel_pcie: sync mbox tlv parsing with GP0 alive interrupt" bluez.test.bot
2026-11-23 19:40 ` [PATCH v1 1/3] " patchwork-bot+bluetooth
2026-11-24 22:42 ` Nathan Chancellor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124224202.GA3166904@ax162 \
--to=nathan@kernel.org \
--cc=chandrashekar.devegowda@intel.com \
--cc=chethan.tumkur.narayan@intel.com \
--cc=kiran.k@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=ravindra@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.