[Patch] - 2.6.6 - cpqarray.c - trivial

From: George France
Date: Mon May 31 2004 - 22:23:10 EST


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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/