| Message ID | 20260929134353.3879030-2-stian@itx.no |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=m9p3=HV=vger.kernel.org=sparclinux+bounces-8133-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=itx.no header.i=@itx.no header.a=rsa-sha256 header.s=mx.itx.no header.b=JwMwoNtc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=mail.ozlabs.org; envelope-from=srs0=m9p3=hv=vger.kernel.org=sparclinux+bounces-8133-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvKFj2dxvz1y1S for <incoming@patchwork.ozlabs.org>; Tue, 29 Sep 2026 23:46:00 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hvKF7232Zz4w2b for <incoming@patchwork.ozlabs.org>; Tue, 29 Sep 2026 23:45:31 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hvKF71wd6z4wSn; Tue, 29 Sep 2026 23:45:31 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c04:e001:36c::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790689531; cv=pass; b=osLmoYaa9Ve2M+NYfyW/eshLNA0f7pi5cNMn6fA9Onkq3WibMG+dFHM+hLfvjTU4fsK7kRC4kVSwjidel1agaUNM0fB2dUX5BVCfszgpQsFn9BV1/y7H7H+0Bpd+uj7CSwhginb8YChLnekKMokfN3/uYTruD2r5UKrsTRppDdn6cBnpd/0WS7qV7b8LNcV3oXRW36lPZcrqf8aFvdrRLW1ehIdSikGX/V0LWM0El0V1y33T9ptkkdgWBOHFGxVlBREHlwnejjI1mTaqUQNmdrI5Z2XmKihRdufETAt+yXhDAQsuvzyxJA95stMxyVZNedS2S/PR1IEdziVwj2sf3Q== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790689531; c=relaxed/relaxed; bh=CbHEMeGnBGEuY25BHoYPpmffIcMnF1AI43jCvvuHYJM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d9UhR5ikqSU7/6KA51SeiWzY4kTiUGzdCWSzOcaeVj3s7XewHRYjfzFmJjwM4MsTVPfX+uReoghIenXmq6msmT5F/YzpwdHBmXnG63DeQzv33lOid0yhJYOaIwXMS4pqwIrUfAMww3Zy9CmyThGWTDHKZyy6OU/fYH1UqQGpVoGuF0i5QB20JPAM2w2rhTGJz0oqQWvLxtoOaEU6aNBMctNBaiXjdxlHFqUDLBA2nKcSlSka9qcmknbLSoKGtpUoyjcbRoQWMii5T5hWq6cJmajZ24ezVGki7qR0lidp5ljS3U0hdQCiUZIBGF//CCf0RPcvU+iL+0cMw1kwFXQ7QA== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=itx.no; dkim=pass (1024-bit key; secure) header.d=itx.no header.i=@itx.no header.a=rsa-sha256 header.s=mx.itx.no header.b=JwMwoNtc; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-8133-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=itx.no Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=itx.no header.i=@itx.no header.a=rsa-sha256 header.s=mx.itx.no header.b=JwMwoNtc; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org; envelope-from=sparclinux+bounces-8133-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from tor.lore.kernel.org (tor.lore.kernel.org [IPv6:2600:3c04:e001:36c::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hvKF35LTbz4wKj for <patchwork-incoming@ozlabs.org>; Tue, 29 Sep 2026 23:45:27 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 15B9B2F0E3 for <patchwork-incoming@ozlabs.org>; Tue, 29 Sep 2026 13:44:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C15952CCD2; Tue, 29 Sep 2026 13:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=itx.no header.i=@itx.no header.b="JwMwoNtc" X-Original-To: sparclinux@vger.kernel.org Received: from mx.itxnorge.no (itx-kvm-14.itxnorge.no [91.189.121.228]) (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 4A2695237AE; Tue, 29 Sep 2026 13:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.189.121.228 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790689446; cv=none; b=BkqqTxVn98K7zLonEVlVKUOCwrqqLavyH720ckh6LKALYbEokT2KDEwqBKiQ62bD9L2q1IgBt3KqHI8RnBOWdDml0yH0XWAewEQIx/kwR1oEhpQFmYVafNNhB053RDtR0AYt0SeYhfZzSdm1DU19olyUmKL9Z6QAHfAfz4qe7os= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790689446; c=relaxed/simple; bh=biTdxv5uh5RpdcHGsKu6LKXJxolTlezVqsYDj8JfbxA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pCZTckIU0/oo0McLuFKl5axubUjQsIxtlJagcjly5mxlGz00Iooqb3oN/W+6ihwrJk26RkESXg7dHOHgIIdpeb620EJe1x9bV14+2YJkkhWrJ2pO257oExHyyB+RHUOWQemXSNYQGcmzK/WdXMOOjQ/0sEGNz1SW+Gihl6nPk7Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=itx.no; spf=pass smtp.mailfrom=itx.no; dkim=pass (1024-bit key) header.d=itx.no header.i=@itx.no header.b=JwMwoNtc; arc=none smtp.client-ip=91.189.121.228 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=itx.no Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=itx.no From: Stian Halseth <stian@itx.no> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itx.no; s=mx.itx.no; t=1790689442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CbHEMeGnBGEuY25BHoYPpmffIcMnF1AI43jCvvuHYJM=; b=JwMwoNtcmum6rlA8ooQRDZhQk5QpWIGRxs3SQI8QY2WbM7Wm6Hzk09rmq1NklqmjD46Vbr HXHo5aL4Q0ekhRXNz++K83cuVxfN6cIS1DjJ0tlXFRRBJPDtRsah7yaVfLFsgLgOWzhPc3 SzUd9JWM4+ddIcbaGar6QxwzDWC2aO0= To: "David S . Miller" <davem@davemloft.net>, Andreas Larsson <andreas@gaisler.com> Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Stian Halseth <stian@itx.no> Subject: [PATCH 1/5] sparc64: Report unrecognised machine description hwcap-list entries Date: Tue, 29 Sep 2026 15:43:49 +0200 Message-ID: <20260929134353.3879030-2-stian@itx.no> In-Reply-To: <20260929134353.3879030-1-stian@itx.no> References: <20260929134353.3879030-1-stian@itx.no> Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: <sparclinux.vger.kernel.org> List-Subscribe: <mailto:sparclinux+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:sparclinux+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
sparc64: Report the M7 hardware capabilities
|
expand
|
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c index 63615f5c99b47..8ed65ad0e6081 100644 --- a/arch/sparc/kernel/setup_64.c +++ b/arch/sparc/kernel/setup_64.c @@ -488,20 +488,28 @@ static unsigned long __init mdesc_cpu_hwcap_list(void) while (len) { int i, plen; + bool known = false; for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { unsigned long bit = 1UL << i; if (hwcaps[i] && !strcmp(prop, hwcaps[i])) { caps |= bit; + known = true; break; } } for (i = 0; i < ARRAY_SIZE(crypto_hwcaps); i++) { - if (!strcmp(prop, crypto_hwcaps[i])) + if (!strcmp(prop, crypto_hwcaps[i])) { caps |= HWCAP_SPARC_CRYPTO; + known = true; + } } + if (!known) + pr_info("CPU CAPS: unknown hwcap-list entry '%s'\n", + prop); + plen = strlen(prop) + 1; prop += plen; len -= plen;
mdesc_cpu_hwcap_list() matches each string in the cpu node's hwcap-list against hwcaps[] and crypto_hwcaps[]. A string that matches neither is skipped silently, so firmware can advertise a capability the kernel has no name for and nothing reports it. A SPARC T7-1 (M7) emits 28 entries, of which eight match nothing: vis3b pause-nsec mwait sparc5 cfr mont xmpmul xmont Print the ones that are not recognised. Signed-off-by: Stian Halseth <stian@itx.no> --- arch/sparc/kernel/setup_64.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)