From owner-freebsd-mobile Sun Jun 2 00:48:19 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA08099 for mobile-outgoing; Sun, 2 Jun 1996 00:48:19 -0700 (PDT) Received: from frig.mt.cs.keio.ac.jp (frig.mt.cs.keio.ac.jp [131.113.32.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA08082; Sun, 2 Jun 1996 00:48:11 -0700 (PDT) Received: (from hosokawa@localhost) by frig.mt.cs.keio.ac.jp (8.6.12+2.4W/3.4Wbeta3) id QAA02246; Sun, 2 Jun 1996 16:47:40 +0900 Date: Sun, 2 Jun 1996 16:47:40 +0900 Message-Id: <199606020747.QAA02246@frig.mt.cs.keio.ac.jp> To: msmith@atrad.adelaide.edu.au Cc: hardware@freebsd.org, mobile@freebsd.org, hosokawa@mt.cs.keio.ac.jp Subject: Re: Laptop hardware FOUND In-Reply-To: Your message of Sun, 2 Jun 1996 15:09:05 +0930 (CST). <199606020539.PAA26867@genesis.atrad.adelaide.edu.au> From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.18PL3] 1994-08/01(Mon) Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199606020539.PAA26867@genesis.atrad.adelaide.edu.au> msmith@atrad.adelaide.edu.au writes: >> # apmconf -e >> Unknown Original APM event 0x10 >> Unknown Original APM event 0xf >> Unknown Original APM Event 0xe >> Unknown Original APM Event 0xd According to APM 1.1 spec., event code 0x000c to 0x00ff is reserved for future extention of system events. So, this region can't be used for vendor-specific extention. 0x0200 to 0x02ff is "OEM-defined APM events". >> # zzz >> (beep, screen blanks, beep, screen comes back) >> resumed from suspended mode (slept 00:00:02) >> >> (close cover, system beeps and suspends correctly) >> (open cover, system wakes up OK) >> # apm >> (kernel traps) I want to know the result of following two tests. 1. Probe message of APM driver when you #define APM_DEBUG in apm.c 2. Result of apmconf and apm when you add "options FORCE_APM10" in your kernel config file. -- HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html Department of Computer Science, Keio University, Yokohama, Japan From owner-freebsd-mobile Sun Jun 2 00:50:38 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA08184 for mobile-outgoing; Sun, 2 Jun 1996 00:50:38 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA08176; Sun, 2 Jun 1996 00:50:35 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id RAA27031; Sun, 2 Jun 1996 17:41:43 +0930 From: Michael Smith Message-Id: <199606020811.RAA27031@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Sun, 2 Jun 1996 17:41:42 +0930 (CST) Cc: hardware@FreeBSD.ORG, mobile@FreeBSD.ORG In-Reply-To: <199606020539.PAA26867@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jun 2, 96 03:09:05 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Michael Smith stands accused of saying: > > APM status is unclear : the boot probe reports: I should clarify this: (wrt. Sharp PC9000) Close-the-lid snooze, and do-nothing snooze and wakeups work _perfectly_ OK, it's just running 'apm' (I thought I got it to run once, but it certainly doesn't now) that makes it unhappy. Nate, if there's anything I can help you with on the mobile- front, I'm finally in posession of something to test it on 8) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Sun Jun 2 01:57:27 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA10816 for mobile-outgoing; Sun, 2 Jun 1996 01:57:27 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA10808; Sun, 2 Jun 1996 01:57:23 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id SAA27121; Sun, 2 Jun 1996 18:48:11 +0930 From: Michael Smith Message-Id: <199606020918.SAA27121@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) Date: Sun, 2 Jun 1996 18:48:10 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, hardware@FreeBSD.org, mobile@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp In-Reply-To: <199606020747.QAA02246@frig.mt.cs.keio.ac.jp> from "HOSOKAWA Tatsumi" at Jun 2, 96 04:47:40 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk HOSOKAWA Tatsumi stands accused of saying: > > In article <199606020539.PAA26867@genesis.atrad.adelaide.edu.au> > msmith@atrad.adelaide.edu.au writes: > > >> # apmconf -e > >> Unknown Original APM event 0x10 > >> Unknown Original APM event 0xf > >> Unknown Original APM Event 0xe > >> Unknown Original APM Event 0xd > > According to APM 1.1 spec., event code 0x000c to 0x00ff is reserved > for future extention of system events. So, this region can't be used > for vendor-specific extention. 0x0200 to 0x02ff is "OEM-defined APM > events". ... so this means what? That Sharp are violating the APM spec with these events? > I want to know the result of following two tests. > > 1. Probe message of APM driver when you #define APM_DEBUG in apm.c apm0 on isa apm: APM BIOS version 0101 apm: Code32 0xf00f0000, Code16 0xf00f0000, Data 0xf0000400 apm: Code entry 0x0000d003, Idling CPU disabled, Management enabled apm: CS_limit=ffff, DS_limit=ffff apm: running in APM 1.0 compatible mode apm: Slow Idling CPU disabled Also various Add hook messages &c. : Add hook "system keyboard" Add hook "default suspend" Add hook "default resume" called apm_event_enable() > 2. Result of apmconf and apm when you add "options FORCE_APM10" in > your kernel config file. There's a typo in apm.c that prevents this from working initially, you've used 'kcd_apm.kdc_description' (that should be kdc_apm...) # apmconf # apmconf -e APM ioctl: cmd = 0x20005005 called apm_event_enable() Unknown Original APM Event 0x10 Unknown Original APM Event 0xf Unknown Original APM Event 0xe Unknown Original APM Event 0xd Received APM Event: PMEV_NOEVENT (...repeats at about 1 sec interval...) Note that if I say # apmconf -d # apmconf -e after this, the 'Original' events don't reappear. Also, if I have APM disabled, close the lid, open it and then enable it, the system goes into sleep mode and then comes back out again straight away. If I try this : # apm I get this : APM ioctl: cmd = 0x40185002 Fatal trap 12: page fault while in kernel mode (blah) Note that the instruction pointer doesn't appear to be in the kernel, it's 0x48:0xc43e, which I'm presuming is in the APM bios. The 'fault virtual address' is 0xfd45. Disks still sync OK, but the machine doesn't reboot cleanly (wedges during BIOS startup) Anything else I can offer? I'll have an Accton 2002 to test in the next couple of days, but I expect it'll be a painless exercise. 8) > HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Sun Jun 2 02:11:24 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA11252 for mobile-outgoing; Sun, 2 Jun 1996 02:11:24 -0700 (PDT) Received: from frig.mt.cs.keio.ac.jp (frig.mt.cs.keio.ac.jp [131.113.32.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA11230; Sun, 2 Jun 1996 02:11:12 -0700 (PDT) Received: (from hosokawa@localhost) by frig.mt.cs.keio.ac.jp (8.6.12+2.4W/3.4Wbeta3) id SAA02589; Sun, 2 Jun 1996 18:10:05 +0900 Date: Sun, 2 Jun 1996 18:10:05 +0900 Message-Id: <199606020910.SAA02589@frig.mt.cs.keio.ac.jp> To: msmith@atrad.adelaide.edu.au Cc: hardware@FreeBSD.org, mobile@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp Subject: Re: Laptop hardware FOUND In-Reply-To: Your message of Sun, 2 Jun 1996 18:48:10 +0930 (CST). <199606020918.SAA27121@genesis.atrad.adelaide.edu.au> From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.18PL3] 1994-08/01(Mon) Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> ... so this means what? That Sharp are violating the APM spec with these >> events? Yes, or this APM has a bug. >> apm0 on isa >> apm: APM BIOS version 0101 >> apm: Code32 0xf00f0000, Code16 0xf00f0000, Data 0xf0000400 ~~~~~~~~~~~~~~~ Okay, Data segment points too lower address, compared to other laptops. Please add "options APM_DSVALUE_BUG" in kernel config file and recompile apm.c. -- HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html Department of Computer Science, Keio University, Yokohama, Japan From owner-freebsd-mobile Sun Jun 2 02:19:13 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA11429 for mobile-outgoing; Sun, 2 Jun 1996 02:19:13 -0700 (PDT) Received: from frig.mt.cs.keio.ac.jp (frig.mt.cs.keio.ac.jp [131.113.32.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA11407; Sun, 2 Jun 1996 02:18:58 -0700 (PDT) Received: (from hosokawa@localhost) by frig.mt.cs.keio.ac.jp (8.6.12+2.4W/3.4Wbeta3) id SAA02645; Sun, 2 Jun 1996 18:18:55 +0900 Date: Sun, 2 Jun 1996 18:18:55 +0900 Message-Id: <199606020918.SAA02645@frig.mt.cs.keio.ac.jp> To: announce@freebsd.org, hackers@freebsd.org, mobile@freebsd.org Cc: hosokawa@mt.cs.keio.ac.jp Subject: [FreeBSD PCMCIA] pccard-test-960602 is now available! From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.18PL3] 1994-08/01(Mon) Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk New version of our PC-card (PCMCIA) package for FreeBSD 2.2-960501-SNAP is now available. You can get it from, ftp://ryukyu.mt.cs.keio.ac.jp/pub/FreeBSD/pccard/pccard-test-960602.tar.gz For more detailed information, please open http://www.mt.cs.keio.ac.jp/person/hosokawa/freebsd-pcmcia/ -- HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html Department of Computer Science, Keio University, Yokohama, Japan From owner-freebsd-mobile Sun Jun 2 02:49:57 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA12420 for mobile-outgoing; Sun, 2 Jun 1996 02:49:57 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA12415; Sun, 2 Jun 1996 02:49:53 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id TAA27202; Sun, 2 Jun 1996 19:40:51 +0930 From: Michael Smith Message-Id: <199606021010.TAA27202@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) Date: Sun, 2 Jun 1996 19:40:50 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, hardware@FreeBSD.org, mobile@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp In-Reply-To: <199606020910.SAA02589@frig.mt.cs.keio.ac.jp> from "HOSOKAWA Tatsumi" at Jun 2, 96 06:10:05 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk HOSOKAWA Tatsumi stands accused of saying: > > >> ... so this means what? That Sharp are violating the APM spec with these > >> events? > > Yes, or this APM has a bug. Fair enough. > >> apm0 on isa > >> apm: APM BIOS version 0101 > >> apm: Code32 0xf00f0000, Code16 0xf00f0000, Data 0xf0000400 > ~~~~~~~~~~~~~~~ > > Okay, Data segment points too lower address, compared to other > laptops. > > Please add "options APM_DSVALUE_BUG" in kernel config file and > recompile apm.c. Ok. Please patch your apm.c sources so that the APM_DSVALUE_BUG code uses apm_bios_work not apm_bioswork, and and M_DEVBUF not M_DEVBUG, as otherwise it won't compile 8) With APM_DEBUG, FORCE_APM10, APM_DSVALUE_BUG and APM_BROKEN_STATCLOCK, now reads 'Data 0xf084d000'. 'apm' still causes a trap 12 at 0x48:c43e with fva 0xfd45. Next? 8) > HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Sun Jun 2 03:36:46 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA13806 for mobile-outgoing; Sun, 2 Jun 1996 03:36:46 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA13797 for ; Sun, 2 Jun 1996 03:36:44 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id UAA27261 for mobile@freebsd.org; Sun, 2 Jun 1996 20:27:56 +0930 From: Michael Smith Message-Id: <199606021057.UAA27261@genesis.atrad.adelaide.edu.au> Subject: APM on Sharp PC9000 (was laptop FOUND) To: mobile@freebsd.org Date: Sun, 2 Jun 1996 20:27:55 +0930 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ok, Hosakawa-san (is that the correct way to phrase it?) and others, just to follow through on the recent happenings. I've taken the 960501-SNAP sources and the just-release PCCARD patches, and these yield a working APM system. I'll tinker a bit more, and then wait directions from Nate wrt. moving parts of the new package over to -current. Thanks again for your rapid response; hopefully I can contribute to the project at some stage! -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Sun Jun 2 03:42:26 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA13931 for mobile-outgoing; Sun, 2 Jun 1996 03:42:26 -0700 (PDT) Received: from frig.mt.cs.keio.ac.jp (frig.mt.cs.keio.ac.jp [131.113.32.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA13903; Sun, 2 Jun 1996 03:42:03 -0700 (PDT) Received: (from hosokawa@localhost) by frig.mt.cs.keio.ac.jp (8.6.12+2.4W/3.4Wbeta3) id TAA03106; Sun, 2 Jun 1996 19:41:23 +0900 Date: Sun, 2 Jun 1996 19:41:23 +0900 Message-Id: <199606021041.TAA03106@frig.mt.cs.keio.ac.jp> To: msmith@atrad.adelaide.edu.au Cc: hardware@FreeBSD.org, mobile@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp Subject: Re: Laptop hardware FOUND In-Reply-To: Your message of Sun, 2 Jun 1996 19:40:50 +0930 (CST). <199606021010.TAA27202@genesis.atrad.adelaide.edu.au> From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.18PL3] 1994-08/01(Mon) Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> Ok. Please patch your apm.c sources so that the APM_DSVALUE_BUG >> code uses apm_bios_work not apm_bioswork, and and M_DEVBUF not M_DEVBUG, >> as otherwise it won't compile 8) This typo has been fixed by our latest pccard package :-). >> With APM_DEBUG, FORCE_APM10, APM_DSVALUE_BUG and APM_BROKEN_STATCLOCK, >> now reads 'Data 0xf084d000'. 'apm' still causes a trap 12 at >> 0x48:c43e with fva 0xfd45. >> >> Next? 8) I have no idea :-). Trap 12 of 386 architecture is "stack fault". This probably means that intersegment call/return to APM BIOS or internal procedure of APM BIOS causes stack overflow or underflow. But I think that intersegment call/return (yes, I wrote it) is not guilty because this is machine-independent operation, and the trap happens at 0x48:c43e. 0x48 means that segment index is 0x9 and priv. level is zero. Hmm... Index 0x9???? Index 0x9 is 16bit APM API segment. 32bit API segment is 0x8. Why? Target of the APM driver is set at apm_addr in apm.c. I believe that apm_addr is set to 0x40:(sc->cs_entry) at apmattach(), but the trap happens at 0x48:xxxx??? apm_addr.segment = GSEL(GAPMCODE32_SEL, SEL_KPL); apm_addr.offset = sc->cs_entry; GAPMCODE32_SEL is 8 and SEL_KPL is 0, and GSEL is #define GSEL(s,r) (((s)<<3) | r) /* a global selector */ (in machine/segments.h) so, GSEL(GAPMCODE32_SEL, SEL_KPL) should be 0x40.... I'm confused now.... (but it should not be the problem because probe message says that the 16bit API address is same as the 32bit API address. In such case, APM is written in machine opecodes that do not changes their behavior whether CPU is in 32bit mode or 16bit mode.) -- HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html Department of Computer Science, Keio University, Yokohama, Japan From owner-freebsd-mobile Sun Jun 2 04:05:02 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA14793 for mobile-outgoing; Sun, 2 Jun 1996 04:05:02 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA14764; Sun, 2 Jun 1996 04:04:58 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id UAA27309; Sun, 2 Jun 1996 20:55:53 +0930 From: Michael Smith Message-Id: <199606021125.UAA27309@genesis.atrad.adelaide.edu.au> Subject: APM on Sharp PC9000 (was laptop FOUND) To: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) Date: Sun, 2 Jun 1996 20:55:52 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, hardware@FreeBSD.org, mobile@FreeBSD.org, hosokawa@mt.cs.keio.ac.jp In-Reply-To: <199606021041.TAA03106@frig.mt.cs.keio.ac.jp> from "HOSOKAWA Tatsumi" at Jun 2, 96 07:41:23 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk HOSOKAWA Tatsumi stands accused of saying: > > >> Ok. Please patch your apm.c sources so that the APM_DSVALUE_BUG > >> code uses apm_bios_work not apm_bioswork, and and M_DEVBUF not M_DEVBUG, > >> as otherwise it won't compile 8) > > This typo has been fixed by our latest pccard package :-). Got your announcement just after I posted the last message. I've moved to using it for now. > >> With APM_DEBUG, FORCE_APM10, APM_DSVALUE_BUG and APM_BROKEN_STATCLOCK, > >> now reads 'Data 0xf084d000'. 'apm' still causes a trap 12 at > >> 0x48:c43e with fva 0xfd45. > >> > >> Next? 8) > > I have no idea :-). I think part of my trouble may be from using 'config -n' (puts on pointed hat) and just rebuilding 'apm.c'. I built the first kernel from your Nomad code with both FORCE_APM10 and APM_DSVALUE_BUG, and 'apm' worked, but every subsequent build, even with the same options, has failed. I'll post again when I'm _really_ sure of what works 8) Then I just need to find an X server that works. 8) > HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Mon Jun 3 07:44:30 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA20019 for mobile-outgoing; Mon, 3 Jun 1996 07:44:30 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA20002; Mon, 3 Jun 1996 07:44:23 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id IAA12911; Mon, 3 Jun 1996 08:42:39 -0600 Date: Mon, 3 Jun 1996 08:42:39 -0600 From: Nate Williams Message-Id: <199606031442.IAA12911@rocky.sri.MT.net> To: Michael Smith Cc: hardware@FreeBSD.org, mobile@FreeBSD.org Subject: Re: Laptop hardware FOUND In-Reply-To: <199606020811.RAA27031@genesis.atrad.adelaide.edu.au> References: <199606020539.PAA26867@genesis.atrad.adelaide.edu.au> <199606020811.RAA27031@genesis.atrad.adelaide.edu.au> Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Michael Smith writes: > Michael Smith stands accused of saying: > > > > APM status is unclear : the boot probe reports: > > I should clarify this: (wrt. Sharp PC9000) > > Close-the-lid snooze, and do-nothing snooze and wakeups work _perfectly_ > OK, it's just running 'apm' (I thought I got it to run once, but it > certainly doesn't now) that makes it unhappy. > > Nate, if there's anything I can help you with on the mobile- front, I'm > finally in posession of something to test it on 8) Cool. Hosokawa already responded to the unknown event code problems, but the hang is a new one. It may be the 'WD-interrupt' bug, which I see quite often. Basically, our IDE driver is single threaded, so if you miss an interrupt it'll wait forever for it rather than timing out. Unfortunately, because of this bug it's *really* hard to debug other parts of the system since you never know which bug is triggered. Nate From owner-freebsd-mobile Mon Jun 3 19:00:58 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA04249 for mobile-outgoing; Mon, 3 Jun 1996 19:00:58 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA04230; Mon, 3 Jun 1996 19:00:47 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id LAA03656; Tue, 4 Jun 1996 11:52:14 +0930 From: Michael Smith Message-Id: <199606040222.LAA03656@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: nate@sri.MT.net (Nate Williams) Date: Tue, 4 Jun 1996 11:52:14 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, hardware@FreeBSD.ORG, mobile@FreeBSD.ORG In-Reply-To: <199606031442.IAA12911@rocky.sri.MT.net> from "Nate Williams" at Jun 3, 96 08:42:39 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Nate Williams stands accused of saying: > > Cool. Hosokawa already responded to the unknown event code problems, > but the hang is a new one. It may be the 'WD-interrupt' bug, which I > see quite often. Basically, our IDE driver is single threaded, so if > you miss an interrupt it'll wait forever for it rather than timing out. ... so would adding a timeout or a missed-interrupt kicker be a good idea? (Something like the one in the 'sio' driver that catches lost serial interrupts?) > Unfortunately, because of this bug it's *really* hard to debug other > parts of the system since you never know which bug is triggered. The hang _must_ be something in the pccard code; if I eject the card before I close the lid, it suspends OK. I can reinsert it after I resume and all is well again. It's not edsuspend : static void edsuspend(struct pccard_dev *dp) { printf("ed%d: suspending\n", dp->isahd.id_unit); } ... I'm guessing that it probably has to do with powering the slot down. I need to spend some time with it when I'm not running a fever or being pressured to do Real Work. I may get a chance tonight if I can find some appropriate drugs to kill the pain. > Nate -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Mon Jun 3 21:03:20 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA11887 for mobile-outgoing; Mon, 3 Jun 1996 21:03:20 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id VAA11882; Mon, 3 Jun 1996 21:03:18 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id VAA03905 ; Mon, 3 Jun 1996 21:03:16 -0700 Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id WAA16218; Mon, 3 Jun 1996 22:00:23 -0600 Date: Mon, 3 Jun 1996 22:00:23 -0600 From: Nate Williams Message-Id: <199606040400.WAA16218@rocky.sri.MT.net> To: Michael Smith Cc: nate@sri.MT.net (Nate Williams), hardware@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: Laptop hardware FOUND In-Reply-To: <199606040222.LAA03656@genesis.atrad.adelaide.edu.au> References: <199606031442.IAA12911@rocky.sri.MT.net> <199606040222.LAA03656@genesis.atrad.adelaide.edu.au> Sender: owner-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > The hang _must_ be something in the pccard code; if I eject the card before > I close the lid, it suspends OK. I can reinsert it after I resume and > all is well again. > > It's not edsuspend : > > static void > edsuspend(struct pccard_dev *dp) > { > printf("ed%d: suspending\n", dp->isahd.id_unit); > } > > ... I'm guessing that it probably has to do with powering the slot down. I > need to spend some time with it when I'm not running a fever or being > pressured to do Real Work. I may get a chance tonight if I can find some > appropriate drugs to kill the pain. Someone just posted a patch on Usenet regarding the pccardd driver, but it causes a core dump, not a hang. If you could send me a traceback of the offending process it'd sure help me out. Unfortunately, my laptop hacking time has been NIL the past 2 months, which is why I haven't done any more of the integration. I've been on travel most of the time, and I'm leaving again this week after being away for 2 weeks or I'd have more time to look at this stuff. Nate From owner-freebsd-mobile Mon Jun 3 21:54:36 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA14983 for mobile-outgoing; Mon, 3 Jun 1996 21:54:36 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA14978 for ; Mon, 3 Jun 1996 21:54:33 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id OAA04989; Tue, 4 Jun 1996 14:46:36 +0930 From: Michael Smith Message-Id: <199606040516.OAA04989@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: nate@sri.MT.net (Nate Williams) Date: Tue, 4 Jun 1996 14:46:36 +0930 (CST) Cc: mobile@freebsd.org, nate@sri.MT.net In-Reply-To: <199606040400.WAA16218@rocky.sri.MT.net> from "Nate Williams" at Jun 3, 96 10:00:23 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams stands accused of saying: > > > > ... I'm guessing that it probably has to do with powering the slot down. I > > need to spend some time with it when I'm not running a fever or being > > pressured to do Real Work. I may get a chance tonight if I can find some > > appropriate drugs to kill the pain. > > Someone just posted a patch on Usenet regarding the pccardd driver, but > it causes a core dump, not a hang. If you could send me a traceback of > the offending process it'd sure help me out. Uhh, no process crash here. I get a trap 12 somewhere in the APM bios if I try to use the 'apm' command (though it's worked a couple of times, but I don't know why). And the system goes away and never comes back if I suspend with the ethernet card in it. > Unfortunately, my laptop hacking time has been NIL the past 2 months, > which is why I haven't done any more of the integration. I've been on > travel most of the time, and I'm leaving again this week after being > away for 2 weeks or I'd have more time to look at this stuff. Sheesh, talk about being on the run 8( > Nate -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Tue Jun 4 08:09:25 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA20260 for mobile-outgoing; Tue, 4 Jun 1996 08:09:25 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA20254 for ; Tue, 4 Jun 1996 08:09:20 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id BAA07857 for mobile@freebsd.org; Wed, 5 Jun 1996 01:01:55 +0930 From: Michael Smith Message-Id: <199606041531.BAA07857@genesis.atrad.adelaide.edu.au> Subject: Solved suspend hang with if_ed driver To: mobile@freebsd.org Date: Wed, 5 Jun 1996 01:01:54 +0930 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I hope the Right People are subscribed to this list 8) I've found the 'suspend wedge' I was getting with the Accton 2216 (ed) PC-Card and my Sharp notebook; when the slot is shut down, the card generates a spurious interrupt which is never cleared (obviously because the card is gone 8) Part of the fix is simple; change edsuspend to read : static void edsuspend(struct pccard_dev *dp) { struct ed_softc *sc = &ed_softc[dp->isahd.id_unit]; printf("ed%d: suspending\n", dp->isahd.id_unit); sc->gone = 1; /* avoid interrupt spin on suspend */ } Not so simple is how to clear it again, or whether the card should be fully unloaded and then reloaded again on resume. Any ideas? I don't have a network here to test on at the moment, so I can't actually tell if the card has come back to life despite sc->gone being set, or whether it's deaf to interrupts (I suspect this...) If the card's been powered down is it likely to need reconfiguring, or do PC-Cards tend to retain their configuration across suspends? (Yes, I'll be investigating this when I get the time, but I'm sure someone else knows 8) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Tue Jun 4 08:13:15 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA20410 for mobile-outgoing; Tue, 4 Jun 1996 08:13:15 -0700 (PDT) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA20405 for ; Tue, 4 Jun 1996 08:13:10 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with SMTP id IAA02370 for ; Tue, 4 Jun 1996 08:13:08 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id JAA17185; Tue, 4 Jun 1996 09:09:01 -0600 Date: Tue, 4 Jun 1996 09:09:01 -0600 From: Nate Williams Message-Id: <199606041509.JAA17185@rocky.sri.MT.net> To: Michael Smith Cc: nate@sri.MT.net (Nate Williams), mobile@freebsd.org Subject: Re: Laptop hardware FOUND In-Reply-To: <199606040516.OAA04989@genesis.atrad.adelaide.edu.au> References: <199606040400.WAA16218@rocky.sri.MT.net> <199606040516.OAA04989@genesis.atrad.adelaide.edu.au> Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > ... I'm guessing that it probably has to do with powering the slot down. I > > > need to spend some time with it when I'm not running a fever or being > > > pressured to do Real Work. I may get a chance tonight if I can find some > > > appropriate drugs to kill the pain. > > > > Someone just posted a patch on Usenet regarding the pccardd driver, but > > it causes a core dump, not a hang. If you could send me a traceback of > > the offending process it'd sure help me out. > > Uhh, no process crash here. I get a trap 12 somewhere in the APM bios if > I try to use the 'apm' command (though it's worked a couple of times, > but I don't know why). And the system goes away and never comes back > if I suspend with the ethernet card in it. Did using the APM_DSVALUE_BUG hack fix that? Re: the suspend and never come back. That's a tough one, since the APM BIOS is in complete control of the system, so it's *extremely* hard to debug the system coming back. Nate From owner-freebsd-mobile Tue Jun 4 08:16:31 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA20511 for mobile-outgoing; Tue, 4 Jun 1996 08:16:31 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA20506 for ; Tue, 4 Jun 1996 08:16:25 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id BAA07872; Wed, 5 Jun 1996 01:08:42 +0930 From: Michael Smith Message-Id: <199606041538.BAA07872@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: nate@sri.MT.net (Nate Williams) Date: Wed, 5 Jun 1996 01:08:42 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, nate@sri.MT.net, mobile@freebsd.org In-Reply-To: <199606041509.JAA17185@rocky.sri.MT.net> from "Nate Williams" at Jun 4, 96 09:09:01 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams stands accused of saying: > > > > Uhh, no process crash here. I get a trap 12 somewhere in the APM bios if > > I try to use the 'apm' command (though it's worked a couple of times, > > but I don't know why). And the system goes away and never comes back > > if I suspend with the ethernet card in it. > > Did using the APM_DSVALUE_BUG hack fix that? No. I've had 'apm' work a couple of times; I think one of them was running the GENERIC kernel with the dormant 'apm' driver enabled, but I'm not totally sure there. As I said, it's not too critical just yet. > Re: the suspend and never come back. That's a tough one, since the APM > BIOS is in complete control of the system, so it's *extremely* hard to > debug the system coming back. See my other post on this for more juice. The BIOS in the Sharp actually seems to be quite civilised; I can hotkey-suspend, hotkey into the APM setup screen, and even hotkey the speaker volume up and down without it appearing to faze the system at all. (Although while I was tinkering with that I noticed that the kernel build I was doing was taking a _long_ time. I dunno whether it went into some sort of 'crawl' mode or what. 'systat -vmstat' showed the CPU maxed out, but the next build I did (just watching the files flip by) was much quicker. Anyway, if I can resolve restarting the 'ed' card, I'm in business 8) And here I was expecting that I'd have to start by hacking on the 'wdc' support. What an anticlimax 8) And speaking of hackery, is it normal for the pcic to share an interrupt with another port? I was half hoping to use the IR port, but it's on the same interrupt as the pcic, so it never probes... > Nate -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Tue Jun 4 08:28:10 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA20894 for mobile-outgoing; Tue, 4 Jun 1996 08:28:10 -0700 (PDT) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA20889 for ; Tue, 4 Jun 1996 08:28:03 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with SMTP id IAA03156 for ; Tue, 4 Jun 1996 08:27:55 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id JAA17249; Tue, 4 Jun 1996 09:23:54 -0600 Date: Tue, 4 Jun 1996 09:23:54 -0600 From: Nate Williams Message-Id: <199606041523.JAA17249@rocky.sri.MT.net> To: Michael Smith Cc: nate@sri.MT.net (Nate Williams), mobile@freebsd.org Subject: Re: Laptop hardware FOUND In-Reply-To: <199606041538.BAA07872@genesis.atrad.adelaide.edu.au> References: <199606041509.JAA17185@rocky.sri.MT.net> <199606041538.BAA07872@genesis.atrad.adelaide.edu.au> Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > Uhh, no process crash here. I get a trap 12 somewhere in the APM bios if > > > I try to use the 'apm' command (though it's worked a couple of times, > > > but I don't know why). And the system goes away and never comes back > > > if I suspend with the ethernet card in it. > > > > Did using the APM_DSVALUE_BUG hack fix that? > > No. I've had 'apm' work a couple of times; I think one of them was running > the GENERIC kernel with the dormant 'apm' driver enabled, but I'm > not totally sure there. As I said, it's not too critical just yet. Are you using the version of apm.c from the SNAP, or from the Nomad's? I'm a bit biased, but I think my version might work better. > > Re: the suspend and never come back. That's a tough one, since the APM > > BIOS is in complete control of the system, so it's *extremely* hard to > > debug the system coming back. > > See my other post on this for more juice. The BIOS in the Sharp actually > seems to be quite civilised; I can hotkey-suspend, hotkey into the APM > setup screen, and even hotkey the speaker volume up and down without > it appearing to faze the system at all. All of this *while* FreeBSD is running? > (Although while I was tinkering with that I noticed that the kernel build > I was doing was taking a _long_ time. I dunno whether it went into some > sort of 'crawl' mode or what. 'systat -vmstat' showed the CPU maxed out, > but the next build I did (just watching the files flip by) was much quicker. > Anyway, if I can resolve restarting the 'ed' card, I'm in business 8) Cool. I'll bet you're not the only one who has a problem with this, but I'm not sure why yet. Again, I hope to get some time to look at it, but no promises as to when my life gets back to normal. Hopefully before the rivers and streams slow down enough to go fishing. :) > And here I was expecting that I'd have to start by hacking on the 'wdc' > support. What an anticlimax 8) It still might be something like that, but it's not as likely. > And speaking of hackery, is it normal for the pcic to share an interrupt > with another port? I was half hoping to use the IR port, but it's on the > same interrupt as the pcic, so it never probes... You need to remove the interrupt that the IR port uses from /etc/pccard.conf. It steals one of the interrupts from the list, so if it's not a free interrupt remove it. Nate From owner-freebsd-mobile Tue Jun 4 08:41:13 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA21564 for mobile-outgoing; Tue, 4 Jun 1996 08:41:13 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA21540 for ; Tue, 4 Jun 1996 08:40:58 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id BAA07962; Wed, 5 Jun 1996 01:33:05 +0930 From: Michael Smith Message-Id: <199606041603.BAA07962@genesis.atrad.adelaide.edu.au> Subject: Re: Laptop hardware FOUND To: nate@sri.MT.net (Nate Williams) Date: Wed, 5 Jun 1996 01:33:05 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, nate@sri.MT.net, mobile@freebsd.org In-Reply-To: <199606041523.JAA17249@rocky.sri.MT.net> from "Nate Williams" at Jun 4, 96 09:23:54 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams stands accused of saying: > > > > No. I've had 'apm' work a couple of times; I think one of them was running > > the GENERIC kernel with the dormant 'apm' driver enabled, but I'm > > not totally sure there. As I said, it's not too critical just yet. > > Are you using the version of apm.c from the SNAP, or from the Nomad's? > I'm a bit biased, but I think my version might work better. It may well 8) I _think_ the original one I was using was from the -SNAP, but I upgraded to the latest Nomad stuff to see if it would help. Having done that much, I'd like to help fold their changes back into -current, but my time's about as free as yours 8( I'll try the -SNAP 'apm' again now that I'm happier about what does what. > > See my other post on this for more juice. The BIOS in the Sharp actually > > seems to be quite civilised; I can hotkey-suspend, hotkey into the APM > > setup screen, and even hotkey the speaker volume up and down without > > it appearing to faze the system at all. > > All of this *while* FreeBSD is running? Yup. It even appears to restore the video mode OK; I was running at 80x60 (need to teach syscons about 800x600 displays 8) with the compile on the screen, hotkeyed into the APM setup to make sure the disk wasn't sleeping between writes or something stupid, and then dropped back out & it restored the screen mode and all. It appears to achieve it by generating a 'suspend' event, when it comes back out the 'suspended for xx:xx:xx' message is logged... > no promises as to when my life gets back to normal. Hopefully before > the rivers and streams slow down enough to go fishing. :) Arg, no fair! None of this pleading "Real Life" stuff 8) > > And speaking of hackery, is it normal for the pcic to share an interrupt > > with another port? I was half hoping to use the IR port, but it's on the > > same interrupt as the pcic, so it never probes... > > You need to remove the interrupt that the IR port uses from > /etc/pccard.conf. It steals one of the interrupts from the list, so if > it's not a free interrupt remove it. Sorry, should have been clearer; 'pcic' as in the PC-Card chipset in the machine (what is probed at boot time). There are only two free interrupts and a very small collection of free ports in this blasted system, but I only have one card so that's not a problem. > Nate -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ From owner-freebsd-mobile Tue Jun 4 08:55:10 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA22295 for mobile-outgoing; Tue, 4 Jun 1996 08:55:10 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA22290 for ; Tue, 4 Jun 1996 08:55:03 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id JAA17336; Tue, 4 Jun 1996 09:54:54 -0600 Date: Tue, 4 Jun 1996 09:54:54 -0600 From: Nate Williams Message-Id: <199606041554.JAA17336@rocky.sri.MT.net> To: Michael Smith Cc: nate@sri.MT.net (Nate Williams), mobile@freebsd.org Subject: Re: Laptop hardware FOUND In-Reply-To: <199606041603.BAA07962@genesis.atrad.adelaide.edu.au> References: <199606041523.JAA17249@rocky.sri.MT.net> <199606041603.BAA07962@genesis.atrad.adelaide.edu.au> Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I'll try the -SNAP 'apm' again now that I'm happier about what does what. It should work w/out any changes necessary, though I haven't seen the most recent version yet to make sure. > > > And speaking of hackery, is it normal for the pcic to share an interrupt > > > with another port? I was half hoping to use the IR port, but it's on the > > > same interrupt as the pcic, so it never probes... > > > > You need to remove the interrupt that the IR port uses from > > /etc/pccard.conf. It steals one of the interrupts from the list, so if > > it's not a free interrupt remove it. > > Sorry, should have been clearer; 'pcic' as in the PC-Card chipset in the > machine (what is probed at boot time). There are only two free interrupts > and a very small collection of free ports in this blasted system, but > I only have one card so that's not a problem. Hmm, I thought the pcic controller was assigned an IRQ the first time pccardd was run, but it's been almost 2 months since I messed with this stuff. Actually, that doesn't make sense now that I think about it since how would you know when the boards are switched in/out (the card daemon needs to know that *before* it's run). Nate From owner-freebsd-mobile Thu Jun 6 10:13:34 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA17182 for mobile-outgoing; Thu, 6 Jun 1996 10:13:34 -0700 (PDT) Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA16124 for ; Thu, 6 Jun 1996 10:04:13 -0700 (PDT) Received: from muggsy.lkg.dec.com by mail13.digital.com (8.7.5/UNX 1.2/1.0/WV) id MAA04980; Thu, 6 Jun 1996 12:43:30 -0400 (EDT) Received: from whydos.lkg.dec.com by muggsy.lkg.dec.com (5.65/DEC-Ultrix/4.3) with SMTP id AA15369; Thu, 6 Jun 1996 12:42:55 -0400 Received: from localhost (localhost [127.0.0.1]) by whydos.lkg.dec.com (8.6.12/8.6.12) with SMTP id MAA16354; Thu, 6 Jun 1996 12:47:42 GMT Message-Id: <199606061247.MAA16354@whydos.lkg.dec.com> X-Authentication-Warning: whydos.lkg.dec.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 To: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) Cc: mobile@freebsd.org Subject: Re: Wavelan PCMCIA In-Reply-To: Your message of "Sat, 25 May 1996 16:19:08 +0900." <199605250719.QAA15619@frig.mt.cs.keio.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 Jun 1996 12:47:38 +0000 From: Matt Thomas Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi! > > Now I'm trying to drive AT&T GIS (NCR) Wavelan PCMCIA under PC-card > package of FreeBSD. Now, the "Send" LED lights, but "Receive" LED has > never lit yet (I tried broadcast ping). I'm using the 960602 version of pccard-test with a Digital RoamAbout/DS. Happily I can say that it seems to working fine after I added card "Digital" "RoamAbout/DS" # version 2.00 config default "wlp0" any ether wavelan to /etc/pccard.conf. -- Matt Thomas Internet: matt@3am-software.com 3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt.html Westford, MA Disclaimer: I disavow all knowledge of this message From owner-freebsd-mobile Thu Jun 6 10:42:29 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA19885 for mobile-outgoing; Thu, 6 Jun 1996 10:42:29 -0700 (PDT) Received: from frig.mt.cs.keio.ac.jp (frig.mt.cs.keio.ac.jp [131.113.32.7]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA19525 for ; Thu, 6 Jun 1996 10:39:44 -0700 (PDT) Received: (from hosokawa@localhost) by frig.mt.cs.keio.ac.jp (8.6.12+2.4W/3.4Wbeta3) id CAA19844; Fri, 7 Jun 1996 02:38:05 +0900 Date: Fri, 7 Jun 1996 02:38:05 +0900 Message-Id: <199606061738.CAA19844@frig.mt.cs.keio.ac.jp> To: matt@lkg.dec.com Cc: mobile@freebsd.org, hosokawa@mt.cs.keio.ac.jp Subject: Re: Wavelan PCMCIA In-Reply-To: Your message of Thu, 06 Jun 1996 12:47:38 +0000. <199606061247.MAA16354@whydos.lkg.dec.com> From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) X-Mailer: mnews [version 1.18PL3] 1994-08/01(Mon) Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199606061247.MAA16354@whydos.lkg.dec.com> matt@lkg.dec.com writes: >> I'm using the 960602 version of pccard-test with a Digital RoamAbout/DS. >> Happily I can say that it seems to working fine after I added >> >> card "Digital" "RoamAbout/DS" # version 2.00 >> config default "wlp0" any >> ether wavelan >> >> to /etc/pccard.conf. Wow! Pls tell me the detailed configuration of your card (NetID, MAC addr, etc.) and your environment (how many cars? are you using the station?). I've not succeeded to use this card under our package yet. -- HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html Department of Computer Science, Keio University, Yokohama, Japan From owner-freebsd-mobile Thu Jun 6 11:52:19 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA25265 for mobile-outgoing; Thu, 6 Jun 1996 11:52:19 -0700 (PDT) Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA24986 for ; Thu, 6 Jun 1996 11:47:51 -0700 (PDT) Received: from muggsy.lkg.dec.com by mail13.digital.com (8.7.5/UNX 1.2/1.0/WV) id OAA10106; Thu, 6 Jun 1996 14:30:29 -0400 (EDT) Received: from whydos.lkg.dec.com by muggsy.lkg.dec.com (5.65/DEC-Ultrix/4.3) with SMTP id AA15876; Thu, 6 Jun 1996 14:29:58 -0400 Received: from localhost (localhost [127.0.0.1]) by whydos.lkg.dec.com (8.6.12/8.6.12) with SMTP id OAA16986; Thu, 6 Jun 1996 14:34:44 GMT Message-Id: <199606061434.OAA16986@whydos.lkg.dec.com> X-Authentication-Warning: whydos.lkg.dec.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 To: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) Cc: mobile@freebsd.org Subject: Re: Wavelan PCMCIA In-Reply-To: Your message of "Fri, 07 Jun 1996 02:38:05 +0900." <199606061738.CAA19844@frig.mt.cs.keio.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 Jun 1996 14:34:44 +0000 From: Matt Thomas Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Wow! > > Pls tell me the detailed configuration of your card (NetID, MAC addr, > etc.) and your environment (how many cars? are you using the > station?). Card inserted, slot 3 Card inserted, slot 2 Card inserted, slot 0 wlp0: nwid [2:24] mac:[8:0:e:20:83:d] wdc1: unit 0 (atapi): , removable, intr, iordis wcd0: 689Kb/sec, 128Kb cache, audio play, 255 volume levels, tray wcd0: 120mm data disc loaded pccardc dumpcis Configuration data for card in slot 0 Tuple #1, code = 0x1 (Common memory descriptor), length = 3 000: 00 00 ff Common memory device information: Device number 1, type No device, WPS = OFF Speed = No speed, Memory block size = 512b, 1 units Tuple #2, code = 0x15 (Version 1 info), length = 80 000: 05 00 44 69 67 69 74 61 6c 00 52 6f 61 6d 41 62 010: 6f 75 74 2f 44 53 00 56 65 72 73 69 6f 6e 20 32 020: 2e 30 30 00 57 61 76 65 4c 41 4e 2f 50 43 4d 43 030: 49 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff Version = 5.0, Manuf = [Digital],card vers = [RoamAbout/DS] Addit. info = [Version 2.00],[WaveLAN/PCMCIA] Tuple #3, code = 0x10 (Checksum), length = 5 000: 07 00 63 00 3c Checksum from offset 7, length 99, value is 0x3c Tuple #4, code = 0x17 (Attribute memory descriptor), length = 3 000: 49 02 ff Attribute memory device information: Device number 1, type EEPROM, WPS = ON Speed = 250nS, Memory block size = 8Kb, 1 units Tuple #5, code = 0x20 (Manufacturer ID), length = 4 000: 56 01 01 01 PCMCIA ID = 0x156, OEM ID = 0x101 Tuple #6, code = 0x21 (Functional ID), length = 2 000: 06 00 Network/LAN adapter Tuple #7, code = 0x22 (Functional EXT), length = 2 000: 01 07 Modem interface capabilities: Tuple #8, code = 0x22 (Functional EXT), length = 5 000: 02 80 84 1e 00 Data modem services available: Tuple #9, code = 0x22 (Functional EXT), length = 2 000: 03 06 Tuple #10, code = 0x22 (Functional EXT), length = 2 000: 03 07 Tuple #11, code = 0x22 (Functional EXT), length = 8 000: 04 06 08 00 0e 20 83 0d Voice services available: Tuple #12, code = 0x22 (Functional EXT), length = 2 000: 05 01 Modem interface capabilities: Tuple #13, code = 0x1a (Configuration map), length = 7 000: 03 03 00 40 00 00 01 Reg len = 4, config register addr = 0x4000, last config = 0x3 Registers: X------- Tuple #14, code = 0x1b (Configuration entry), length = 15 000: c1 01 99 77 55 4d 5d 3e 66 4d 23 30 ff ff 00 Config index = 0x1(default) Interface byte = 0x1 (I/O) Vcc pwr: Nominal operating supply voltage: 5 x 1V Minimum operating supply voltage: 4.5 x 1V Maximum operating supply voltage: 5.5 x 1V Max current average over 1 second: 3.5 x 100mA Max current average over 10 ms: 6 x 100mA Power down supply current: 4.5 x 10mA Card decodes 3 address lines, 8 Bit I/O only IRQ modes: Level IRQs: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Max twin cards = 0 Misc attr: Tuple #15, code = 0x1b (Configuration entry), length = 17 000: 83 01 99 77 55 4d 5d b6 45 b6 7d 45 23 30 ff ff 010: 00 Config index = 0x3 Interface byte = 0x1 (I/O) Vcc pwr: Nominal operating supply voltage: 5 x 1V Minimum operating supply voltage: 4.5 x 1V Maximum operating supply voltage: 5.5 x 1V Max current average over 1 second: 3 x 100mA, ext = 0x45 Max current average over 10 ms: 3 x 100mA, ext = 0x7d Power down supply current: 4 x 10mA Card decodes 3 address lines, 8 Bit I/O only IRQ modes: Level IRQs: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Max twin cards = 0 Misc attr: Tuple #16, code = 0x11 (Long link to attribute memory), length = 4 000: f2 0d 00 00 Long link to attribute memory, address 0xdf2 Tuple #17, code = 0xff (Terminator), length = 0 Tuple #18, code = 0x13 (Link target), length = 3 000: 43 49 53 Tuple #19, code = 0x0 (Null tuple), length = 64 000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 010: 08 00 0e 20 83 0d 00 00 00 00 00 00 00 04 03 00 020: 00 03 00 02 24 01 00 00 00 00 00 00 00 00 00 00 030: 00 00 00 00 00 00 00 00 00 00 00 00 01 b3 28 aa Tuple #20, code = 0x14 (No link), length = 0 Tuple #21, code = 0xff (Terminator), length = 0 > I've not succeeded to use this card under our package yet. Since the romaing protocol is not yet supported, I've set the nwid 0x0224 to the same nwid as the "best" access point that I can see. -- Matt Thomas Internet: matt@3am-software.com 3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt.html Westford, MA Disclaimer: I disavow all knowledge of this message From owner-freebsd-mobile Thu Jun 6 14:28:07 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA08921 for mobile-outgoing; Thu, 6 Jun 1996 14:28:07 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA08881 for ; Thu, 6 Jun 1996 14:28:03 -0700 (PDT) Received: from cs.pdx.edu (root@cs.pdx.edu [204.203.64.22]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id OAA23515 for ; Thu, 6 Jun 1996 14:28:02 -0700 Received: from sirius.cs.pdx.edu (root@sirius.cs.pdx.edu [204.203.64.13]) by cs.pdx.edu (8.7.3/CATastrophe-2/10/96-P) with ESMTP id OAA20630; Thu, 6 Jun 1996 14:24:42 -0700 (PDT) for Received: from localhost (jrb@localhost [127.0.0.1]) by sirius.cs.pdx.edu (8.7.3/CATastrophe-9/18/94-C) with ESMTP id OAA25431; Thu, 6 Jun 1996 14:26:00 -0700 (PDT) Message-Id: <199606062126.OAA25431@sirius.cs.pdx.edu> To: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) cc: dreeder@cs.pdx.edu cc: matt@lkg.dec.com, mobile@FreeBSD.org Subject: Re: Wavelan PCMCIA In-reply-to: Your message of "Fri, 07 Jun 1996 02:38:05 +0900." <199606061738.CAA19844@frig.mt.cs.keio.ac.jp> Date: Thu, 06 Jun 1996 14:25:59 -0700 From: Jim Binkley Sender: owner-mobile@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hosokawa Tatsumi, I suppose this is your way of telling me that you ported the wavelan driver into the pccard setup. Thank you. Given that we have about 12 laptops and N more "base stations" using the current wavelan drivers + a fair number of kernel hacks, we are still mired in 2.1R. However over the summer, we want to upgrade our kernel environment (at least) to speak pccard. There are a number of pccards that we would like to be able to use at the same time as wavelan cards, basically gps and/or various crypto cards (a des card would be nice). If there are cards along those lines (crypto/gps) that anyone has used, I would appreciate hearing about it. We are still using my non-pccard wavelan drivers (isa/pcmcia). (The pcmcia driver is basically like David Greenman's if_ze.c driver). I have put a new version out of both isa/pcmcia drivers available at zymurgy.cs.pdx.edu via anon ftp in the mobility directory. ftp://zymurgy.cs.pdx.edu/pub/mobility/wavelan.freebsd.tar.gz Changes include the following: .support for multicast (minimal testing, but it works with nv) in both drivers .fixed a bug in how promiscious mode was done on the pcmcia driver, so you can get into/out of tcpdump faster .put a workaround in for a hang problem that shows up on reception of frames (apparently due to "overruns") ONLY with 2.0 cards. This does not happen on 1.0 and 1.1 wavelan cards. It doesn't happen on all 2.0 cards either, but it does happen on some. If the overrun occurs, a hw reset is done, and an input error is logged. I hope we can get up to sync with the pccard later this summer. Re dec stuff. We are doing mobile-ip (and in fact it is beginning to work), so we aren't interested in "roaming" (basically link layer access point switches) per se. The way att seems to do that, it involves having a different NWID per access point (bridge). The unix drivers won't understand that of course. I understand from Kannan A., formerly at DEC, that DEC has a form of mobile-ip. Are your access points running that Matt? regards, Jim Binkley jrb@cs.pdx.edu Portland State CS dept. Your message <199606061738.CAA19844@frig.mt.cs.keio.ac.jp>: >In article <199606061247.MAA16354@whydos.lkg.dec.com> >matt@lkg.dec.com writes: > >>> I'm using the 960602 version of pccard-test with a Digital RoamAbout/DS. >>> Happily I can say that it seems to working fine after I added >>> >>> card "Digital" "RoamAbout/DS" # version 2.00 >>> config default "wlp0" any >>> ether wavelan >>> >>> to /etc/pccard.conf. > >Wow! > >Pls tell me the detailed configuration of your card (NetID, MAC addr, >etc.) and your environment (how many cars? are you using the >station?). > >I've not succeeded to use this card under our package yet. > >-- > HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp > WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html > Department of Computer Science, Keio University, Yokohama, Japan From owner-freebsd-mobile Fri Jun 7 15:33:03 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA29733 for mobile-outgoing; Fri, 7 Jun 1996 15:33:03 -0700 (PDT) Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA29727 for ; Fri, 7 Jun 1996 15:32:57 -0700 (PDT) Received: from muggsy.lkg.dec.com by mail13.digital.com (8.7.5/UNX 1.2/1.0/WV) id SAA28217; Fri, 7 Jun 1996 18:22:24 -0400 (EDT) Received: from whydos.lkg.dec.com by muggsy.lkg.dec.com (5.65/DEC-Ultrix/4.3) with SMTP id AA22112; Fri, 7 Jun 1996 18:21:49 -0400 Received: from localhost (localhost [127.0.0.1]) by whydos.lkg.dec.com (8.6.12/8.6.12) with SMTP id SAA26039; Fri, 7 Jun 1996 18:26:32 GMT Message-Id: <199606071826.SAA26039@whydos.lkg.dec.com> X-Authentication-Warning: whydos.lkg.dec.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 To: Jim Binkley Cc: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi), dreeder@cs.pdx.edu, mobile@freebsd.org Subject: Re: Wavelan PCMCIA In-Reply-To: Your message of "Thu, 06 Jun 1996 14:25:59 MST." <199606062126.OAA25431@sirius.cs.pdx.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 07 Jun 1996 18:26:24 +0000 From: Matt Thomas Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Re dec stuff. We are doing mobile-ip (and in fact it is beginning to work), > so we aren't interested in "roaming" (basically link layer access point > switches) per se. The way att seems to do that, > it involves having a different NWID per access point (bridge). The unix > drivers won't understand that of course. I understand from Kannan A., > formerly at DEC, that DEC has a form > of mobile-ip. Are your access points running that Matt? Nope. They run Digital's verison of WaveLAN roaming software. The roaming protocol is fairly simple from what I've read. The difficult part is getting the additional information along the packet from BPF. -- Matt Thomas Internet: matt@3am-software.com 3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt.html Westford, MA Disclaimer: I disavow all knowledge of this message