All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mark Salter <msalter-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Matt Fleming
	<matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>,
	Alessandro Zummo
	<a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org>,
	rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Matt Fleming
	<matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] rtc: Disable EFI rtc for x86
Date: Sun, 9 Nov 2014 18:37:46 +0100	[thread overview]
Message-ID: <201411091837.47354@pali> (raw)
In-Reply-To: <1412348517.5410.13.camel-PDpCo7skNiwAicBL8TP8PQ@public.gmane.org>

[-- Attachment #1: Type: Text/Plain, Size: 2688 bytes --]

On Friday 03 October 2014 17:01:57 Mark Salter wrote:
> On Fri, 2014-10-03 at 13:32 +0100, Matt Fleming wrote:
> > From: Matt Fleming <matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > 
> > commit da167ad7638759 ("rtc: ia64: allow other architectures
> > to use EFI RTC") inadvertently introduced a regression for
> > x86. We've been careful not to enable the EFI rtc driver
> > for x86 due to the generally buggy implementations of the
> > time-related EFI runtime services.
> > 
> > Previous attempts have been made to us the time EFI
> > services, but all have eventually been reverted due to
> > crashes inside the firmware code.
> > 
> > In fact, since the above commit was merged we've seen
> > reports of crashes on 32-bit tablets,
> > 
> >   https://bugzilla.kernel.org/show_bug.cgi?id=84241#c21
> > 
> > Disable it explicitly for x86 so that we don't give users
> > false hope that this driver will work - it won't, and your
> > machine is likely to crash.
> > 
> > Cc: Mark Salter <msalter-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > Cc: Alessandro Zummo <a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org>
> > Signed-off-by: Matt Fleming <matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > ---
> 
> Acked-by: Mark Salter <msalter-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> 
> > Unless anyone objects, I'm happy to take this through the
> > EFI tree.
> > 
> >  drivers/rtc/Kconfig | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> > index a168e96142b9..54ef393b0def 100644
> > --- a/drivers/rtc/Kconfig
> > +++ b/drivers/rtc/Kconfig
> > @@ -806,7 +806,7 @@ config RTC_DRV_DA9063
> > 
> >  config RTC_DRV_EFI
> >  
> >  	tristate "EFI RTC"
> > 
> > -	depends on EFI
> > +	depends on EFI && !X86
> > 
> >  	help
> >  	
> >  	  If you say yes here you will get support for the EFI
> >  	  Real Time Clock.
> 
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to
> majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html Please read the
> FAQ at  http://www.tux.org/lkml/

Hello,

this patch totally disabled efi rfc driver on x86 machines at 
compile time. But on some x86 machines it working without crash 
and reading from file /sys/class/rtc/rtc*/since_epoch returns 
correct information. So why to disable compiling driver on 
machines where driver working?

-- 
Pali Rohár
pali.rohar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: "Pali Rohár" <pali.rohar@gmail.com>
To: Mark Salter <msalter@redhat.com>
Cc: Matt Fleming <matt@console-pimps.org>,
	Alessandro Zummo <a.zummo@towertech.it>,
	rtc-linux@googlegroups.com, linux-efi@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Matt Fleming <matt.fleming@intel.com>,
	Dave Young <dyoung@redhat.com>
Subject: Re: [PATCH] rtc: Disable EFI rtc for x86
Date: Sun, 9 Nov 2014 18:37:46 +0100	[thread overview]
Message-ID: <201411091837.47354@pali> (raw)
In-Reply-To: <1412348517.5410.13.camel@deneb.redhat.com>

[-- Attachment #1: Type: Text/Plain, Size: 2460 bytes --]

On Friday 03 October 2014 17:01:57 Mark Salter wrote:
> On Fri, 2014-10-03 at 13:32 +0100, Matt Fleming wrote:
> > From: Matt Fleming <matt.fleming@intel.com>
> > 
> > commit da167ad7638759 ("rtc: ia64: allow other architectures
> > to use EFI RTC") inadvertently introduced a regression for
> > x86. We've been careful not to enable the EFI rtc driver
> > for x86 due to the generally buggy implementations of the
> > time-related EFI runtime services.
> > 
> > Previous attempts have been made to us the time EFI
> > services, but all have eventually been reverted due to
> > crashes inside the firmware code.
> > 
> > In fact, since the above commit was merged we've seen
> > reports of crashes on 32-bit tablets,
> > 
> >   https://bugzilla.kernel.org/show_bug.cgi?id=84241#c21
> > 
> > Disable it explicitly for x86 so that we don't give users
> > false hope that this driver will work - it won't, and your
> > machine is likely to crash.
> > 
> > Cc: Mark Salter <msalter@redhat.com>
> > Cc: Dave Young <dyoung@redhat.com>
> > Cc: Alessandro Zummo <a.zummo@towertech.it>
> > Signed-off-by: Matt Fleming <matt.fleming@intel.com>
> > ---
> 
> Acked-by: Mark Salter <msalter@redhat.com>
> 
> > Unless anyone objects, I'm happy to take this through the
> > EFI tree.
> > 
> >  drivers/rtc/Kconfig | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> > index a168e96142b9..54ef393b0def 100644
> > --- a/drivers/rtc/Kconfig
> > +++ b/drivers/rtc/Kconfig
> > @@ -806,7 +806,7 @@ config RTC_DRV_DA9063
> > 
> >  config RTC_DRV_EFI
> >  
> >  	tristate "EFI RTC"
> > 
> > -	depends on EFI
> > +	depends on EFI && !X86
> > 
> >  	help
> >  	
> >  	  If you say yes here you will get support for the EFI
> >  	  Real Time Clock.
> 
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to
> majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html Please read the
> FAQ at  http://www.tux.org/lkml/

Hello,

this patch totally disabled efi rfc driver on x86 machines at 
compile time. But on some x86 machines it working without crash 
and reading from file /sys/class/rtc/rtc*/since_epoch returns 
correct information. So why to disable compiling driver on 
machines where driver working?

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2014-11-09 17:37 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 12:32 [PATCH] rtc: Disable EFI rtc for x86 Matt Fleming
2014-10-03 12:32 ` Matt Fleming
     [not found] ` <1412339576-17972-1-git-send-email-matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-10-03 15:01   ` Mark Salter
2014-10-03 15:01     ` Mark Salter
     [not found]     ` <1412348517.5410.13.camel-PDpCo7skNiwAicBL8TP8PQ@public.gmane.org>
2014-11-09 17:37       ` Pali Rohár [this message]
2014-11-09 17:37         ` Pali Rohár
2014-11-09 18:22         ` Borislav Petkov
2014-11-09 18:22           ` Borislav Petkov
     [not found]           ` <20141109182231.GA29337-fF5Pk5pvG8Y@public.gmane.org>
2014-11-10 11:22             ` Matt Fleming
2014-11-10 11:22               ` Matt Fleming
     [not found]               ` <1415618533.14686.239.camel-ZqTwcBeJ+wsBof6jY8KHXm7IUlhRatedral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-11-10 16:23                 ` Pali Rohár
2014-11-10 16:23                   ` Pali Rohár
2014-11-10 16:45                   ` Austin S Hemmelgarn
     [not found]                     ` <5460EB92.1090501-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-10 17:04                       ` Matthew Garrett
2014-11-10 17:04                         ` Matthew Garrett
2014-11-10 20:37                         ` Austin S Hemmelgarn
     [not found]                           ` <5461220E.20605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-10 20:58                             ` H. Peter Anvin
2014-11-10 20:58                               ` H. Peter Anvin
     [not found]                               ` <546126FF.3070600-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2014-11-10 21:26                                 ` Matthew Garrett
2014-11-10 21:26                                   ` Matthew Garrett
2014-11-11 11:38                                 ` One Thousand Gnomes
2014-11-11 11:38                                   ` One Thousand Gnomes
2014-11-11 11:46                                   ` Borislav Petkov
2014-11-11 11:53                                   ` Pali Rohár
2014-11-11 12:14                                   ` Austin S Hemmelgarn
2014-11-14 11:21                       ` Pali Rohár
2014-11-14 11:21                         ` Pali Rohár

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=201411091837.47354@pali \
    --to=pali.rohar-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=a.zummo-BfzFCNDTiLLj+vYz1yj4TQ@public.gmane.org \
    --cc=dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org \
    --cc=matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=msalter-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /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 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.