Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2010-01-15 Thread Artyom Tarasenko
after running some OBP/forth tests on a real SS-20 I must say that most of our (especially my) speculations were wrong, as well as what is written in http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt : 1. SS-20 may loose interrupts. At least if a timer interrupt was low

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-17 Thread Blue Swirl
On Tue, Nov 17, 2009 at 12:35 AM, Jamie Lokier wrote: > Artyom Tarasenko wrote: >> I don't know, how the real sun4m reacts in the case where irq stays >> on, not being cleared. >> It can not be though that it would try to process irq for every next >> tick. The CPU must have some time to clear the

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/16 Blue Swirl : > On Mon, Nov 16, 2009 at 7:19 PM, Artyom Tarasenko > wrote: >> 2009/11/16 Blue Swirl : >>> On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko >>> wrote: 2009/11/15 Blue Swirl : > On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko > wrote: >> 2009/11/14 Blu

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/16 Jamie Lokier : > Artyom Tarasenko wrote: >> I don't know, how the real sun4m reacts in the case where irq stays >> on, not being cleared. >> It can not be though that it would try to process irq for every next >> tick. The CPU must have some time to clear the pending irq, so it must >> b

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Jamie Lokier
Artyom Tarasenko wrote: > I don't know, how the real sun4m reacts in the case where irq stays > on, not being cleared. > It can not be though that it would try to process irq for every next > tick. The CPU must have some time to clear the pending irq, so it must > be edge triggered too, at least in

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Jamie Lokier
Blue Swirl wrote: > This patch makes the interrupts latch: ignore source clearing the > interrupt. It seems be ~okay for my usual test setup, but does not > help NetBSD 1.3.3. Some other NetBSD tests are changed, but they > crashed before. I'd expect the worst that would happen is "spurious interr

Re: [Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Jamie Lokier
Artyom Tarasenko wrote: > 2009/11/15 Blue Swirl : > > On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko > > wrote: > >> 2009/11/14 Blue Swirl : > >>> On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko > >>> wrote: > According to NCR89C105 documentation > http://www.ibiblio.org/pub/histor

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Blue Swirl
On Mon, Nov 16, 2009 at 7:19 PM, Artyom Tarasenko wrote: > 2009/11/16 Blue Swirl : >> On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko >> wrote: >>> 2009/11/15 Blue Swirl : On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko wrote: > 2009/11/14 Blue Swirl : >> On Sat, Nov 14, 20

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/16 Blue Swirl : > On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko > wrote: >> 2009/11/15 Blue Swirl : >>> On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko >>> wrote: 2009/11/14 Blue Swirl : > On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko > wrote: >> According to N

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
> It looks like something is depending on this broken behaviour. Or that I shouldn't have used bitwise "not" where boolean "not" were actually meant. cpu_set_irq() is not the source of spurious interrupts, sorry for the noise.

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Blue Swirl
On Mon, Nov 16, 2009 at 1:47 PM, Artyom Tarasenko wrote: > 2009/11/15 Blue Swirl : >> On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko >> wrote: >>> 2009/11/14 Blue Swirl : On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko wrote: > According to NCR89C105 documentation > http:/

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-16 Thread Artyom Tarasenko
2009/11/15 Blue Swirl : > On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko > wrote: >> 2009/11/14 Blue Swirl : >>> On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko >>> wrote: According to NCR89C105 documentation http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-15 Thread Blue Swirl
On Sun, Nov 15, 2009 at 1:15 AM, Artyom Tarasenko wrote: > 2009/11/14 Blue Swirl : >> On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko >> wrote: >>> According to NCR89C105 documentation >>> http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt >>> >>> Interrupts are clear

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-14 Thread Artyom Tarasenko
2009/11/14 Blue Swirl : > On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko > wrote: >> According to NCR89C105 documentation >> http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt >> >> Interrupts are cleared by disabling and then re-enabling them. >> This patch implement

[Qemu-devel] Re: [PATCH] sparc32 irq clearing (guest Solaris performance+NetBSD) fix

2009-11-14 Thread Blue Swirl
On Sat, Nov 14, 2009 at 3:03 AM, Artyom Tarasenko wrote: > According to NCR89C105 documentation > http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt > > Interrupts are cleared by disabling and then re-enabling them. > This patch implements the specified behaviour. The mo