lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061120191013.GA30828@elte.hu>
Date:	Mon, 20 Nov 2006 20:10:13 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Sergei Shtylyov <sshtylyov@...mvista.com>
Cc:	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	linuxppc-dev@...abs.org, linux-kernel@...r.kernel.org,
	dwalker@...sta.com
Subject: Re: [PATCH] 2.6.18-rt7: PowerPC: fix breakage in threaded fasteoi type IRQ handlers


* Sergei Shtylyov <sshtylyov@...mvista.com> wrote:

> >-#else
> >-		set_irq_chip_and_handler_name(irq, &ioapic_chip,
> >-					      handle_edge_irq, "edge");
> >-#endif
> >+					 handle_edge_irq, "edge");
> 
>    Hm, why force edge flow on edge-triggered IRQs?

it doesnt do that. This, ontop of -rt4 restores it to the vanilla arch 
code.

> > 	if (desc->chip->mask_ack)
> > 		desc->chip->mask_ack(irq);
> > 	else {
> >-		desc->chip->mask(irq);
> >-		desc->chip->ack(irq);
> >+		if (desc->chip->mask)
> >+			desc->chip->mask(irq);
> >+		if (desc->chip->mask)
> >+			desc->chip->ack(irq);
> > 	}
> > }
> 
>    Hmm, that just won't do for PPC threaded fasteoi flows! What you'll 
> get is a threaded IRQ with EOI *never ever* issued, unless my PPC 
> patch is also in...

ok, how about the patch below in addition?

	Ingo

Index: linux/kernel/irq/chip.c
===================================================================
--- linux.orig/kernel/irq/chip.c
+++ linux/kernel/irq/chip.c
@@ -396,7 +398,7 @@ handle_fasteoi_irq(unsigned int irq, str
 	 */
 	if (redirect_hardirq(desc)) {
 		mask_ack_irq(desc, irq);
-		goto out_unlock;
+		goto out;
 	}
 
 	desc->status &= ~IRQ_PENDING;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ