From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9578C0015E for ; Thu, 27 Jul 2023 10:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Xh6jI0CB4hoJjBA0d9ouR8HQQjP/587nuuxOuoCbxtE=; b=Wn5p85YYwPWUeJ ljwb44D27QqP1oU95A6m+mic0Px+YcmGUSW+U/2tSxWmSiA29iJi3ULAlSEr9nR/6Vmly7Vx0nlfd hEOS935gboyebtPN9ZiPJJhQ8VOMVUnIX8W74HLc8n6c6u9OO0N7BqVPcXp7TFZhkVka1L6/MxGbF zNjVtSFjKIORza5U9ynXOfFrB+tn5uqmonvitll7bNWRwFG0JlIBn9qWJzHm/4zis84KRj0Z4+lCq 6Wz8rV8nNHeHKR9HX6+PMzNZQbtNaPQdLKl1uTnZvmJFEcugwwz679j2GuX7zALOSnxMm1ApQsJNp piIL4VabLLRsLS+8lYVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qOy7h-00Cynf-1W; Thu, 27 Jul 2023 10:21:33 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOy7d-00CymM-2t for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 10:21:31 +0000 Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4RBRWv6qf4z67nPF; Thu, 27 Jul 2023 18:16:59 +0800 (CST) Received: from localhost (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 11:21:23 +0100 Date: Thu, 27 Jul 2023 11:21:22 +0100 From: Jonathan Cameron To: Mark Brown , , , Richard Henderson Subject: Warning on SME when manually onlining CPUs late. Message-ID: <20230727112122.00000810@huawei.com> Organization: Huawei Technologies R&D (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; x86_64-w64-mingw32) MIME-Version: 1.0 X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_032130_079915_92A731DD X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Mark Hit this due to a silly config error on a QEMU TCG test but seemed worth asking about as I'm buried in other stuff and no time to investigate further for a few weeks. Test probably could be simplified but it's more or less vanilla upstream QEMU with -cpu max -smp 8 and kernel command line with maxcpus=4 echo 1 > /sys/bus/cpu/devices/cpu4/online CPU features: SANITY CHECK: Unexpected variation in SYS_SMCR_EL1. Boot CPU: 0x0000000000000f, CPU4: 0x0000008000000f CPU features: Unsupported CPU feature variation detected. If this is already well known, then sorry for noise. I've not been paying much attention to the SME work. Looks like the FA64 bit isn't set for the CPU state of the boot CPU that is being compared - I guess a stale record somewhere being used for the comparison? Could be an issue on QEMU side I guess - though from a quick look it all seemed to be correct there. Just in case +CC Richard. Jonathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel