public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] [PATCH] fix casting problem in megaraid driver
@ 2000-09-01 19:08 aip
  2000-09-05 17:50 ` aip
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: aip @ 2000-09-01 19:08 UTC (permalink / raw)
  To: linux-ia64


[-- Attachment #1.1: Type: text/plain, Size: 90 bytes --]

This patch fixes bug where mbox's pointer was cast to integer, caused
segfault.

-Andrew


[-- Attachment #1.2: linux-2.4.0test7-ia64-megaraid.patch --]
[-- Type: application/x-patch, Size: 1575 bytes --]

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

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

* [Linux-ia64] [PATCH] fix casting problem in megaraid driver
  2000-09-01 19:08 [Linux-ia64] [PATCH] fix casting problem in megaraid driver aip
@ 2000-09-05 17:50 ` aip
  2000-09-06  1:30 ` David Mosberger
  2000-09-06  1:50 ` Matt_Domsch
  2 siblings, 0 replies; 4+ messages in thread
From: aip @ 2000-09-05 17:50 UTC (permalink / raw)
  To: linux-ia64

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


This patch fixes bug where mbox's pointer was cast to integer, caused
segfault.

-Andrew

[-- Attachment #2: linux-2.4.0test7-ia64-megaraid.patch --]
[-- Type: application/x-patch, Size: 1543 bytes --]

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

* Re: [Linux-ia64] [PATCH] fix casting problem in megaraid driver
  2000-09-01 19:08 [Linux-ia64] [PATCH] fix casting problem in megaraid driver aip
  2000-09-05 17:50 ` aip
@ 2000-09-06  1:30 ` David Mosberger
  2000-09-06  1:50 ` Matt_Domsch
  2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2000-09-06  1:30 UTC (permalink / raw)
  To: linux-ia64

Hi Andrew,

>>>>> On Tue, 5 Sep 2000 10:50:38 -0700, aip@turbolinux.com said:

  Andrew> This patch fixes bug where mbox's pointer was cast to
  Andrew> integer, caused segfault.

The patch looks a bit suspicious to me.  I'm not familiar with the
megaraid driver, but looking at the relevant code, it's clear that
"paddr" really is a 32 bit PCI address (it gets written to the device
as a sequence of four byte writes), so changing it to u64 clearly
isn't 100% correct.

Now, looking at the code that calls the routine in question:

 mega_register_mailbox (megaCfg, virt_to_bus ((void *) &megaCfg->mailbox64));

we find that, yuck, this is another driver that hasn't been updated
for the PCI DMA interface.  Not much point in hacking around in this
driver until this gets rectified...

Note that the virt_to_bus() and bus_to_virt() macros have been
obsoleted by the PCI DMA interface and will be removed from the kernel
at some future point (I'm tempted to do this now so we'll discover
right away which drivers need cleaning up).

Can you ask the megaraid maintainers to update their driver to use the
PCI DMA interface?

	--david


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

* RE: [Linux-ia64] [PATCH] fix casting problem in megaraid driver
  2000-09-01 19:08 [Linux-ia64] [PATCH] fix casting problem in megaraid driver aip
  2000-09-05 17:50 ` aip
  2000-09-06  1:30 ` David Mosberger
@ 2000-09-06  1:50 ` Matt_Domsch
  2 siblings, 0 replies; 4+ messages in thread
From: Matt_Domsch @ 2000-09-06  1:50 UTC (permalink / raw)
  To: linux-ia64

> we find that, yuck, this is another driver that hasn't been updated
> for the PCI DMA interface.  Not much point in hacking around in this
> driver until this gets rectified...
> 
> Note that the virt_to_bus() and bus_to_virt() macros have been
> obsoleted by the PCI DMA interface and will be removed from the kernel
> at some future point (I'm tempted to do this now so we'll discover
> right away which drivers need cleaning up).
> 
> Can you ask the megaraid maintainers to update their driver to use the
> PCI DMA interface?
> 
> 	--david

The update is in progress at AMI already.

Thanks,
Matt



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

end of thread, other threads:[~2000-09-06  1:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-01 19:08 [Linux-ia64] [PATCH] fix casting problem in megaraid driver aip
2000-09-05 17:50 ` aip
2000-09-06  1:30 ` David Mosberger
2000-09-06  1:50 ` Matt_Domsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox