Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Ilmar S. Habibulin



On Wed, 5 Sep 2001, Kazutaka YOKOTA wrote:

 Ok, this is one last test patch. Please remove ALL my previous
 patches and apply this one in /sys/isa.

Nothing at all, i had to boot with -c option to get any message about 
psm0. Sendig you dmesg, but i think it wouldn't help much.

PS. I just removed and checkout sys/isa.


 dmesg.bz2


Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Julian Elischer

"Ilmar S. Habibulin" wrote:
 
 On Wed, 5 Sep 2001, Kazutaka YOKOTA wrote:
 
  Ok, this is one last test patch. Please remove ALL my previous
  patches and apply this one in /sys/isa.
 
 Nothing at all, i had to boot with -c option to get any message about
 psm0. Sendig you dmesg, but i think it wouldn't help much.
 
 PS. I just removed and checkout sys/isa.

hope you did a "make clean" too...

 
   
 Name: dmesg.bz2
dmesg.bz2Type: unspecified type (APPLICATION/octet-stream)
 Encoding: BASE64

-- 
++   __ _  __
|   __--_|\  Julian Elischer |   \ U \/ / hard at work in 
|  /   \ [EMAIL PROTECTED] +--x   USA\ a very strange
| (   OZ)\___   ___ | country !
+- X_.---._/presently in San Francisco   \_/   \\
  v

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Harti Brandt

On Wed, 5 Sep 2001, Kazutaka YOKOTA wrote:

KY Would try the following patch for /sys/isa/psm.c IN ADDITION TO
KY my previous patch?
KY
KY (This is a test patch. It's not a final fix.)
KY
KYpanic: nexus_setup_intr: NULL irq resource!
KY
KYOk, this is one last test patch. Please remove ALL my previous
KYpatches and apply this one in /sys/isa.

If I boot with -cv I see:

...
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d
atkbd1: unable to allocate the IRQ resource
psm0: unable to allocate the IRQ resource
atkbd1: unable to allocate the IRQ resource
psm0: unable to allocate the IRQ resource
ppc1: cannot reserve I/O port range

What wonders me is that psm0 is probed after atkbd1?

harti


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Ilmar S. Habibulin



On Tue, 4 Sep 2001, Julian Elischer wrote:

  PS. I just removed and checkout sys/isa.
 hope you did a make clean too...
I tried this too - nothing changed. :(
Where is my netscroll genius... I want it back
;-)



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Kazutaka YOKOTA

  PS. I just removed and checkout sys/isa.
 hope you did a make clean too...
I tried this too - nothing changed. :(
Where is my netscroll genius... I want it back
;-)

What was the message?  Is that the following?
panic: nexus_setup_intr: NULL irq resource!
Or, something else?

Can you provide the last few boot messages before the panic?

Would you please apply the attached patch in addition to my last one,
in order to get some more information on your system and ACPI BIOS.
I am afraid this patch still won't make your mouse available, but
it may stop your system from panicing and let you go through the boot
process.  When the system comes completely up, please send me
entire dmesg output and /boot/device.hints.

It now appears we have several classes of symptoms regarding the PS/2
mouse and ACPI. Each may need different trick to fix...

Thanks
Kazu

--- psm.c-save  Wed Sep  5 18:54:27 2001
+++ psm.c   Wed Sep  5 19:07:09 2001
@@ -2818,8 +2818,14 @@
bus_set_resource(psm, SYS_RES_IRQ, 1, irq, 1);
bus_delete_resource(me, SYS_RES_IRQ, 0);
 
+   printf(adding...);
+   BUS_PRINT_CHILD(device_get_parent(psm), psm);
+
+   return 0;
+#if 0
/* ...then probe and attach it */
return device_probe_and_attach(psm);
+#endif
 }
 
 static int
@@ -2830,6 +2836,9 @@
if (ISA_PNP_PROBE(device_get_parent(dev), dev, psmcpnp_ids))
return ENXIO;
 
+   printf(probing...);
+   BUS_PRINT_CHILD(device_get_parent(dev), dev);
+
/*
 * If we find an atkbdc device on the same bus,
 * create our copy there.
@@ -2838,6 +2847,9 @@
   device_get_unit(dev));
if (atkbdc  (device_get_state(atkbdc) == DS_ATTACHED))
create_a_copy(atkbdc, dev);
+
+   printf(quiting...);
+   BUS_PRINT_CHILD(device_get_parent(dev), dev);
 
/* keep quiet */
device_quiet(dev);










To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Ilmar S. Habibulin



On Wed, 5 Sep 2001, Kazutaka YOKOTA wrote:

 What was the message?  Is that the following?
   panic: nexus_setup_intr: NULL irq resource!
 Or, something else?
You missunderstand or maybe i wrote something wrong. Now i've got a
bootable kernel with no panic and NO psm0 messages at all. So i had to
boot -v to produse some. Now i applied your patches and next mail would
be with boot -v messages

 process.  When the system comes completely up, please send me
 entire dmesg output and /boot/device.hints.
Ok.

 It now appears we have several classes of symptoms regarding the PS/2
 mouse and ACPI. Each may need different trick to fix...
I think that it is ASUS A7V-133 feature.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Ilmar S. Habibulin



 process.  When the system comes completely up, please send me
 entire dmesg output and /boot/device.hints.

 into.tar.bz2


Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Kazutaka YOKOTA

Thank you. I got the files.

Then, would you remove my previous small patch from psm.c, and put the
following line in /boot/device.hints instead and reboot?

debug.acpi.disable=sysresource

Or, you may type

set debug.acpi.disable=sysresource

at the loader prompt before boot -v.

Kazu

You missunderstand or maybe i wrote something wrong. Now i've got a
bootable kernel with no panic and NO psm0 messages at all. So i had to
boot -v to produse some. Now i applied your patches and next mail would
be with boot -v messages

 process.  When the system comes completely up, please send me
 entire dmesg output and /boot/device.hints.
Ok.

 It now appears we have several classes of symptoms regarding the PS/2
 mouse and ACPI. Each may need different trick to fix...
I think that it is ASUS A7V-133 feature.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Ilmar S. Habibulin



On Wed, 5 Sep 2001, Kazutaka YOKOTA wrote:

 Then, would you remove my previous small patch from psm.c, and put the
 following line in /boot/device.hints instead and reboot?
 debug.acpi.disable=sysresource
 Or, you may type
 set debug.acpi.disable=sysresource
 at the loader prompt before boot -v.
Wow, my NetScroll is back in bussiness!!! ;-)))
So is it buggy BIOS, chipset, ASUS or PS/2 mouse?

atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d
atkbd1: unable to allocate the IRQ resource
psm0: unable to allocate the IRQ resource
atkbd1: unable to allocate the IRQ resource
psm0: current command byte:0047
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model NetMouse/NetScroll Optical, device ID 0-00, 3 buttons
psm0: config:, flags:, packet size:4
psm0: syncmask:08, syncbits:08
atkbdc-: atkbdc0 already exists, using atkbdc1 instead
atkbdc1: Keyboard controller (i8042) failed to probe at port 0x60 on 
isa0


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Kazutaka YOKOTA


As I wrote in another mail to Harti Brandt and cc'ed to you, it now
appears that ACPI on your motherboard declares IRQ 12 BOTH in the PS/2
mouse resource descriptors and in the system reserved resource
descriptors.

The system reserved resources are sucked by the sysresource driver in
the acpi module. If the psm driver can get at IRQ 12 BEFORE the
sysresource driver, or the sysresource driver is made to be probed
AFTER all other acpi device nodes are probed, all should be fine...

As some other people are not having this problem, this may be
called a quirk or anomaly, to say the least.

Kazu

 Then, would you remove my previous small patch from psm.c, and put the
 following line in /boot/device.hints instead and reboot?
 debug.acpi.disable=sysresource
 Or, you may type
 set debug.acpi.disable=sysresource
 at the loader prompt before boot -v.

Wow, my NetScroll is back in bussiness!!! ;-)))
So is it buggy BIOS, chipset, ASUS or PS/2 mouse?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-05 Thread Ilmar S. Habibulin



On Wed, 5 Sep 2001, Kazutaka YOKOTA wrote:

 As some other people are not having this problem, this may be
 called a quirk or anomaly, to say the least.
I think that it is ASUS A7V-133 feature, cause Harti has this board to, if
i'm not wrong. Check our dmesgs.




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Kazutaka YOKOTA


So i can't use X server. The problem appeared right after i've compiled
and installed freshly cvsuped kernel after new acpi first commit (31.08).
I'm sending dmesg and kernel config files in attach, and waiting for
help/comments. Thank you.

Please apply the attached patch in /sys/isa and see what it does.

Thank you.
Kazu

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Kazutaka YOKOTA


So i can't use X server. The problem appeared right after i've compiled
and installed freshly cvsuped kernel after new acpi first commit (31.08).
I'm sending dmesg and kernel config files in attach, and waiting for
help/comments. Thank you.

Please apply the attached patch in /sys/isa and see what it does.

Thank you.
Kazu

begin 666 atkbdcident.diff.gz
M'XL(%:OE#L  V%T:V)D8VED96YT+F1I9F8 Q5C_4^)*$O\Y_!7SOH?D )
M(C6[JTK7UUZ\J)N[?WK5(Q30E)+Q)T.=Y_N_7W3-))A#4MU?UCK),,M/=
MTU\_,SV3*._#IF7WET'OALFWH%?___VJ79S,V#Q=\R-J)\-MGWV;T3!Z3
M-BS2UMS[FNIR+D]V%TPP0\DC.F'/0Z=2#YGK35K?PLJ]EJM4H#1LV
MG;9]U.[:S#X.H?#3L@*:9I5E$M^T^RA/1CVG-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3+3EFRES$2S;],OTXN9A1RW-Z
M-IT(%,;^3,_36?G9T#E*G6^G)Z/#6,/5O57T6JOVD,[?A!)8'SVAD1)A7
M3XF81DXVZ631E CET,EV2Z-C %^NOUK-5SHT+J2+5UK0@6OA[(M]#Z,S2
M_IL77.X16;12G0KGHK@-[7'( 1T1Q:*8T59/42JMI%HG+#7DE9COR]? :#F
MKT[7G@=VSX'S_'36[LB-A6[N]MBS1N 4O:?G*[$2,73U7D*ZHR\ZW0M]OW[
M]YQGRQXWYL2-ES/]/58WT#?[EMAIL PROTECTED];\+DF1)39[B%O!IDBU;[]!VE
M1\E^^*TN+!$,CO*R__0J6R3T+@2P%F5=R/C+]\G%1J8W,;K18P=^NM
M5CQ218*1 L?N1LD[T,?D@O8MAN*5*V9EK=]S!FJS3'N\2DEO.;OCC]Q
M)P*\=$E%O%A )I[T=Q$-Y?P8M-9:ZT]D2Q!7S!4_Z2HQJY8H#KH 8=-/B
MA^Y):$M'Y2+^P#H4B-E6*G8@2[I #],D@NI4I#C=.A.5TD!81'PR.W6Q
MEJ:7%Q_'^@VZC(Z0Z=[%*TPCNC /\ /RT!(E#IBKULQV/#BH-T)7@WA
M)8+D4/LBAH^\ 22']!.[\M*6X-Z'ZH=/FRI3/=?9QM@H0\(U;=%N;)IM:
M_E^7C[F:H[Z^!%D[]75Z=FG\4BZHURCV:Y3-.F07K]@OZYGTBPEGT;4
M#92YZ_ZI%.C*BUC5?FSR;VV)*,%R+,V\%7[WMH;=TCQ_%7X\3\%Z1$N/5K
#'0  
 
end

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Ilmar S. Habibulin



On Tue, 4 Sep 2001, Kazutaka YOKOTA wrote:

 Please apply the attached patch in /sys/isa and see what it does.
It does panic with a smiling face ;-)))

panic message was bad ivar read request



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Harti Brandt

On Tue, 4 Sep 2001, Ilmar S. Habibulin wrote:

ISH
ISH
ISHOn Tue, 4 Sep 2001, Kazutaka YOKOTA wrote:
ISH
ISH Please apply the attached patch in /sys/isa and see what it does.
ISHIt does panic with a smiling face ;-)))
ISH
ISHpanic message was bad ivar read request

it fails in acpi_read_ivar with an index (3rd argument) of 12. And that
looks like the IRQ, so probably there is something really wrong.

harti
-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
  [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Ilmar S. Habibulin



On Tue, 4 Sep 2001, Harti Brandt wrote:

 ISHpanic message was bad ivar read request
 it fails in acpi_read_ivar with an index (3rd argument) of 12. And that
 looks like the IRQ, so probably there is something really wrong.
Sorry, wrong with my hands or code is broken? While browsing through
-current and -acpi lists i saw many working dmesgs, i mean there was psm0
and it detected attached mouse.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Harti Brandt

On Tue, 4 Sep 2001, Ilmar S. Habibulin wrote:

ISH
ISH
ISHOn Tue, 4 Sep 2001, Harti Brandt wrote:
ISH
ISH ISHpanic message was bad ivar read request
ISH it fails in acpi_read_ivar with an index (3rd argument) of 12. And that
ISH looks like the IRQ, so probably there is something really wrong.
ISHSorry, wrong with my hands or code is broken? While browsing through
ISH-current and -acpi lists i saw many working dmesgs, i mean there was psm0
ISHand it detected attached mouse.

With the code. I have the same problem as you: the new kernel fails to
attach psm0.

harti
--
harti brandt,
http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
  [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Kazutaka YOKOTA

 Please apply the attached patch in /sys/isa and see what it does.
It does panic with a smiling face ;-)))

panic message was bad ivar read request

Would try the following patch for /sys/isa/psm.c IN ADDITION TO
my previous patch?

(This is a test patch. It's not a final fix.)

Kazu

--- psm.c-save  Tue Sep  4 20:51:39 2001
+++ psm.c   Tue Sep  4 22:29:49 2001
@@ -779,12 +779,8 @@
 psmidentify(driver_t *driver, device_t parent)
 {
 
-/* if we are in PnP mode, don't create a device node for now... */
-if (isa_get_vendorid(parent) != 0)
-   return;
-
 /* always add at least one child */
-BUS_ADD_CHILD(parent, 0, driver-name, -1);
+BUS_ADD_CHILD(parent, 0, NULL, -1);
 }
 
 #define endprobe(v){   if (bootverbose)\
@@ -814,6 +810,17 @@
 BUS_READ_IVAR(device_get_parent(dev), dev, KBDC_IVAR_IRQ, irq);
 BUS_READ_IVAR(device_get_parent(dev), dev, KBDC_IVAR_FLAGS, flags);
 
+/* see if IRQ is available */
+rid = 0;
+sc-intr = bus_alloc_resource(dev, SYS_RES_IRQ, rid, irq, irq, 1,
+ RF_ACTIVE);
+if (sc-intr == NULL) {
+   if (bootverbose)
+device_printf(dev, unable to allocate the IRQ resource (%d).\n,
+ (int)irq);
+return (ENXIO);
+}
+
 sc-kbdc = atkbdc_open(device_get_unit(device_get_parent(dev)));
 sc-config = flags  PSM_CONFIG_FLAGS;
 /* XXX: for backward compatibility */
@@ -1083,19 +1090,8 @@
 endprobe(ENXIO);
 }
 
-/* see if IRQ is available */
-rid = 0;
-sc-intr = bus_alloc_resource(dev, SYS_RES_IRQ, rid, irq, irq, 1,
- RF_ACTIVE);
-if (sc-intr == NULL) {
-printf(psm%d: unable to allocate the IRQ resource (%d).\n,
-  unit, (int)irq);
-endprobe(ENXIO);
-} else {
-   bus_release_resource(dev, SYS_RES_IRQ, rid, sc-intr);
-}
-
 /* done */
+bus_release_resource(dev, SYS_RES_IRQ, rid, sc-intr);
 kbdc_set_device_mask(sc-kbdc, mask | KBD_AUX_CONTROL_BITS);
 kbdc_lock(sc-kbdc, FALSE);
 return (0);

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :( (fwd)

2001-09-04 Thread Harti Brandt


 ISHOn Tue, 4 Sep 2001, Kazutaka YOKOTA wrote:
 ISH
 ISH Please apply the attached patch in /sys/isa and see what it does.
 ISHIt does panic with a smiling face ;-)))
 ISH
 ISHpanic message was bad ivar read request

 it fails in acpi_read_ivar with an index (3rd argument) of 12. And that
 looks like the IRQ, so probably there is something really wrong.

No. This is in psm.c:790. psmidentify is trying to get the ISA vendor ID.
But it seems, that the read_ivar request to which this evaluates end in
acpi_read_ivar instead of isa_read_ivar. If I comment out these two lines,
the kernel boots as before, but the psm is still not attached. (the message
from psm1 is new, this is probably because of the commented out line).

harti


Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #5: Tue Sep  4 15:44:25 CEST 2001
[EMAIL PROTECTED]:/opt/obj/usr/src/sys/BEAGLE
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 908095602 Hz
CPU: AMD Athlon(tm) Processor (908.10-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x642  Stepping = 2
  
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
  AMD Features=0xc044b18,AMIE,DSP,3DNow!
real memory  = 536788992 (524208K bytes)
avail memory = 518848512 (506688K bytes)
Preloaded elf kernel kernel at 0xc0394000.
Preloaded elf module random.ko at 0xc039409c.
Preloaded elf module acpi.ko at 0xc039413c.
Pentium Pro MTRR support enabled
Using $PIR table, 9 entries at 0xc00f16c0
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: ASUS   A7V  on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0xe408-0xe40b on acpi0
atkbdc_probe,110
acpi_cpu0: CPU on acpi0
atkbdc_probe,110
acpi_button0: Power Button on acpi0
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
acpi_pcib0: Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: PCI bus on acpi_pcib0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 4.0 on pci0
isa0: ISA bus on isab0
pci0: mass storage, ATA at device 4.1 (no driver attached)
pci0: serial bus, USB at device 4.2 (no driver attached)
pci0: serial bus, USB at device 4.3 (no driver attached)
pci0: network, ATM at device 9.0 (no driver attached)
pcm0: Creative EMU10K1 port 0xa400-0xa41f irq 5 at device 10.0 on pci0
pci0: network, ethernet at device 11.0 (no driver attached)
ahc0: Adaptec 29160 Ultra160 SCSI adapter port 0x9400-0x94ff mem 
0xd480-0xd4800fff irq 11 at device 12.0 on pci0
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs
pci0: network, ATM at device 13.0 (no driver attached)
pci0: mass storage at device 17.0 (no driver attached)
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atkbdc_probe,110
atspeaker0 port 0x61 on acpi0
atkbdc_probe,110
fdc0: NEC 72065B or clone port 0x3f7,0x3f2-0x3f5 irq 6 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
atkbdc_probe,110
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
atkbdc_probe,110
ppc1: cannot reserve I/O port range
atkbdc_probe,110
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
atkbdc_probe,110
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: unable to allocate the IRQ resource (12).
psm1: unable to allocate the IRQ resource (-1).
ppc1: cannot reserve I/O port range
orm0: Option ROM at iomem 0xcc000-0xcc7ff on isa0
fdc1: cannot reserve I/O port range (6 ports)
ppc1: cannot reserve I/O port range
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Waiting 2 seconds for SCSI devices to settle
acpi_cpu0: set speed to 100.0%
acpi_cpu: CPU throttling enabled, 16 steps from 100% to 6.2%
Mounting root from ufs:/dev/da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: IBM DDYS-T18350N S80D Fixed Direct Access SCSI-3 device
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
cd0 at ahc0 bus 0 target 6 lun 0
cd0: PLEXTOR CD-R   PX-W1210S 1.00 Removable CD-ROM SCSI-2 device
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: 

Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Ilmar S. Habibulin



On Tue, 4 Sep 2001, Kazutaka YOKOTA wrote:

 Would try the following patch for /sys/isa/psm.c IN ADDITION TO
 my previous patch?
 
 (This is a test patch. It's not a final fix.)

panic: nexus_setup_intr: NULL irq resource!



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: my psm0 doesn't work with new acpi :(

2001-09-04 Thread Kazutaka YOKOTA

 Would try the following patch for /sys/isa/psm.c IN ADDITION TO
 my previous patch?
 
 (This is a test patch. It's not a final fix.)

panic: nexus_setup_intr: NULL irq resource!

Ok, this is one last test patch. Please remove ALL my previous
patches and apply this one in /sys/isa.

Thanks.
Kazu

begin 666 atkbdcident.diff3.gz
M'XL(%@HE3L  V%T:V)D8VED96YT+F1I9F8S ,T;:7?;QO$S]O6RHO* Q0!
M4K:-+1$QVPL49%HQVG:AP!2PM/%,$ H!35=G][9V9W@7!0W*35\QP7N
M[-P[,SL3'W^VQ%SD]MKWPEB=]O;^.;+_S8N3Z[8.)CP(]:.(Z]]\NZ*/N/'
MN V;M+7MS/N-B=1P.^#Z06P4A%-F;]O6AA^,QZPU9ZT(O^:0;+5:^GC
M8UEVV]IO=RQF=X^LW:/NCD$PFLUFQ3#MK7#[(.CG=VC3G?CN^]8:[=CVAW6
MW-TQ[1WVW7;;(/Y_-Z;N''L)(: H :.X6TS3MPD\-A]/CB=#S:1*,'VM^
M%-SSR$E80SR9GP.(S 0QU6R[7!5$*1$UKZV:Y2:)Z]VLG!;Q'ZW$%J
M+S+$@551#=8PXT^X+QTI@1PQY.;T X8I'XO_R+_8-^[C1-$[[[\[ZH]?#
M4[6A8H.9YTK=W#ER42X:6AJ)XG2#=U/E1/%,2;.B=@(@IXWS+M ];WS[
M!R1@(P[^S-Q3= 5A^/$Q*$^KDHWXWFV@*N1%,JF\T@3? G7:#N9,']S%F
MKN\#!]F$NW'PBEGWDTP :ZW8=;+MU=.[_34.7D]'-:$R!,9@%8 M_Z=NH
M3P\30_ UQ-Y!MLD0)M@'A:QASFS!+$-8A^/X-C?N!U#EIA$GT=Q+P/;B
M!YYG#7@?GSB0$FZ2%30/694OP2Q3XIZW#;F5A([$:)MOLC=@/_/$Z
M=-_4^@5B.\3MQ@BFPDA(QB!%G'@LM\[=0;OI*C@\ 4# #1^K$99/]
M\/+T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