From owner-freebsd-amd64@FreeBSD.ORG Fri Jul 25 23:53:41 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84FC21065673 for ; Fri, 25 Jul 2008 23:53:41 +0000 (UTC) (envelope-from peter@wemm.org) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 689338FC16 for ; Fri, 25 Jul 2008 23:53:41 +0000 (UTC) (envelope-from peter@wemm.org) Received: by wf-out-1314.google.com with SMTP id 24so2706163wfg.7 for ; Fri, 25 Jul 2008 16:53:41 -0700 (PDT) Received: by 10.142.207.8 with SMTP id e8mr728758wfg.195.1217028375003; Fri, 25 Jul 2008 16:26:15 -0700 (PDT) Received: by 10.142.255.21 with HTTP; Fri, 25 Jul 2008 16:26:14 -0700 (PDT) Message-ID: Date: Fri, 25 Jul 2008 16:26:14 -0700 From: "Peter Wemm" To: "Peter Jeremy" In-Reply-To: <20080725210950.GE74748@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200807251126.m6PBQ9Ww085651@freefall.freebsd.org> <11AB7428-134A-446D-AD68-4A7BFDC8E1C2@linuxgames.com> <20080725210950.GE74748@server.vk2pj.dyndns.org> Cc: gavin@freebsd.org, "Marvin Malkowski Jr." , freebsd-amd64@freebsd.org Subject: Re: amd64/125943: Serial Consoles do not work on amd64 freebsd X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 23:53:41 -0000 On Fri, Jul 25, 2008 at 2:09 PM, Peter Jeremy wrote: > On 2008-Jul-25 09:58:49 -0700, "Marvin Malkowski Jr." wrote: > [dmesg & init output trimmed] >>FreeBSD/amd64 (bigconvoy.telefragged.com) (ttyd0) >> >>login: > > OK, this is somewhat different to what I expected. The output you are > receiving means that the kernel has recognised and is using a serial > console. > >>I cannot enter any input at this point > > This implies that the console input path is not working, There is a race somewhere in the sio code that interacts badly with the 16550 emulation in the dell servers. I can reproduce this at will on the freebsd.org cluster. Usually just pressing 'enter' on the serial console will break it. Sometimes it takes pressing it two or three times. I "solved" it for some of the machines by adding a few 'usleep(10000)' calls in getty in a few strategic places. It reduced the problem, but not entirely. Interestingly, simply logging into the machine on the video console and killing the getty or login process on the serial console almost always revived it. What is most amusing is that it seems that just the output path is busted. When the console is hosed like this on our machines, you can log in and issue commands - just can't see the output. The machines I saw this on were from the 2950 series. 1.86GHz and 2.00GHz. I do not know if the sio driver is getting messed up, or if the *emulated* serial hardware is getting confused. There is no real 16550-style hardware on these machines. It is virtual hardware, so that it can be encapsulated in IPMI / serial-over-lan protocol via the bmc. >>sio0: configured irq 4 not in bitmap of probed irqs 0 >>sio0: port may not be enabled >>sio0: configured irq 4 not in bitmap of probed irqs 0 >>sio0: port may not be enabled > > This is definitely not correct and is likely to be the associated with > the problem. I don't understand why the SIO ports are probed twice. I don't think this is the cause. It attaches once. The 'not in bitmap' thing is expected for amd64 kernels though. It is harmless. It is because I didn't implement the isa-specific shared-interrupt detection code. Remember the old ISA slots where you could plug in serial cards on shared interrupts? Since there are (theoretically) no physical-isa-bus amd64 class machines in existence, I didn't see the need to add code to support this. BTW; please try the uart(4) driver instead of sio as well. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV "All of this is for nothing if we don't go to the stars" - JMS/B5 "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell