All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Hurley <peter@hurleysoftware.com>
To: sparclinux@vger.kernel.org
Subject: Re: RED state exception (trap type 0x64) on U5 reboot
Date: Fri, 06 Dec 2013 15:54:24 +0000	[thread overview]
Message-ID: <52A1F330.5020800@hurleysoftware.com> (raw)
In-Reply-To: <alpine.SOC.1.00.1310151347070.902@math.ut.ee>

On 12/04/2013 10:35 AM, Meelis Roos wrote:
>>>>>> There were some changes to sunsab.c a couple of versions ago; maybe we
>>>>>> broke it.
>>>>>>
>>>>>> Can you confirm BRKs are being received with
>>>>>> 'sudo cat /proc/tty/driver/serial'
>>>>>
>>>>> In 3.12:
>>>>>
>>>>> # cat /proc/tty/driver/sunsab
>>>>> serinfo:1.0 driver revision:
>>>>> 0: uart:SAB82532 V3.2 mmio:0x1FFF1400000 irq:5 tx:5163 rx:0 CTS|DSR|CD
>>>>> 1: uart:SAB82532 V3.2 mmio:0x1FFF1400040 irq:5 tx:0 rx:
>>>>>
>>>>> cat /proc/sys/kernel/stop-a
>>>>> 1
>>>>>
>>>>> # cat /proc/sys/kernel/reboot-cmd
>>>>>
>>>>> (it was empty, so default "boot" should be used AFAIK)
>>>>
>>>> Meelis,
>>>>
>>>> Would you please re-test trying to break to the PROM with this debug
>>>> patch?  As with the bootpromfs debug patch, the output is in
>>>> '/sys/kernel/debug/trace'.
>>>
>>> Should I activate tracing somehow?
>>
>> You did activate tracing. The lack of output means at that point
>> there is no BRK detected. Can you trigger any sysrq function from
>> that terminal (assuming CONFIG_SERIAL_SUNSAB_CONSOLE && CONFIG_MAGIC_SYSRQ)?
>
> I can not trigger SysRq by sending a break and then immediately s (or t
> also tested). Nothing in trace. Magic SysRq is 0x1 like default in
> kernel conf. This in on the SUNSAB Ultra5 machine.

That's what I thought: just wanted to validate.

Not sure why no BRK is detected (isr1 & ISR1_BRK = 0). Maybe there is
an early-out that is ignoring BRK condition. Or the sunsab driver is not
reading/interpreting the correct register/bits.

You could instrument the irq handler, sunsab_interrupt(), with trace_printk()
to see if BRK is ever detected.

> E3500 with zs serial console has working break but I do now know how to
> send SysRq there - Break drops me to prom prompt, I can "go" there but
> anything after that is inteprreted as normal input.

I'm not sure how BRK is intended to be used for both the PROM console
and SysRq on a serial console. If you temporarily disable the PROM console,
the SysRq should work by typing a SysRq command char after sending a break.

[ FWIW, Minicom's break function sends a lot of BRKs because it's designed
to trigger a modem interrupt. AFAIK there isn't a 'single-char length
break' supported by minicom. ]

> How shoyukd SysRq
> over verial console work - have not used it before?

The first input after a BRK is interpreted as a SysRq command (within 5 secs).

Regards,
Peter Hurley

  parent reply	other threads:[~2013-12-06 15:54 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15 11:51 RED state exception (trap type 0x64) on U5 reboot Meelis Roos
2013-10-21  8:58 ` Meelis Roos
2013-10-23 15:00 ` Peter Hurley
2013-10-24 11:48 ` Meelis Roos
2013-11-17 20:35 ` Meelis Roos
2013-11-17 20:52 ` Meelis Roos
2013-11-18  6:21 ` Meelis Roos
2013-11-18 12:41 ` Peter Hurley
2013-11-18 13:51 ` Peter Hurley
2013-11-18 15:46 ` Meelis Roos
2013-11-19 14:23 ` Peter Hurley
2013-11-20 11:50 ` Peter Hurley
2013-11-27 17:39 ` Meelis Roos
2013-11-28  1:38 ` Meelis Roos
2013-11-28 16:47 ` Meelis Roos
2013-11-29  7:31 ` Meelis Roos
2013-11-30 21:42 ` Meelis Roos
2013-11-30 23:04 ` Peter Hurley
2013-11-30 23:07 ` Peter Hurley
2013-12-01  1:18 ` Peter Hurley
2013-12-01  1:31 ` Meelis Roos
2013-12-01  1:32 ` Meelis Roos
2013-12-01  2:07 ` Peter Hurley
2013-12-01  2:40 ` Peter Hurley
2013-12-01  8:16 ` Meelis Roos
2013-12-01 14:39 ` Peter Hurley
2013-12-03 16:11 ` Meelis Roos
2013-12-03 16:47 ` Peter Hurley
2013-12-04 15:35 ` Meelis Roos
2013-12-06 15:54 ` Peter Hurley [this message]
2014-06-16  9:21 ` Meelis Roos
2014-06-16 14:37 ` Peter Hurley
2014-06-16 15:14 ` Christoph Lameter
2014-06-17 10:38 ` Meelis Roos
2014-06-17 14:14 ` Christoph Lameter
2014-06-17 15:50 ` Meelis Roos

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=52A1F330.5020800@hurleysoftware.com \
    --to=peter@hurleysoftware.com \
    --cc=sparclinux@vger.kernel.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.