mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Anders K. Pedersen" <akp@cohaesio.com>
To: Dave Olien <dmo@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Let DAC960 supply entropy to random pool
Date: Thu, 23 Feb 2006 17:44:38 +0100	[thread overview]
Message-ID: <1140713078.16199.25.camel@homer.cohaesio.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

Hello,

We have a couple of servers with Mylex RAID controllers (handled by the
DAC960 block device driver). There's normally no keyboard or mouse
attached, and neither the DAC960 nor the NIC driver (e100) provides
entropy to the random pool, so it was impossible to get any data from
/dev/random.

The patch below lets the DAC960 IRQ provide entropy to the random pool,
and after applying this (to 2.6.15.4), /dev/random is able to provide
data on these servers. I fear, that my mailer may line wrap the patch,
so it is also attached to this mail.

--- drivers/block/DAC960.c~	2006-02-23 16:34:47.000000000 +0100
+++ drivers/block/DAC960.c	2006-02-23 16:34:47.000000000 +0100
@@ -3024,7 +3024,7 @@ DAC960_DetectController(struct pci_dev *
      Acquire shared access to the IRQ Channel.
   */
   IRQ_Channel = PCI_Device->irq;
-  if (request_irq(IRQ_Channel, InterruptHandler, SA_SHIRQ,
+  if (request_irq(IRQ_Channel, InterruptHandler,
SA_SHIRQ|SA_SAMPLE_RANDOM,
 		      Controller->FullModelName, Controller) < 0)
   {
 	DAC960_Error("Unable to acquire IRQ Channel %d for Controller at\n",

-- 
Med venlig hilsen - Best regards

Anders K. Pedersen
Network Engineer

[-- Attachment #2: DAC960.random.patch --]
[-- Type: text/x-patch, Size: 555 bytes --]

--- drivers/block/DAC960.c~	2006-02-23 16:34:47.000000000 +0100
+++ drivers/block/DAC960.c	2006-02-23 16:34:47.000000000 +0100
@@ -3024,7 +3024,7 @@ DAC960_DetectController(struct pci_dev *
      Acquire shared access to the IRQ Channel.
   */
   IRQ_Channel = PCI_Device->irq;
-  if (request_irq(IRQ_Channel, InterruptHandler, SA_SHIRQ,
+  if (request_irq(IRQ_Channel, InterruptHandler, SA_SHIRQ|SA_SAMPLE_RANDOM,
 		      Controller->FullModelName, Controller) < 0)
   {
 	DAC960_Error("Unable to acquire IRQ Channel %d for Controller at\n",

             reply	other threads:[~2006-02-23 16:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 16:44 Anders K. Pedersen [this message]
2006-02-27  0:05 ` Matt Mackall
2006-03-06 11:25   ` Anders K. Pedersen
2006-03-06 17:44     ` Matt Mackall
2006-03-07 13:18       ` Anders K. Pedersen

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=1140713078.16199.25.camel@homer.cohaesio.com \
    --to=akp@cohaesio.com \
    --cc=dmo@osdl.org \
    --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®