Two patched need inclusion (Was: Re: torvalds@cs.helsinki.fi == /dev/null ???)

Markus Gutschke (gutschk@uni-muenster.de)
19 Feb 1996 10:34:31 GMT


--Multipart_Mon_Feb_19_11:34:31_1996-1
Content-Type: text/plain; charset=US-ASCII

In article <4fucs5$7id@mudraker.mtholyoke.edu> jbotz@mtholyoke.edu (Jurgen Botz) writes:
> In article <199602141942.UAA16474@tyr.diku.dk>,
> Morten Welinder <terra@diku.dk> wrote:
> >For the last six months I have been sending various patches
> >ranging from simple /proc/meminfo patching to a complete
> >t160 scsi host adapter driver to `torvalds@cs.helsinki.fi'.
> >So far the only response I have gotten is that I once got
> >an auto-responder reply. Nothing has gotten into the
> >kernel as far as I can tell.
>
> So post 'em here instead.

I tried to have the following patches included into a newer kernel
release, but so far, Linus did not respond to any of my mail, even
though I sent the files a few times (in case, he happened to
accidentally delete them while reading mail). Actually, I mailed him
the SAK patch sometime in spring last year for the first time, and I
did not receive a response then, either.

If anybody --- with more influence on Linus --- is reading this,
please have a look at my code and try to persuade Linus to add them to
the kernel --- or alternatively, tell me why the patches are
unacceptable and I will try to fix them.

Thank you,

Markus

--Multipart_Mon_Feb_19_11:34:31_1996-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="scsi.blacklist"
Content-Transfer-Encoding: 7bit

Mime-Version: 1.0 (generated by tm-edit 7.41)
From: gutschk (Markus Gutschke)
To: Linus.Torvalds@Helsinki.FI
Subject: Please add this entry to SCSI black-list
Date: Sun, 11 Feb 96 20:58:49 MET

Hi Linus,

could you please add one entry to the SCSI black-list.

Thanks

Markus

--- cut here --- cut here --- cut here --- cut here --- cut here --- cut here

*** linux-1.3.61/drivers/scsi/scsi.c.orig Sun Dec 17 19:46:48 1995
--- linux-1.3.61/drivers/scsi/scsi.c Sun Dec 17 19:44:14 1995
***************
*** 200,205 ****
--- 200,206 ----
*/
static struct dev_info device_list[] =
{
+ {"MEDIAVIS","RENO CD-ROMX2A","2.03",BLIST_NOLUN},/*Responds to all lun */
{"CHINON","CD-ROM CDS-431","H42", BLIST_NOLUN}, /* Locks up if polled for lun != 0 */
{"CHINON","CD-ROM CDS-535","Q14", BLIST_NOLUN}, /* Locks up if polled for lun != 0 */
{"DENON","DRD-25X","V", BLIST_NOLUN}, /* Locks up if probed for lun != 0 */

--Multipart_Mon_Feb_19_11:34:31_1996-1
Content-Type: text/plain; charset=US-ASCII

Actually, I just discovered, that my SCSI disk does also misbehave,
when polled for all LUNs. So please, also add the following entry:

{"SEAGATE","ST1581","6538",BLIST_NOLUN}, /*Responds to all lun */

--Multipart_Mon_Feb_19_11:34:31_1996-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="SAK-CAD.patch"
Content-Transfer-Encoding: 7bit

Mime-Version: 1.0 (generated by tm-edit 7.41)
From: gutschk (Markus Gutschke)
To: Linus.Torvalds@Helsinki.FI
Subject: CTRL-ALT-DEL kernel patch
Date: Sun, 11 Feb 96 21:06:31 MET

Hi Linus,

could you please add this patch to one of the next kernel releases? I
keep receiving requests from people who want to have this patch and,
since when I first released it half a year ago, I have not received
any bug-reports, so I believe that it is pretty stable.

This patch adds the ability to recognise CTRL-ALT-DEL and SAK even
when in raw- or medium-raw-keyboard mode. This would be most helpful
when either X or an SVGA program crashes and there is no easy way to
recover. SAK might help and get you back to the getty, and if that
fails, CTRL-ALT-DEL will at least cause a clean (!) shutdown.

Thanks

Markus

--- cut here --- cut here --- cut here --- cut here --- cut here --- cut here

*** linux-1.3.61/drivers/char/keyboard.c.orig Sun Feb 11 20:13:26 1996
--- linux-1.3.61/drivers/char/keyboard.c Sun Feb 11 16:57:59 1996
***************
*** 15,20 ****
--- 15,24 ----
* dynamic function/string keys, led setting, Sept 1994
* `Sticky' modifier keys, 951006.
*
+ * Added support for CTRL-ALT-DEL detection and SAK handling when in
+ * medium raw or raw mode (June 1995)
+ * (Markus Gutschke, gutschk@math.uni-muenster.de)
+ *
*/

#define KEYBOARD_IRQ 1
***************
*** 509,514 ****
--- 513,535 ----
} else
rep = set_bit(keycode, key_down);

+ #if !defined(CONFIG_DONOTHANDLECTRLALTDEL) || \
+ !defined(CONFIG_DONOTHANDLESAK)
+ if (raw_mode || kbd->kbdmode == VC_MEDIUMRAW) {
+ int shift_final = shift_state ^ kbd->lockstate;
+ ushort *key_map = key_maps[shift_final],keysym;
+ if (key_map != NULL &&
+ (KTYP(keysym = key_map[keycode]) == (0xF0|KT_SHIFT)
+ #ifndef CONFIG_DONOTHANDLECTRLALTDEL
+ || keysym == (0xF000|K_BOOT)
+ #endif
+ #ifndef CONFIG_DONOTHANDLESAK
+ || keysym == (0xF000|K_SAK)
+ #endif
+ ))
+ (*key_handler[KTYP(keysym)-0xF0])(KVAL(keysym),up_flag); }
+ #endif
+
if (raw_mode)
goto end_kbd_intr;

***************
*** 747,753 ****
static void SAK(void)
{
do_SAK(tty);
! #if 0
/*
* Need to fix SAK handling to fix up RAW/MEDIUM_RAW and
* vt_cons modes before we can enable RAW/MEDIUM_RAW SAK
--- 768,774 ----
static void SAK(void)
{
do_SAK(tty);
! #if CONFIG_DONOTHANDLESAK
/*
* Need to fix SAK handling to fix up RAW/MEDIUM_RAW and
* vt_cons modes before we can enable RAW/MEDIUM_RAW SAK
*** linux-1.3.61/drivers/char/defkeymap.map.orig Sun Feb 11 20:13:27 1996
--- linux-1.3.61/drivers/char/defkeymap.map Sun Feb 11 16:57:59 1996
***************
*** 223,229 ****
keycode 97 = Control
keycode 98 = KP_Divide
keycode 99 = Control_backslash
! control keycode 99 = Control_backslash
alt keycode 99 = Control_backslash
keycode 100 = AltGr
keycode 101 = Break
--- 223,229 ----
keycode 97 = Control
keycode 98 = KP_Divide
keycode 99 = Control_backslash
! control keycode 99 = SAK # used to be Control_backslash
alt keycode 99 = Control_backslash
keycode 100 = AltGr
keycode 101 = Break
*** linux-1.3.61/drivers/char/defkeymap.c.orig Sun Feb 11 20:13:27 1996
--- linux-1.3.61/drivers/char/defkeymap.c Sun Feb 11 16:57:59 1996
***************
*** 18,24 ****
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
! 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
--- 18,24 ----
0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
! 0xf30e, 0xf702, 0xf30d, 0xf20f, 0xf701, 0xf205, 0xf114, 0xf603,
0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
*** linux-1.3.61/drivers/char/Config.in.orig Sun Feb 11 20:16:15 1996
--- linux-1.3.61/drivers/char/Config.in Sun Feb 11 20:16:57 1996
***************
*** 48,51 ****
--- 48,54 ----
bool ' Software Watchdog' CONFIG_SOFT_WATCHDOG
fi
fi
+ bool 'Supress CTRL-ALT-DEL handling when in raw-mode' CONFIG_DONOTHANDLECTRLALTDEL n
+ bool 'Supress SAK handling (bound to CTRL-SYSREQ)' CONFIG_DONOTHANDLESAK n
+ bool 'Use soft SAK' TTY_SOFT_SAK y
endmenu

--Multipart_Mon_Feb_19_11:34:31_1996-1--