Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp90430rwd; Fri, 19 May 2023 16:00:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fjel8+heYrYuymfaahsC0v/yLGwS64K1KMBOCTWAF6t+yfBuTo+oWQQ3V/mQHrXlksqSC X-Received: by 2002:a17:902:e542:b0:1a6:e564:6044 with SMTP id n2-20020a170902e54200b001a6e5646044mr4982503plf.7.1684537249996; Fri, 19 May 2023 16:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684537249; cv=none; d=google.com; s=arc-20160816; b=tMAjwvETBqdzXWoi5zXod9Wo7fNUlojPVmYpBxkb5/0wnBvrG/hp76K6Fw4X6P67iz CaCBMmrdGZyc4e4fvLoq9CD3cKvJnEZClffvYTHKkudGOf6Z/FmB+mpHsyjl1Bt1e6Ur tLKgReb421pmihaSa+I6RcMJT77SbWJ5eGr18n1BKnqv/qG26MvFpXYoD50Kk9t6kOWf c68Evr7rA7EaCg825vLYl2I9SOvZfVjq/NYx+HcpNz6togspiAthAcwq/p8UIPCXxisE B4lcEG9Y4bds7x9sGeS1itTMT02rM0dAscjmLcAJhtt0ZUmNCuMvFiChvkXI/wjCj8xH dR8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=xI9MuAabnhNktf2DR4Qcx+BmkgzAztpNAftySJ6hG28=; b=tmrOuEiqDR7QemlvweMA+ffkY8EyQLWNmmKBqWYgVSVZpZVkF4tznxlzWrSXxDcUOU O08dBjKy6vSVo4JeIv+pkMxdbEklmBtWG90mKIp/NbO7bzEgdwzbEq86in+gl1+WAD/h OVkge4gCGB4lD2wKv8w6yBbbCORJi1zif6AEZ2iyq8YzR06WmQIgw0CwiTqcyUnZ15vQ 4BDSgAlDZGAbC6o/g3KqsmBCc9sP9BUkEQfMg8/kEfqIZL1g8wWWZDOzunvoJ1UNH+Xj 3dRtrVylxDqz71ELPXYxM9tL4cMc1j0bfj599bRiBOw6NpC9b3bFkNUH1d2Nxnk10sXm xjdA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a1709027d8f00b001a6b6085041si217911plm.512.2023.05.19.16.00.36; Fri, 19 May 2023 16:00:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjESWvo (ORCPT + 99 others); Fri, 19 May 2023 18:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjESWvm (ORCPT ); Fri, 19 May 2023 18:51:42 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1BC1A103; Fri, 19 May 2023 15:51:41 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 502B692009E; Sat, 20 May 2023 00:51:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 4C90092009D; Fri, 19 May 2023 23:51:40 +0100 (BST) Date: Fri, 19 May 2023 23:51:40 +0100 (BST) From: "Maciej W. Rozycki" To: Jiaxun Yang cc: "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, Thomas Bogendoerfer Subject: Re: [PATCH 1/3] MIPS: Introduce WAR_4KC_LLSC config option In-Reply-To: <53043C18-7C75-4D5F-A15E-86D981D19CA8@flygoat.com> Message-ID: References: <20230519164753.72065-1-jiaxun.yang@flygoat.com> <20230519164753.72065-2-jiaxun.yang@flygoat.com> <53043C18-7C75-4D5F-A15E-86D981D19CA8@flygoat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 On Fri, 19 May 2023, Jiaxun Yang wrote: > > Given the circumstances I think this should be `panic'. You don't want > > to continue with a system that can randomly lock up. > > I just checked how other architectures handle such situation, it seems like > TAINT_CPU_OUT_OF_SPEC is a better option. That can be easily missed, just as a random message in the kernel log, even at a high priority, and LOGLEVEL_ERR is not particularly high even. For a system configuration that qualifies as not usable for any practical purpose I find this approach leaving something to desire. > 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. Is there no early console support for the systems affected? Maciej