[3323] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: SCSI host numbering (patch)

daemon@ATHENA.MIT.EDU (Dario_Ballabio)
Sat Feb 14 06:35:43 1998

Date: 	Sat, 14 Feb 1998 12:11:45 +0100
From: Dario_Ballabio@milano.europe.dg.com (Dario_Ballabio)
To: linux-scsi@vger.rutgers.edu

%UATTACH
>
>OK. I include an experimental patch for 2.1.86 drivers/scsi/hosts.c  
>which is applying it. Please test it and send me your comments.
>At present I have no possibility to test it with anything more than  ppa
>driver :(  
>So anybody who could test it with more than one scsi host
>(especially as modules - which are being removed and loaded again) is
>welcome.
>
>With regards
>--
>=======================================================================
>  Andrzej M. Krzysztofowicz  
>Faculty of Applied Phys. & Math.,   Technical University of Gdansk

Actually it is quite possible to have a scsi driver compiled into
the kernel which activates a group of scsi boards. At a later time
the _same_ scsi driver can be loaded as a module and it can take control
of another group of scsi boards. I do this in my normal working
environment in which the eata driver is compiled into the kernel
and takes the boot time options "eata=0x5c88" in order to initialize
only the eata board in eisa slot 5. At a later time I insmod eata.o
which initializes all the other eata boards.

[note that while eata is compiled into the kernel, the eata.o module is 
simply created by the following command line:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 \
-fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 \
-malign-jumps=2 -malign-functions=2 -DCPU=586  -DMODULE -c -o eata.o eata.c

and copied into the appropriate directory.]

So your patch should take into account the fact that two instances of the
same scsi driver can be simoultaneously active.....

Moreover when a scsi driver is loaded it can selectively initialize
potentially different boards each time, accordingly to the options
specified for that particular insmod instance.

Cheers,

  
  +--------------------------------+--------------------------------------+
  | Dario Ballabio,                | Phone     : +39 2 753961             |
  | Technical Director,            | Fax       : +39 2 75396204           |
  | Data General Italy             | Mob. phone: +39 3356322300           |
  |                                | Addr.     : v. Rivoltana, 13         |
  |                                |             20090 Segrate MI Italy   |
  |                                | Email: dario@milano.europe.dg.com    |
  |                                |                                      |
  |                                |    "si vis pacem, para bellum."      | 
  +--------------------------------+--------------------------------------+

home help back first fref pref prev next nref lref last post