All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Vaughan <vaughana@umich.edu>
To: Gregory Dymarek <gregd72002@gmail.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] RaspberryPi kernel 3.8 issue
Date: Tue, 25 Feb 2014 18:45:05 -0500	[thread overview]
Message-ID: <CAK4EZFRerL7yrqD+nKzp0DyvYFvv+gxpBVqzKWbeyy2vbspiAg@mail.gmail.com> (raw)
In-Reply-To: <CAK4EZFRm-jd=0VrEjFVjE_h7dWu8nEBVi=HQijkgWXu2MBiPNQ@mail.gmail.com>

I forgot to add the *.txt extension to the above, sorry about that.


On Tue, Feb 25, 2014 at 6:42 PM, Adam Vaughan <vaughana@umich.edu> wrote:

> I don't have a WiFi or Bluetooth adapter with me to try at the moment, but
> I just tried booting with my USB flash drive installed prior to power on
> and didn't see an issue both with and without the USB FIQ enabled.  I can
> try with a Bluetooth adapter tomorrow, if needed.
>
> Your logs are more useful since they show the actual issue, but maybe my
> boot logs (attached) will be at least a little helpful in troubleshooting?
>  Also, the patch I listed above is only needed if you want to boot with the
> USB FIQ disabled.
>
>
> On Tue, Feb 25, 2014 at 6:20 PM, Gregory Dymarek <gregd72002@gmail.com>wrote:
>
>> well, this does not work for me. It boots fine when there is no USB device
>> plugged in.
>> However, when my WIFI or bluetooth adapter is plugged in, the boot log
>> shows: http://pastebin.com/vjLJVDGS
>>
>> I also tried the patch Adam suggests but it does not seem to affect
>> anything.
>>
>>
>>
>> On 25 February 2014 22:30, Adam Vaughan <vaughana@umich.edu> wrote:
>>
>> > I just tried the above patch and the warning doesn't show up at boot
>> > anymore.  I tried unplugging and plugging in a flash drive / keyboard
>> and
>> > saw no issues in dmesg.
>> >
>> > I mentioned it in a previous email, but just as a friendly reminder this
>> > patch is still needed to allow you to boot with a disabled FIQ:
>> >
>> > diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
>> > b/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
>> > index 19abea0..78172ea 100644
>> > --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
>> > +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
>> > @@ -742,8 +742,10 @@ int32_t dwc_otg_hcd_handle_sof_intr(dwc_otg_hcd_t *
>> > hcd)
>> >     }
>> >
>> >     /* Clear interrupt */
>> > -   //gintsts.b.sofintr = 1;
>> > -   //DWC_WRITE_REG32(&hcd->core_if->core_global_regs->gintsts,
>> > gintsts.d32);
>> > +   if (!fiq_fix_enable) {
>> > +       gintsts.b.sofintr = 1;
>> > +       DWC_WRITE_REG32(&hcd->core_if->core_global_regs->gintsts,
>> > gintsts.d32);
>> > +   }
>> >
>> >     return 1;
>> >  }
>> >
>> >
>> > On Tue, Feb 25, 2014 at 4:31 PM, Gilles Chanteperdrix <
>> > gilles.chanteperdrix@xenomai.org> wrote:
>> >
>> >> On 02/25/2014 10:09 PM, Gregory Dymarek wrote:
>> >> > So the frame freeze I got on my version is on line 145 in here:
>> >> >
>> https://github.com/raspberrypi/linux/blob/rpi-3.8.y/kernel/irq/handle.c
>> >> >
>> >> > The dwc_otg_hcd_handle_intr is here:
>> >> >
>> >>
>> https://github.com/raspberrypi/linux/blob/rpi-3.8.y/drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.c
>> >> >
>> >> >
>> >> > Is the line 523 the problem?
>> >> >     local_fiq_enable();
>> >>
>> >> Please try the following patch:
>> >>
>> >> diff --git a/arch/arm/include/asm/ipipe_hwirq.h
>> >> b/arch/arm/include/asm/ipipe_hwirq.h
>> >> index 6b864aa..bd8cda1 100644
>> >> --- a/arch/arm/include/asm/ipipe_hwirq.h
>> >> +++ b/arch/arm/include/asm/ipipe_hwirq.h
>> >> @@ -200,9 +200,9 @@ static inline void hard_local_irq_restore(unsigned
>> >> long x)
>> >>                 ipipe_unstall_root();                   \
>> >>         } while (0)
>> >>
>> >> -#define local_fiq_enable() ipipe_unstall_root()
>> >> +#define local_fiq_enable() hard_local_fiq_enable_notrace()
>> >>
>> >> -#define local_fiq_disable() ipipe_stall_root()
>> >> +#define local_fiq_disable() hard_local_fiq_disable_notrace()
>> >>
>> >>  #define arch_local_irq_restore(flags)                  \
>> >>         do {                                            \
>> >>
>> >>
>> >> --
>> >>                                                                 Gilles.
>> >>
>> >> _______________________________________________
>> >> Xenomai mailing list
>> >> Xenomai@xenomai.org
>> >> http://www.xenomai.org/mailman/listinfo/xenomai
>> >>
>> >
>> >
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> http://www.xenomai.org/mailman/listinfo/xenomai
>>
>
>

  reply	other threads:[~2014-02-25 23:45 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-23 21:27 [Xenomai] RaspberryPi kernel 3.8 issue Gregory Dymarek
2014-02-23 21:37 ` Gilles Chanteperdrix
2014-02-23 22:18   ` Gregory Dymarek
2014-02-23 22:36     ` Gilles Chanteperdrix
2014-02-23 22:37 ` Adam Vaughan
2014-02-23 23:08   ` Adam Vaughan
2014-02-23 23:30     ` Gregory Dymarek
2014-02-23 23:32       ` Gregory Dymarek
2014-02-23 23:42       ` Gilles Chanteperdrix
2014-02-24 21:19         ` Gregory Dymarek
2014-02-24 22:00           ` Gilles Chanteperdrix
2014-02-25 20:04             ` Gregory Dymarek
2014-02-25 20:20               ` Gilles Chanteperdrix
2014-02-25 20:23                 ` Gregory Dymarek
     [not found]                 ` <CAEbDrgkJCnbWu_J4svoXOU1x2rz=n95A5+3Ee=R_9CpMgx-JmA@mail.gmail.com>
2014-02-25 20:25                   ` Gilles Chanteperdrix
2014-02-25 20:43                     ` Gregory Dymarek
2014-02-25 20:50                       ` Gilles Chanteperdrix
2014-02-25 21:09                         ` Gregory Dymarek
2014-02-25 21:24                           ` Gilles Chanteperdrix
2014-02-25 21:28                             ` Gilles Chanteperdrix
2014-02-25 21:31                           ` Gilles Chanteperdrix
2014-02-25 22:30                             ` Adam Vaughan
2014-02-25 23:20                               ` Gregory Dymarek
2014-02-25 23:42                                 ` Adam Vaughan
2014-02-25 23:45                                   ` Adam Vaughan [this message]
2014-02-26  0:12                                     ` Gregory Dymarek
2014-02-26  0:22                                       ` Adam Vaughan
2014-02-26  0:33                                       ` Gilles Chanteperdrix
2014-02-26 10:00                                         ` Gregory Dymarek
2014-02-26 18:48                                           ` Adam Vaughan
2014-02-26 21:46                                           ` Gilles Chanteperdrix
2014-02-26 10:26                                       ` Paul
2014-02-25 23:51                                 ` Gilles Chanteperdrix
     [not found]                                   ` <CAEbDrgkWZqSxjCUfjR3YCp=YOzh1r-=YC6Wyr-Jvk9d7JYEcmQ@mail.gmail.com>
     [not found]                                     ` <530E6159.4050204@xenomai.org>
2014-02-26 22:37                                       ` Gregory Dymarek
2014-02-27 10:48                                         ` Gilles Chanteperdrix
2014-02-27 18:43                                           ` Gregory Dymarek
2014-02-27 20:14                                             ` Gilles Chanteperdrix
2014-02-27 20:33                                               ` Gregory Dymarek
2014-02-27 20:48                                                 ` Gilles Chanteperdrix
2014-02-27 20:58                                                   ` Gilles Chanteperdrix
2014-02-27 21:15                                                 ` Gilles Chanteperdrix
2014-02-27 22:54                                                   ` Gregory Dymarek
2014-02-28  1:12                                                   ` Paul
2014-02-28 11:42                                                     ` Gilles Chanteperdrix
2014-02-28 11:41                                                 ` Gilles Chanteperdrix
2014-03-01 12:27                                                   ` Gregory Dymarek
2014-03-02 15:11                                                     ` Gilles Chanteperdrix
2014-03-02 17:26                                                       ` Gregory Dymarek
2014-03-02 18:05                                                         ` Gilles Chanteperdrix
2014-03-02 18:16                                                         ` Gilles Chanteperdrix
     [not found]                                                           ` <CAEbDrg=2nX1kKOGt6i7b-w5AsLXkEyoJCGUMw1dkMXvka4MeKw@mail.gmail.com>
2014-03-02 18:55                                                             ` Gregory Dymarek
2014-03-02 18:57                                                             ` Gilles Chanteperdrix
2014-03-02 19:04                                                               ` Gilles Chanteperdrix
2014-03-02 19:08                                                                 ` Gregory Dymarek
2014-03-02 21:03                                                                   ` Gregory Dymarek
2014-02-24  0:22       ` Paul
2014-02-24  0:47         ` Adam Vaughan
2014-02-24  0:53           ` Adam Vaughan
2014-02-24  1:20             ` Adam Vaughan
2014-02-26 19:59 Gregory Dymarek
2014-02-26 20:29 ` Gregory Dymarek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK4EZFRerL7yrqD+nKzp0DyvYFvv+gxpBVqzKWbeyy2vbspiAg@mail.gmail.com \
    --to=vaughana@umich.edu \
    --cc=gregd72002@gmail.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.