Re: dev/psm0 not found

2010-12-21 Thread Ivan Klymenko
В Mon, 20 Dec 2010 17:26:15 -0500
John Baldwin j...@freebsd.org пишет:

 On Monday, December 20, 2010 4:38:57 pm Ivan Klymenko wrote:
  В Mon, 20 Dec 2010 16:02:46 -0500
  John Baldwin j...@freebsd.org пишет:
  
  Not working :(
 
 This was debugging, not a fix.  Try this possible fix:
 
 Index: atkbdc_isa.c
 ===
 --- atkbdc_isa.c  (revision 216591)
 +++ atkbdc_isa.c  (working copy)
 @@ -272,14 +272,16 @@
* list entry so we can use a standard bus_get_resource()
* method.
*/
 - if (sc-irq == NULL) {
 - if (resource_int_value(name, unit, irq, t) != 0)
 - t = -1;
 - } else
 - t = rman_get_start(sc-irq);
 - if (t  0)
 - resource_list_add(ivar-resources, SYS_RES_IRQ,
 ivar-rid,
 -   t, t, 1);
 + if (order == KBDC_RID_KBD) {
 + if (sc-irq == NULL) {
 + if (resource_int_value(name, unit, irq,
 t) != 0)
 + t = -1;
 + } else
 + t = rman_get_start(sc-irq);
 + if (t  0)
 + resource_list_add(ivar-resources,
 SYS_RES_IRQ,
 + ivar-rid, t, t, 1);
 + }
  
   if (resource_disabled(name, unit))
   device_disable(child);
 
I have a question:
these changes will appear in HEAD?

Thanks!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread John Baldwin
On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko wrote:
 http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log
 
 after updating svn revision = 216491 system is not detecting the device
 psm
 http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491

Can you please get verbose dmesg's from before and after?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread John Baldwin
On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote:
 В Mon, 20 Dec 2010 09:58:57 -0500
 John Baldwin j...@freebsd.org пишет:
 
  On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko wrote:
   http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log
   
   after updating svn revision = 216491 system is not detecting the
   device psm
   http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491
  
  Can you please get verbose dmesg's from before and after?
  
 
 Voila.

Please boot with this and capture the output:

Index: psm.c
===
--- psm.c   (revision 216591)
+++ psm.c   (working copy)
@@ -1100,11 +1100,17 @@
 */
psmc = device_find_child(device_get_parent(parent),
PSMCPNP_DRIVER_NAME, unit);
-   if (psmc == NULL)
+   if (psmc == NULL) {
+   printf(psm%d: could not find %s%d\n, unit,
+   PSMCPNP_DRIVER_NAME, unit);
return;
+   }
irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
-   if (irq = 0)
+   if (irq = 0) {
+   printf(psm%d: no IRQ from %s%d\n, unit, PSMCPNP_DRIVER_NAME,
+   unit);
return;
+   }
bus_delete_resource(psmc, SYS_RES_IRQ, 0);
bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
 }

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread John Baldwin
On Monday, December 20, 2010 1:14:35 pm Ivan Klymenko wrote:
 В Mon, 20 Dec 2010 12:49:53 -0500
 John Baldwin j...@freebsd.org пишет:
 
  On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote:
   В Mon, 20 Dec 2010 09:58:57 -0500
   John Baldwin j...@freebsd.org пишет:
   
On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko wrote:
 
http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log
 
 after updating svn revision = 216491 system is not detecting
 the device psm
 http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491

Can you please get verbose dmesg's from before and after?

   
   Voila.
  
  Please boot with this and capture the output:
  
  Index: psm.c
  ===
  --- psm.c   (revision 216591)
  +++ psm.c   (working copy)
  @@ -1100,11 +1100,17 @@
   */
  psmc = device_find_child(device_get_parent(parent),
  PSMCPNP_DRIVER_NAME, unit);
  -   if (psmc == NULL)
  +   if (psmc == NULL) {
  +   printf(psm%d: could not find %s%d\n, unit,
  +   PSMCPNP_DRIVER_NAME, unit);
  return;
  +   }
  irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
  -   if (irq = 0)
  +   if (irq = 0) {
  +   printf(psm%d: no IRQ from %s%d\n, unit,
  PSMCPNP_DRIVER_NAME,
  +   unit);
  return;
  +   }
  bus_delete_resource(psmc, SYS_RES_IRQ, 0);
  bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
   }

Try this instead.  You can use a non-verbose dmesg to trim the spammage.

Index: psm.c
===
--- psm.c   (revision 216591)
+++ psm.c   (working copy)
@@ -1080,7 +1080,7 @@
device_t psmc;
device_t psm;
u_long irq;
-   int unit;
+   int error, unit;
 
unit = device_get_unit(parent);
 
@@ -1090,8 +1090,10 @@
return;
 
irq = bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX);
-   if (irq  0)
+   if (irq  0) {
+   printf(psm%d: already has an IRQ?\n, unit);
return;
+   }
 
/*
 * If the PS/2 mouse device has already been reported by ACPI or
@@ -1100,13 +1102,27 @@
 */
psmc = device_find_child(device_get_parent(parent),
PSMCPNP_DRIVER_NAME, unit);
-   if (psmc == NULL)
+   if (psmc == NULL) {
+   printf(psm%d: could not find %s%d\n, unit,
+   PSMCPNP_DRIVER_NAME, unit);
return;
+   }
irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
-   if (irq = 0)
+   if (irq = 0) {
+   printf(psm%d: no IRQ from %s\n, unit,
+   device_get_nameunit(psmc));
return;
-   bus_delete_resource(psmc, SYS_RES_IRQ, 0);
-   bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
+   }
+   error = bus_delete_resource(psmc, SYS_RES_IRQ, 0);
+   if (error)
+   printf(psm%d: failed to remove IRQ from %s: %d\n, unit,
+   device_get_nameunit(psmc), error);
+   error = bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
+   if (error)
+   printf(psm%d: failed to add IRQ %lu: %d\n, unit, irq,
+   error);
+   else
+   printf(psm%d: added IRQ %lu\n, unit, irq);
 }
 
 #defineendprobe(v) do {\

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread Ivan Klymenko
В Mon, 20 Dec 2010 14:51:15 -0500
John Baldwin j...@freebsd.org пишет:

 On Monday, December 20, 2010 1:14:35 pm Ivan Klymenko wrote:
  В Mon, 20 Dec 2010 12:49:53 -0500
  John Baldwin j...@freebsd.org пишет:
  
   On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote:
В Mon, 20 Dec 2010 09:58:57 -0500
John Baldwin j...@freebsd.org пишет:

 On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko wrote:
  
 http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log
  
  after updating svn revision = 216491 system is not
  detecting the device psm
  http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491
 
 Can you please get verbose dmesg's from before and after?
 

Voila.
   
   Please boot with this and capture the output:
   
   Index: psm.c
   ===
   --- psm.c (revision 216591)
   +++ psm.c (working copy)
   @@ -1100,11 +1100,17 @@
  */
 psmc = device_find_child(device_get_parent(parent),
 PSMCPNP_DRIVER_NAME, unit);
   - if (psmc == NULL)
   + if (psmc == NULL) {
   + printf(psm%d: could not find %s%d\n, unit,
   + PSMCPNP_DRIVER_NAME, unit);
 return;
   + }
 irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
   - if (irq = 0)
   + if (irq = 0) {
   + printf(psm%d: no IRQ from %s%d\n, unit,
   PSMCPNP_DRIVER_NAME,
   + unit);
 return;
   + }
 bus_delete_resource(psmc, SYS_RES_IRQ, 0);
 bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
}
 
 Try this instead.  You can use a non-verbose dmesg to trim the
 spammage.
 
 Index: psm.c
 ===
 --- psm.c (revision 216591)
 +++ psm.c (working copy)
 @@ -1080,7 +1080,7 @@
   device_t psmc;
   device_t psm;
   u_long irq;
 - int unit;
 + int error, unit;
  
   unit = device_get_unit(parent);
  
 @@ -1090,8 +1090,10 @@
   return;
  
   irq = bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX);
 - if (irq  0)
 + if (irq  0) {
 + printf(psm%d: already has an IRQ?\n, unit);
   return;
 + }
  
   /*
* If the PS/2 mouse device has already been reported by
 ACPI or @@ -1100,13 +1102,27 @@
*/
   psmc = device_find_child(device_get_parent(parent),
   PSMCPNP_DRIVER_NAME, unit);
 - if (psmc == NULL)
 + if (psmc == NULL) {
 + printf(psm%d: could not find %s%d\n, unit,
 + PSMCPNP_DRIVER_NAME, unit);
   return;
 + }
   irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
 - if (irq = 0)
 + if (irq = 0) {
 + printf(psm%d: no IRQ from %s\n, unit,
 + device_get_nameunit(psmc));
   return;
 - bus_delete_resource(psmc, SYS_RES_IRQ, 0);
 - bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
 + }
 + error = bus_delete_resource(psmc, SYS_RES_IRQ, 0);
 + if (error)
 + printf(psm%d: failed to remove IRQ from %s: %d\n,
 unit,
 + device_get_nameunit(psmc), error);
 + error = bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX,
 irq, 1);
 + if (error)
 + printf(psm%d: failed to add IRQ %lu: %d\n, unit,
 irq,
 + error);
 + else
 + printf(psm%d: added IRQ %lu\n, unit, irq);
  }
  
  #define  endprobe(v) do {\
 

/usr/local/libexec/ccache/world-cc -c -O2 -pipe -mtune=native 
-fno-strict-aliasing -march=nocona -std=c99  -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  
-I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  
/usr/src/sys/dev/atkbdc/psm.c
distcc[38004] ERROR: compile (null) on localhost failed
/usr/src/sys/dev/atkbdc/psm.c: In function 'psmidentify':
/usr/src/sys/dev/atkbdc/psm.c:1116: error: void value not ignored as it ought 
to be
*** Error code 1

Stop in /usr/obj/usr/src/sys/mk9.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread John Baldwin
On Monday, December 20, 2010 3:03:36 pm Ivan Klymenko wrote:
 В Mon, 20 Dec 2010 14:51:15 -0500
 John Baldwin j...@freebsd.org пишет:
 
  On Monday, December 20, 2010 1:14:35 pm Ivan Klymenko wrote:
   В Mon, 20 Dec 2010 12:49:53 -0500
   John Baldwin j...@freebsd.org пишет:
   
On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote:
 В Mon, 20 Dec 2010 09:58:57 -0500
 John Baldwin j...@freebsd.org пишет:
 
  On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko wrote:
   
  http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log
   
   after updating svn revision = 216491 system is not
   detecting the device psm
   http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491
  
  Can you please get verbose dmesg's from before and after?
  
 
 Voila.
 /usr/src/sys/dev/atkbdc/psm.c: In function 'psmidentify':
 /usr/src/sys/dev/atkbdc/psm.c:1116: error: void value not ignored as it ought 
 to be
 *** Error code 1

Ok, try this:

Index: psm.c
===
--- psm.c   (revision 216591)
+++ psm.c   (working copy)
@@ -1080,7 +1080,7 @@
device_t psmc;
device_t psm;
u_long irq;
-   int unit;
+   int error, unit;
 
unit = device_get_unit(parent);
 
@@ -1090,8 +1090,10 @@
return;
 
irq = bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX);
-   if (irq  0)
+   if (irq  0) {
+   printf(psm%d: already has an IRQ?\n, unit);
return;
+   }
 
/*
 * If the PS/2 mouse device has already been reported by ACPI or
@@ -1100,13 +1102,24 @@
 */
psmc = device_find_child(device_get_parent(parent),
PSMCPNP_DRIVER_NAME, unit);
-   if (psmc == NULL)
+   if (psmc == NULL) {
+   printf(psm%d: could not find %s%d\n, unit,
+   PSMCPNP_DRIVER_NAME, unit);
return;
+   }
irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
-   if (irq = 0)
+   if (irq = 0) {
+   printf(psm%d: no IRQ from %s\n, unit,
+   device_get_nameunit(psmc));
return;
+   }
bus_delete_resource(psmc, SYS_RES_IRQ, 0);
-   bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
+   error = bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
+   if (error)
+   printf(psm%d: failed to add IRQ %lu: %d\n, unit, irq,
+   error);
+   else
+   printf(psm%d: added IRQ %lu\n, unit, irq);
 }
 
 #defineendprobe(v) do {\

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread Ivan Klymenko
В Mon, 20 Dec 2010 16:02:46 -0500
John Baldwin j...@freebsd.org пишет:

 On Monday, December 20, 2010 3:03:36 pm Ivan Klymenko wrote:
  В Mon, 20 Dec 2010 14:51:15 -0500
  John Baldwin j...@freebsd.org пишет:
  
   On Monday, December 20, 2010 1:14:35 pm Ivan Klymenko wrote:
В Mon, 20 Dec 2010 12:49:53 -0500
John Baldwin j...@freebsd.org пишет:

 On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote:
  В Mon, 20 Dec 2010 09:58:57 -0500
  John Baldwin j...@freebsd.org пишет:
  
   On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko
   wrote:

   http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log

after updating svn revision = 216491 system is not
detecting the device psm
http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491
   
   Can you please get verbose dmesg's from before and after?
   
  
  Voila.
  /usr/src/sys/dev/atkbdc/psm.c: In function 'psmidentify':
  /usr/src/sys/dev/atkbdc/psm.c:1116: error: void value not ignored
  as it ought to be *** Error code 1
 
 Ok, try this:
 
 Index: psm.c
 ===
 --- psm.c (revision 216591)
 +++ psm.c (working copy)
 @@ -1080,7 +1080,7 @@
   device_t psmc;
   device_t psm;
   u_long irq;
 - int unit;
 + int error, unit;
  
   unit = device_get_unit(parent);
  
 @@ -1090,8 +1090,10 @@
   return;
  
   irq = bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX);
 - if (irq  0)
 + if (irq  0) {
 + printf(psm%d: already has an IRQ?\n, unit);
   return;
 + }
  
   /*
* If the PS/2 mouse device has already been reported by
 ACPI or @@ -1100,13 +1102,24 @@
*/
   psmc = device_find_child(device_get_parent(parent),
   PSMCPNP_DRIVER_NAME, unit);
 - if (psmc == NULL)
 + if (psmc == NULL) {
 + printf(psm%d: could not find %s%d\n, unit,
 + PSMCPNP_DRIVER_NAME, unit);
   return;
 + }
   irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0);
 - if (irq = 0)
 + if (irq = 0) {
 + printf(psm%d: no IRQ from %s\n, unit,
 + device_get_nameunit(psmc));
   return;
 + }
   bus_delete_resource(psmc, SYS_RES_IRQ, 0);
 - bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
 + error = bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX,
 irq, 1);
 + if (error)
 + printf(psm%d: failed to add IRQ %lu: %d\n, unit,
 irq,
 + error);
 + else
 + printf(psm%d: added IRQ %lu\n, unit, irq);
  }
  
  #define  endprobe(v) do {\
 

Not working :(


dmesg.boot
Description: Binary data
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: dev/psm0 not found

2010-12-20 Thread John Baldwin
On Monday, December 20, 2010 4:38:57 pm Ivan Klymenko wrote:
 В Mon, 20 Dec 2010 16:02:46 -0500
 John Baldwin j...@freebsd.org пишет:
 
 Not working :(

This was debugging, not a fix.  Try this possible fix:

Index: atkbdc_isa.c
===
--- atkbdc_isa.c(revision 216591)
+++ atkbdc_isa.c(working copy)
@@ -272,14 +272,16 @@
 * list entry so we can use a standard bus_get_resource()
 * method.
 */
-   if (sc-irq == NULL) {
-   if (resource_int_value(name, unit, irq, t) != 0)
-   t = -1;
-   } else
-   t = rman_get_start(sc-irq);
-   if (t  0)
-   resource_list_add(ivar-resources, SYS_RES_IRQ, ivar-rid,
- t, t, 1);
+   if (order == KBDC_RID_KBD) {
+   if (sc-irq == NULL) {
+   if (resource_int_value(name, unit, irq, t) != 0)
+   t = -1;
+   } else
+   t = rman_get_start(sc-irq);
+   if (t  0)
+   resource_list_add(ivar-resources, SYS_RES_IRQ,
+   ivar-rid, t, t, 1);
+   }
 
if (resource_disabled(name, unit))
device_disable(child);

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: dev/psm0 not found

2010-12-20 Thread David Wolfskill
On Mon, Dec 20, 2010 at 05:26:15PM -0500, John Baldwin wrote:
 On Monday, December 20, 2010 4:38:57 pm Ivan Klymenko wrote:
  ?? Mon, 20 Dec 2010 16:02:46 -0500
  John Baldwin j...@freebsd.org ??:
  
  Not working :(
 
 This was debugging, not a fix.  Try this possible fix:
 
 Index: atkbdc_isa.c
 ===
 --- atkbdc_isa.c  (revision 216591)
 +++ atkbdc_isa.c  (working copy)
 @@ -272,14 +272,16 @@
* list entry so we can use a standard bus_get_resource()
* method.
*/
 - if (sc-irq == NULL) {
 - if (resource_int_value(name, unit, irq, t) != 0)
 - t = -1;
 - } else
 - t = rman_get_start(sc-irq);
 - if (t  0)
 - resource_list_add(ivar-resources, SYS_RES_IRQ, ivar-rid,
 -   t, t, 1);
 + if (order == KBDC_RID_KBD) {
 + if (sc-irq == NULL) {
 + if (resource_int_value(name, unit, irq, t) != 0)
 + t = -1;
 + } else
 + t = rman_get_start(sc-irq);
 + if (t  0)
 + resource_list_add(ivar-resources, SYS_RES_IRQ,
 + ivar-rid, t, t, 1);
 + }
  
   if (resource_disabled(name, unit))
   device_disable(child);

Worked for me: FreeBSD 9.0-CURRENT #81 r216588M: Mon Dec 20 14:35:37 PST 2010

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpS2XjjUEfjZ.pgp
Description: PGP signature


Re: dev/psm0 not found

2010-12-20 Thread Ivan Klymenko
В Mon, 20 Dec 2010 17:26:15 -0500
John Baldwin j...@freebsd.org пишет:

 On Monday, December 20, 2010 4:38:57 pm Ivan Klymenko wrote:
  В Mon, 20 Dec 2010 16:02:46 -0500
  John Baldwin j...@freebsd.org пишет:
  
  Not working :(
 
 This was debugging, not a fix.  Try this possible fix:
 
 Index: atkbdc_isa.c
 ===
 --- atkbdc_isa.c  (revision 216591)
 +++ atkbdc_isa.c  (working copy)
 @@ -272,14 +272,16 @@
* list entry so we can use a standard bus_get_resource()
* method.
*/
 - if (sc-irq == NULL) {
 - if (resource_int_value(name, unit, irq, t) != 0)
 - t = -1;
 - } else
 - t = rman_get_start(sc-irq);
 - if (t  0)
 - resource_list_add(ivar-resources, SYS_RES_IRQ,
 ivar-rid,
 -   t, t, 1);
 + if (order == KBDC_RID_KBD) {
 + if (sc-irq == NULL) {
 + if (resource_int_value(name, unit, irq,
 t) != 0)
 + t = -1;
 + } else
 + t = rman_get_start(sc-irq);
 + if (t  0)
 + resource_list_add(ivar-resources,
 SYS_RES_IRQ,
 + ivar-rid, t, t, 1);
 + }
  
   if (resource_disabled(name, unit))
   device_disable(child);
 

It works!
Thanks!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


dev/psm0 not found

2010-12-18 Thread Ivan Klymenko
http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log

after updating svn revision = 216491 system is not detecting the device
psm
http://svn.freebsd.org/viewvc/base?view=revisionrevision=216491




Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #0 r216524: Sat Dec 18 19:51:17 EET 2010
i...@nonamehost:/usr/obj/usr/src/sys/mk9 amd64
CPU: Intel(R) Core(TM)2 Duo CPU T7250  @ 2.00GHz (1994.47-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x6fd  Family = 6  Model = f  Stepping = 13
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2039611392 (1945 MB)
Event timer LAPIC quality 400
ACPI APIC Table: DELL   M08
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 Version 2.0 irqs 0-23 on motherboard
Cuse4BSD v0.1.13 @ /dev/cuse
kbd1 at kbdmux0
acpi0: DELL M08 on motherboard
hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0
Timecounter HPET frequency 14318180 Hz quality 900
Event timer HPET frequency 14318180 Hz quality 550
Event timer HPET1 frequency 14318180 Hz quality 440
acpi0: reservation of 0, 9f000 (3) failed
acpi0: reservation of 10, 7fd6d800 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: VGA-compatible display port 0xef00-0xef7f mem 
0xfd00-0xfdff,0xe000-0xefff,0xfa00-0xfbff irq 16 at 
device 0.0 on pci1
acpi_video0: ACPI video extension on vgapci0
nvidia0: GeForce 8400M GS on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
uhci0: Intel 82801H (ICH8) USB controller USB-D port 0x6f20-0x6f3f irq 20 at 
device 26.0 on pci0
usbus0: Intel 82801H (ICH8) USB controller USB-D on uhci0
uhci1: Intel 82801H (ICH8) USB controller USB-E port 0x6f00-0x6f1f irq 21 at 
device 26.1 on pci0
usbus1: Intel 82801H (ICH8) USB controller USB-E on uhci1
ehci0: Intel 82801H (ICH8) USB 2.0 controller USB2-B mem 
0xfed1c400-0xfed1c7ff irq 22 at device 26.7 on pci0
usbus2: EHCI version 1.0
usbus2: Intel 82801H (ICH8) USB 2.0 controller USB2-B on ehci0
hdac0: Intel 82801H High Definition Audio Controller mem 
0xfebfc000-0xfebf irq 21 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
pcib2: ACPI PCI-PCI bridge at device 28.0 on pci0
pci11: ACPI PCI bus on pcib2
pcib3: ACPI PCI-PCI bridge at device 28.1 on pci0
pci12: ACPI PCI bus on pcib3
pci12: network at device 0.0 (no driver attached)
pcib4: ACPI PCI-PCI bridge at device 28.3 on pci0
pci13: ACPI PCI bus on pcib4
pcib5: ACPI PCI-PCI bridge at device 28.5 on pci0
pci9: ACPI PCI bus on pcib5
bge0: Broadcom BCM5906 A2, ASIC rev. 0x00c002 mem 0xf9bf-0xf9bf irq 
17 at device 0.0 on pci9
bge0: CHIP ID 0xc002; ASIC REV 0x0c; CHIP REV 0xc0; PCI-E
miibus0: MII bus on bge0
brgphy0: BCM5906 10/100baseTX PHY PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
bge0: Ethernet address: 00:1c:23:f9:bb:5f
uhci2: Intel 82801H (ICH8) USB controller USB-A port 0x6f80-0x6f9f irq 20 at 
device 29.0 on pci0
usbus3: Intel 82801H (ICH8) USB controller USB-A on uhci2
uhci3: Intel 82801H (ICH8) USB controller USB-B port 0x6f60-0x6f7f irq 21 at 
device 29.1 on pci0
usbus4: Intel 82801H (ICH8) USB controller USB-B on uhci3
uhci4: Intel 82801H (ICH8) USB controller USB-C port 0x6f40-0x6f5f irq 22 at 
device 29.2 on pci0
usbus5: Intel 82801H (ICH8) USB controller USB-C on uhci4
ehci1: Intel 82801H (ICH8) USB 2.0 controller USB2-A mem 
0xfed1c000-0xfed1c3ff irq 20 at device 29.7 on pci0
usbus6: EHCI version 1.0
usbus6: Intel 82801H (ICH8) USB 2.0 controller USB2-A on ehci1
pcib6: ACPI PCI-PCI bridge at device 30.0 on pci0
pci3: ACPI PCI bus on pcib6
fwohci0: 1394 Open Host Controller Interface mem 0xf9aff800-0xf9af irq 19 
at device 1.0 on pci3
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 32:4f:c0:00:1c:e5:20:70
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: IEEE1394(FireWire) bus on fwohci0
dcons_crom0: dcons