From: Jeff Garzik <jeff@garzik.org>
To: Thomas Reitmayr <treitmayr@devbase.at>
Cc: linux-ide@vger.kernel.org, Saeed Bishara <saeed@marvell.com>,
Lennert Buytenhek <buytenh@marvell.com>,
Martin Michlmayr <tbm@cyrius.com>
Subject: Re: [PATCH] sata_mv: Properly initialize main irq mask
Date: Mon, 26 Jan 2009 06:39:50 -0500 [thread overview]
Message-ID: <497DA106.7080909@garzik.org> (raw)
In-Reply-To: <1232825098.13899.52.camel@localhost>
Thomas Reitmayr wrote:
> Hi,
> I noticed that during initialization sata_mv.c assumes that the main
> interrupt mask has its default value of 0. The function
> mv_platform_probe(..) initializes a shadow irq mask with 0 assuming
> that's the value of the controller's register. Now
> mv_set_main_irq_mask(..) only writes the controller's register if the
> new value differs from the "shadowed" value. This is fatal when trying
> to disable all interrupts in mv_init_host(..), i.e. the following
> function call does not write anything to the main irq mask register:
> mv_set_main_irq_mask(host, ~0, 0);
>
> The effect I see on my machine (QNAP TS-109 II) with booting via kexec
> (with Linux as a 2nd-stage boot loader) is that if the sata_mv module
> was still loaded when performing kexec, then the new kernel's sata_mv
> module starts up with interrupts enabled. This results in an unhandled
> IRQ and breaks the boot process.
>
> The unhandled interrupt itself might also be fixed by Lennert's patch
> proposed at http://markmail.org/message/kwvzxstnlsa3s26w which I did not
> try yet.
> However I still propose to additionally initialize the shadow variable
> with the current contents of the main irq mask register to get both in
> sync and allow proper disabling the main irq mask. This fixes the
> unhandled irq on my machine.
>
>
> Signed-off-by: Thomas Reitmayr <treitmayr@devbase.at>
applied
prev parent reply other threads:[~2009-01-26 11:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-24 19:24 [PATCH] sata_mv: Properly initialize main irq mask Thomas Reitmayr
2009-01-26 11:39 ` Jeff Garzik [this message]
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=497DA106.7080909@garzik.org \
--to=jeff@garzik.org \
--cc=buytenh@marvell.com \
--cc=linux-ide@vger.kernel.org \
--cc=saeed@marvell.com \
--cc=tbm@cyrius.com \
--cc=treitmayr@devbase.at \
/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.