Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795032904; b=A23UywHRWXgoidrhAudq4CKN+ljPxLlMIjVwO2O1HZ4YoO1m05vVo2KJwAK1yq+90q4R NehG/yJZ1nFvNUm4v5Wn+s0m4cabnbPpEZAFodaLuEteeb9MV90jE//j1PRIHabRGj//X WKutoJTFHr4VsJAKfIyi78PcC6iJNAHws4duzpyxc6SQ0fXIsCX8WgLp2N/NNDoXN46NN nj3y6jGcdL10cGE/ua5gSiUVdjFN19nv3/D+OMChAfBTA8X4HxAGtRfovI4ModUgZVsRJ ey/JAHPUu1N3XVyQWW3frw9eE1dBCtgc8DCCh8lHs3+3SdsMjelLVoBjheUm1LqiJxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795032904; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=BHvg4+aj9wlgYINjaEo849sv1vYls2K82IPOkP+6QgM=; b=4X9aze7CjhAY2MNtLUfcDU6Of8vx2bbxZ9IkmqN+X82Zp4ojzlkpgd3M4a3B/qFWmYsL X4yAv5leN49FvjeqSd7tcwoP1emV6A2oAmk2Tj1uzzN1BsGk+UEmI1ekiL7/G6VLA39BX v/GXHVzqBxzpNUJuJaAHzQxGoQCIh3kyeiUElLDTYg8fe8N2v4J2ta9y5utk5bYrwoMUx OO36DwZk2C5P8PDqNVGPY0khF4UXw2Ct2uFHkCGUGXC1MwH4RD0NQ8WTnR+vbUs7Cq1gZ IDPRkIcqODxTx3vWrkDAlNOhbKlaB5QuWQJAevohboLHA7jlaGarfbPE/UkqkolgxBQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TPT3Mvd+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC5F606A31C; Wed, 18 Nov 2026 20:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=TPT3Mvd+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 501921F000C4; Wed, 18 Nov 2026 20:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795032903; bh=BHvg4+aj9wlgYINjaEo849sv1vYls2K82IPOkP+6QgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TPT3Mvd+xb2lvf74LftGFj64MqMFWLlnQCFcGSkOtKOhSpGSE09r7/rTfm5O1zJ+F tp+ZhPgD701/3WQopSu5nBQvwsvVdYSo2T7QLKx+oFn8CwkXjfgnIEdzBpYNZHk5ph Sn2we51RJwRX7qTB5leueBdIYsUOD0utL+Skg85M= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sasha Levin , "Rafael J. Wysocki" Subject: [PATCH 6.12 1577/1756] selftests/thermal: allow cross builds of the Intel tests Date: Wed, 18 Nov 2026 16:01:44 +0100 Message-ID: <20261118150112.537975794@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150007.957976754@linuxfoundation.org> References: <20261118150007.957976754@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ff4194e54f840b4df4eb2489c63ee88283895efc ] The power_floor and workload_hint Makefiles build nothing when CROSS_COMPILE is set, even for an x86 target, and they include lib.mk only on x86. Other architectures therefore have no install or emit_tests rules for these suites, and their installation fails with a missing target. Select the x86 tests from the target ARCH when it is given and from the host's SUBARCH otherwise, and include lib.mk unconditionally so that the suites install and emit an empty runlist on other architectures. Use a private ARCH_PROCESSED instead of the ARCH override added by commit 5a1292137e89 ("selftests: fix ARCH normalization to handle command-line argument"): the override changed the value lib.mk uses to pick the clang target, whereas leaving ARCH unset lets lib.mk use the compiler's native triple. A command-line ARCH such as x86_64 is still normalized for the selection, while an ARCH spelling that lib.mk does not know, such as i686 with LLVM=1, is rejected as in other selftests. Fixes: 27801542b2b8 ("selftests/thermel/intel: Add test to read workload hint") Fixes: d4d27e5a1a88 ("selftests/thermel/intel: Add test to read power floor status") Signed-off-by: Sasha Levin Link: https://patch.msgid.link/20261014200127.1363472-4-sashal@kernel.org Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- .../selftests/thermal/intel/power_floor/Makefile | 12 +++++------- .../selftests/thermal/intel/workload_hint/Makefile | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/tools/testing/selftests/thermal/intel/power_floor/Makefile b/tools/testing/selftests/thermal/intel/power_floor/Makefile index 07463c2160e09..16d26eab55652 100644 --- a/tools/testing/selftests/thermal/intel/power_floor/Makefile +++ b/tools/testing/selftests/thermal/intel/power_floor/Makefile @@ -1,12 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 -ifndef CROSS_COMPILE -ARCH ?= $(shell uname -m 2>/dev/null || echo not) -override ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) +top_srcdir = ../../../../../.. +include $(top_srcdir)/scripts/subarch.include +ARCH_PROCESSED := $(shell echo $(or $(ARCH),$(SUBARCH)) | sed -e s/i.86/x86/ -e s/x86_64/x86/) -ifeq ($(ARCH),x86) +ifeq ($(ARCH_PROCESSED),x86) TEST_GEN_PROGS := power_floor_test +endif include ../../../lib.mk - -endif -endif diff --git a/tools/testing/selftests/thermal/intel/workload_hint/Makefile b/tools/testing/selftests/thermal/intel/workload_hint/Makefile index 49e3bc2b20f9d..e53d6ecd9f8de 100644 --- a/tools/testing/selftests/thermal/intel/workload_hint/Makefile +++ b/tools/testing/selftests/thermal/intel/workload_hint/Makefile @@ -1,12 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 -ifndef CROSS_COMPILE -ARCH ?= $(shell uname -m 2>/dev/null || echo not) -override ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) +top_srcdir = ../../../../../.. +include $(top_srcdir)/scripts/subarch.include +ARCH_PROCESSED := $(shell echo $(or $(ARCH),$(SUBARCH)) | sed -e s/i.86/x86/ -e s/x86_64/x86/) -ifeq ($(ARCH),x86) +ifeq ($(ARCH_PROCESSED),x86) TEST_GEN_PROGS := workload_hint_test +endif include ../../../lib.mk - -endif -endif -- 2.53.0