← Back to team overview

kernel-packages team mailing list archive

[Bug 1441291] Re: support EFI rtc on arm64

 

Verified using tianocore/qemu (search for rtc below):

  Booting a command list

EFI stub: Booting Linux Kernel...
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.13.0-53-generic (buildd@auburn) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-19ubuntu1) ) #87-Ubuntu SMP Thu May 7 14:43:55 UTC 2015 (Ubuntu 3.13.0-53.87-generic 3.13.11-ckt19)
[    0.000000] CPU: AArch64 Processor [500f0000] revision 0
[    0.000000] No earlyprintk arguments passed.
[    0.000000] efi: Getting parameters from FDT:
[    0.000000] EFI v2.40 by EDK II
[    0.000000] efi: 
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 11 pages/cpu @ffffffc03f9bb000 s16192 r8192 d20672 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 258560
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-53-generic root=UUID=1aaf7ff5-f468-46de-bca4-960eaf01a7b4 ro earlyprintk console=ttyAMA0
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] software IO TLB [mem 0x73098000-0x77098000] (64MB) mapped at [ffffffc033098000-ffffffc037097fff]
[    0.000000] Memory: 901200K/1048576K available (5750K kernel code, 587K rwdata, 2548K rodata, 315K init, 542K bss, 147376K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000   (245759 MB)
[    0.000000]     vmemmap : 0xffffffbc00e00000 - 0xffffffbc01c00000   (    14 MB)
[    0.000000]     modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc040000000   (  1024 MB)
[    0.000000]       .init : 0xffffffc00089c000 - 0xffffffc0008eaf40   (   316 kB)
[    0.000000]       .text : 0xffffffc000080000 - 0xffffffc00089b9b4   (  8303 kB)
[    0.000000]       .data : 0xffffffc0008eb000 - 0xffffffc00097df68   (   588 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] Architected cp15 timer(s) running at 50.00MHz (virt).
[    0.000000] sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 2748779069440ns
[    0.000000] Console: colour dummy device 80x25
[    0.000000] allocated 4194304 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.001040] Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
[    0.001045] pid_max: default: 32768 minimum: 301
[    0.001091] Security Framework initialized
[    0.001122] AppArmor: AppArmor initialized
[    0.001125] Yama: becoming mindful.
[    0.001153] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001156] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001687] Initializing cgroup subsys memory
[    0.001697] Initializing cgroup subsys devices
[    0.001700] Initializing cgroup subsys freezer
[    0.001703] Initializing cgroup subsys blkio
[    0.001705] Initializing cgroup subsys perf_event
[    0.001710] Initializing cgroup subsys hugetlb
[    0.001827] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 1 counters available
[    0.001838] Remapping and enabling EFI services.
[    0.026754] Freed 0x202c000 bytes of EFI boot services memory
[    0.027456] Brought up 1 CPUs
[    0.027460] SMP: Total of 1 processors activated.
[    0.027684] devtmpfs: initialized
[    0.029312] EVM: security.selinux
[    0.029315] EVM: security.SMACK64
[    0.029317] EVM: security.ima
[    0.029318] EVM: security.capability
[    0.029600] atomic64 test passed
[    0.029686] regulator-dummy: no parameters
[    0.029778] NET: Registered protocol family 16
[    0.031266] vdso: 2 pages (1 code, 1 data) at base ffffffc0008f1000
[    0.031297] hw-breakpoint: found 4 breakpoint and 4 watchpoint registers.
[    0.031373] Serial: AMBA PL011 UART driver
[    0.031426] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 33, base_baud = 0) is a PL011 rev1
[    0.231224] console [ttyAMA0] enabled
[    0.234092] bio: create slab <bio-0> at 0
[    0.237192] vgaarb: loaded
[    0.239349] SCSI subsystem initialized
[    0.242252] NetLabel: Initializing
[    0.244336] NetLabel:  domain hash size = 128
[    0.247118] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.250335] NetLabel:  unlabeled traffic allowed by default
[    0.254016] Switched to clocksource arch_sys_counter
[    0.260738] AppArmor: AppArmor Filesystem Enabled
[    0.265693] NET: Registered protocol family 2
[    0.268862] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.273577] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.277755] TCP: Hash tables configured (established 8192 bind 8192)
[    0.281958] TCP: reno registered
[    0.284140] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.288002] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.292296] NET: Registered protocol family 1
[    0.295247] Trying to unpack rootfs image as initramfs...
[    0.770956] Freeing initrd memory: 21532K (ffffffc025afe000 - ffffffc027005000)
[    0.776128] kvm [1]: HYP mode not available
[    0.779097] Initialise system trusted keyring
[    0.782052] audit: initializing netlink socket (disabled)
[    0.785628] type=2000 audit(0.720:1): initialized
[    0.789014] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.794296] zbud: loaded
[    0.796208] VFS: Disk quotas dquot_6.5.2
[    0.798931] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.803934] fuse init (API version 7.22)
[    0.806628] msgmni has been set to 1866
[    0.809333] Key type big_key registered
[    0.812302] Key type asymmetric registered
[    0.815001] Asymmetric key parser 'x509' registered
[    0.818309] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.823254] io scheduler noop registered
[    0.825808] io scheduler deadline registered (default)
[    0.829322] io scheduler cfq registered
[    0.832164] ipmi message handler version 39.2
[    0.837087] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.842215] of_dma_request_slave_channel: dma-names property of node '/pl011@9000000' missing or empty
[    0.848155] uart-pl011 9000000.pl011: no DMA platform data
[    0.853555] brd: module loaded
[    0.856505] loop: module loaded
[    0.858861] blk-mq: CPU -> queue map
[    0.861279]   CPU 0 -> Queue 0
[    0.864998] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    0.869756] GPT:3084211 != 4612095
[    0.871999] GPT:Alternate GPT header not at the end of the disk.
[    0.875883] GPT:3084211 != 4612095
[    0.878104] GPT: Use GNU Parted to correct GPT errors.
[    0.881501]  vda: vda1 vda15
[    0.884209] libphy: Fixed MDIO Bus: probed
[    0.887128] tun: Universal TUN/TAP device driver, 1.6
[    0.890490] tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
[    0.895796] PPP generic driver version 2.4.2
[    0.898414] mousedev: PS/2 mouse device common for all mice
[    0.902279] rtc-efi rtc-efi: rtc core: registered rtc-efi as rtc0
[    0.906450] device-mapper: uevent: version 1.0.3
[    0.909686] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@xxxxxxxxxx
[    0.914965] ledtrig-cpu: registered to indicate activity on CPUs
[    0.918580] EFI Variables Facility v0.08 2004-May-17
[    0.921676] TCP: cubic registered
[    0.924070] NET: Registered protocol family 10
[    0.927239] NET: Registered protocol family 17
[    0.930076] Key type dns_resolver registered
[    0.932616] Loading compiled-in X.509 certificates
[    0.936965] Loaded X.509 cert 'Magrathea: Glacier signing key: 9b3a910ad485348d9ba98128707aa1f5d8cc98a9'
[    0.943221] registered taskstats version 1
[    0.948619] Key type trusted registered
[    0.955870] Key type encrypted registered
[    0.958556] AppArmor: AppArmor sha1 policy hashing enabled
[    0.962193] IMA: No TPM chip found, activating TPM-bypass!
[    0.965899] regulator-dummy: disabling
[    0.968455] rtc-efi rtc-efi: setting system clock to 2015-05-11 16:34:04 UTC (1431362044)
[    0.974410] Freeing unused kernel memory: 312K (ffffffc00089c000 - ffffffc0008ea000)
Loading, please wait...
[    1.004313] systemd-udevd[85]: starting version 204
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[    2.259552] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
[    2.468258] random: init urandom read with 14 bits of entropy available
 * Starting Mount filesystems on boot                                    [ OK ]
 * Starting Populate and link to /run filesystem                         [ OK ]
 * Stopping Populate and link to /run filesystem                         [ OK ]
[    2.751582] EXT4-fs (vda1): re-mounted. Opts: (null)
 * Stopping Track if upstart is running in a container                   [ OK ]
 * Starting Initialize or finalize resolvconf                            [ OK ]
 * Starting Signal sysvinit that the rootfs is mounted                   [ OK ]
 * Starting Clean /tmp directory                                         [ OK ]
 * Stopping Clean /tmp directory                                         [ OK ]
Cloud-init v. 0.7.5 running 'init-local' at Mon, 11 May 2015 16:34:08 +0000. Up 4.67 seconds.
cloud-init-nonet[5.39]: waiting 10 seconds for network device
 * Starting set console keymap                                           [ OK ]
 * Starting Signal sysvinit that virtual filesystems are mounted         [ OK ]
 * Starting Signal sysvinit that virtual filesystems are mounted         [ OK ]
 * Starting Bridge udev events into upstart                              [ OK ]
 * Stopping set console keymap                                           [ OK ]
 * Starting Signal sysvinit that remote filesystems are mounted          [ OK ]
 * Starting device node and kernel event manager                         [ OK ]
 * Starting load modules from /etc/modules                               [ OK ]
 * Starting cold plug devices                                            [ OK ]
 * Starting log initial device creation                                  [ OK ]
 * Stopping load modules from /etc/modules                               [ OK ]
 * Starting Uncomplicated firewall                                       [ OK ]
 * Stopping cold plug devices                                            [ OK ]
 * Stopping log initial device creation                                  [ OK ]
 * Starting enable remaining boot-time encrypted block devices           [ OK ]
 * Starting configure network device security                            [ OK ]
 * Starting configure network device security                            [ OK ]
 * Starting Mount network filesystems                                    [ OK ]
 * Stopping Mount network filesystems                                    [ OK ]
 * Starting Bridge socket events into upstart                            [ OK ]
 * Starting configure network device                                     [ OK ]

** Tags removed: verification-needed-trusty
** Tags added: verification-done-trusty

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1441291

Title:
  support EFI rtc on arm64

Status in linux package in Ubuntu:
  Fix Released
Status in linux-lts-utopic package in Ubuntu:
  Invalid
Status in linux source package in Trusty:
  Fix Committed
Status in linux-lts-utopic source package in Trusty:
  Fix Released
Status in linux source package in Utopic:
  Fix Released
Status in linux-lts-utopic source package in Utopic:
  Invalid

Bug description:
  [Impact]
  ARM64 EFI platforms have no real time clock support. This can leave a system with a very out-of-date system clock. It can be somewhat mitigated by using NTP, but that still leaves issues in early boot (inaccurate last mount times, etc).

  [Test Case]
  if dmesg | grep -q 'rtc-efi: setting system clock'; then
    PASS
  else
    FAIL
  fi

  [Regression Risk]
  This enables a new driver only on ARM64, so the risk should be low to other platforms. The upstream patches do refactor the rtc-efi driver but, that driver was previously only compilable on ia64, which isn't supported by Ubuntu.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1441291/+subscriptions


References