mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: George France <france@handhelds.org>
To: Cpqarray-discuss@lists.sourceforge.net
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [Patch] - 2.6.6 - cpqarray.c - trivial
Date: Mon, 31 May 2004 23:10:08 -0400	[thread overview]
Message-ID: <200405312310.08754.france@handhelds.org> (raw)

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


                 reply	other threads:[~2004-06-01  3:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200405312310.08754.france@handhelds.org \
    --to=france@handhelds.org \
    --cc=Cpqarray-discuss@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®