mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Patch] - 2.6.6 - cpqarray.c - trivial
@ 2004-06-01  3:10 George France
  0 siblings, 0 replies; only message in thread
From: George France @ 2004-06-01  3:10 UTC (permalink / raw)
  To: Cpqarray-discuss; +Cc: linux-kernel

Hello,

I just upgrade my Compaq Prolient Server to 2.6.x.  This system is mostly
a http server and does not have a keyboard or mouse attached.  This
system hangs on reboot, when generating SSL keys due to /dev/random
having zero entropy.

It is my understanding that /dev/random uses the keyboard, mouse and
block devices to generate entropy.  Since this system does not have a
keyboard or mouse, I am having to rely upon the cpqarray (block) driver
for entropy.  It appears that in the 2.4.x kernel somebody added the
SA_SAMPLE_RANDOM flag to request_irq() in cpqarray.c to fix this
problem.  Below is a patch against 2.6.6, which corrects this issue.

Best Regards,


--George

--- linux-2.6.6/drivers/block/cpqarray.c-orig   2004-05-31 22:54:35.000000000 -0400
+++ linux-2.6.6/drivers/block/cpqarray.c        2004-05-31 22:56:07.000000000 -0400
@@ -418,7 +418,7 @@
        }
        hba[i]->access.set_intr_mask(hba[i], 0);
        if (request_irq(hba[i]->intr, do_ida_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 "cpqarray: Unable to get irq %d for %s\n",
                                hba[i]->intr, hba[i]->devname);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-01  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-01  3:10 [Patch] - 2.6.6 - cpqarray.c - trivial George France

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®