From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932597AbcHJSw1 (ORCPT ); Wed, 10 Aug 2016 14:52:27 -0400 Received: from mga14.intel.com ([192.55.52.115]:42325 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932790AbcHJSwW (ORCPT ); Wed, 10 Aug 2016 14:52:22 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,498,1464678000"; d="scan'208";a="1022899883" Subject: Re: [PATCH] x86/hpet: fix typo from rtc cleanup To: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org References: <20160809195528.1604312-1-arnd@arndb.de> Cc: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Geert Uytterhoeven , Alexandre Belloni , Alessandro Zummo , rtc-linux@googlegroups.com, Borislav Petkov , linux-kernel@vger.kernel.org From: Jarkko Nikula Message-ID: Date: Wed, 10 Aug 2016 11:22:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160809195528.1604312-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 08/09/2016 10:54 PM, Arnd Bergmann wrote: > Ville Syrjälä reports "The first time I run hwclock after rebooting > I get this: > > open("/dev/rtc", O_RDONLY) = 3 > ioctl(3, PHN_SET_REGS or RTC_UIE_ON, 0) = 0 > select(4, [3], NULL, NULL, {10, 0}) = 0 (Timeout) > ioctl(3, PHN_NOT_OH or RTC_UIE_OFF, 0) = 0 > close(3) = 0 > > On all subsequent runs I get this: > open("/dev/rtc", O_RDONLY) = 3 > ioctl(3, PHN_SET_REGS or RTC_UIE_ON, 0) = -1 EINVAL (Invalid argument) > ioctl(3, RTC_RD_TIME, 0x7ffd76b3ae70) = -1 EINVAL (Invalid argument) > close(3) = 0" > > This was caused by a stupid typo in a patch that should have been > a simple rename to move around contents of a header file, but > accidentally wrote zeroes into the rtc rather than reading from > it. > > Signed-off-by: Arnd Bergmann > Reported-by: Ville Syrjälä > Tested-by: Ville Syrjälä > Fixes: 463a86304cae ("char/genrtc: x86: remove remnants of asm/rtc.h") > --- > arch/x86/kernel/hpet.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > I started seeing system reboots and lockups during kernel boot on a prototype HW this week using v4.8-rc1 and bisected to this same commit. This patch fixes the issue. Tested-by: Jarkko Nikula