All of lore.kernel.org
 help / color / mirror / Atom feed
* randomness - compaq smart array driver
@ 2002-02-11 15:00 Proescholdt, timo
  2002-02-11 16:58 ` Tim Schmielau
  0 siblings, 1 reply; 6+ messages in thread
From: Proescholdt, timo @ 2002-02-11 15:00 UTC (permalink / raw)
  To: linux-kernel

Hi Linux community,


I have a question concerning /dev/random on proliant servers with 
smart array controllers.
A month ago i tried to install freeswan on a proliant dl360 box,
running redhat 6.2 on a smart array controller.
There are no disks hanging at the scsi controller only the 
two disks at the smart array controller channel. Kernel is 2.4.14 .

I noticed that the installation fails due to missing randomness.
I can confirm that as cat /dev/random does not provide any output.

Looking and asking arround i found out that the smart array
controller driver has a bug (?) so that it does not provide 
any information to the kernel random functions.
Because i am working on the machine over a ssh connection
there is no mouse / keyboard input, so randomness
depends on disk aktivity only. As the only disks on the
system are connected to the smart array controller 
no random data can be created.

I heard that there is a patch for 2.2.x kernels, wich deals with this
topic , but i cannot find this patch anywere .
Is there a similar patch for 2.4.x kernels?
Will this problem be solved in the next future?
Can anybody tell me if this problem is known, are there
any workarrounds / solutions ?

many thanks 

Timo Proescholdt

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: randomness - compaq smart array driver
@ 2002-02-11 17:41 Stephen Cameron
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Cameron @ 2002-02-11 17:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Timo.Proescholdt

timo (Timo.Proescholdt@brk-muenchen.de) wrote:

> I have a question concerning /dev/random on proliant servers with 
> smart array controllers.
> A month ago i tried to install freeswan on a proliant dl360 box,
> running redhat 6.2 on a smart array controller.
> There are no disks hanging at the scsi controller only the 
> two disks at the smart array controller channel. Kernel is 2.4.14 .

As it happens, we just sent this patch to Jens on Friday,
I tried it and meant it for 2.5.4-pre2 and -pre3.  I 
think it ought to be good for 2.4.x as well though.

-- steve

diff -urN lx254p2-c3/drivers/block/cciss.c lx254p2-c4/drivers/block/cciss.c
--- lx254p2-c3/drivers/block/cciss.c	Thu Feb  7 14:35:31 2002
+++ lx254p2-c4/drivers/block/cciss.c	Thu Feb  7 14:50:43 2002
@@ -2467,7 +2467,8 @@
 	/* make sure the board interrupts are off */
 	hba[i]->access.set_intr_mask(hba[i], CCISS_INTR_OFF);
 	if( request_irq(hba[i]->intr, do_cciss_intr, 
-		SA_INTERRUPT|SA_SHIRQ, hba[i]->devname, hba[i]))
+		SA_INTERRUPT | SA_SHIRQ | SA_SAMPLE_RANDOM, 
+			hba[i]->devname, hba[i]))
 	{
 		printk(KERN_ERR "ciss: Unable to get irq %d for %s\n",
 			hba[i]->intr, hba[i]->devname);


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-02-13 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-11 15:00 randomness - compaq smart array driver Proescholdt, timo
2002-02-11 16:58 ` Tim Schmielau
2002-02-13 13:14   ` Ken Brownfield
2002-02-13 15:08     ` Sean Hunter
2002-02-13 15:49       ` Chris Friesen
  -- strict thread matches above, loose matches on Subject: below --
2002-02-11 17:41 Stephen Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.