From owner-freebsd-questions Fri Dec 8 01:12:40 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA13204 for questions-outgoing; Fri, 8 Dec 1995 01:12:40 -0800 (PST) Received: from relay1.oleane.net (Relay1.OLEANE.NET [194.2.1.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id BAA13189 for ; Fri, 8 Dec 1995 01:12:33 -0800 (PST) Received: from ocegr.fr (hydra.dtsmtp.ocegr.fr [194.2.64.3]) by relay1.oleane.net (8.6.10/8.6.9) with SMTP id KAA10092 for ; Fri, 8 Dec 1995 10:11:52 +0100 Received: from pyxis by ocegr.fr (5.0/SMI-SVR4) id AA13708; Fri, 8 Dec 1995 10:14:10 +0100 Message-Id: <9512080914.AA13708@ocegr.fr> To: questions@freebsd.org From: Gert-Jan.Vons@ocegr.fr Reply-To: Gert-Jan.Vons@ocegr.fr Subject: Re: 2.1R+PCVT+Xfree on Thinkpad (psm fix) Date: Fri, 08 Dec 1995 10:14:12 +0100 Sender: owner-questions@freebsd.org Precedence: bulk When booting my Thinkpad with a stock 2.1R kernel, either compiled with or without PSM_NO_RESET, I get the following; Dec 7 22:56:03 paddy /kernel: psm0 not found at 0x60 The patch below allows it to attach and data to be read from the device: Dec 7 23:19:15 paddy /kernel: psm0 at 0x60-0x63 irq 12 on motherboard Note that this driver is having other problems as well, like returning EAGAIN on a read(), even when O_NDELAY isn't set. I tried running XFree-3.1.1 (from the 2.0.5R distr) on my 2.1R setup, and the keyboard is indeed completely dead. Don't think it is related to the psm driver however, since I had the same problems when using a Logitech mouse on the serial port. This weekend, I will try XFree-3.1.2 from the 2.1R distr to see whether it makes a difference. But for now, it seems that there is something in the combination PCVT + scanset 2 + Xfree that is broken, since PCVT + Xfree(-3.1.1) works fine on my 2.1R desktop system. Anybody out there with a _working_ FBSD2.1R + PCVT + scanset 2 + Xfree setup ? Gert-Jan --------------------------------------------------------------------------- J.G. Vons, Oce engineering Creteil, France | E-mail: Gert-Jan.Vons@ocegr.fr *** psm.c.org Thu Sep 14 09:09:23 1995 --- psm.c Thu Dec 7 23:11:42 1995 *************** *** 153,163 **** --- 153,176 ---- psm_write_dev(ioport,0xff); /* Reset aux device */ psm_poll_status(); #endif + + #ifdef ORIG_CODE outb(ioport+CNTRL,0xa9); psm_poll_status(); outb(ioport+CNTRL,0xaa); c = inb(ioport+DATA); if(c&0x04) { + #else + /* + * My Thinkpad apparently doesn't like the 0xaa (internal motherboard + * controller selftest) command, the driver fails to attach during + * the boot. The 0xa9 (test mouse port) works fine, it should return + * 0x00 if everything is ok. - vons@ocegr.fr, 5 dec 95 + */ + outb(ioport+CNTRL,0xa9); + c = inb(ioport+DATA); + if(c != 0x00) { + #endif /* printf("PS/2 AUX mouse is not found\n");*/ psm_command(ioport,0x65); psmaddr[unit] = 0; /* Device not found */