From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87E8C363C6C for ; Thu, 23 Jul 2026 09:53:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784800422; cv=none; b=jjU3DR5B7SlBt8TNlnh0a9RG5iKyWaRsymY9CSksHy5AuElmn9OrNWY/iUkDFTKE5OcATo3z1w0+cYfyM+1rxt4SipYVuYZu1KXEsPHLdQd2iBCM1y3ukz3uZAuNCXTq98ZD6T+tHsqzf27jCtqNoC+Vgo+mU4WJB15OP3vRXB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784800422; c=relaxed/simple; bh=S5NqPnzf9E34AKXV08SNWUM/EqZ02c1hhZmCkSzJqcQ=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=qzWlmsP+PDdpintzr/H+GIJkJCVD+l39ZFvMh70VhU3zT4+XiPgA04iyyZhg6bQpcjarVriq8hdavpQi5AJ+aPckRCYtFyo2QLg/4bD7LZ4rPFNGeDARzRHgSz714haF7gmXXeZ5FhYQpTUhSQBlbS289X1K1EtiLrLY1hrisEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BQ09LaC0; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BQ09LaC0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E26EE1F000E9; Thu, 23 Jul 2026 09:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784800421; bh=I2M839mlvciwjP3qRllak7mRBXp2uaYGUn4kNGJ6a2w=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=BQ09LaC0y2QDWFrL55/EejQ8lEXeYXrsPw9st3DpkbxnDeT+Q7wpIHzRGXeuE1Yzq QNFrUkKQMMYaBkgoOPY168b8EfZQ0QyAs3ZgnZ5SOn9M3KO008luzFHN45PJR99m5F fB3eZ0z1qpdPbgcZSzm/iDVi+voAGMU8I+bdr5rInwO7E5EoOHH5sbWV00lVUbuRY4 /1yLedEhnI+Q/C6CfO2xd0ffm+qgNHiR1rm1guNj00Nf4Lco+c5VQ5SxtNBENis5GF 0jfT1DkWcQLkUYGoA6iO5c5AKT6HV1FpIRVYqqZnp6yHjE3QrRpTzFrg4ser2ubKpe ovwPsW2gYjLCw== Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfauth.phl.internal (Postfix) with ESMTP id 7DD64F40078; Thu, 23 Jul 2026 05:53:34 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-04.internal (MEProxy); Thu, 23 Jul 2026 05:53:34 -0400 X-ME-Sender: X-ME-Proxy-Cause: dmFkZTFHZDEhc6/KMefjmMp4uMeeE3Zcb9mfs+V06mdxw3F5PEChH3KemwCyws3jce4Mqz r9y+127SMPJFdIWF1YwFK9JBClNfqxmhNrJQ3CTMT06b4ew2B6pnn1U7m2heye/pLt0t33 yIacOoENbTlAHndzSlpi6MA6leuJWy0j4LK2nHoja1f+q81tI8AzboB88nxK/WQLxrC6II wdKaz7tgJFFljSrLD8ubTOg9ZnJu+g/yY7wxQzbg3uTDao4HSUgCTrKn6rM9DHR9mOFcXu 9oB0yPjJUSpsqYCYYpyoxeyeJgzFa8aH18z40rAf2NyB80rrQzkBKeftHAn0RRwmQzYiUp nSsATbUjtnrbeX0DKpAklEn+h8bq5gK81uRfyV2eG7TgOHlvvj8nciPN9J8hQNFWPSqW+m F3ac8sjnNFwFwgu65VWvkX0UXJ32WuN5dY4Mwm8Nfk4HHHapIRnpX5ZbFHiTEr3c0NsYER 38ffc/JDfh6MpEmr8ErH03NX+zrTWRKc3vIYZFiKwQCIknFJJd8bnV08Upe7NSZERj3G3p f4pBuNI/Xyjz04xloT4DpUf5IjYgnua5CY6zHjzCdcdRHBh0Zo+H4aciIU9j5cFve8MqLO vjmcxg5CpjW5NfFt3SQ8vyh+xCSkBzgbhDOPT7WrrpIg1zBA1o+tm0rgzVfw X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 610A3182007E; Thu, 23 Jul 2026 05:53:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: ADJgN6ak6HcB Date: Thu, 23 Jul 2026 11:53:14 +0200 From: "Arnd Bergmann" To: "Akari Tsuyukusa" , "Nick Desaulniers" Cc: "Matthias Brugger" , "AngeloGioacchino Del Regno" , "Russell King" , "Nathan Chancellor" , "Bill Wendling" , "Justin Stitt" , "Yingjoe Chen" , "moderated list:ARM SUB-ARCHITECTURES" , "open list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:CLANG/LLVM BUILD SUPPORT:Keyword:b(?i:clang|llvm)b" , stable@vger.kernel.org, "Ard Biesheuvel" Message-Id: In-Reply-To: References: <20260722172443.534251-1-akkun11.open@gmail.com> Subject: Re: [PATCH] arm: mediatek: fix secondary CPU boot on Thumb-2 kernels with Clang Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 23, 2026, at 11:15, Akari Tsuyukusa wrote: > On Wed, Jul 22, 2026 at 02:03:31PM -0700, Nick Desaulniers wrote: >> On Wed, Jul 22, 2026 at 10:25=E2=80=AFAM Akari Tsuyukusa wrote: >> Can you perhaps help test/verify that Akari? > > I tested your suggested patch and confirmed that it fixes the issue. > > Device: Lenovo YOGA Tablet 10 (Wi-Fi) (MT8125) > Toolchain: Clang/LLVM 22.1.8-2 (cachyos-v3) > > Tested-by: Akari Tsuyukusa > > Can you send your fix as PATCH? > I think your approach is better than mine. I think we should wait for the llvm issue to be resolved first, to document whether this is considered a bug in the kernel or the assembler, and to see if any other kernel code may be affected by the same thing. Looking around other .S files, I see the same pattern in stext(), cpu_resume_arm(), mcpm_entry_point(), all of which start in arm mode but end in thumb. Arnd=20