Issues with SILO 1.4.11
Hello,
Recently we've tried to get the latest SILO (1.4.11) into the Debian unstable. Unfortunately, testing revealed that there is a regression:
Frans Pop has noted that when used on his Ultra 10, new SILO does not handle the timeout before booting correctly. On Ultra 10 it just sits at the boot prompt, waiting for someone to press Enter, which is pretty bad. It works fine on my Ultra 60. Frans has also confirmed, that if the changes in second/timer.c, introduced in 1.4.11 are reverted, the old behaviour is restored.
Another piece of information regarding new SILO, is that it still fails to boot SunFire V880 from CD. Stephen Frost was kind enough to test it on his machine, and sent me the following transcript:
Rebooting with command: boot cdrom
Boot device: /pci@8,700000/scsi@1/disk@6,0:f File and args:
SILO Version 1.4.11
Fast Data Access MMU Miss
{2} ok
Any ideas on what can be done to take care of these problems are welcome.
Best regards,
Jurij Smakov [email protected]
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
Quoted 9 lines · On Mon, 10 Apr 2006 18:53:44 -0700 (PDT) Jurij Smakov <[email protected]> wrote:
Another piece of information regarding new SILO, is that it still fails to boot SunFire V880 from CD. Stephen Frost was kind enough to test it on his machine, and sent me the following transcript:
Rebooting with command: boot cdrom
Boot device: /pci@8,700000/scsi@1/disk@6,0:f File and args:SILO Version 1.4.11 Fast Data Access MMU Miss {2} ok
From what we've seen in the Gentoo world, this seems to be true on most if not all UltraSPARC III or IIIi boxes currently. Systems reported to have the problem include Blade 1000s, 2000s, 2500s and Netra 240s.
I can readily reproduce here on a Blade 1000 with OBP version 4.16.4. However, it might be hard for me to debug as at least on a graphical console, it does not dump me back to OBP when it does this.
Cheers,
Signature · 2 lines
Jason Wever Gentoo/Sparc Team Co-Lead
From: Jurij Smakov <[email protected]>
Date: Mon, 10 Apr 2006 18:53:44 -0700 (PDT)
Quoted 11 lines
Another piece of information regarding new SILO, is that it still fails to boot SunFire V880 from CD. Stephen Frost was kind enough to test it on his machine, and sent me the following transcript:
Rebooting with command: boot cdrom
Boot device: /pci@8,700000/scsi@1/disk@6,0:f File and args:SILO Version 1.4.11 Fast Data Access MMU Miss {2} okAny ideas on what can be done to take care of these problems are welcome.
Send me a V880, that's how I got Niagara to work.
Hi folks,
I did a boot test on my U60 with the CD and can confirm that it works as readily reported. One issue I would like to rise, though.
For some silly reason I accidentally hit a wrong key during setting the http-proxy. After that, this character was shown as <XX> and could not be removed by either the DEL or the BS-key, I had to reboot. Just to let you know. But SILO is working just fine, the CD detects my Adaptec 29160 and wants to set up the partitions there. No real issues here.
Just to let you know.
Take care
Dieter Jurzitza
Quoted 8 lines
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von David S. Miller
Gesendet: Dienstag, 11. April 2006 07:51
An: [email protected]
Cc: [email protected]; [email protected]; [email protected]
Betreff: Re: Issues with SILO 1.4.11
****
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Quoted 6 lines · Jurij Smakov
Frans Pop has noted that when used on his Ultra 10, new SILO does not handle the timeout before booting correctly. On Ultra 10 it just sits at the boot prompt, waiting for someone to press Enter, which is pretty bad. It works fine on my Ultra 60. Frans has also confirmed, that if the changes in
second/timer.c, introduced in 1.4.11 are reverted, the old behaviour is restored.
From a "releasing the new silo version for Debian" point of view, I'm actually more concerned about this regression than adding support for hardware that was not supported in previous versions either.
What are the reasons the code in second/timer.c was changed?
That the sun4u_notimer support is still needed for a large class of hardware out there has been demonstrated by my tests.
Cheers,
Frans Pop
(Please keep my address in replies as I'm not subscribed to sparclinux.)
From: Frans Pop <[email protected]>
Date: Tue, 11 Apr 2006 20:21:50 +0200
Quoted 4 lines
What are the reasons the code in
second/timer.cwas changed?That the
sun4u_notimersupport is still needed for a large class of hardware out there has been demonstrated by my tests.
You cannot write to the %tick register on some cpu variants, it can only be written by the hypervisor.
Quoted 7 lines · David S. Miller
Quoted 4 lines
What are the reasons the code in
second/timer.cwas changed?That the
sun4u_notimersupport is still needed for a large class of hardware out there has been demonstrated by my tests.You cannot write to the %tick register on some cpu variants, it can only be written by the hypervisor.
Is it possible to test for that capability being present?
From: Frans Pop <[email protected]>
Date: Tue, 11 Apr 2006 23:37:43 +0200
Quoted 10 lines · David S. Miller
Quoted 7 lines
Quoted 4 lines
What are the reasons the code in
second/timer.cwas changed?That the
sun4u_notimersupport is still needed for a large class of hardware out there has been demonstrated by my tests.You cannot write to the %tick register on some cpu variants, it can only be written by the hypervisor.
Is it possible to test for that capability being present?
Not easily but yes, but the old code was buggy in other regards as well. It would need to be rewritten.
Quoted 9 lines · David S. Miller
From: Frans Pop <[email protected]>
Quoted 5 lines · David S. Miller
Quoted 2 lines
You cannot write to the %tick register on some cpu variants, it can only be written by the hypervisor.
Is it possible to test for that capability being present?
Not easily but yes, but the old code was buggy in other regards as well. It would need to be rewritten.
Hi Dave,
From what I can tell, the only thing which removed code in second/timer.c did is a) store the current value of the tick_cmpr register in the sun4u_tickcmpr variable and disable interrupts from tick_cmpr by setting bit 63 in it in sun4u_init_timer(); and b) restore the tick_cmpr value from the variable in close_timer(). Could you explain how the removal of this code could lead to the dramatic effect if timeout not being honoured? tick_cmpr register is not touched elsewhere in the code, and I would naively think that it should still work on *any* machine which has a tick register (which Ultra10 obviously has). Any pointers to documentation would be greatly appreciated.
Thanks,
Jurij Smakov [email protected]
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
From: Jurij Smakov <[email protected]>
Date: Tue, 11 Apr 2006 19:47:21 -0700 (PDT)
Quoted 10 lines
From what I can tell, the only thing which removed code in
second/timer.cdid is a) store the current value of thetick_cmprregister in thesun4u_tickcmprvariable and disable interrupts fromtick_cmprby setting bit 63 in it insun4u_init_timer(); and b) restore thetick_cmprvalue from the variable inclose_timer(). Could you explain how the removal of this code could lead to the dramatic effect if timeout not being honoured?tick_cmprregister is not touched elsewhere in the code, and I would naively think that it should still work on *any* machine which has a tick register (which Ultra10 obviously has). Any pointers to documentation would be greatly appreciated.
In fact the code was a nop as far as I could tell, that's why I removed it.
Perhaps we can put it back in, I don't know. I'm very busy with gdb and Mono bug fixing at the moment, so I don't have time to look at it right now.
From: Jurij Smakov <[email protected]>
Date: Tue, 11 Apr 2006 19:47:21 -0700 (PDT)
Quoted 10 lines
From what I can tell, the only thing which removed code in
second/timer.cdid is a) store the current value of thetick_cmprregister in thesun4u_tickcmprvariable and disable interrupts fromtick_cmprby setting bit 63 in it insun4u_init_timer(); and b) restore thetick_cmprvalue from the variable inclose_timer(). Could you explain how the removal of this code could lead to the dramatic effect if timeout not being honoured?tick_cmprregister is not touched elsewhere in the code, and I would naively think that it should still work on *any* machine which has a tick register (which Ultra10 obviously has). Any pointers to documentation would be greatly appreciated.
So here's the full analysis, thanks for the report.
First, a reminder that we can't write to the %tick register on sun4v, and since I thought this code couldn't possibly be doing anything I removed it. Obviously I was wrong and this code is needed for the timeout to work on Ultra10 as the reports indicate.
What the old code does is disable TICK interrupts by setting bit 63 of the %tick_cmpr register. That's the only functional effect of this code. It means that TICK interrupts will no longer arrive, and since OBP owns the trap table this means OBP is who would service the TICK interrupt on it's trap table.
So what it seems is happening on Ultra10 is that OBP has the TICK interrupts going, and instead of using the normal method of just advancing the %tick_cmpr register at every interrupt to schedule the next TICK interrupt, it decrements the value of %tick instead.
That's why getting rid of this code makes the timeout never trigger in SILO, the %tick register never gets past a certain value, since OBP just keeps dragging it backwards over and over at every TICK interrupt when %tick = %tick_cmpr.
Another thing I note is that writing %tick to zero is a very bad bug even on sun4u systems because it means that on pre-Ultra-III SMP the %tick register of the boot processor will be unsynchronized with all the other sibling cpus in the machine and we use that for timekeeping.
I think the thing to do is probably to restore the old code and only remove the line which writes "0" to %tick. I'll test that on my Niagara to make sure it doesn't regress.
I'll post the patch after I test it out.