Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4091557pxb; Mon, 1 Feb 2021 12:11:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuDyULiwDCa2gyiPcoVAeaIfOXHd/sXnn+nzfdvtldkYWXezyOIvzf+VBM2gWPpPuyQWd2 X-Received: by 2002:a50:fe18:: with SMTP id f24mr3771620edt.276.1612210280719; Mon, 01 Feb 2021 12:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612210280; cv=none; d=google.com; s=arc-20160816; b=OJVYZ5fP2WE8RN6a+NgWKYAJtXgGg5VKy0xw4EbF6A5O/czjk2SFmH1noFfElQzCNm NEQ7fZbq0TEp4CfRM85qVlxYVY8aXx3uALUruCICDzrO6KQD5UgKgSfS26jhZgZo4tpC Nre6yruDc72GQxa7l48tsYjR22jygAefnFBhRDjCNI8M3OsDeUwctOWPx49imOWWZYmO Z4TIO7MeJOISNarXP0Iq+SWzxOQ/8+Fr3ppjN0R0Dmui64eIEaV0fQ44XCEqvFmnVJCU IwXiiiZFE/j5jyr+iZZSLfUn9pEVFjTXei3Js1q1F5J56eEBhgT1eFe3gHLg3FynKK7z Z0Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O13Y80dsRADNdOgEp6MuJ+UNlOPBi29Lc1Rx4caynmQ=; b=wFNpxYUn41zvx07WlaZBIoUdm4vHXeJ7m8VmH5003oYFNJ1HNumm1G1DEHskgf271g IGayjnxtw+S/yAFyil8TIj50LEA+YRS6PrBeYmsi8595PXrS5yOQ2aBTHW7Sn9oz9Ls7 csL+mPyUmKNmBnTlol/nYzK0ztiEz4Vszp5uIImoYPKWTQrK7uxy4FFoUn490eoX3s0u JY0CwRezXE0iWqoTESetFn09gxpYN0i+uR/lZdeVga1iF6MzwJ1wWzfrw5fDbR/1JvpZ e8YfvHyF7NBpk6ZpjHBon2cpeozzUdFSxz2bYPUaQiQNdDNkpWnyvgE2CBfH1p7d/jGS i0WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mNfTRgrx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si11266248ede.511.2021.02.01.12.10.55; Mon, 01 Feb 2021 12:11:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mNfTRgrx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233014AbhBAUKX (ORCPT + 99 others); Mon, 1 Feb 2021 15:10:23 -0500 Received: from mail.skyhub.de ([5.9.137.197]:36740 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbhBAUKO (ORCPT ); Mon, 1 Feb 2021 15:10:14 -0500 Received: from zn.tnic (p200300ec2f06fe00e55f3102cc5eb27e.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:fe00:e55f:3102:cc5e:b27e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 71B651EC0323; Mon, 1 Feb 2021 21:09:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1612210171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=O13Y80dsRADNdOgEp6MuJ+UNlOPBi29Lc1Rx4caynmQ=; b=mNfTRgrxKcOyWKsLoi+gmOn3CN46Myo9QNdMbrfHEm3pBElbXx4MdzC3pir8oqD3GIGnoQ GbWgSXK6O6Z+Bo39vt096jJfZLOZKqFR5xUsomEpenFy0TTF6m7M7GzelW+ZXTN6q30eEe m9x017vfhC3rvB/yN+ClaxTf/47ngRE= Date: Mon, 1 Feb 2021 21:09:25 +0100 From: Borislav Petkov To: Thomas Gleixner Cc: Serge Belyshev , Dirk Gouders , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , LKML , Alexandre Belloni , Jason Gunthorpe , Miroslav Lichvar , John Stultz , Prarit Bhargava , Alessandro Zummo , linux-rtc@vger.kernel.org, Peter Zijlstra , Linus Torvalds Subject: Re: [PATCH V2] rtc: mc146818: Dont test for bit 0-5 in Register D Message-ID: <20210201200925.GA20521@zn.tnic> References: <20201206220541.594826678@linutronix.de> <19a7753c-c492-42e4-241a-8a052b32bb63@digikod.net> <871re7hlsg.fsf@nanos.tec.linutronix.de> <98cb59e8-ecb4-e29d-0b8f-73683ef2bee7@digikod.net> <87y2gfg18p.fsf@nanos.tec.linutronix.de> <87tur3fx7w.fsf@nanos.tec.linutronix.de> <877dnrc2sv.fsf@depni.sinp.msu.ru> <8735yfd2q4.fsf@nanos.tec.linutronix.de> <87zh0nbnha.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87zh0nbnha.fsf@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 08:24:17PM +0100, Thomas Gleixner wrote: > The recent change to validate the RTC turned out to be overly tight. > > While it cures the problem on the reporters machine it breaks machines > with Intel chipsets which use bit 0-5 of the D register. So check only > for bit 6 being 0 which is the case on these Intel machines as well. > > Fixes: 211e5db19d15 ("rtc: mc146818: Detect and handle broken RTCs") > Reported-by: Serge Belyshev > Reported-by: Dirk Gouders > Signed-off-by: Thomas Gleixner > --- > V2: Provide the actual delta patch. Should have stayed away from > computers today.... > --- > drivers/rtc/rtc-cmos.c | 4 ++-- > drivers/rtc/rtc-mc146818-lib.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) FWIW: Reported-by: Borislav Petkov Tested-by: Borislav Petkov Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette