From: Vaibhav <vaibhav@linux.vnet.ibm.com>
To: benh@kernel.crashing.org, Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org,
Neelesh Gupta <neelegup@linux.vnet.ibm.com>,
Cyril Bur <cyrilbur@gmail.com>
Subject: Re: [v3] powerpc/configs: enable RTC class support
Date: Wed, 24 Jun 2015 13:15:44 +0530 [thread overview]
Message-ID: <1435131944.3310.25.camel@localhost.localdomain> (raw)
In-Reply-To: <20150617054315.9BABF140290@ozlabs.org>
Hi Behn,
Need your help in understanding the historical context for having two
rtc interfaces in the kernel (CONFIG_GEN_RTC & CONFIG_RTC_CLASS) and
which one should be enabled for pseries_defconfig. I have posted a patch
(http://patchwork.ozlabs.org/patch/478899/) to enable CONFIG_RTC_CLASS
in the defconfig so that opal rtc driver (/drivers/rtc/opal-rtc.c) is
enabled.
Afaik CONFIG_RTC_CLASS is more generic and can emulate the older
interface provided by gen_rtc. So imho it would make sense to enable
rtc-class with pseries_defconfig as we already have an opal-rtc-driver.
My limited testing with gen_rtc on a tulleta reveals issues with hwclock
as it reports invalid rtc-time error which I suspect is due to a genrtc
driver trying to read date time values from an rtc port that is not
available on the tulleta.
With RTC_CLASS enabled however hwclock seems to work fine.
Requesting your inputs,
Thanks,
~Vaibhav
On Wed, 2015-06-17 at 15:43 +1000, Michael Ellerman wrote:
> On Mon, 2015-01-06 at 10:48:55 UTC, Vaibhav Jain wrote:
> > A working rtc kernel driver is needed so that hwclock can synchronize
> > system clock to rtc during shutdown/boot. We already have a rtc platform
> > driver for power arch located at drivers/rtc/rtc-opal.c However it
> > depends on CONFIG_RTC_CLASS which is disabled by default. So this driver
> > is not compiled with pseries defconfig as rtc class support is missing
> > from the kernel.
> >
> > We fix this by enabling rtc class support in pseries defconfig so that
> > this driver gets enabled and is compiled into the pseries kernel.
>
> So that seems fair enough.
>
> But, it disables CONFIG_GEN_RTC. Which *I think* means we won't get an RTC
> driver at all on pseries machines.
> There's some history between those two options but I don't know it off the top
> of my head. Ben should know?
>
> cheers
>
prev parent reply other threads:[~2015-06-24 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-01 10:48 [PATCH v3] powerpc/configs: enable RTC class support Vaibhav Jain
2015-06-17 5:43 ` [v3] " Michael Ellerman
2015-06-24 7:45 ` Vaibhav [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435131944.3310.25.camel@localhost.localdomain \
--to=vaibhav@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=cyrilbur@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=neelegup@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).