All of lore.kernel.org
 help / color / mirror / Atom feed
* rtc_cmos 00:01: nvmem registration failed
@ 2018-05-25  9:23 Timur Kristóf
  2018-05-25  9:39 ` Alexandre Belloni
  0 siblings, 1 reply; 3+ messages in thread
From: Timur Kristóf @ 2018-05-25  9:23 UTC (permalink / raw)
  To: linux-rtc; +Cc: alexandre.belloni

Hi,

I've used kernel 4.17 rc5 and now using rc6 on Fedora 28 on a Dell XPS
13 9370 machine. Since upgrading to this kernel, I get the following
messages in the journal:

máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: RTC can wake from S4
máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: registered as rtc0
máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: nvmem registration failed
máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: alarms up to one month, y3k, 242 bytes nvram, hpet irqs

The "nvmem registration failed" is highlighted red in the journal, and also shows up on every boot.

This where the error message comes from:
https://github.com/torvalds/linux/blob/master/drivers/rtc/rtc-cmos.c#L818
And this is the commit that introduced it:
https://github.com/torvalds/linux/commit/8b5b7958fd1cac54bdca62ec5552c6be0b38def4#diff-4dcdf420d40078042c28f0f3d8d6535c

The error message doesn't give any indication about why it failed.
How can I help diagnose the what the problem is?

Created a bugzilla entry, to give better visibility:
https://bugzilla.kernel.org/show_bug.cgi?id=199801
Someone already reported it against Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=1568276
In the bug report the user says he uses a Msi z370 pc pro motherboard,
so I assume the problem is not specific to my machine.

Thanks & best regards,
Tim

ps. I'm not registered to the mailing list, please CC me on replies.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rtc_cmos 00:01: nvmem registration failed
  2018-05-25  9:23 rtc_cmos 00:01: nvmem registration failed Timur Kristóf
@ 2018-05-25  9:39 ` Alexandre Belloni
  2018-05-26 21:04   ` Timur Kristóf
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Belloni @ 2018-05-25  9:39 UTC (permalink / raw)
  To: Timur Kristóf; +Cc: linux-rtc

Hi,

On 25/05/2018 11:23:43+0200, Timur Kristóf wrote:
> Hi,
> 
> I've used kernel 4.17 rc5 and now using rc6 on Fedora 28 on a Dell XPS
> 13 9370 machine. Since upgrading to this kernel, I get the following
> messages in the journal:
> 
> máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: RTC can wake from S4
> máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: registered as rtc0
> máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: nvmem registration failed
> máj 25 08:54:06 timur-xps kernel: rtc_cmos 00:01: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
> 
> The "nvmem registration failed" is highlighted red in the journal, and also shows up on every boot.
> 

This is probably fixed by
https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-next&id=c59b3715ac16544f8f68ab7af03f108e339b36aa

> This where the error message comes from:
> https://github.com/torvalds/linux/blob/master/drivers/rtc/rtc-cmos.c#L818
> And this is the commit that introduced it:
> https://github.com/torvalds/linux/commit/8b5b7958fd1cac54bdca62ec5552c6be0b38def4#diff-4dcdf420d40078042c28f0f3d8d6535c
> 
> The error message doesn't give any indication about why it failed.
> How can I help diagnose the what the problem is?
> 

My guess is that CONFIG_RTC_NVMEM is not enabled on your kernel.

-- 
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rtc_cmos 00:01: nvmem registration failed
  2018-05-25  9:39 ` Alexandre Belloni
@ 2018-05-26 21:04   ` Timur Kristóf
  0 siblings, 0 replies; 3+ messages in thread
From: Timur Kristóf @ 2018-05-26 21:04 UTC (permalink / raw)
  To: Alexandre Belloni; +Cc: linux-rtc

Hi,

On Fri, 2018-05-25 at 11:39 +0200, Alexandre Belloni wrote:
> > 
> > The "nvmem registration failed" is highlighted red in the journal,
> > and also shows up on every boot.
> > 
> 
> This is probably fixed by
> https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/co
> mmit/?h=rtc-next&id=c59b3715ac16544f8f68ab7af03f108e339b36aa
> 

Thank you Alexandre!
I can confirm that this patch fixes the issue on my machine.

> > The error message doesn't give any indication about why it failed.
> > How can I help diagnose the what the problem is?
> > 
> 
> My guess is that CONFIG_RTC_NVMEM is not enabled on your kernel.

Yes, that is correct, it isn't enabled.

Best regards,
Tim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-26 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-25  9:23 rtc_cmos 00:01: nvmem registration failed Timur Kristóf
2018-05-25  9:39 ` Alexandre Belloni
2018-05-26 21:04   ` Timur Kristóf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.