mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Interrupt randomness in 3.14.10-rt
@ 2014-07-11  2:24 Ben Hutchings
  2014-07-11  7:24 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2014-07-11  2:24 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: LKML, stable-rt

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]

I noticed this change between 3.14.3-rt5 and 3.14.10-rt7:

--- debian/patches/features/all/rt/random-make-it-work-on-rt.patch      (revision 21522)
+++ debian/patches/features/all/rt/random-make-it-work-on-rt.patch      (working copy)
[...]
---- a/kernel/irq/manage.c
-+++ b/kernel/irq/manage.c
-@@ -942,6 +942,12 @@ static int irq_thread(void *data)
-               if (action_ret == IRQ_HANDLED)
-                       atomic_inc(&desc->threads_handled);
- 
-+#ifdef CONFIG_PREEMPT_RT_FULL
-+              migrate_disable();
-+              add_interrupt_randomness(action->irq, 0,
-+                               desc->random_ip ^ (unsigned long) action);
-+              migrate_enable();
-+#endif
-               wake_threads_waitq(desc);
-       }
- 

(I.e. old patch included these additions, new patch doesn't.)

Evidently this was made in the announced 3.14.10-rt6, not -rt7.  Was it
intentional?  Now irq_desc::random_ip is set but never used.

Ben.

-- 
Ben Hutchings
To err is human; to really foul things up requires a computer.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Interrupt randomness in 3.14.10-rt
  2014-07-11  2:24 Interrupt randomness in 3.14.10-rt Ben Hutchings
@ 2014-07-11  7:24 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2014-07-11  7:24 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: LKML, stable-rt

On Fri, 11 Jul 2014, Ben Hutchings wrote:

> I noticed this change between 3.14.3-rt5 and 3.14.10-rt7:
> 
> --- debian/patches/features/all/rt/random-make-it-work-on-rt.patch      (revision 21522)
> +++ debian/patches/features/all/rt/random-make-it-work-on-rt.patch      (working copy)
> [...]
> ---- a/kernel/irq/manage.c
> -+++ b/kernel/irq/manage.c
> -@@ -942,6 +942,12 @@ static int irq_thread(void *data)
> -               if (action_ret == IRQ_HANDLED)
> -                       atomic_inc(&desc->threads_handled);
> - 
> -+#ifdef CONFIG_PREEMPT_RT_FULL
> -+              migrate_disable();
> -+              add_interrupt_randomness(action->irq, 0,
> -+                               desc->random_ip ^ (unsigned long) action);
> -+              migrate_enable();
> -+#endif
> -               wake_threads_waitq(desc);
> -       }
> - 
> 
> (I.e. old patch included these additions, new patch doesn't.)
> 
> Evidently this was made in the announced 3.14.10-rt6, not -rt7.  Was it
> intentional?  Now irq_desc::random_ip is set but never used.

Hmm, how did I lose that one? Thanks for spotting it! I'll pick it up for rt8

     tglx


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-11  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-11  2:24 Interrupt randomness in 3.14.10-rt Ben Hutchings
2014-07-11  7:24 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®