mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: Hooks for random device entropy generation missing incpqarray.c
@ 2002-03-20 21:37 Cameron, Steve
  2002-03-20 21:49 ` Manon Goo
  0 siblings, 1 reply; 4+ messages in thread
From: Cameron, Steve @ 2002-03-20 21:37 UTC (permalink / raw)
  To: Manon Goo, linux-kernel


> excuse me I am using 2.4.18
> 

Ok.  If SA_SAMPLE_RANDOM is not in
the call to request_irq, you can put 
it in.  A trivial (but untested) patch: 
(if outlook doesn't mangle it) 

-- steve

--- cpqarray.c.orig	Wed Mar 20 15:25:51 2002
+++ cpqarray.c	Wed Mar 20 15:26:30 2002
@@ -516,8 +516,9 @@
 
 	
 	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])) 
+	if (request_irq(hba[i]->intr, do_ida_intr, 
+		SA_SAMPLE_RANDOM|SA_INTERRUPT|SA_SHIRQ, 
+		hba[i]->devname, hba[i])) 
 	{
 
 		printk(KERN_ERR "cpqarray: Unable to get irq %d for %s\n", 

 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Hooks for random device entropy generation missing incpqarray.c
  2002-03-20 21:37 Hooks for random device entropy generation missing incpqarray.c Cameron, Steve
@ 2002-03-20 21:49 ` Manon Goo
  0 siblings, 0 replies; 4+ messages in thread
From: Manon Goo @ 2002-03-20 21:49 UTC (permalink / raw)
  To: Cameron, Steve, linux-kernel

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

I have not tried your patch.  but this is in cpqarray_init() and it is only 
called when the driver is initilaized.
How is the entropy-pool further updated ?

Thanks

Manon



--On Mittwoch, 20. März 2002 15:37 Uhr -0600 "Cameron, Steve" 
<Steve.Cameron@COMPAQ.com> wrote:

>
>> excuse me I am using 2.4.18
>>
>
> Ok.  If SA_SAMPLE_RANDOM is not in
> the call to request_irq, you can put
> it in.  A trivial (but untested) patch:
> (if outlook doesn't mangle it)
>
> -- steve
>
> --- cpqarray.c.orig	Wed Mar 20 15:25:51 2002
> +++ cpqarray.c	Wed Mar 20 15:26:30 2002
> @@ -516,8 +516,9 @@
>
>
>  	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]))
> +	if (request_irq(hba[i]->intr, do_ida_intr,
> +		SA_SAMPLE_RANDOM|SA_INTERRUPT|SA_SHIRQ,
> +		hba[i]->devname, hba[i]))
>  	{
>
>  		printk(KERN_ERR "cpqarray: Unable to get irq %d for %s\n",
>
>


[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Hooks for random device entropy generation missing incpqarray.c
  2002-03-20 21:59 Cameron, Steve
@ 2002-03-21  0:47 ` Manon Goo
  0 siblings, 0 replies; 4+ messages in thread
From: Manon Goo @ 2002-03-21  0:47 UTC (permalink / raw)
  To: Cameron, Steve, linux-kernel

OK I'll try tell you tomorrwo how iz worked out

--On Mittwoch, 20. März 2002 15:59 Uhr -0600 "Cameron, Steve" 
<Steve.Cameron@COMPAQ.com> wrote:

>
>> I have not tried your patch.  but this is in cpqarray_init()
>> and it is only
>> called when the driver is initilaized.
>> How is the entropy-pool further updated ?
>
> It's done in linux/arch/*/kernel/irq.c.
> for i386, in handle_IRQ_event() function.
>
> -- steve
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Hooks for random device entropy generation missing incpqarray.c
@ 2002-03-20 21:59 Cameron, Steve
  2002-03-21  0:47 ` Manon Goo
  0 siblings, 1 reply; 4+ messages in thread
From: Cameron, Steve @ 2002-03-20 21:59 UTC (permalink / raw)
  To: Manon Goo, linux-kernel

 
> I have not tried your patch.  but this is in cpqarray_init() 
> and it is only 
> called when the driver is initilaized.
> How is the entropy-pool further updated ?

It's done in linux/arch/*/kernel/irq.c.
for i386, in handle_IRQ_event() function.

-- steve


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-21  0:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-20 21:37 Hooks for random device entropy generation missing incpqarray.c Cameron, Steve
2002-03-20 21:49 ` Manon Goo
2002-03-20 21:59 Cameron, Steve
2002-03-21  0:47 ` Manon Goo

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®