From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: Re: sparc32 git tree
Date: Tue, 18 Jul 2006 02:07:17 +0000 [thread overview]
Message-ID: <44BC4255.8020902@mc.net> (raw)
In-Reply-To: <44BBB08C.3090004@mc.net>
David Miller wrote:
> The sunzilog change, hmmm... :)
>
> This code works on my SBUS sparc64 machines using zilog serial,
> so I wonder what's going wrong.
>
> The sunzilog_alloc_tables() sets up the global list
> sunzilog_irq_chain.
>
> All the zilogs hang off of a single interrupt, and therefore
> we need that interrupt to process all zilogs in the system.
> That's why we pass sunzilog_irq_chain to request_irq().
>
> I double checked the prtconf for a typical SS20 machine,
> and both zilog devices have an identical IRQ specification.
>
> This is identical to the behavior of the driver before I made
> any changes, for example in 2.6.17.
>
> What could be happening is that the interrupt hits before the
> start of the UART struct and device are fully setup. Perhaps
> more of the uart_sunzilog_port initialization should be moved
> into sunzilog_alloc_tables(), but there are critical things
> we cannot initialize there because we don't have the of_device
> object handy yet.
>
> Ok, I think I see what's happening. We register sunzilog_interrupt
> before things like up->port.membase are fully setup. We init
> the first port, by calling sunzilog_init_hw() and that makes
> the chip interrupt, I guess. If that happens, the interrupt
> handler will try to read the channel registers of the other
> port as well, the pointer to which is still NULL.
>
> Bob, can you confirm this is what is happening by putting some
> NULL checks in sunzilog_interrupt or similar?
I was debugging with a serial console, so maybe that caused it to fail
easier. It triggered an interrupt before initializing the 2nd chip and
ZILOG_CHANNEL_FROM_PORT() was getting a NULL pointer in the interrupt
routine when it looped to the 2nd chip.
Bob
next prev parent reply other threads:[~2006-07-18 2:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-17 15:45 sparc32 git tree Bob Breuer
2006-07-17 17:57 ` Raymond Burns
2006-07-18 0:42 ` David Miller
2006-07-18 2:07 ` Bob Breuer [this message]
2006-07-18 3:51 ` David Miller
2006-07-18 4:04 ` David Miller
2006-07-18 4:33 ` Raymond Burns
2006-07-18 4:53 ` David Miller
2006-07-18 19:49 ` Raymond Burns
2006-07-18 19:50 ` Raymond Burns
2006-07-19 16:36 ` Raymond Burns
2006-07-20 5:45 ` David Miller
2006-07-21 3:50 ` Raymond Burns
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=44BC4255.8020902@mc.net \
--to=breuerr@mc.net \
--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.