Bug 96798 - [kbd] sunkbd does not support "kbdcontrol -k"
Summary: [kbd] sunkbd does not support "kbdcontrol -k"
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: sparc64 (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: emax
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-04 21:10 UTC by andrew
Modified: 2006-10-09 17:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrew 2006-05-04 21:10:10 UTC
I have a usb keyboard and a Sun keyboard. The Sun keyboard works, but the
USB one doesn't. (On the version of FreeBSD 5.4 installed on a different
partition, the USB keyboard does work.)

I tried to deselect the sun keyboard with
kbdcontrol -k /dev/kbd0
and the error message says
sunkbd0, type: generic (0)
WARNING PID 549 (kbdcontrol) ioctl sign-extension ioctl ffffffff80244b45
Unable to (un)mux the keyboard - operation not supported by device

I tried using kldload to load the kbdmux, and this made no difference.

kbdcontrol -K /dev/kbd0
produces a kernel panic!

kbdcontrol -A
and
kbdcontrol -a
also do not work correctly AFAICT.

Fix: 

Not known.
How-To-Repeat: Use kbdcontrol on an Ultra60 with a Sun type 5 keyboard.
Comment 1 emax freebsd_committer freebsd_triage 2006-09-15 19:41:18 UTC
Responsible Changed
From-To: freebsd-sparc64->emax

over to me
Comment 2 dfilter service freebsd_committer freebsd_triage 2006-09-15 19:41:26 UTC
emax        2006-09-15 18:41:12 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/kbdcontrol  kbdcontrol.c 
  Log:
  Make op parameter to mux_keyboard() u_int instead of int.
  This should fix sparc64 messages like
  
  Sep 15 11:17:39 peahi kernel: WARNING pid 5477 (kbdcontrol): ioctl sign-extension ioctl ffffffff80244b45
  
  PR:             sparc64/96798
  MFC after:      1 week
  
  Revision  Changes    Path
  1.50      +2 -2      src/usr.sbin/kbdcontrol/kbdcontrol.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-09-18 23:57:13 UTC
emax        2006-09-18 22:56:59 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/uart         uart_kbd_sun.c 
  Log:
  Do not try to call keyboard callback unless keyboard is active and busy.
  This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4).
  
  PR:             sparc64/96798
  MFC after:      1 week
  
  Revision  Changes    Path
  1.8       +6 -4      src/sys/dev/uart/uart_kbd_sun.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 dfilter service freebsd_committer freebsd_triage 2006-09-24 17:02:47 UTC
emax        2006-09-24 16:02:32 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    usr.sbin/kbdcontrol  kbdcontrol.c 
  Log:
  MFC:
  
  Make op parameter to mux_keyboard() u_int instead of int.
  This should fix sparc64 messages like
  
  Sep 15 11:17:39 peahi kernel: WARNING pid 5477 (kbdcontrol): ioctl sign-extension ioctl ffffffff80244b45
  
  PR:             sparc64/96798
  Approved by:    re (hrs)
  
  Revision  Changes    Path
  1.48.8.2  +2 -2      src/usr.sbin/kbdcontrol/kbdcontrol.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 dfilter service freebsd_committer freebsd_triage 2006-09-25 03:53:48 UTC
emax        2006-09-25 02:53:32 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/dev/uart         uart_kbd_sun.c 
  Log:
  MFC:
  
  Do not try to call keyboard callback unless keyboard is active and busy.
  This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4).
  
  PR:             sparc64/96798
  Approved by:    re (hrs)
  
  Revision  Changes    Path
  1.5.2.2   +6 -4      src/sys/dev/uart/uart_kbd_sun.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 emax freebsd_committer freebsd_triage 2006-09-27 21:42:49 UTC
State Changed
From-To: open->patched

all problems mentioned in the PR should now be fixed in -current
Comment 7 emax freebsd_committer freebsd_triage 2006-10-09 17:16:27 UTC
State Changed
From-To: patched->closed

fix committed to both 7.0-CURRENT and 6-STABLE