* [PATCH] Bug in sn_pci_map_sg causes MCA
@ 2003-11-03 20:36 Alan Mayer
2003-11-03 20:47 ` Jesse Barnes
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Alan Mayer @ 2003-11-03 20:36 UTC (permalink / raw)
To: linux-ia64
If sg->dma_address is set, we try to do a __pa() on a dma_address,
then, later, create a dma_addresss from a munged dma_address. When
this bogus dma_address is used by the card, it results in MCAs.
--ajm
--- /usr/tmp/TmpDir.5614-0/linux/arch/ia64/sn/io/machvec/pci_dma.c_1.5 Mon Nov 3 14:32:30 2003
+++ linux/arch/ia64/sn/io/machvec/pci_dma.c Mon Nov 3 13:16:20 2003
@@ -279,8 +279,7 @@
* scatterlist.
*/
for (i = 0; i < nents; i++, sg++) {
- phys_addr = __pa(sg->dma_address ? sg->dma_address :
- (unsigned long)page_address(sg->page) + sg->offset);
+ phys_addr = __pa((unsigned long)page_address(sg->page) + sg->offset);
/*
* Handle the most common case: 64 bit cards. This
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bug in sn_pci_map_sg causes MCA
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
@ 2003-11-03 20:47 ` Jesse Barnes
2003-11-03 21:14 ` David Mosberger
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jesse Barnes @ 2003-11-03 20:47 UTC (permalink / raw)
To: linux-ia64
David, this fixes a critical bug for us. Can you push it to Linus or
should we send it straight to Andrew?
Thanks,
Jesse
On Mon, Nov 03, 2003 at 02:36:29PM -0600, Alan Mayer wrote:
> If sg->dma_address is set, we try to do a __pa() on a dma_address,
> then, later, create a dma_addresss from a munged dma_address. When
> this bogus dma_address is used by the card, it results in MCAs.
>
> --ajm
>
>
>
> --- /usr/tmp/TmpDir.5614-0/linux/arch/ia64/sn/io/machvec/pci_dma.c_1.5 Mon Nov 3 14:32:30 2003
> +++ linux/arch/ia64/sn/io/machvec/pci_dma.c Mon Nov 3 13:16:20 2003
> @@ -279,8 +279,7 @@
> * scatterlist.
> */
> for (i = 0; i < nents; i++, sg++) {
> - phys_addr = __pa(sg->dma_address ? sg->dma_address :
> - (unsigned long)page_address(sg->page) + sg->offset);
> + phys_addr = __pa((unsigned long)page_address(sg->page) + sg->offset);
>
> /*
> * Handle the most common case: 64 bit cards. This
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bug in sn_pci_map_sg causes MCA
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
2003-11-03 20:47 ` Jesse Barnes
@ 2003-11-03 21:14 ` David Mosberger
2003-11-03 21:18 ` Jesse Barnes
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: David Mosberger @ 2003-11-03 21:14 UTC (permalink / raw)
To: linux-ia64
>>>>> On Mon, 3 Nov 2003 12:47:55 -0800, jbarnes@sgi.com (Jesse Barnes) said:
Jesse> David, this fixes a critical bug for us. Can you push it to
Jesse> Linus or should we send it straight to Andrew?
The patch doesn't apply for me, otherwise, I'd have been happy to take
it (since it's a critical bug fix). I think it fails to apply because
TABs got replaced by blanks.
--david
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bug in sn_pci_map_sg causes MCA
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
2003-11-03 20:47 ` Jesse Barnes
2003-11-03 21:14 ` David Mosberger
@ 2003-11-03 21:18 ` Jesse Barnes
2003-11-03 22:07 ` Alan Mayer
2003-11-03 22:35 ` David Mosberger
4 siblings, 0 replies; 6+ messages in thread
From: Jesse Barnes @ 2003-11-03 21:18 UTC (permalink / raw)
To: linux-ia64
On Mon, Nov 03, 2003 at 01:14:00PM -0800, David Mosberger wrote:
> >>>>> On Mon, 3 Nov 2003 12:47:55 -0800, jbarnes@sgi.com (Jesse Barnes) said:
>
> Jesse> David, this fixes a critical bug for us. Can you push it to
> Jesse> Linus or should we send it straight to Andrew?
>
> The patch doesn't apply for me, otherwise, I'd have been happy to take
> it (since it's a critical bug fix). I think it fails to apply because
> TABs got replaced by blanks.
Sorry about that, please try this one.
Jesse
--- /usr/tmp/TmpDir.16109-0/linux/arch/ia64/sn/io/machvec/pci_dma.c_1.5 Mon Nov 3 13:00:46 2003
+++ linux/arch/ia64/sn/io/machvec/pci_dma.c Mon Nov 3 13:00:27 2003
@@ -279,8 +279,7 @@
* scatterlist.
*/
for (i = 0; i < nents; i++, sg++) {
- phys_addr = __pa(sg->dma_address ? sg->dma_address :
- (unsigned long)page_address(sg->page) + sg->offset);
+ phys_addr = __pa((unsigned long)page_address(sg->page) + sg->offset);
/*
* Handle the most common case: 64 bit cards. This
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bug in sn_pci_map_sg causes MCA
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
` (2 preceding siblings ...)
2003-11-03 21:18 ` Jesse Barnes
@ 2003-11-03 22:07 ` Alan Mayer
2003-11-03 22:35 ` David Mosberger
4 siblings, 0 replies; 6+ messages in thread
From: Alan Mayer @ 2003-11-03 22:07 UTC (permalink / raw)
To: linux-ia64
Sorry, here's one that should actually work:
--- /home/poppy15/ajm/work/davidm.bk/arch/ia64/sn/io/machvec/pci_dma.c Mon Nov 3 11:49:00 2003
+++ arch/ia64/sn/io/machvec/pci_dma.c Mon Nov 3 13:16:20 2003
@@ -279,8 +279,7 @@
* scatterlist.
*/
for (i = 0; i < nents; i++, sg++) {
- phys_addr = __pa(sg->dma_address ? sg->dma_address :
- (unsigned long)page_address(sg->page) + sg->offset);
+ phys_addr = __pa((unsigned long)page_address(sg->page) + sg->offset);
/*
* Handle the most common case: 64 bit cards. This
--ajm
On Mon, 3 Nov 2003, David Mosberger wrote:
> >>>>> On Mon, 3 Nov 2003 12:47:55 -0800, jbarnes@sgi.com (Jesse Barnes) said:
>
> Jesse> David, this fixes a critical bug for us. Can you push it to
> Jesse> Linus or should we send it straight to Andrew?
>
> The patch doesn't apply for me, otherwise, I'd have been happy to take
> it (since it's a critical bug fix). I think it fails to apply because
> TABs got replaced by blanks.
>
> --david
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
But he can't be a man,
'cause he doesn't smoke
the same cigarettes as me.
--
Alan J. Mayer
SGI
ajm@sgi.com
WORK: 651-683-3131
HOME: 651-407-0134
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bug in sn_pci_map_sg causes MCA
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
` (3 preceding siblings ...)
2003-11-03 22:07 ` Alan Mayer
@ 2003-11-03 22:35 ` David Mosberger
4 siblings, 0 replies; 6+ messages in thread
From: David Mosberger @ 2003-11-03 22:35 UTC (permalink / raw)
To: linux-ia64
>>>>> On Mon, 3 Nov 2003 16:07:53 -0600 (CST), Alan Mayer <ajm@sgi.com> said:
Alan> Sorry, here's one that should actually work:
Well, no it doesn't apply with patch -p1. But it's OK this time, I fixed
it myself.
--david
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-11-03 22:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-03 20:36 [PATCH] Bug in sn_pci_map_sg causes MCA Alan Mayer
2003-11-03 20:47 ` Jesse Barnes
2003-11-03 21:14 ` David Mosberger
2003-11-03 21:18 ` Jesse Barnes
2003-11-03 22:07 ` Alan Mayer
2003-11-03 22:35 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox