Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1936652iob; Fri, 29 Apr 2022 16:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjv+6NUa4apGI+nWp9rW3sZb3Ct7AVCAoYYFpk+p0bOWyUCO/us1pBvs2GT17zjLTMTAQU X-Received: by 2002:a2e:2f18:0:b0:24f:3a5f:1205 with SMTP id v24-20020a2e2f18000000b0024f3a5f1205mr1042695ljv.485.1651276649993; Fri, 29 Apr 2022 16:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651276649; cv=none; d=google.com; s=arc-20160816; b=BXAm2CDMjupoMsy2FykphQ4GXQRqsT6q51lVle87h4o9fiUZKydDhxW+umC6d37dtW Y37Ox17hbLxxGo7FNrVmxAU1MH9O1EHH+ySES86tIgYTwTfJw0+oZubyLiFWCml+I5tO fRu/5YPZM3/4K7ixYBUVS/uRDFuDSgEZit4lQUm4vmKQfQ+Wa0t46BtsIdgds33n0xgn JtjM4DgbCPmhHEDUri0tz9+HQ+OnRwoyAJ87vou5FGxFJubraUf+IIyVYipp0OBIhl4o /aMqfqSfUDvYDGEsx1u105HnHBXCfr9ErpA704IFhSkbhu15fiyHrez397AzyklFrzKz 84Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=j5C7NQpkSqu+KrrCGLb5qhNG/Z4wShMFPqC1AF3nR/M=; b=Q6U6Z9i4bcpEr3oykfLmGJ3PQf/fM3g6iH33t48kA/ktvkaHcrjziam3uK6T8lu1zK a2lfJpK7toga7ojDa5IrcNSJuh7kOJ5c5K+1enjX9BbWmklEJNeB0zQUS/Te+cgKMSsz zR5ZjjKVU5GsKOsJSRhVP0LZtBrgWJOqK3qZW39aK54uq2fHnAcvqIemI0vt2flE2xn4 /LejIA44v+ogLYhYrruNI+bJ+IcEkHfprNvZAkr3EbzPV7UlgzqcjKd/oJq1ywCSoHws x2jH9nN5aPUlIcu1wWKlVrbdKrvORSsjFMDBxj8FAlVBLU/cocWdANXjzluzFqWTWl7q YPLA== 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 y15-20020a0565123f0f00b0047236fea14fsi7342032lfa.381.2022.04.29.16.57.03; Fri, 29 Apr 2022 16:57:29 -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 S1351510AbiD2KFG (ORCPT + 99 others); Fri, 29 Apr 2022 06:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234948AbiD2KFD (ORCPT ); Fri, 29 Apr 2022 06:05:03 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C645578FD4; Fri, 29 Apr 2022 03:01:43 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nkNRW-0002HQ-01; Fri, 29 Apr 2022 12:01:42 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 438A7C01CB; Fri, 29 Apr 2022 12:01:28 +0200 (CEST) Date: Fri, 29 Apr 2022 12:01:28 +0200 From: Thomas Bogendoerfer To: "Maciej W. Rozycki" Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: Fix CP0 counter erratum detection for R4k CPUs Message-ID: <20220429100128.GB11365@alpha.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE 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 Sun, Apr 24, 2022 at 12:46:23PM +0100, Maciej W. Rozycki wrote: > Fix the discrepancy between the two places we check for the CP0 counter > erratum in along with the incorrect comparison of the R4400 revision > number against 0x30 which matches none and consistently consider all > R4000 and R4400 processors affected, as documented in processor errata > publications[1][2][3], following the mapping between CP0 PRId register > values and processor models: > > PRId | Processor Model > ---------+-------------------- > 00000422 | R4000 Revision 2.2 > 00000430 | R4000 Revision 3.0 > 00000440 | R4400 Revision 1.0 > 00000450 | R4400 Revision 2.0 > 00000460 | R4400 Revision 3.0 interesting, where is this documented ? And it's quite funny that so far everybody messed up revision printing for R4400 CPUs. > Please review the requirements for SNI platforms. In the case of an > erratic CP0 timer we give precedence to the use as a clock event rather > than clock source device; see `time_init' in arch/mips/kernel/time.c. > Therefore if SNI systems have no alternative timer interrupt source, then > the CP0 timer is supposed to still do regardless of the erratum. > > Conversely a system can do without a high-precision clock source, in > which case jiffies will be used. Of course such a system will suffer if > used for precision timekeeping, but such is the price for broken hardware. > Don't SNI systems have any alternative timer available, not even the > venerable 8254? all SNI systems have a i8254 in their EISA/PCI chipsets. But they aren't that nice for clock events as their interupts are connected via an i8259 addresses via ISA PIO. > With the considerations above in mind, please apply. will do later. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]