3.12.0-rt2
Subsystems (8)
Dear RT folks!
I'm pleased to announce the v3.12.0-rt2 patch set.
Changes since v3.12.0-rt1
- fix for iwlwifi which tried to take a sleeping in irq context. Patch has been available & disabled in the queue and is now enabled after Clark recently reported that it works.
- tried to fix AT91's "already-free IRQ" and highres problem. Michael Langfinge reported it initially and Sami Pietikäinen sent a patch for the "already-free IRQ" problem. Based on another patch I looked at the highres patch and tried to fix it. As I don't have the hardware, some feedback would be nice.
- a fix for cpu down on !RT. Patch by Tiejun Chen.
- Mike Galbraith and Matt Cowell reported a dead lock with CONFIG_NO_HZ_FULL. To fix this trylock deadlock, the sleeping lock is now taken with irqs off. I would be interrested if this change causes any noticable latencys for anyone.
Known issues:
- bcache is disabled.
- an ancient race (since we got sleeping spinlocks) where the TASK_TRACED state is temporary replaced while waiting on a rw lock and the task can't be traced.
The delta patch against v3.12.0-rt1 is appended below and can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/incr/patch-3.12.0-rt1-rt2.patch.xz
The RT patch against 3.12 can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/patch-3.12.0-rt2.patch.xz
The split quilt queue is available at:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/patches-3.12.0-rt2.tar.xz
Sebastian
arch/arm/mach-at91/at91rm9200_time.c +1 -1
@@ -134,7 +134,7 @@ clkevt32k_mode(enum clock_event_mode mode, struct clock_event_device *dev)break ;case CLOCK_EVT_MODE_SHUTDOWN :case CLOCK_EVT_MODE_UNUSED : -remove_irq (AT91_ID_SYS , &at91rm9200_timer_irq); +remove_irq (NR_IRQS_LEGACY +AT91_ID_SYS , &at91rm9200_timer_irq);case CLOCK_EVT_MODE_RESUME : irqmask =0 ;break ;
arch/arm/mach-at91/at91sam926x_time.c +2 -2
@@ -87,7 +87,7 @@ pit_clkevt_mode(enum clock_event_mode mode, struct clock_event_device *dev)switch (mode) {case CLOCK_EVT_MODE_PERIODIC :/* Set up irq handler */ -setup_irq (AT91_ID_SYS , &at91sam926x_pit_irq); +setup_irq (at91sam926x_pit_irq.irq, &at91sam926x_pit_irq);/* update clocksource counter */ pit_cnt += pit_cycle *PIT_PICNT (pit_read (AT91_PIT_PIVR )); pit_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN
@@ -100,7 +100,7 @@ pit_clkevt_mode(enum clock_event_mode mode, struct clock_event_device *dev)case CLOCK_EVT_MODE_UNUSED :/* disable irq, leaving the clocksource active */ pit_write (AT91_PIT_MR , (pit_cycle -1 ) |AT91_PIT_PITEN ); -remove_irq (AT91_ID_SYS , &at91sam926x_pit_irq); +remove_irq (at91sam926x_pit_irq.irq, &at91sam926x_pit_irq);break ;case CLOCK_EVT_MODE_RESUME :break ;
drivers/clocksource/tcb_clksrc.c +8 -3
@@ -182,9 +182,10 @@ static struct irqaction tc_irqaction = { .handler = ch2_irq, }; -static void __init setup_clkevents (struct atmel_tc *tc,int divisor_idx) +static void __init setup_clkevents (struct atmel_tc *tc,int clk32k_divisor_idx) { -unsigned divisor = atmel_tc_divisors[divisor_idx]; +unsigned divisor = atmel_tc_divisors[clk32k_divisor_idx]; +u32 freq;struct clk *t2_clk = tc->clk[2 ];int irq = tc->irq[2 ];
@@ -193,10 +194,14 @@ static void __init setup_clkevents(struct atmel_tc *tc, int divisor_idx) tc_irqaction.dev_id = &clkevt; timer_clock = clk32k_divisor_idx; +if (!divisor) + freq =32768 ; +else + freq =clk_get_rate (t2_clk) / divisor; clkevt.clkevt.cpumask =cpumask_of (0 ); -clockevents_config_and_register (&clkevt.clkevt,32768 ,1 ,0xffff ); +clockevents_config_and_register (&clkevt.clkevt, freq,1 ,0xffff );setup_irq (irq, &tc_irqaction); }
drivers/net/wireless/iwlwifi/pcie/trans.c +19 -0
@@ -1375,6 +1375,20 @@ static const struct iwl_trans_ops trans_ops_pcie = { .set_bits_mask = iwl_trans_pcie_set_bits_mask, }; +#ifdef CONFIG_PREEMPT_RT_BASE +static irqreturn_t iwl_rt_irq_handler (int irq,void *dev_id) +{ +irqreturn_t ret; + +local_bh_disable (); + ret =iwl_pcie_isr_ict (irq, dev_id); +local_bh_enable (); +if (ret ==IRQ_WAKE_THREAD ) + ret =iwl_pcie_irq_handler (irq, dev_id); +return ret; +} +#endif +struct iwl_trans *iwl_trans_pcie_alloc (struct pci_dev *pdev,const struct pci_device_id *ent,const struct iwl_cfg *cfg)
@@ -1493,9 +1507,14 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,if (iwl_pcie_alloc_ict (trans)) goto out_free_cmd_pool; +#ifdef CONFIG_PREEMPT_RT_BASE + err =request_threaded_irq (pdev->irq,NULL , iwl_rt_irq_handler, +IRQF_SHARED |IRQF_ONESHOT ,DRV_NAME , trans); +#else err =request_threaded_irq (pdev->irq, iwl_pcie_isr_ict, iwl_pcie_irq_handler,IRQF_SHARED ,DRV_NAME , trans); +#endif if (err) {IWL_ERR (trans,"Error allocating IRQ %d\n" , pdev->irq); goto out_free_ict;
kernel/cpu.c +1 -1
@@ -593,6 +593,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) err = -EBUSY ; goto restore_cpus; } +migrate_enable ();cpu_hotplug_begin (); err =cpu_unplug_begin (cpu);
@@ -646,7 +647,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) out_release:cpu_unplug_done (cpu); out_cancel: -migrate_enable ();cpu_hotplug_done ();if (!err)cpu_notify_nofail (CPU_POST_DEAD | mod, hcpu);
kernel/futex.c +8 -8
@@ -891,7 +891,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)if (pi_state->owner != current)return -EINVAL ; -raw_spin_lock (&pi_state->pi_mutex.wait_lock); +raw_spin_lock_irq (&pi_state->pi_mutex.wait_lock); new_owner =rt_mutex_next_owner (&pi_state->pi_mutex);/*
@@ -917,21 +917,21 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)else if (curval != uval) ret = -EINVAL ;if (ret) { -raw_spin_unlock (&pi_state->pi_mutex.wait_lock); +raw_spin_unlock_irq (&pi_state->pi_mutex.wait_lock);return ret; } } -raw_spin_lock_irq (&pi_state->owner->pi_lock); +raw_spin_lock (&pi_state->owner->pi_lock);WARN_ON (list_empty (&pi_state->list));list_del_init (&pi_state->list); -raw_spin_unlock_irq (&pi_state->owner->pi_lock); +raw_spin_unlock (&pi_state->owner->pi_lock); -raw_spin_lock_irq (&new_owner->pi_lock); +raw_spin_lock (&new_owner->pi_lock);WARN_ON (!list_empty (&pi_state->list));list_add (&pi_state->list, &new_owner->pi_state_list); pi_state->owner = new_owner; -raw_spin_unlock_irq (&new_owner->pi_lock); +raw_spin_unlock (&new_owner->pi_lock);raw_spin_unlock (&pi_state->pi_mutex.wait_lock);rt_mutex_unlock (&pi_state->pi_mutex);
@@ -1762,11 +1762,11 @@ static int fixup_owner(u32 __user *uaddr, struct futex_q *q, int locked)* we returned due to timeout or signal without taking the * rt_mutex. Too late. */ -raw_spin_lock (&q->pi_state->pi_mutex.wait_lock); +raw_spin_lock_irq (&q->pi_state->pi_mutex.wait_lock); owner =rt_mutex_owner (&q->pi_state->pi_mutex);if (!owner) owner =rt_mutex_next_owner (&q->pi_state->pi_mutex); -raw_spin_unlock (&q->pi_state->pi_mutex.wait_lock); +raw_spin_unlock_irq (&q->pi_state->pi_mutex.wait_lock); ret =fixup_pi_state_owner (uaddr, q, owner); goto out; }
kernel/rtmutex.c +66 -64
440 lines not on this page · raw message
localversion-rt +1 -1
@@ -1 +1 @@ --rt1 +-rt2
16.11.2013 23:46, Sebastian Andrzej Siewior пишет:
Quoted 3 lines
Dear RT folks!
I'm pleased to announce the v3.12.0-rt2 patch set.
I cat't still to mount filesystems!
bash not start!
1. pull git kernel 3.12
2. wget rt-patch
3. patch'em all
4. make oldconfig && make && make install
5 In cmdline type init=/bin/bash
....
And.... see screenshot:
http://i59.fastpic.ru/big/2013/1117/85/61c0a35e5a456263910ce4cf3152d085.jpg
system not response, SysRQ+B - work
3.2.52-rt72 - work
3.10.18-rt14 - work
3.12-rt2 - NO!
Signature · 1 line
Pavel.
Quoted 5 lines
- tried to fix AT91's "already-free IRQ" and highres problem. Michael Langfinge reported it initially and Sami Pietikäinen sent a patch for the "already-free IRQ" problem. Based on another patch I looked at the highres patch and tried to fix it. As I don't have the hardware, some feedback would be nice.
I did a quick test run with the 3.12.0-rt2 kernel. There are no "Trying to free already free IRQ 1" warnings anymore so that issue seems to be fixed. However, the system still hangs.
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=y
Hangs (or resets if the WD is enabled)
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=n
Boots ok.
Now the kernel boots with the CONFIG_HIGH_RES_TIMERS enabled, but hangs when I enable the TCB clock source. Michael, if you have spare time, maybe you could also test these configs to see if you have similar behavior.
BR,
Sami Pietikäinen
[Mon Nov 18 10:32:13.484 2013] Starting kernel ... [Mon Nov 18 10:32:13.486 2013] [Mon Nov 18 10:32:13.499 2013] Uncompressing Linux... done, booting the kernel. [Mon Nov 18 10:32:13.814 2013] Booting Linux on physical CPU 0x0 [Mon Nov 18 10:32:13.817 2013] Linux version 3.12.0-rt2-custom (VirtualBox) (gcc version 4.7.2 (GCC) ) #2 PREEMPT RT Mon Nov 18 10:27:37 EET 2013 [Mon Nov 18 10:32:13.827 2013] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=50c53c7d [Mon Nov 18 10:32:13.833 2013] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [Mon Nov 18 10:32:13.839 2013] Machine: Atmel SAMA5 (Device Tree), model: [Mon Nov 18 10:32:13.844 2013] Memory policy: ECC disabled, Data cache writeback [Mon Nov 18 10:32:13.849 2013] AT91: Detected soc type: sama5d3 [Mon Nov 18 10:32:13.851 2013] AT91: Detected soc subtype: sama5d35 [Mon Nov 18 10:32:13.855 2013] AT91: sram at 0x300000 of 0x20000 mapped at 0xfef58000 [Mon Nov 18 10:32:13.861 2013] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map [Mon Nov 18 10:32:13.867 2013] CPU: All CPU(s) started in SVC mode. [Mon Nov 18 10:32:13.870 2013] Clocks: CPU 528 MHz, master 132 MHz, main 12.000 MHz [Mon Nov 18 10:32:13.874 2013] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [Mon Nov 18 10:32:13.881 2013] Kernel command line: console=ttyS0,115200 loglevel=7 loglevel=7 printk.time=0 rootfstype=ubifs ubi.mtd=4 root=ubi0:rootfs mtdparts=atmel_nand(partitioning removed) [Mon Nov 18 10:32:13.915 2013] PID hash table entries: 2048 (order: 1, 8192 bytes) [Mon Nov 18 10:32:13.919 2013] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [Mon Nov 18 10:32:13.925 2013] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [Mon Nov 18 10:32:13.931 2013] Memory: 516380K/524288K available (2044K kernel code, 166K rwdata, 828K rodata, 96K init, 122K bss, 7908K reserved) [Mon Nov 18 10:32:13.941 2013] Virtual kernel memory layout: [Mon Nov 18 10:32:13.944 2013] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [Mon Nov 18 10:32:13.948 2013] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [Mon Nov 18 10:32:13.952 2013] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB) [Mon Nov 18 10:32:13.957 2013] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [Mon Nov 18 10:32:13.961 2013] modules : 0xbf800000 - 0xc0000000 ( 8 MB) [Mon Nov 18 10:32:13.966 2013] .text : 0xc0008000 - 0xc02d64bc (2874 kB) [Mon Nov 18 10:32:13.970 2013] .init : 0xc02d7000 - 0xc02ef20c ( 97 kB) [Mon Nov 18 10:32:13.975 2013] .data : 0xc02f0000 - 0xc0319a40 ( 167 kB) [Mon Nov 18 10:32:13.980 2013] .bss : 0xc0319a4c - 0xc0338254 ( 123 kB) [Mon Nov 18 10:32:13.984 2013] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [Mon Nov 18 10:32:13.989 2013] Preemptible hierarchical RCU implementation. [Mon Nov 18 10:32:13.993 2013] NR_IRQS:16 nr_irqs:16 16 [Mon Nov 18 10:32:13.995 2013] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms [Mon Nov 18 10:32:14.002 2013] Console: colour dummy device 80x30 [Mon Nov 18 10:32:14.005 2013] Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184) [Mon Nov 18 10:32:14.010 2013] pid_max: default: 32768 minimum: 301 [Mon Nov 18 10:32:14.014 2013] Mount-cache hash table entries: 512 [Mon Nov 18 10:32:14.017 2013] CPU: Testing write buffer coherency: ok [Mon Nov 18 10:32:14.020 2013] Setting up static identity map for 0xc01edae8 - 0xc01edb18 [Mon Nov 18 10:32:14.026 2013] devtmpfs: initialized [Mon Nov 18 10:32:14.028 2013] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1 [Mon Nov 18 10:32:14.034 2013] pinctrl core: initialized pinctrl subsystem [Mon Nov 18 10:32:14.038 2013] NET: Registered protocol family 16 [Mon Nov 18 10:32:14.042 2013] DMA: preallocated 256 KiB pool for atomic coherent allocations [Mon Nov 18 10:32:14.047 2013] gpio-at91 fffff200.gpio: at address fefff200 [Mon Nov 18 10:32:14.051 2013] gpio-at91 fffff400.gpio: at address fefff400 [Mon Nov 18 10:32:14.055 2013] gpio-at91 fffff600.gpio: at address fefff600 [Mon Nov 18 10:32:14.059 2013] gpio-at91 fffff800.gpio: at address fefff800 [Mon Nov 18 10:32:14.063 2013] gpio-at91 fffffa00.gpio: at address fefffa00 [Mon Nov 18 10:32:14.067 2013] pinctrl-at91 pinctrl.2: initialized AT91 pinctrl driver [Mon Nov 18 10:32:14.072 2013] bio: create slab <bio-0> at 0 [Mon Nov 18 10:32:14.074 2013] at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels [Mon Nov 18 10:32:14.082 2013] at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels [Mon Nov 18 10:32:14.090 2013] SCSI subsystem initialized [Mon Nov 18 10:32:14.092 2013] of_dma_request_slave_channel: dma-names property of node '/ahb/apb/i2c@f0018000' missing or empty [Mon Nov 18 10:32:14.101 2013] at91_i2c f0018000.i2c: can't get a DMA channel for tx [Mon Nov 18 10:32:14.106 2013] at91_i2c f0018000.i2c: can't use DMA [Mon Nov 18 10:32:14.109 2013] at91_i2c f0018000.i2c: AT91 i2c bus driver. [Mon Nov 18 10:32:14.113 2013] Switched to clocksource tcb_clksrc [Mon Nov 18 10:32:14.116 2013] NET: Registered protocol family 2 [Mon Nov 18 10:32:14.119 2013] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [Mon Nov 18 10:32:14.125 2013] TCP bind hash table entries: 4096 (order: 4, 98304 bytes) [Mon Nov 18 10:32:14.130 2013] TCP: Hash tables configured (established 4096 bind 4096) [Mon Nov 18 10:32:14.135 2013] TCP: reno registered [Mon Nov 18 10:32:14.137 2013] UDP hash table entries: 256 (order: 2, 16384 bytes) [Mon Nov 18 10:32:14.141 2013] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes) [Mon Nov 18 10:32:14.146 2013] NET: Registered protocol family 1 [Mon Nov 18 10:32:14.150 2013] jffs2: version 2.2. (NAND) (SUMMARY) � 2001-2006 Red Hat, Inc. [Mon Nov 18 10:32:14.155 2013] msgmni has been set to 1008 [Mon Nov 18 10:32:14.158 2013] io scheduler noop registered (default) [Mon Nov 18 10:32:14.161 2013] ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 35, base_baud = 8250000) is a ATMEL_SERIAL [Mon Nov 18 10:32:14.170 2013] console [ttyS0] enabled [Mon Nov 18 10:32:14.174 2013] brd: module loaded [Mon Nov 18 10:32:14.178 2013] atmel_nand: Use On Flash BBT [Mon Nov 18 10:32:14.181 2013] atmel_nand 60000000.nand: No DMA support for NAND access. [Mon Nov 18 10:32:14.187 2013] ONFI param page 0 valid [Mon Nov 18 10:32:14.189 2013] ONFI flash detected [Mon Nov 18 10:32:14.191 2013] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP), 256MiB, page size: 2048, OOB size: 64 [Mon Nov 18 10:32:14.201 2013] atmel_nand 60000000.nand: ONFI params, minimum required ECC: 4 bits in 512 bytes [Mon Nov 18 10:32:14.208 2013] atmel_nand 60000000.nand: Initialize PMECC params, cap: 4, sector: 512 [Mon Nov 18 10:32:14.215 2013] Bad block table found at page 131008, version 0x01 [Mon Nov 18 10:32:14.219 2013] Bad block table found at page 130944, version 0x01 [Mon Nov 18 10:32:14.225 2013] 8 cmdlinepart partitions found on MTD device atmel_nand [Mon Nov 18 10:32:14.230 2013] Creating 8 MTD partitions on "atmel_nand": (nand partitioning removed) [Mon Nov 18 10:32:14.278 2013] libphy: MACB_mii_bus: probed [Mon Nov 18 10:32:14.283 2013] macb f0028000.ethernet eth0: Cadence GEM at 0xf0028000 irq 23 (d2:be:9e:3d:30:13) [Mon Nov 18 10:32:14.292 2013] macb f0028000.ethernet eth0: attached PHY driver [Micrel KSZ9021 Gigabit PHY] (mii_bus:phy_addr=f0028000.etherne:01, irq=-1) [Mon Nov 18 10:32:14.303 2013] libphy: MACB_mii_bus: probed [Mon Nov 18 10:32:14.309 2013] macb f802c000.ethernet eth1: Cadence MACB at 0xf802c000 irq 29 (d2:be:9e:3d:30:14) [Mon Nov 18 10:32:14.317 2013] macb f802c000.ethernet eth1: attached PHY driver [Micrel KSZ8031] (mii_bus:phy_addr=f802c000.etherne:00, irq=-1) [Mon Nov 18 10:32:14.328 2013] at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0 [Mon Nov 18 10:32:14.334 2013] at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver. [Mon Nov 18 10:32:14.339 2013] i2c /dev entries driver [Mon Nov 18 10:32:14.342 2013] at91sam9_wdt: sorry, watchdog is disabled [Mon Nov 18 10:32:14.345 2013] at91_wdt: probe of fffffe40.watchdog failed with error -5 [Mon Nov 18 10:32:14.351 2013] iio iio:device0: Resolution used: 12 bits [Mon Nov 18 10:32:14.357 2013] TCP: cubic registered [Mon Nov 18 10:32:14.361 2013] NET: Registered protocol family 10 [Mon Nov 18 10:32:14.365 2013] sit: IPv6 over IPv4 tunneling driver [Mon Nov 18 10:32:14.370 2013] NET: Registered protocol family 17 [Mon Nov 18 10:32:14.375 2013] UBI: attaching mtd4 to ubi0 [Mon Nov 18 10:32:14.533 2013] UBI: scanning is finished [Mon Nov 18 10:32:14.545 2013] UBI: attached mtd4 (name "root", size 29 MiB) to ubi0 [Mon Nov 18 10:32:14.551 2013] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [Mon Nov 18 10:32:14.556 2013] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [Mon Nov 18 10:32:14.562 2013] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 [Mon Nov 18 10:32:14.567 2013] UBI: good PEBs: 232, bad PEBs: 0, corrupted PEBs: 0 [Mon Nov 18 10:32:14.572 2013] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 [Mon Nov 18 10:32:14.577 2013] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 960934847 [Mon Nov 18 10:32:14.585 2013] UBI: available PEBs: 0, total reserved PEBs: 232, PEBs reserved for bad PEB handling: 40 [Mon Nov 18 10:32:14.593 2013] at91_rtc fffffeb0.rtc: setting system clock to 2013-11-15 08:13:18 UTC (1384503198) [Mon Nov 18 10:32:14.688 2013] UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode [Mon Nov 18 10:32:14.696 2013] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [Mon Nov 18 10:32:14.703 2013] UBIFS: FS size: 22474752 bytes (21 MiB, 177 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) [Mon Nov 18 10:32:14.712 2013] UBIFS: reserved for root: 0 bytes (0 KiB) [Mon Nov 18 10:32:14.716 2013] UBIFS: media format: w4/r0 (latest is w4/r0), UUID CBD0566A-AC06-466A-A627-81FD91BE44B5, small LPT model [Mon Nov 18 10:32:14.726 2013] VFS: Mounted root (ubifs filesystem) readonly on device 0:11. [Mon Nov 18 10:32:14.732 2013] devtmpfs: mounted [Mon Nov 18 10:32:14.735 2013] Freeing unused kernel memory: 96K (c02d7000 - c02ef000) [Mon Nov 18 10:32:14.871 2013] INUBI: background thread "ubi_bgt0d" started, PID 50 [Mon Nov 18 10:32:14.878 2013] IT:
(system hangs here or resets if WD is enabled)
Re: [ANNOUNCE] 3.2.52-rt73
In reply to Sebastian Andrzej SiewiorFine, killed 3.12 now decided to finish 3.2.x. Good job guys!
Not configuration, not hardware, not software has not been updated or changed.
BUG: scheduling while atomic: irq/74-sata_nv/57/0x00000002 Modules linked in: cls_u32 sch_sfq sch_htb Pid: 57, comm: irq/74-sata_nv Tainted: G O 3.2.52-rt73 #10 Call Trace: [<ffffffff814bdef4>] ? __schedule+0x314/0x344 [<ffffffff81081b77>] ? task_blocks_on_rt_mutex+0x1e7/0x280 [<ffffffff814be741>] ? schedule+0x21/0xa0 [<ffffffff814c0d88>] ? rt_spin_lock_slowlock+0x128/0x280 [<ffffffff81204d01>] ? blk_update_request+0x11/0x450 [<ffffffff812a6976>] ? add_timer_randomness+0x86/0x1e0 [<ffffffff81206eac>] ? blk_end_request+0x9c/0xc0 [<ffffffff812c629a>] ? scsi_io_completion+0x9a/0x770 [<ffffffff8120d4ab>] ? blk_done_softirq+0x6b/0x80 [<ffffffff8104a805>] ? __do_softirq_common+0xa5/0x1d0 [<ffffffff81094ec0>] ? irq_thread_fn+0x50/0x50 [<ffffffff8104ad77>] ? local_bh_enable+0x127/0x150 [<ffffffff81094f08>] ? irq_forced_thread_fn+0x48/0x70 [<ffffffff81094d80>] ? irq_thread+0x150/0x240 [<ffffffff81094c30>] ? disable_irq_nosync+0x60/0x60 [<ffffffff81067150>] ? kthread+0x80/0x90 [<ffffffff814c3174>] ? kernel_thread_helper+0x4/0x10 [<ffffffff810670d0>] ? kthread_bind+0x80/0x80 [<ffffffff814c3170>] ? gs_change+0xb/0xb BUG: scheduling while atomic: ksoftirqd/3/27/0x00000002 Pid: 3, comm: ksoftirqd/0 Tainted: G O 3.2.52-rt73 #10 ... BUG: scheduling while atomic: ksoftirqd/0/3/0x00000002 Pid: 27, comm: ksoftirqd/3 Tainted: G O 3.2.52-rt73 #10 .... BUG: scheduling while atomic: ksoftirqd/0/3/0x00000002
Pid: 27, comm: ksoftirqd/3 Tainted: G O 3.2.52-rt73 #10
Signature · 1 line
Pavel.
Quoted 12 lines · * Sami Pietikäinen | 2013-11-19 07:38:27 [+0000]:
Quoted 5 lines
- tried to fix AT91's "already-free IRQ" and highres problem. Michael Langfinge reported it initially and Sami Pietikäinen sent a patch for the "already-free IRQ" problem. Based on another patch I looked at the highres patch and tried to fix it. As I don't have the hardware, some feedback would be nice.
I did a quick test run with the 3.12.0-rt2 kernel. There are no "Trying to free already free IRQ 1" warnings anymore so that issue seems to be fixed. However, the system still hangs.
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=y
Hangs (or resets if the WD is enabled)
Quoted 6 lines
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=n
Boots ok.Now the kernel boots with the
CONFIG_HIGH_RES_TIMERSenabled, but hangs when I enable the TCB clock source. Michael, if you have spare time, maybe you could also test these configs to see if you have similar behavior.
Okay. So in the working variant with TCB=n, do you have high res timers available?
Quoted 2 lines
BR,
Sami Pietikäinen
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [ANNOUNCE] 3.2.52-rt73
In reply to Pavel VasilyevQuoted 4 lines · * Pavel Vasilyev | 2013-11-22 00:44:37 [+0400]:
Fine, killed 3.12 now decided to finish 3.2.x. Good job guys!
Not configuration, not hardware, not software has not been updated or changed.
No I am a bit confused. On 16th you write:
|3.2.52-rt72 - work
and now you say that we killed v3.2. There was no v3.2.52-rt72 but v3.2.51-rt72. So did -rt72 work and -rt73 does no more?
I saw your earlier screenshots and there is nothing I can say. I can't tell based on the screenshot what is wrong. Sorry.
This time you managed to include a backtrace. Better! However would you mind to enable frame pointers? The backtrace
Quoted 15 lines
BUG: scheduling while atomic: irq/74-sata_nv/57/0x00000002 Modules linked in: cls_u32 sch_sfq sch_htb Pid: 57, comm: irq/74-sata_nv Tainted: G O 3.2.52-rt73 #10 Call Trace: [<ffffffff814bdef4>] ? __schedule+0x314/0x344 [<ffffffff81081b77>] ? task_blocks_on_rt_mutex+0x1e7/0x280 [<ffffffff814be741>] ? schedule+0x21/0xa0 [<ffffffff814c0d88>] ? rt_spin_lock_slowlock+0x128/0x280 [<ffffffff81204d01>] ? blk_update_request+0x11/0x450 [<ffffffff812a6976>] ? add_timer_randomness+0x86/0x1e0 [<ffffffff81206eac>] ? blk_end_request+0x9c/0xc0 [<ffffffff812c629a>] ? scsi_io_completion+0x9a/0x770 [<ffffffff8120d4ab>] ? blk_done_softirq+0x6b/0x80 [<ffffffff8104a805>] ? __do_softirq_common+0xa5/0x1d0 [<ffffffff81094ec0>] ? irq_thread_fn+0x50/0x50
Quoted 8 lines
[<ffffffff8104ad77>] ? local_bh_enable+0x127/0x150 [<ffffffff81094f08>] ? irq_forced_thread_fn+0x48/0x70 [<ffffffff81094d80>] ? irq_thread+0x150/0x240 [<ffffffff81094c30>] ? disable_irq_nosync+0x60/0x60 [<ffffffff81067150>] ? kthread+0x80/0x90 [<ffffffff814c3174>] ? kernel_thread_helper+0x4/0x10 [<ffffffff810670d0>] ? kthread_bind+0x80/0x80 [<ffffffff814c3170>] ? gs_change+0xb/0xb
shows now random functions which were on stack before the accident. What happens is that something on the system tries to take a sleeping long while beeing most likely in a preempt disable region. With lockdep on it might even throw some additional information here.
Sebastian
[ANNOUNCE] 3.12.1-rt4
In reply to Sebastian Andrzej SiewiorDear RT folks!
I'm pleased to announce the v3.12.1-rt4 patch set.
Changes since v3.12.0-rt2
- rtmutex: the patch with the conversion to raw_spinlock_irq() of the waiter lock has been replaced by a trylock attempt this keeps the change a lot smaller. Initially suggested by Matt Cowell. There is also a special unlock function so lockdep does not complain on the in unlock path.
- A patch from Peter Zijlstra so lockdep sees the locking problem from above.
- migrate_disable() does not invoke preempt_enable() + preempt_disable() on recursion. An optimisation by Nicholas Mc Guire.
- rt_mutex_trylock() does not invoke migrate_disable() + migrate_enable() in the case where it did not get the lock. An optimisation by Nicholas Mc Guire.
Known issues:
- bcache is disabled.
- an ancient race (since we got sleeping spinlocks) where the TASK_TRACED state is temporary replaced while waiting on a rw lock and the task can't be traced.
The delta patch against v3.12.1-rt3 is appended below and can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/incr/patch-3.12.1-rt3-rt4.patch.xz
The RT patch against 3.12.1 can be found here:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/patch-3.12.1-rt4.patch.xz
The split quilt queue is available at:
https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/patches-3.12.1-rt4.tar.xz
Sebastian
include/linux/spinlock_rt.h +1 -0
@@ -22,6 +22,7 @@ extern void __lockfunc rt_spin_lock(spinlock_t *lock);extern unsigned long __lockfunc rt_spin_lock_trace_flags (spinlock_t *lock); extern void __lockfunc rt_spin_lock_nested(spinlock_t *lock, int subclass); extern void __lockfunc rt_spin_unlock(spinlock_t *lock); +extern void __lockfunc rt_spin_unlock_after_trylock_in_irq(spinlock_t *lock); extern void __lockfunc rt_spin_unlock_wait(spinlock_t *lock); extern int __lockfunc rt_spin_trylock_irqsave(spinlock_t *lock, unsigned long *flags); extern int __lockfunc rt_spin_trylock_bh(spinlock_t *lock);
kernel/futex.c +8 -8
@@ -891,7 +891,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)if (pi_state->owner != current)return -EINVAL ; -raw_spin_lock_irq (&pi_state->pi_mutex.wait_lock); +raw_spin_lock (&pi_state->pi_mutex.wait_lock); new_owner =rt_mutex_next_owner (&pi_state->pi_mutex);/*
@@ -917,21 +917,21 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)else if (curval != uval) ret = -EINVAL ;if (ret) { -raw_spin_unlock_irq (&pi_state->pi_mutex.wait_lock); +raw_spin_unlock (&pi_state->pi_mutex.wait_lock);return ret; } } -raw_spin_lock (&pi_state->owner->pi_lock); +raw_spin_lock_irq (&pi_state->owner->pi_lock);WARN_ON (list_empty (&pi_state->list));list_del_init (&pi_state->list); -raw_spin_unlock (&pi_state->owner->pi_lock); +raw_spin_unlock_irq (&pi_state->owner->pi_lock); -raw_spin_lock (&new_owner->pi_lock); +raw_spin_lock_irq (&new_owner->pi_lock);WARN_ON (!list_empty (&pi_state->list));list_add (&pi_state->list, &new_owner->pi_state_list); pi_state->owner = new_owner; -raw_spin_unlock (&new_owner->pi_lock); +raw_spin_unlock_irq (&new_owner->pi_lock);raw_spin_unlock (&pi_state->pi_mutex.wait_lock);rt_mutex_unlock (&pi_state->pi_mutex);
@@ -1762,11 +1762,11 @@ static int fixup_owner(u32 __user *uaddr, struct futex_q *q, int locked)* we returned due to timeout or signal without taking the * rt_mutex. Too late. */ -raw_spin_lock_irq (&q->pi_state->pi_mutex.wait_lock); +raw_spin_lock (&q->pi_state->pi_mutex.wait_lock); owner =rt_mutex_owner (&q->pi_state->pi_mutex);if (!owner) owner =rt_mutex_next_owner (&q->pi_state->pi_mutex); -raw_spin_unlock_irq (&q->pi_state->pi_mutex.wait_lock); +raw_spin_unlock (&q->pi_state->pi_mutex.wait_lock); ret =fixup_pi_state_owner (uaddr, q, owner); goto out; }
kernel/rt.c +3 -4
@@ -182,11 +182,10 @@ int __lockfunc rt_write_trylock(rwlock_t *rwlock) {int ret =rt_mutex_trylock (&rwlock->lock); -migrate_disable (); -if (ret) +if (ret) {rwlock_acquire (&rwlock->dep_map,0 ,1 , _RET_IP_); -else -migrate_enable (); +migrate_disable (); + }return ret; }
kernel/rtmutex.c +89 -68
479 lines not on this page · raw message
kernel/sched/core.c +2 -4
@@ -2418,13 +2418,12 @@ void migrate_disable(void) }#endif -preempt_disable ();if (p->migrate_disable) { p->migrate_disable++; -preempt_enable ();return ; } +preempt_disable ();preempt_lazy_disable ();pin_current_cpu (); p->migrate_disable =1 ;
@@ -2454,13 +2453,12 @@ void migrate_enable(void)#endif WARN_ON_ONCE (p->migrate_disable <=0 ); -preempt_disable ();if (migrate_disable_count (p) >1 ) { p->migrate_disable--; -preempt_enable ();return ; } +preempt_disable ();if (unlikely (migrate_disabled_updated (p))) {/* * Undo whatever update_migrate_disable() did, also see there
kernel/softirq.c +44 -6
91 lines not on this page · raw message
kernel/timer.c +1 -1
@@ -1400,7 +1400,7 @@ unsigned long get_next_timer_interrupt(unsigned long now) expires = base->next_timer; }#ifdef CONFIG_PREEMPT_RT_FULL -rt_spin_unlock (&base->lock); +rt_spin_unlock_after_trylock_in_irq (&base->lock);#else spin_unlock (&base->lock);#endif
localversion-rt +1 -1
@@ -1 +1 @@ --rt3 +-rt4
Hello Sami, hello Sebastian,
unfortunately I don't have access to the AT91 at the moment, so I can't test the config myself. But I built the kernel 3.12.0-rt2 and gave my former colleague with whom I worked on the AT91 a copy of it. I also updated the build scripts that we used for our specific setup with the AT91, so he will be able to build the kernel himself and test the two config options Sami posted. I will tell you about his results as soon as I hear from him!
Kind regards,
Michael Langfinger
Quoted 27 lines · Sebastian Andrzej Siewior
Quoted 16 lines · * Sami Pietikäinen | 2013-11-19 07:38:27 [+0000]:
Quoted 9 lines
- tried to fix AT91's "already-free IRQ" and highres problem. Michael
Langfinge reported it initially and Sami Pietikäinen sent a patch
for
the "already-free IRQ" problem. Based on another patch I looked
at the
highres patch and tried to fix it. As I don't have the hardware,
some
feedback would be nice.I did a quick test run with the 3.12.0-rt2 kernel. There are no "Trying to free already free IRQ 1" warnings anymore so that issue seems to be fixed. However, the system still hangs.
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=y
Hangs (or resets if the WD is enabled)Quoted 6 lines
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=n
Boots ok.Now the kernel boots with the
CONFIG_HIGH_RES_TIMERSenabled, but hangs when I enable the TCB clock source. Michael, if you have spare time, maybe you could also test these configs to see if you have similar behavior.Okay. So in the working variant with TCB=n, do you have high res timers available?
Quoted 8 lines
Quoted 2 lines
BR,
Sami PietikäinenSebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines
Quoted 8 lines
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=y
Hangs (or resets if the WD is enabled)
CONFIG_HIGH_RES_TIMERS=yCONFIG_ATMEL_TCB_CLKSRC=n
Boots ok.
Quoted 5 lines
Quoted 2 lines
Now the kernel boots with the
CONFIG_HIGH_RES_TIMERSenabled, but hangs when I enable the TCB clock source. Michael, if you have spare time, maybe you could also test these configs to see if you have similar behavior.Okay. So in the working variant with TCB=n, do you have high res timers available?
Sebastian
When the TCB_CLKSRC=n, the system uses periodic interval timer (pit), and it seems that the high res timers are not available even though CONFIG_HIGH_RES_TIMERS=y.
/proc/timer_list for the working variant below.
BR,
Sami Pietikäinen
Timer List Version: v0.7HRTIMER_MAX_CLOCK_BASES: 4
now at 195174767111 nsecs
cpu: 0
clock 0:
.base: c0301990
.index: 0
.resolution: 10000000 nsecs
.get_time: ktime_get
.offset: 0 nsecs
active timers:
#0: <c031e148>, sched_rt_period_timer, S:01
# expires at 196000000000-196000000000 nsecs [in 825232889 to 825232889 nsecs] #1: <df869aa8>, hrtimer_wakeup, S:01 # expires at 199543365657-199548365650 nsecs [in 4368598546 to 4373598539 nsecs] clock 1: .base: c03019d0 .index: 1 .resolution: 10000000 nsecs .get_time: ktime_get_real .offset: 0 nsecs active timers: clock 2: .base: c0301a10 .index: 2 .resolution: 10000000 nsecs .get_time: ktime_get_boottime .offset: 0 nsecs active timers: clock 3: .base: c0301a50 .index: 3 .resolution: 10000000 nsecs .get_time: ktime_get_clocktai .offset: 0 nsecs active timers: .expires_next : 9223372036854775807 nsecs .hres_active : 0 .nr_events : 0 .nr_retries : 0 .nr_hangs : 0 .max_hang_time : 0 nsecs .nohz_mode : 0 .last_tick : 0 nsecs .tick_stopped : 0 .idle_jiffies : 0 .idle_calls : 0 .idle_sleeps : 0 .idle_entrytime : 195170661051 nsecs .idle_waketime : 0 nsecs .idle_exittime : 0 nsecs .idle_sleeptime : 188933606397 nsecs .iowait_sleeptime: 0 nsecs .last_jiffies : 0 .next_jiffies : 0 .idle_expires : 0 nsecs jiffies: 4294956814
Tick Device: mode: 0
Per CPU device: 0
Clock Event Device: pit
max_delta_ns: 0 min_delta_ns: 0 mult: 35433480 shift: 32 mode: 2 next_event: 9223372036854775807 nsecs set_next_event: <00000000> set_mode: pit_clkevt_mode event_handler: tick_handle_periodic retries: 0
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines
- tried to fix AT91's "already-free IRQ" and highres problem. Michael Langfinge reported it initially and Sami Pietikäinen sent a patch for the "already-free IRQ" problem. Based on another patch I looked at the highres patch and tried to fix it. As I don't have the hardware, some feedback would be nice.
I did a quick test run with the 3.12.0-rt2 kernel. There are no "Trying to free already free IRQ 1" warnings anymore so that issue seems to be fixed. However, the system still hangs.
Now the kernel boots with the
CONFIG_HIGH_RES_TIMERSenabled, but hangs when I enable the TCB clock source.Okay. So in the working variant with TCB=n, do you have high res timers available?
Today me and my colleague had time to really look into this tcb_clksrc issue. I am pretty confident that we solved the issue.
In clocksource-tclib-allow-higher-clockrates.patch the clockevent device frequency is stored to a local variable but never written to the tc_clkevt_device struct (setup_clkevents function).
When the value is later used in tc_mode function the frequency is 0, which is written to the compare register of the TC and bad things start to happen. This does not happen with vanilla kernel because it uses hard coded 32k frequency.
Fix: replace local freq variable with clkevt.freq in setup_clkevents function. I also renamed clk32k_divisor_idx to divisor_idx because the 32k frequency is not hard coded in RT.
Michael, could you or your colleague test this fix and report if it works for you also.
BR,
Sami Pietikäinen
drivers/clocksource/tcb_clksrc.c +22 -16
@@ -23,8 +23,7 @@* this 32 bit free-running counter. the second channel is not used. * * - The third channel may be used to provide a 16-bit clockevent -* source, used in either periodic or oneshot mode. This runs -* at 32 KiHZ, and can handle delays of up to two seconds. +* source, used in either periodic or oneshot mode. * * A boot clocksource and clockevent source are also currently needed, * unless the relevant platforms (ARM/AT91, AVR32/AT32) are changed so
@@ -74,6 +73,7 @@ static struct clocksource clksrc = {struct tc_clkevt_device {struct clock_event_device clkevt;struct clk *clk; +u32 freq;void __iomem *regs; };
@@ -82,13 +82,6 @@ static struct tc_clkevt_device *to_tc_cl return container_of(clkevt, struct tc_clkevt_device, clkevt); } -/* For now, we always use the 32K clock ... this optimizes for NO_HZ, -* because using one of the divided clocks would usually mean the -* tick rate can never be less than several dozen Hz (vs 0.5 Hz). -* -* A divided clock could be good for high resolution timers, since -* 30.5 usec resolution can seem "low". -*/ static u32 timer_clock;static void tc_mode (enum clock_event_mode m,struct clock_event_device *d)
@@ -111,11 +104,12 @@ static void tc_mode(enum clock_event_modcase CLOCK_EVT_MODE_PERIODIC :clk_enable (tcd->clk); -/* slow clock, count up to RC, then irq and restart */ +/* count up to RC, then irq and restart */ __raw_writel (timer_clock |ATMEL_TC_WAVE |ATMEL_TC_WAVESEL_UP_AUTO , regs +ATMEL_TC_REG (2 ,CMR )); -__raw_writel ((32768 +HZ /2 ) /HZ , tcaddr +ATMEL_TC_REG (2 ,RC )); +__raw_writel ((tcd->freq +HZ /2 )/HZ , + tcaddr +ATMEL_TC_REG (2 ,RC ));/* Enable clock and interrupts on RC compare */ __raw_writel (ATMEL_TC_CPCS , regs +ATMEL_TC_REG (2 ,IER ));
@@ -128,7 +122,7 @@ static void tc_mode(enum clock_event_modcase CLOCK_EVT_MODE_ONESHOT :clk_enable (tcd->clk); -/* slow clock, count up to RC, then irq and stop */ +/* count up to RC, then irq and stop */ __raw_writel (timer_clock |ATMEL_TC_CPCSTOP |ATMEL_TC_WAVE |ATMEL_TC_WAVESEL_UP_AUTO , regs +ATMEL_TC_REG (2 ,CMR ));
@@ -157,8 +151,12 @@ static struct tc_clkevt_device clkevt = .name = "tc_clkevt", .features =CLOCK_EVT_FEAT_PERIODIC |CLOCK_EVT_FEAT_ONESHOT , +#ifdef CONFIG_ATMEL_TCB_CLKSRC_USE_SLOW_CLOCK/* Should be lower than at91rm9200's system timer */ .rating = 125, +#else + .rating = 200, +#endif .set_next_event = tc_next_event, .set_mode = tc_mode, },
@@ -184,8 +182,9 @@ static struct irqaction tc_irqaction = { .handler = ch2_irq, }; -static void __init setup_clkevents (struct atmel_tc *tc,int clk32k_divisor_idx) +static void __init setup_clkevents (struct atmel_tc *tc,int divisor_idx) { +unsigned divisor = atmel_tc_divisors[divisor_idx];struct clk *t2_clk = tc->clk[2 ];int irq = tc->irq[2 ];
@@ -193,11 +192,15 @@ static void __init setup_clkevents(struc clkevt.clk = t2_clk; tc_irqaction.dev_id = &clkevt; - timer_clock = clk32k_divisor_idx; + timer_clock = divisor_idx; +if (!divisor) + clkevt.freq =32768 ; +else + clkevt.freq =clk_get_rate (t2_clk) / divisor; clkevt.clkevt.cpumask =cpumask_of (0 ); -clockevents_config_and_register (&clkevt.clkevt,32768 ,1 ,0xffff ); +clockevents_config_and_register (&clkevt.clkevt, clkevt.freq,1 ,0xffff );setup_irq (irq, &tc_irqaction); }
@@ -322,8 +325,11 @@ static int __init tcb_clksrc_init(void)clocksource_register_hz (&clksrc, divided_rate);/* channel 2: periodic and oneshot timer support */ +#ifdef CONFIG_ATMEL_TCB_CLKSRC_USE_SLOW_CLOCK setup_clkevents (tc, clk32k_divisor_idx); - +#else +setup_clkevents (tc, best_divisor_idx); +#endif return 0 ; }arch_initcall (tcb_clksrc_init);
Quoted 2 lines · * Sami Pietikäinen | 2013-11-25 13:21:13 [+0000]:
In clocksource-tclib-allow-higher-clockrates.patch the clockevent device frequency is stored to a local variable but never written to the
tc_clkevt_devicestruct (setup_clkeventsfunction).
Thanks, no idea how I could overlook this.
Quoted 3 lines
Fix: replace local freq variable with clkevt.freq in
setup_clkeventsfunction. I also renamedclk32k_divisor_idxtodivisor_idxbecause the 32k frequency is not hard coded in RT.
Yeah, the right thing to do, Applied
Quoted 3 lines
BR,
Sami Pietikäinen
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [ANNOUNCE] 3.12.1-rt4
In reply to Sebastian Andrzej Siewior------------[ cut here ]------------ WARNING: CPU: 1 PID: 10 at kernel/time/tick-sched.c:191 0xffffffff8107bac6() NO_HZ FULL will not work with unstable sched clock Modules linked in: CPU: 1 PID: 10 Comm: rcuop/0 Not tainted 3.12.2-rt4 #3 Hardware name: TYAN Computer Corp. S2895/S2895, BIOS 2004Q3 11/18/2008 0000000000000009 ffff88027fc83ea8 ffffffff81501a58 0000000000000039 ffff88027fc83ef8 ffff88027fc83ee8 ffffffff8102f992 0000000000012700 ata3.00: configured for UDMA/100 ffff88027fc8d580 0000000000000001 ffff880272894020 ffff88027fc0d700 Call Trace: <IRQ> [<ffffffff81501a58>] 0xffffffff81501a58 [<ffffffff8102f992>] 0xffffffff8102f992 [<ffffffff8102fa61>] 0xffffffff8102fa61 [<ffffffff8107bac6>] 0xffffffff8107bac6 [<ffffffff8107c8f4>] 0xffffffff8107c8f4 [<ffffffff8103405d>] 0xffffffff8103405d [<ffffffff81006fff>] 0xffffffff81006fff [<ffffffff815085f7>] 0xffffffff815085f7 <EOI> [<ffffffff81007083>] ? 0xffffffff81007083 [<ffffffff81506865>] ? 0xffffffff81506865 [<ffffffff81095961>] ? 0xffffffff81095961 [<ffffffff81095860>] ? 0xffffffff81095860 [<ffffffff8104d0dd>] 0xffffffff8104d0dd [<ffffffff8104d030>] ? 0xffffffff8104d030 [<ffffffff8150763c>] 0xffffffff8150763c [<ffffffff8104d030>] ? 0xffffffff8104d030 ---[ end trace 53ca152639ff2a59 ]---
Re: [ANNOUNCE] 3.12.1-rt4
Quoted 6 lines · Pavel Vasilyev
------------[ cut here ]------------ WARNING: CPU: 1 PID: 10 at kernel/time/tick-sched.c:191 0xffffffff8107bac6() NO_HZ FULL will not work with unstable sched clock Call Trace: <IRQ> [<ffffffff81501a58>] 0xffffffff81501a58 [<ffffffff8102f992>] 0xffffffff8102f992
Okay. Now we have a backstrace. Better. Now there is an option named CONFIG_DEBUG_INFO which resolves a number like 0xffffffff81501a58 to the function name. Without it enabled, the backtrace is of no use to me.
However, in this case you triggered the warning in tick-sched.c. The good news is that FULL-NO-HZ mode is not available because your TSC is unstable and this is all the backtrace is about so it is harmless. You should see it even without -RT enabled. The bad news is that I don't think that this has anything to do with your SATA problem.
Sebastian