linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Networking issues with 2.6.29
@ 2009-03-26 18:50 Yehuda Sadeh Weinraub
  2009-03-29 12:08 ` Nix
  0 siblings, 1 reply; 2+ messages in thread
From: Yehuda Sadeh Weinraub @ 2009-03-26 18:50 UTC (permalink / raw)
  To: user-mode-linux-devel

Network doesn't seem to work for me in 2.6.29, although it was working
in 2.6.28. System behavior seemed really strange, as it sometimes did
work when I was using the same uml machine, when using a different
user. Bisecting the kernel tree, revels a seemingly unrelated commit
that when reverted it fixes the problem:

commit 470c66239ef0336429b35345f3f615d47341e13b
Author: David Brownell <dbrownell@users.sourceforge.net>
Date:   Mon Dec 1 14:31:37 2008 -0800

    genirq: warn when IRQF_DISABLED may be ignored
...
iff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index c498a1b..7fd891c 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -635,6 +635,18 @@ int request_irq(unsigned int irq, irq_handler_t handler,
        struct irq_desc *desc;
        int retval;

+       /*
+        * handle_IRQ_event() always ignores IRQF_DISABLED except for
+        * the _first_ irqaction (sigh).  That can cause oopsing, but
+        * the behavior is classified as "will not fix" so we need to
+        * start nudging drivers away from using that idiom.
+        */
+       if ((irqflags & (IRQF_SHARED|IRQF_DISABLED))
+                       == (IRQF_SHARED|IRQF_DISABLED))
+               pr_warning("IRQ %d/%s: IRQF_DISABLED is not "
+                               "guaranteed on shared IRQs\n",
+                               irq, devname);
+
 #ifdef CONFIG_LOCKDEP
        /*
         * Lockdep wants atomic interrupt handlers:

I guess there are some timing issues?

Thanks,
Yehuda

------------------------------------------------------------------------------
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


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

* Re: [uml-devel] Networking issues with 2.6.29
  2009-03-26 18:50 [uml-devel] Networking issues with 2.6.29 Yehuda Sadeh Weinraub
@ 2009-03-29 12:08 ` Nix
  0 siblings, 0 replies; 2+ messages in thread
From: Nix @ 2009-03-29 12:08 UTC (permalink / raw)
  To: Yehuda Sadeh Weinraub; +Cc: user-mode-linux-devel

On 26 Mar 2009, Yehuda Sadeh Weinraub spake thusly:

> Network doesn't seem to work for me in 2.6.29, although it was working
> in 2.6.28. System behavior seemed really strange, as it sometimes did
> work when I was using the same uml machine, when using a different
> user. Bisecting the kernel tree, revels a seemingly unrelated commit
> that when reverted it fixes the problem:

I doubt it. This is a known race, particularly easy to reproduce on UP,
fixed by <http://patchwork.kernel.org/patch/14465/>, which causes
networking to go away at seemingly random moments. I had it everywhere
within ten minutes of upgrading...

> commit 470c66239ef0336429b35345f3f615d47341e13b
> Author: David Brownell <dbrownell@users.sourceforge.net>
> Date:   Mon Dec 1 14:31:37 2008 -0800
>
>     genirq: warn when IRQF_DISABLED may be ignored

This patch just adds an (annoying and useless to users) warning that's
printed at interface bringup time. If it makes the problem go away I'll
eat my hat.

------------------------------------------------------------------------------
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


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

end of thread, other threads:[~2009-03-29 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-26 18:50 [uml-devel] Networking issues with 2.6.29 Yehuda Sadeh Weinraub
2009-03-29 12:08 ` Nix

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