Re: sio+acpi woes on HP DL145 G2
On Sun, 9 Apr 2006, Paul Saab wrote: PS Mars G. Miro wrote: PS PS However, *sometimes* serial consoles work only for input (I can login PS and PS check new processes presence on ttyd0, but can not see any messages. PS Trouble PS is PS that this situation is not easy reproducible, and stty state seems to be PS the PS same. PS PS PS This is a bug in the HP BMC that HP blames on FreeBSD. The only way to work PS around it, is to have a custom getty that doesn't reset the port everytime PS you open it. Ah, thanks for the info! Is turning off setttymode() in getty/main.c for given port enough? I'd prefer to invent boolean getty capability such as nr (no reset) such as in patch attached. Or did I miss something? Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** Index: gettytab.h === RCS file: /home/ncvs/src/libexec/getty/gettytab.h,v retrieving revision 1.14 diff -u -r1.14 gettytab.h --- gettytab.h 10 Jun 2003 18:30:41 - 1.14 +++ gettytab.h 10 Apr 2006 11:05:43 - @@ -175,3 +175,4 @@ #defineHW gettyflags[23].value #defineNC gettyflags[24].value #definePL gettyflags[25].value +#defineNR gettyflags[26].value Index: init.c === RCS file: /home/ncvs/src/libexec/getty/init.c,v retrieving revision 1.16 diff -u -r1.16 init.c --- init.c 6 Apr 2005 17:42:24 - 1.16 +++ init.c 10 Apr 2006 11:05:43 - @@ -150,5 +150,6 @@ { hw, 0 },/* do CTSRTS flow control */ { nc, 0 },/* set clocal (no carrier) */ { pl, 0 },/* use PPP instead of login(1) */ + { nr, 0 },/* do not reset port on open */ { 0 } }; Index: main.c === RCS file: /home/ncvs/src/libexec/getty/main.c,v retrieving revision 1.47 diff -u -r1.47 main.c --- main.c 6 Apr 2005 17:42:24 - 1.47 +++ main.c 10 Apr 2006 11:05:43 - @@ -243,7 +243,8 @@ if (!opentty(ttyn, O_RDWR|O_NONBLOCK)) exit(1); defttymode(); - setttymode(1); + if (!NR) + setttymode(1); } if (IC) { @@ -297,7 +298,8 @@ } first_sleep = 0; - setttymode(0); + if (!NR) + setttymode(0); if (AB) { tname = autobaud(); dogettytab(); ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sio+acpi woes on HP DL145 G2
On 4/8/06, Dmitry Morozovsky [EMAIL PROTECTED] wrote: On Fri, 7 Apr 2006, Mars G. Miro wrote: MGM Greetz! MGM MGM I have an HP DL145 that I'm having problems with when connecting via MGM serial console. I think it's acpi-related. This is on 6.1-BETA4/amd64 MGM (5.X is the same also) [snip] It seems it's DL145 G2. We use three of them and did not see your problem. Yes it's a G2. Sorry i ommitted that information the first time. However, *sometimes* serial consoles work only for input (I can login and check new processes presence on ttyd0, but can not see any messages. Trouble is that this situation is not easy reproducible, and stty state seems to be the same. Does the box seem to hang when you do this? e.g., when you do not see any messages. What is you stop getty on ttyd0 and try to run two tip's? I'm not sure I get you, sorry ;-( Can you elaborate further? Thanks. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sio+acpi woes on HP DL145 G2
On Sun, 9 Apr 2006, Mars G. Miro wrote: MGM MGM I have an HP DL145 that I'm having problems with when connecting via MGM MGM serial console. I think it's acpi-related. This is on 6.1-BETA4/amd64 MGM MGM (5.X is the same also) MGM MGM [snip] MGM MGM It seems it's DL145 G2. We use three of them and did not see your problem. MGM MGM Yes it's a G2. Sorry i ommitted that information the first time. MGM MGM However, *sometimes* serial consoles work only for input (I can login and MGM check new processes presence on ttyd0, but can not see any messages. Trouble MGM is MGM that this situation is not easy reproducible, and stty state seems to be the MGM same. MGM MGM MGM Does the box seem to hang when you do this? e.g., when you do not see MGM any messages. Nope. The box is working properly: I checked it by logging via ssh and digging throoup list of processes and their states; the only data which can not get throudh is serial from G2 to serial console. I can (blindly) login, type `sleep 50' and see sleep process from ssh connection. After logout, getty _sometimes_ returns sio0 to the proper state, so 'login:' is visible on the other side. What is also interesting, that the box is _never_ in this state on boot phase or single user sh: only after getty/login, and not every time. MGM What is you stop getty on ttyd0 and try to run two tip's? MGM MGM MGM I'm not sure I get you, sorry ;-( Can you elaborate further? s/is/if/ of course. Try to disable getty in /etc/ttys, and start tip -9600 ttyd0 on G2 side - can you communicate with the other side? Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sio+acpi woes on HP DL145 G2
On 4/9/06, Dmitry Morozovsky [EMAIL PROTECTED] wrote: On Sun, 9 Apr 2006, Mars G. Miro wrote: MGM MGM I have an HP DL145 that I'm having problems with when connecting via MGM MGM serial console. I think it's acpi-related. This is on 6.1-BETA4/amd64 MGM MGM (5.X is the same also) MGM MGM [snip] MGM MGM It seems it's DL145 G2. We use three of them and did not see your problem. MGM MGM Yes it's a G2. Sorry i ommitted that information the first time. MGM MGM However, *sometimes* serial consoles work only for input (I can login and MGM check new processes presence on ttyd0, but can not see any messages. Trouble MGM is MGM that this situation is not easy reproducible, and stty state seems to be the MGM same. MGM MGM MGM Does the box seem to hang when you do this? e.g., when you do not see MGM any messages. Nope. The box is working properly: I checked it by logging via ssh and digging throoup list of processes and their states; the only data which can not get throudh is serial from G2 to serial console. I can (blindly) login, type `sleep 50' and see sleep process from ssh connection. After logout, getty _sometimes_ returns sio0 to the proper state, so 'login:' is visible on the other side. What is also interesting, that the box is _never_ in this state on boot phase or single user sh: only after getty/login, and not every time. MGM What is you stop getty on ttyd0 and try to run two tip's? MGM MGM MGM I'm not sure I get you, sorry ;-( Can you elaborate further? s/is/if/ of course. Try to disable getty in /etc/ttys, and start tip -9600 ttyd0 on G2 side - can you communicate with the other side? I tried your suggestion. I disabled the relevant ttyd0 entry in the DL145 G2's /etc/ttys and made the other box the server instead of the client (adding the same relevant /etc/ttys entry). The moment I HUP init on the other box, the effect is the same on the G2. The box is hung. Network services such as ssh just halt. ICMP still works tho. And as usual, acpi0 interrupts (and cpu consumption) hit thru the roof: irq9: acpi0 20218233254 I know that If i disable acpi the serial console works. There's a BIOS update but doesn't really seem relevant as it only fixes HBA stuff: http://h18004.www1.hp.com/support/files/server/us/download/23932.html ( add to that the lousy prerequisite I must have win2k/win2k3 installed ... g) Thanks. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sio+acpi woes on HP DL145 G2
On Sun, 9 Apr 2006, Mars G. Miro wrote: MGM There's a BIOS update but doesn't really seem relevant as it only MGM fixes HBA stuff: MGM http://h18004.www1.hp.com/support/files/server/us/download/23932.html MGM ( add to that the lousy prerequisite I must have win2k/win2k3 MGM installed ... g) Hmm, other BIOS Updates may be relevant, yes. Which version of Main BIOS do you have? Actually, you should not have win2k installed on the very same server; however, prior to iLO 1.21 you *must* use USB floppy to boot from. If you need to I can prepare .img files for dd for you - just drop a note ;-) I did not dig into these .EXE format though - it seems there should be rather straightforward process to extract floppy images from HP soft updates... Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sio+acpi woes on HP DL145 G2
On 4/9/06, Dmitry Morozovsky [EMAIL PROTECTED] wrote: On Sun, 9 Apr 2006, Mars G. Miro wrote: MGM There's a BIOS update but doesn't really seem relevant as it only MGM fixes HBA stuff: MGM http://h18004.www1.hp.com/support/files/server/us/download/23932.html MGM ( add to that the lousy prerequisite I must have win2k/win2k3 MGM installed ... g) Hmm, other BIOS Updates may be relevant, yes. Which version of Main BIOS do you have? Ok the box is: Phoenix Server BIOS 3 RELEASE 6.1 BIOS ROM ID HPSYSTEM BIOS - O05 BIOS Version 2.09 Build date 05/05/05 IPMI Specification V 1.5 BMC Firmware 1.00. And there's only 1 BIOS update on their site for this box. Actually, you should not have win2k installed on the very same server; however, prior to iLO 1.21 you *must* use USB floppy to boot from. If you need to I can prepare .img files for dd for you - just drop a note ;-) Actually I do not have win2k on it, I meant that the prerequisite for installing the new firmware is win2k/win2k3(w/c is a REAL PITA), as stated on their site in the URL I gave. I did not dig into these .EXE format though - it seems there should be rather straightforward process to extract floppy images from HP soft updates... That would be interesting :-) Thanks. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- [EMAIL PROTECTED] *** cheers mars ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sio+acpi woes on HP DL145 G2
Mars G. Miro wrote: However, *sometimes* serial consoles work only for input (I can login and check new processes presence on ttyd0, but can not see any messages. Trouble is that this situation is not easy reproducible, and stty state seems to be the same. This is a bug in the HP BMC that HP blames on FreeBSD. The only way to work around it, is to have a custom getty that doesn't reset the port everytime you open it. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]