Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3462405rwd; Mon, 22 May 2023 14:18:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kTl13XY2VvYjywzSn8MfxEqKYyKfl+2Kt/xoJMjxQ/i4FvnN1vjkS39/OAL9mbbiP7huD X-Received: by 2002:a05:6a00:2e15:b0:645:834c:f521 with SMTP id fc21-20020a056a002e1500b00645834cf521mr19763414pfb.17.1684790306628; Mon, 22 May 2023 14:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684790306; cv=none; d=google.com; s=arc-20160816; b=QLvs43NPPsbHdjgFUKWSE4SxtEnFMAeeLAbErmZS9oLP8RxtS7+4yDnJvSp2Mz3JAM AFjhOBTg+oqOt3HCY2vmm9k77gNk4iY7MxHQYfE7fT847w6reBkqtKiRQPOo6wcdeDmW PVedBPIFXtdNhtPLdGUaXRuhqgw3sdA0XEN40xBMXEsLC/WiXStKt4DyyU8HugDThl88 RPaLratefevalQsoyAMZ6j//KgDDgV0n6A08fbbny6MmgtObSZPItDRskaxT9FBPKij3 KlA8wc3KHrcleMVYbavJzPowg1o29XccDre10Df6qtPwxPPSdcq8pVoP+KB9EsueHHRA Vv4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:feedback-id:dkim-signature:dkim-signature; bh=+L0icm8PcJhuI13aRSH2Ao5/O3h9y8NRZXYeIScQ4y8=; b=GuMtVPLShR1tzcyuN0pdVCkXvZvQHcx+9ovVL7nAA2cZQifR4YyWIfgYkqHE5Q6sa+ 3ragtGcSY1qGUnRsEZG0slYypQ0p+alVAluQbxU9fXxsQlkF10ge+iuNKjHrMyyQp4p6 U9i7iD4mDi+/U9mP6FMvTMitNk56gQXpfetfCbKyYe3UbWHK4Sm/CAE6XR38GoJKuYT4 nb3zhLKeQ/giswNI8gvtKx+hbqUl1tvmkRPCRgp1zq7brNqqZQ+EpW2EG7RpUoNM4MLT tq5tVEFfYZ9OnPTIkVLR4Fv2Wk2ha9exKJe1Rjtq0Sdk8wq7Hko9Cz5w7PFCTpNyMTDy Usvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=t5hDG+T+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tzPnmQu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m129-20020a625887000000b00643c4345942si781849pfb.134.2023.05.22.14.18.11; Mon, 22 May 2023 14:18:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=t5hDG+T+; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=tzPnmQu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231889AbjEVUqY (ORCPT + 99 others); Mon, 22 May 2023 16:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232924AbjEVUqV (ORCPT ); Mon, 22 May 2023 16:46:21 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0245793; Mon, 22 May 2023 13:46:20 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 70F2A5C01A6; Mon, 22 May 2023 16:46:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 22 May 2023 16:46:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1684788380; x=1684874780; bh=+L0icm8PcJhuI13aRSH2Ao5/O3h9y8NRZXY eIScQ4y8=; b=t5hDG+T+q4+N+pi2RIe8l6lky8dAwg0ymcZjms+fECVpeDGxLLD Id82YtnBeKWx1AR3n37tdVkvx9iEX5scRf/GR/a5hpJavVAyCfhYkiAjgVfEQuZA Gufp1U2+pwZcXMWsLZJltAwaJObV1VJ8+s5jAYe3+GxO+w+tuN00NPwC2WFHfFto fxlLoUXWic4BAnlNgjHgAptvOMQJgmP6iP+x74IB7Xl2lZN2qCzF5Pq3BDiXCSeo Cj34bZMhZjesbWSVIp/w3xzlyIl8ZaObgJPH6LzWJchVwVrFEjZYohmL7ILXYJ2u ZbkBinIiej2Qe3yL334QM/zwyeoujLJoDIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1684788380; x=1684874780; bh=+L0icm8PcJhuI13aRSH2Ao5/O3h9y8NRZXY eIScQ4y8=; b=tzPnmQu1M9KXKAYcVjNuG4zajI8IUzNOve45nD/9XZUUxJy0Xfu k2m5dO3Na7i6so3frJ/dzY5r41k2Y4YuNXf3iAlamxv3MtmwbCp8vcYJwcJdgcZ4 Vi8MSvGddxcwOCVD1lrCUMlZK4iRzXOLSaXOATaxD6lp47Avm5/d4/lFbjTpVvja fikPC90T8L6GqO4nAmXMVbmpE3h2wXNoHgzAcSRgPlSz68joOpKtsjJ+IGlkg909 ZBJ5UqSnDVuHvVR465hEdHmdHrnvEMjdqWHvW3PGkWrSgevrIuWRAIK/d8iebA2H P4xW8DYeA51kd4kbIXjopXpW2myzKkjiRlg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejuddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpedutdejffetteefkeejieehfeeuieeguedtveeijeeviefh ffelvdfgudeihfdvtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 May 2023 16:46:18 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: [PATCH 1/3] MIPS: Introduce WAR_4KC_LLSC config option From: Jiaxun Yang In-Reply-To: Date: Mon, 22 May 2023 21:46:07 +0100 Cc: "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, Thomas Bogendoerfer Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230519164753.72065-1-jiaxun.yang@flygoat.com> <20230519164753.72065-2-jiaxun.yang@flygoat.com> <53043C18-7C75-4D5F-A15E-86D981D19CA8@flygoat.com> To: "Maciej W. Rozycki" X-Mailer: Apple Mail (2.3731.500.231) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 2023=E5=B9=B45=E6=9C=8819=E6=97=A5 23:51=EF=BC=8CMaciej W. Rozycki = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On Fri, 19 May 2023, Jiaxun Yang wrote: >=20 >>> Given the circumstances I think this should be `panic'. You don't = want=20 >>> to continue with a system that can randomly lock up. >>=20 >> I just checked how other architectures handle such situation, it = seems like >> TAINT_CPU_OUT_OF_SPEC is a better option. >=20 > That can be easily missed, just as a random message in the kernel log,=20= > even at a high priority, and LOGLEVEL_ERR is not particularly high = even. =20 > For a system configuration that qualifies as not usable for any = practical=20 > purpose I find this approach leaving something to desire. Just found another reason that not to panic in such situation when I=E2=80= =99m playing around QEMU. Emulation software like QEMU, mipssim, OVPSim, IASIM tends use base PRID of a core. It can be more than annoying for people to find kernel = suddenly won=E2=80=99t boot on their simulator. >=20 >> Panic in cpu_probe can be frustrating for users as it is earlier than = initialisation >> of consoles so the panic message can never be read by users. >=20 > Is there no early console support for the systems affected? For routers it=E2=80=99s very common that serial port available to user = is not the same one as we hooked for earlyprintk. For QEMU users potentially using graphic interface, initialisation of = DRM/FBDEV comes very later. Thanks - Jiaxun >=20 > Maciej