v4.4.4-rt11
Subsystems (21)
Dear RT folks!
I'm pleased to announce the v4.4.4-rt11 patch set. Changes since v4.4.4-rt10:
- A compile error has been fixed in conjunction with the latency tracer.
- AT91 got a little better. A larger patch series by Boris Brezillon has been merged. That means SAMA5 boots now. There is one warning left about invoking free_irq() twice. I would be glad about some feedback from pre-SAMA5 SoC. Those which share UART and timer interrupt. It seems that that one I have here does not do this anymore.
- A patch on top the AT91 series to avoid two warning while switching from period to oneshow mode.
- Daniel Wagner refurbished the swait patches. This relase contains now what is queued for v4.6 in the TIP tree. Only RT uses `completion' based on swait. Based on the current implementation you will see a warning if complete_all() in invoked on more than two waiters. Please report if see this.
Known issues:
- CPU hotplug got a little better but can deadlock.
The delta patch against 4.4.4-rt10 is appended below and can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/incr/patch-4.4.4-rt10-rt11.patch.xz
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v4.4.4-rt11
The RT patch against 4.4.4 can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4.4-rt11.patch.xz
The split quilt queue is available at:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.4/patches-4.4.4-rt11.tar.xz
Sebastian
Makefile +3 -0
@@ -767,6 +767,9 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes) # Prohibit date/time macros, which would make the build non-deterministic KBUILD_CFLAGS += $(call cc-option,-Werror=date-time) +# enforce correct pointer usage +KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types) + # use the deterministic mode of AR if available KBUILD_ARFLAGS := $(call ar-option,D)
arch/arm/kvm/arm.c +3 -3
@@ -498,16 +498,16 @@ static void kvm_arm_resume_guest(struct kvm *kvm)struct kvm_vcpu *vcpu;kvm_for_each_vcpu (i, vcpu, kvm) { -struct swait_head *wq =kvm_arch_vcpu_wq (vcpu); +struct swait_queue_head *wq =kvm_arch_vcpu_wq (vcpu); vcpu->arch.pause = false; -swait_wake_interruptible (wq); +swake_up (wq); } }static void vcpu_sleep (struct kvm_vcpu *vcpu) { -struct swait_head *wq =kvm_arch_vcpu_wq (vcpu); +struct swait_queue_head *wq =kvm_arch_vcpu_wq (vcpu);swait_event_interruptible (*wq, ((!vcpu->arch.power_off) && (!vcpu->arch.pause)));
arch/arm/kvm/psci.c +2 -2
@@ -70,7 +70,7 @@ static unsigned long kvm_psci_vcpu_on(struct kvm_vcpu *source_vcpu) {struct kvm *kvm = source_vcpu->kvm;struct kvm_vcpu *vcpu =NULL ; -struct swait_head *wq; +struct swait_queue_head *wq;unsigned long cpu_id;unsigned long context_id;phys_addr_t target_pc;
@@ -119,7 +119,7 @@ static unsigned long kvm_psci_vcpu_on(struct kvm_vcpu *source_vcpu)smp_mb ();/* Make sure the above is visible */ wq =kvm_arch_vcpu_wq (vcpu); -swait_wake_interruptible (wq); +swake_up (wq);return PSCI_RET_SUCCESS ; }
arch/arm/mach-at91/Kconfig +1 -0
@@ -99,6 +99,7 @@ config HAVE_AT91_USB_CLK config COMMON_CLK_AT91 bool select COMMON_CLK + select MFD_SYSCON config HAVE_AT91_SMD bool
arch/arm/mach-at91/at91rm9200.c +0 -2
@@ -12,7 +12,6 @@#include <linux/of_platform.h> #include <asm/mach/arch.h> -#include <asm/system_misc.h> #include "generic.h" #include "soc.h"
@@ -33,7 +32,6 @@ static void __init at91rm9200_dt_device_init(void)of_platform_populate (NULL , of_default_bus_match_table,NULL , soc_dev); - arm_pm_idle = at91rm9200_idle;at91rm9200_pm_init (); }
arch/arm/mach-at91/at91sam9.c +0 -2
@@ -62,8 +62,6 @@ static void __init at91sam9_common_init(void) soc_dev =soc_device_to_device (soc);of_platform_populate (NULL , of_default_bus_match_table,NULL , soc_dev); - - arm_pm_idle = at91sam9_idle; }static void __init at91sam9_dt_device_init (void )
arch/arm/mach-at91/generic.h +2 -11
@@ -11,27 +11,18 @@#ifndef _AT91_GENERIC_H#define _AT91_GENERIC_H -#include <linux/of.h> -#include <linux/reboot.h> - -/* Map io */ -extern void __init at91_map_io (void ); -extern void __init at91_alt_map_io (void ); - -/* idle */ -extern void at91rm9200_idle (void ); -extern void at91sam9_idle (void ); -#ifdef CONFIG_PM extern void __init at91rm9200_pm_init (void );extern void __init at91sam9260_pm_init (void );extern void __init at91sam9g45_pm_init (void );extern void __init at91sam9x5_pm_init (void ); +extern void __init sama5_pm_init (void );#else static inline void __init at91rm9200_pm_init (void ) { }static inline void __init at91sam9260_pm_init (void ) { }static inline void __init at91sam9g45_pm_init (void ) { }static inline void __init at91sam9x5_pm_init (void ) { } +static inline void __init sama5_pm_init (void ) { }#endif #endif /* _AT91_GENERIC_H */
arch/arm/mach-at91/pm.c +59 -11
137 lines not on this page · raw message
arch/arm/mach-at91/sama5.c +1 -1
@@ -51,7 +51,7 @@ static void __init sama5_dt_device_init(void) soc_dev =soc_device_to_device (soc);of_platform_populate (NULL , of_default_bus_match_table,NULL , soc_dev); -at91sam9x5_pm_init (); +sama5_pm_init (); }static const char *const sama5_dt_board_compat[]__initconst = {
arch/mips/kvm/mips.c +4 -4
@@ -445,8 +445,8 @@ int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, dvcpu->arch.wait =0 ; -if (waitqueue_active (&dvcpu->wq)) -wake_up_interruptible (&dvcpu->wq); +if (swait_active (&dvcpu->wq)) +swake_up (&dvcpu->wq);return 0 ; }
@@ -1174,8 +1174,8 @@ static void kvm_mips_comparecount_func(unsigned long data) kvm_mips_callbacks->queue_timer_int (vcpu); vcpu->arch.wait =0 ; -if (waitqueue_active (&vcpu->wq)) -wake_up_interruptible (&vcpu->wq); +if (swait_active (&vcpu->wq)) +swake_up (&vcpu->wq); }/* low level hrtimer wake routine */
arch/powerpc/include/asm/kvm_host.h +2 -2
@@ -286,7 +286,7 @@ struct kvmppc_vcore {struct list_head runnable_threads;struct list_head preempt_list;spinlock_t lock; -struct swait_head wq; +struct swait_queue_head wq;spinlock_t stoltb_lock;/* protects stolen_tb and preempt_tb */ u64 stolen_tb;u64 preempt_tb;
@@ -626,7 +626,7 @@ struct kvm_vcpu_arch {u8 prodded;u32 last_inst; -struct swait_head *wqp; +struct swait_queue_head *wqp;struct kvmppc_vcore *vcore;int ret;int trap;
arch/powerpc/kvm/book3s_hv.c +11 -11
@@ -114,11 +114,11 @@ static bool kvmppc_ipi_thread(int cpu)static void kvmppc_fast_vcpu_kick_hv (struct kvm_vcpu *vcpu) {int cpu; -struct swait_head *wqp; +struct swait_queue_head *wqp; wqp =kvm_arch_vcpu_wq (vcpu); -if (swaitqueue_active (wqp)) { -swait_wake_interruptible (wqp); +if (swait_active (wqp)) { +swake_up (wqp); ++vcpu->stat.halt_wakeup; }
@@ -707,8 +707,8 @@ int kvmppc_pseries_do_hcall(struct kvm_vcpu *vcpu) tvcpu->arch.prodded =1 ;smp_mb ();if (vcpu->arch.ceded) { -if (swaitqueue_active (&vcpu->wq)) { -swait_wake_interruptible (&vcpu->wq); +if (swait_active (&vcpu->wq)) { +swake_up (&vcpu->wq); vcpu->stat.halt_wakeup++; } }
@@ -1447,7 +1447,7 @@ static struct kvmppc_vcore *kvmppc_vcore_create(struct kvm *kvm, int core)INIT_LIST_HEAD (&vcore->runnable_threads);spin_lock_init (&vcore->lock);spin_lock_init (&vcore->stoltb_lock); -init_swait_head (&vcore->wq); +init_swait_queue_head (&vcore->wq); vcore->preempt_tb =TB_NIL ; vcore->lpcr = kvm->arch.lpcr; vcore->first_vcpuid = core * threads_per_subcore;
@@ -2519,9 +2519,9 @@ static void kvmppc_vcore_blocked(struct kvmppc_vcore *vc) {struct kvm_vcpu *vcpu;int do_sleep =1 ; -DEFINE_SWAITER (wait); +DECLARE_SWAITQUEUE (wait); -swait_prepare (&vc->wq, &wait,TASK_INTERRUPTIBLE ); +prepare_to_swait (&vc->wq, &wait,TASK_INTERRUPTIBLE );/* * Check one last time for pending exceptions and ceded state after
@@ -2535,7 +2535,7 @@ static void kvmppc_vcore_blocked(struct kvmppc_vcore *vc) }if (!do_sleep) { -swait_finish (&vc->wq, &wait); +finish_swait (&vc->wq, &wait);return ; }
@@ -2543,7 +2543,7 @@ static void kvmppc_vcore_blocked(struct kvmppc_vcore *vc)trace_kvmppc_vcore_blocked (vc,0 );spin_unlock (&vc->lock);schedule (); -swait_finish (&vc->wq, &wait); +finish_swait (&vc->wq, &wait);spin_lock (&vc->lock); vc->vcore_state =VCORE_INACTIVE ;trace_kvmppc_vcore_blocked (vc,1 );
@@ -2599,7 +2599,7 @@ static int kvmppc_run_vcpu(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)kvmppc_start_thread (vcpu, vc);trace_kvm_guest_enter (vcpu); }else if (vc->vcore_state ==VCORE_SLEEPING ) { -swait_wake (&vc->wq); +swake_up (&vc->wq); } }
arch/s390/include/asm/kvm_host.h +1 -1
@@ -427,7 +427,7 @@ struct kvm_s390_irq_payload {struct kvm_s390_local_interrupt {spinlock_t lock;struct kvm_s390_float_interrupt *float_int; -struct swait_head *wq; +struct swait_queue_head *wq;atomic_t *cpuflags; DECLARE_BITMAP(sigp_emerg_pending, KVM_MAX_VCPUS);struct kvm_s390_irq_payload irq;
arch/s390/kvm/interrupt.c +2 -2
@@ -868,13 +868,13 @@ int kvm_s390_handle_wait(struct kvm_vcpu *vcpu)void kvm_s390_vcpu_wakeup (struct kvm_vcpu *vcpu) { -if (swaitqueue_active (&vcpu->wq)) { +if (swait_active (&vcpu->wq)) {/* * The vcpu gave up the cpu voluntarily, mark it as a good * yield-candidate. */ vcpu->preempted = true; -swait_wake_interruptible (&vcpu->wq); +swake_up (&vcpu->wq); vcpu->stat.halt_wakeup++; } }
arch/x86/kvm/lapic.c +3 -3
@@ -1195,7 +1195,7 @@ static void apic_update_lvtt(struct kvm_lapic *apic)static void apic_timer_expired (struct kvm_lapic *apic) {struct kvm_vcpu *vcpu = apic->vcpu; -struct swait_head *q = &vcpu->wq; +struct swait_queue_head *q = &vcpu->wq;struct kvm_timer *ktimer = &apic->lapic_timer;if (atomic_read (&apic->lapic_timer.pending))
@@ -1204,8 +1204,8 @@ static void apic_timer_expired(struct kvm_lapic *apic)atomic_inc (&apic->lapic_timer.pending);kvm_set_pending_timer (vcpu); -if (swaitqueue_active (q)) -swait_wake_interruptible (q); +if (swait_active (q)) +swake_up (q);if (apic_lvtt_tscdeadline (apic)) ktimer->expired_tscdeadline = ktimer->tscdeadline;
block/blk-core.c +2 -2
@@ -680,7 +680,7 @@ static void blk_queue_usage_counter_release(struct percpu_ref *ref)struct request_queue *q = container_of(ref, struct request_queue, q_usage_counter); -swait_wake_all (&q->mq_freeze_wq); +swake_up_all (&q->mq_freeze_wq); }struct request_queue *blk_alloc_queue_node (gfp_t gfp_mask,int node_id)
@@ -742,7 +742,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id) q->bypass_depth =1 ;__set_bit (QUEUE_FLAG_BYPASS , &q->queue_flags); -init_swait_head (&q->mq_freeze_wq); +init_swait_queue_head (&q->mq_freeze_wq);/* * Init percpu_ref in atomic mode so that it's faster to shutdown.
block/blk-mq.c +2 -2
@@ -130,7 +130,7 @@ void blk_mq_unfreeze_queue(struct request_queue *q)WARN_ON_ONCE (freeze_depth <0 );if (!freeze_depth) {percpu_ref_reinit (&q->q_usage_counter); -swait_wake_all (&q->mq_freeze_wq); +swake_up_all (&q->mq_freeze_wq); } }EXPORT_SYMBOL_GPL (blk_mq_unfreeze_queue);
@@ -149,7 +149,7 @@ void blk_mq_wake_waiters(struct request_queue *q)* dying, we need to ensure that processes currently waiting on * the queue are notified as well. */ -swait_wake_all (&q->mq_freeze_wq); +swake_up_all (&q->mq_freeze_wq); }bool blk_mq_can_queue (struct blk_mq_hw_ctx *hctx)
drivers/clk/at91/clk-generated.c +53 -40
177 lines not on this page · raw message
drivers/clk/at91/clk-h32mx.c +20 -20
@@ -15,15 +15,9 @@#include <linux/clk-provider.h> #include <linux/clkdev.h> #include <linux/clk/at91_pmc.h> -#include <linux/delay.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_irq.h> -#include <linux/io.h> -#include <linux/interrupt.h> -#include <linux/irq.h> -#include <linux/sched.h> -#include <linux/wait.h> +#include <linux/regmap.h> +#include <linux/mfd/syscon.h> #include "pmc.h"
@@ -31,7 +25,7 @@struct clk_sama5d4_h32mx {struct clk_hw hw; -struct at91_pmc *pmc; +struct regmap *regmap; };#define to_clk_sama5d4_h32mx (hw) container_of(hw, struct clk_sama5d4_h32mx, hw)
@@ -40,8 +34,10 @@ static unsigned long clk_sama5d4_h32mx_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) {struct clk_sama5d4_h32mx *h32mxclk =to_clk_sama5d4_h32mx (hw); +unsigned int mckr; -if (pmc_read (h32mxclk->pmc,AT91_PMC_MCKR ) &AT91_PMC_H32MXDIV ) +regmap_read (h32mxclk->regmap,AT91_PMC_MCKR , &mckr); +if (mckr &AT91_PMC_H32MXDIV )return parent_rate /2 ;if (parent_rate >H32MX_MAX_FREQ )
@@ -70,18 +66,16 @@ static int clk_sama5d4_h32mx_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) {struct clk_sama5d4_h32mx *h32mxclk =to_clk_sama5d4_h32mx (hw); -struct at91_pmc *pmc = h32mxclk->pmc; -u32 tmp; +u32 mckr =0 ;if (parent_rate != rate && (parent_rate /2 ) != rate)return -EINVAL ; -pmc_lock (pmc); - tmp =pmc_read (pmc,AT91_PMC_MCKR ) & ~AT91_PMC_H32MXDIV ;if ((parent_rate /2 ) == rate) - tmp |=AT91_PMC_H32MXDIV ; -pmc_write (pmc,AT91_PMC_MCKR , tmp); -pmc_unlock (pmc); + mckr =AT91_PMC_H32MXDIV ; + +regmap_update_bits (h32mxclk->regmap,AT91_PMC_MCKR , +AT91_PMC_H32MXDIV , mckr);return 0 ; }
@@ -92,14 +86,18 @@ static const struct clk_ops h32mx_ops = { .set_rate = clk_sama5d4_h32mx_set_rate, }; -void __init of_sama5d4_clk_h32mx_setup (struct device_node *np, -struct at91_pmc *pmc) +static void __init of_sama5d4_clk_h32mx_setup (struct device_node *np) {struct clk_sama5d4_h32mx *h32mxclk;struct clk_init_data init;const char *parent_name; +struct regmap *regmap;struct clk *clk; + regmap =syscon_node_to_regmap (of_get_parent (np)); +if (IS_ERR (regmap)) +return ; + h32mxclk =kzalloc (sizeof (*h32mxclk),GFP_KERNEL );if (!h32mxclk)return ;
@@ -113,7 +111,7 @@ void __init of_sama5d4_clk_h32mx_setup(struct device_node *np, init.flags =CLK_SET_RATE_GATE ; h32mxclk->hw.init = &init; - h32mxclk->pmc = pmc; + h32mxclk->regmap = regmap; clk =clk_register (NULL , &h32mxclk->hw);if (!clk) {
@@ -123,3 +121,5 @@ void __init of_sama5d4_clk_h32mx_setup(struct device_node *np,of_clk_add_provider (np, of_clk_src_simple_get, clk); } +CLK_OF_DECLARE (of_sama5d4_clk_h32mx_setup,"atmel,sama5d4-clk-h32mx" , + of_sama5d4_clk_h32mx_setup);
drivers/clk/at91/clk-main.c +143 -181
681 lines not on this page · raw message
drivers/clk/at91/clk-master.c +37 -57
194 lines not on this page · raw message
drivers/clk/at91/clk-peripheral.c +78 -58
308 lines not on this page · raw message
drivers/clk/at91/clk-pll.c +65 -83
271 lines not on this page · raw message
drivers/clk/at91/clk-plldiv.c +20 -24
103 lines not on this page · raw message
drivers/clk/at91/clk-programmable.c +51 -45
210 lines not on this page · raw message
drivers/clk/at91/clk-slow.c +18 -16
@@ -13,17 +13,11 @@#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/clkdev.h> -#include <linux/slab.h> #include <linux/clk/at91_pmc.h> #include <linux/delay.h> #include <linux/of.h> -#include <linux/of_address.h> -#include <linux/of_irq.h> -#include <linux/io.h> -#include <linux/interrupt.h> -#include <linux/irq.h> -#include <linux/sched.h> -#include <linux/wait.h> +#include <linux/mfd/syscon.h> +#include <linux/regmap.h> #include "pmc.h" #include "sckc.h"
@@ -59,7 +53,7 @@ struct clk_slow_rc_osc {struct clk_sam9260_slow {struct clk_hw hw; -struct at91_pmc *pmc; +struct regmap *regmap; };#define to_clk_sam9260_slow (hw) container_of(hw, struct clk_sam9260_slow, hw)
@@ -393,8 +387,11 @@ void __init of_at91sam9x5_clk_slow_setup(struct device_node *np,static u8 clk_sam9260_slow_get_parent (struct clk_hw *hw) {struct clk_sam9260_slow *slowck =to_clk_sam9260_slow (hw); +unsigned int status; -return !!(pmc_read (slowck->pmc,AT91_PMC_SR ) &AT91_PMC_OSCSEL ); +regmap_read (slowck->regmap,AT91_PMC_SR , &status); + +return status &AT91_PMC_OSCSEL ?1 :0 ; }static const struct clk_ops sam9260_slow_ops = {
@@ -402,7 +399,7 @@ static const struct clk_ops sam9260_slow_ops = { };static struct clk *__init -at91_clk_register_sam9260_slow (struct at91_pmc *pmc, +at91_clk_register_sam9260_slow (struct regmap *regmap,const char *name,const char **parent_names,int num_parents)
@@ -411,7 +408,7 @@ at91_clk_register_sam9260_slow(struct at91_pmc *pmc,struct clk *clk =NULL ;struct clk_init_data init; -if (!pmc || !name) +if (!name)return ERR_PTR (-EINVAL );if (!parent_names || !num_parents)
@@ -428,7 +425,7 @@ at91_clk_register_sam9260_slow(struct at91_pmc *pmc, init.flags =0 ; slowck->hw.init = &init; - slowck->pmc = pmc; + slowck->regmap = regmap; clk =clk_register (NULL , &slowck->hw);if (IS_ERR (clk))
@@ -439,29 +436,34 @@ at91_clk_register_sam9260_slow(struct at91_pmc *pmc,return clk; } -void __init of_at91sam9260_clk_slow_setup (struct device_node *np, -struct at91_pmc *pmc) +static void __init of_at91sam9260_clk_slow_setup (struct device_node *np) {struct clk *clk;const char *parent_names[2 ];int num_parents;const char *name = np->name; +struct regmap *regmap; num_parents =of_clk_get_parent_count (np);if (num_parents !=2 )return ;of_clk_parent_fill (np, parent_names, num_parents); + regmap =syscon_node_to_regmap (of_get_parent (np)); +if (IS_ERR (regmap)) +return ;of_property_read_string (np,"clock-output-names" , &name); - clk =at91_clk_register_sam9260_slow (pmc, name, parent_names, + clk =at91_clk_register_sam9260_slow (regmap, name, parent_names, num_parents);if (IS_ERR (clk))return ;of_clk_add_provider (np, of_clk_src_simple_get, clk); } +CLK_OF_DECLARE (at91sam9260_clk_slow,"atmel,at91sam9260-clk-slow" , + of_at91sam9260_clk_slow_setup);/* * FIXME: All slow clk users are not properly claiming it (get + prepare +
drivers/clk/at91/clk-smd.c +30 -26
135 lines not on this page · raw message
drivers/clk/at91/clk-system.c +33 -63
191 lines not on this page · raw message
drivers/clk/at91/clk-usb.c +68 -55
115 lines not on this page · raw message
drivers/clk/at91/clk-utmi.c +24 -56
80 lines not on this page · raw message
drivers/clk/at91/pmc.c +2 -424
426 lines not on this page · raw message
drivers/clk/at91/pmc.h +3 -95
98 lines not on this page · raw message
drivers/usb/gadget/udc/atmel_usba_udc.c +10 -10
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/udc/atmel_usba_udc.h +2 -0
Lines of this file are not shown. View the raw message.
include/linux/swait.h new file +173 -0
173 lines not on this page · raw message
include/linux/wait-simple.h deleted +0 -207
207 lines not on this page · raw message
kernel/sched/swait.c new file +140 -0
140 lines not on this page · raw message
kernel/sched/wait-simple.c deleted +0 -115
115 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Hi,
Quoted 8 lines · Sebastian Andrzej Siewior
- AT91 got a little better. A larger patch series by Boris Brezillon has been merged. That means SAMA5 boots now. There is one warning left about invoking
free_irq()twice. I would be glad about some feedback from pre-SAMA5 SoC. Those which share UART and timer interrupt. It seems that that one I have here does not do this anymore.- A patch on top the AT91 series to avoid two warning while switching from period to oneshow mode.
I got this warning when booting my arietta G25:
clocksource: pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns:
14334453866 ns
------------[ cut here ]------------ WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1541 __free_irq+0xb0/0x2b0() Trying to free already-free IRQ 16 Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.4-rt11 #1 Hardware name: Atmel AT91SAM9 [<c000ecb8>] (unwind_backtrace) from [<c000cefc>] (show_stack+0x10/0x14) [<c000cefc>] (show_stack) from [<c00165ac>] (warn_slowpath_common+0x80/0xa8)
[<c00165ac>] (warn_slowpath_common) from [<c0016600>] (warn_slowpath_fmt+0x2c/0x3c)
[<c0016600>] (warn_slowpath_fmt) from [<c00409d4>] (__free_irq+0xb0/0x2b0) [<c00409d4>] (__free_irq) from [<c0040c60>] (free_irq+0x40/0x50) [<c0040c60>] (free_irq) from [<c03056fc>] (pit_clkevt_shutdown+0x24/0x2c) [<c03056fc>] (pit_clkevt_shutdown) from [<c0058e94>] (clockevents_switch_state+0xe8)
[<c0058e94>] (clockevents_switch_state) from [<c0058ee4>] (clockevents_shutdown+0x1)
[<c0058ee4>] (clockevents_shutdown) from [<c00597dc>] (tick_check_new_device+0x54/0)
[<c00597dc>] (tick_check_new_device) from [<c0058950>] (clockevents_register_device)
[<c0058950>] (clockevents_register_device) from [<c051e22c>] (clocksource_probe+0x4)
[<c051e22c>] (clocksource_probe) from [<c050aafc>] (start_kernel+0x248/0x35c)
[<c050aafc>] (start_kernel) from [<20008048>] (0x20008048)
---[ end trace 0000000000000001 ]---
Nevertheless it does boot, and seems to work fine.
Thanks,
Signature · 4 lines
Jean-Denis Girard SysNux Systèmes Linux en Polynésie française http://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.79.75.27
Quoted 1 line · Jean-Denis Girard
Hi,
Hi,
please don't cut people from TO and CC.
Quoted 17 lines · Sebastian Andrzej Siewior
Quoted 8 lines
- AT91 got a little better. A larger patch series by Boris Brezillon has been merged. That means SAMA5 boots now. There is one warning left about invoking
free_irq()twice. I would be glad about some feedback from pre-SAMA5 SoC. Those which share UART and timer interrupt. It seems that that one I have here does not do this anymore.- A patch on top the AT91 series to avoid two warning while switching from period to oneshow mode.
I got this warning when booting my arietta G25:
clocksource: pit: mask:
0xfffffffmax_cycles:0xfffffff,max_idle_ns:
14334453866 ns------------[ cut here ]------------ WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1541 __free_irq+0xb0/0x2b0()Trying to free already-free IRQ 16
…
Quoted 1 line
Nevertheless it does boot, and seems to work fine.
This looks promising. Can you check if IRQ 16 is used by another peripherals? While we need get rid fo the warning I am curious if it works on boards which chare the timer with UART or something.
Quoted 1 line
Thanks,
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
Hi,
Quoted 3 lines · Sebastian Andrzej Siewior
This looks promising. Can you check if IRQ 16 is used by another peripherals? While we need get rid fo the warning I am curious if it works on boards which chare the timer with UART or something.
Here are the interrupts, I hope this is what you want:
jdg@arietta:~$ cat /proc/interrupts
CPU0
16: 145825 atmel-aic 1 Level at91_rtc, ttyS0
17: 45661872 atmel-aic 17 Level tc_clkevt
18: 72014 atmel-aic 20 Level at_hdmac
19: 0 atmel-aic 21 Level at_hdmac
23: 2541144 atmel-aic 12 Level f0008000.mmc
26: 0 atmel-aic 10 Level f8014000.i2c
27: 0 atmel-aic 19 Level at91_adc
28: 0 atmel-aic 14 Level f0004000.spi
31: 1 atmel-aic 22 Level ehci_hcd:usb1, ohci_hcd:usb2
Err: 0The Arietta has been working fine for a couple of days with this kernel:
jdg@arietta:~$ uname -r 4.4.4-rt11 jdg@arietta:~$ uptime 14:30:06 up 2 days, 4:04, 1 user, load average: 0.00, 0.02, 0.05
Thanks,
Signature · 8 lines
Jean-Denis Girard SysNux Systèmes Linux en Polynésie française http://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.79.75.27 -- 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 1 line · Jean-Denis Girard
Hi,
Hi,
Quoted 4 lines
Here are the interrupts, I hope this is what you want:
jdg@arietta:~$ cat /proc/interrupts CPU0 16: 145825 atmel-aic 1 Level at91_rtc, ttyS0
Yes, thank you. This means that the IRQ can be re-used. Now we need to rid of the warning :)
Sebastian