[comp.unix.i386] Conflicting interrupts!

blitter@ele.tue.nl (Paul) (07/09/90)

I haven't seen this asked before so I'm not sure whether this is a
stupid question. I have recently installed a Wangtek PC36 controller in
my Interactive 386 system and I had to remove the lp driver to use 
interrupt 7 for the tape. This means that I can use the tape now but
not the printer. Apparently interrupt 5 is used by gendev, what is
this device and can I remove that line from the configuration file
for gendev.

I this is a common question this could be inserted in the frequently
aked list.

Thanks in advance

Paul Derks

cpcahil@virtech.uucp (Conor P. Cahill) (07/10/90)

In article <520@al.ele.tue.nl> blitter@ele.tue.nl (Paul) writes:
>interrupt 7 for the tape. This means that I can use the tape now but
>not the printer. Apparently interrupt 5 is used by gendev, what is
>this device and can I remove that line from the configuration file
>for gendev.

From what I can see, gendev is a "pseudo" device that eats up unused
iterrupt numbers.  I have deleted these things with no repercussions.

If you look in /etc/conf/kconfig.d/some_thing_or_other you will
find a shell script that creates the gendev entries, so I think it
is ok to do as you wish.

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 

darryl@ism780c.isc.com (Darryl Richman) (07/10/90)

In article <1990Jul09.230948.6385@virtech.uucp> cpcahil@virtech.UUCP (Conor P. Cahill) writes:
"In article <520@al.ele.tue.nl> blitter@ele.tue.nl (Paul) writes:
">interrupt 7 for the tape. This means that I can use the tape now but
">not the printer. Apparently interrupt 5 is used by gendev, what is
">this device and can I remove that line from the configuration file
">for gendev.
"
"From what I can see, gendev is a "pseudo" device that eats up unused
"iterrupt numbers.  I have deleted these things with no repercussions.

The gendev device is the frontend for the HPDD, and it catches all
interrupts destined for devices controlled by the HPDD.  Apparently you
have not reconfigured your kernel using kconfig after installation.
The installation kernel comes with five different controllers
configured, and each one takes a fair amount of time during the boot
process to decide that their card doesn't exist.  (They each take up
some kernel space and, as you've noticed, interrupts as well.)  So it
behooves you to run kconfig and "reconfigure the HPDD" after
installing.  BTW, interrupt 5 is used for the MCA MFM and ESDI cards.

		--Darryl Richman
-- 
Copyright (c) 1990 Darryl Richman    The views expressed are the author's alone
darryl@ism780c.isc.com 		      INTERACTIVE Systems Corp.-A Kodak Company
 "For every problem, there is a solution that is simple, elegant, and wrong."
	-- H. L. Mencken

darryl@ism780c.isc.com (Darryl Richman) (07/11/90)

In article <44963@ism780c.isc.com> darryl@ism780c.UUCP (Darryl Richman) writes:
>BTW, interrupt 5 is used for the MCA MFM and ESDI cards.

Ooops, interrupt 5 is actually used for the Future Domain TMC-830 and
TMC-841 SCSI host adaptors (the MCA cards use 14).

		--Darryl Richman
-- 
Copyright (c) 1990 Darryl Richman    The views expressed are the author's alone
darryl@ism780c.isc.com 		      INTERACTIVE Systems Corp.-A Kodak Company
 "For every problem, there is a solution that is simple, elegant, and wrong."
	-- H. L. Mencken

tritsche@lan.informatik.tu-muenchen.dbp.de (Stefan Tritscher) (07/11/90)

In article <520@al.ele.tue.nl> blitter@ele.tue.nl (Paul) writes:
> ... I have recently installed a Wangtek PC36 controller in
>my Interactive 386 system and I had to remove the lp driver to use 
>interrupt 7 for the tape. This means that I can use the tape now but
>not the printer. Apparently interrupt 5 is used by gendev, what is
>this device and can I remove that line from the configuration file
>for gendev.

Gendev is the "fast filesystem disk driver" of ISC (maybe it stands for
"generic device").
I think, interrupt request 5 is only used, if you have a SCSI controller.
If you dont, you should reconfigure the high performance disk driver
using kconfig. After that proceduere you can use IRQ 5 for another device.

Hope this helps, Stefan
--
                                            / relay.cs.net (CS-NET, ARPA)
tritsche%lan.informatik.tu-muenchen.dbp.de@ - unido.uucp   (UUCP)
                                            \ unido.bitnet (BITNET)
Munich University of Technology,  Department of Computer Science, FRG

tyager@maxx.UUCP (Tom Yager) (07/11/90)

In article <1990Jul09.230948.6385@virtech.uucp>, cpcahil@virtech.uucp (Conor P. Cahill) writes:
> In article <520@al.ele.tue.nl> blitter@ele.tue.nl (Paul) writes:
> >not the printer. Apparently interrupt 5 is used by gendev, what is
> >this device and can I remove that line from the configuration file
> >for gendev.
> 
> From what I can see, gendev is a "pseudo" device that eats up unused
> iterrupt numbers.  I have deleted these things with no repercussions.
> 
> Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,

There is a somewhat less risky way to get rid of the gendev devices, and it's
something every new ISC installation needs to go through anyhow.

Use "kconfig", select "configure kernel," then "configure high-performance
disk driver." Even if you don't have any fancy hardware, you need to follow
this step to tune the kernel to the type of disks and controllers you have
installed. The extra interrupts are used by the generic kernel (the one on
the install diskette) so it can run without knowing your configuration in
advance. All the possible disk interrupts are reserved. Configuring the HPDD,
relinking the kernel and rebooting will solve your problem, and might boost
your performance as well.

If in doubt, follow along in your OS guide. There's a step-by-step there
that walks you through this process.

(ty)

-- 
+--Tom Yager, Technical Editor, BYTE----Reviewer, UNIX World---------------+
|  NET: decvax!maxx!tyager     -or-     uunet!bytepb!maxx!tyager           | 
|  I speak only for myself           "UNIX: It's not a job,                |
+-------------------------------------it's a Jihad!" -co-worker------------+

blitter@ele.tue.nl (Paul) (07/13/90)

Thanks to everyone who responded to my question. The problem was indeed
solved by running kconfig and reconfiguring the High performance 
disk driver. Now gendev is only using the one interrupt (14) for
the standard AT harddisk controller.

Paul
blitter@ele.tue.nl