- 2.6.6 - cpqarray.c - trivial
PATCH 1/1 - 2.6.6 - cpqarray.c - trivial
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
drivers/block/cpqarray.c 2004-05-31 22:56:07.000000000 -0400 renamed from drivers/block/cpqarray.c-orig 2004-05-31 22:54:35.000000000 -0400 +1 -1
@@ -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);