netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] small myri10ge fix for 2.6.20
@ 2006-12-04 10:31 Brice Goglin
  2006-12-04 10:33 ` [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx Brice Goglin
  0 siblings, 1 reply; 5+ messages in thread
From: Brice Goglin @ 2006-12-04 10:31 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

Hi Jeff,

The following patch is a small fix for myri10ge, please apply it for 2.6.20.

I don't send any other fix/update since they highly depend on the
physical page skb conversion that I sent a couple times in the past
without getting any answer.

Thanks,
Brice


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

* [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx
  2006-12-04 10:31 [PATCH 0/1] small myri10ge fix for 2.6.20 Brice Goglin
@ 2006-12-04 10:33 ` Brice Goglin
  2006-12-04 23:36   ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Brice Goglin @ 2006-12-04 10:33 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

In the myri10ge_submit_8rx() routine, write the 64 byte request block as
2 32-byte blocks so that it is handled by the hardware pio write handler
if write-combining is enabled.

Signed-off-by: Brice Goglin <brice@myri.com>
---
 drivers/net/myri10ge/myri10ge.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: linux-2.6.19/drivers/net/myri10ge/myri10ge.c
===================================================================
--- linux-2.6.19.orig/drivers/net/myri10ge/myri10ge.c	2006-11-29 22:57:37.000000000 +0100
+++ linux-2.6.19/drivers/net/myri10ge/myri10ge.c	2006-12-04 11:22:48.000000000 +0100
@@ -790,7 +790,9 @@
 
 	low = src->addr_low;
 	src->addr_low = DMA_32BIT_MASK;
-	myri10ge_pio_copy(dst, src, 8 * sizeof(*src));
+	myri10ge_pio_copy(dst, src, 4 * sizeof(*src));
+	mb();
+	myri10ge_pio_copy(dst + 4, src + 4, 4 * sizeof(*src));
 	mb();
 	src->addr_low = low;
 	__raw_writel(low, &dst->addr_low);



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

* Re: [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx
  2006-12-04 10:33 ` [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx Brice Goglin
@ 2006-12-04 23:36   ` Jeff Garzik
  2006-12-05 15:28     ` Brice Goglin
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2006-12-04 23:36 UTC (permalink / raw)
  To: Brice Goglin; +Cc: netdev

Brice Goglin wrote:
> In the myri10ge_submit_8rx() routine, write the 64 byte request block as
> 2 32-byte blocks so that it is handled by the hardware pio write handler
> if write-combining is enabled.
> 
> Signed-off-by: Brice Goglin <brice@myri.com>
> ---
>  drivers/net/myri10ge/myri10ge.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

ACK, can you resend due to patch collision in #upstream?

	Jeff




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

* Re: [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx
  2006-12-04 23:36   ` Jeff Garzik
@ 2006-12-05 15:28     ` Brice Goglin
  2006-12-05 16:26       ` Brice Goglin
  0 siblings, 1 reply; 5+ messages in thread
From: Brice Goglin @ 2006-12-05 15:28 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

Jeff Garzik wrote:
> Brice Goglin wrote:
>> In the myri10ge_submit_8rx() routine, write the 64 byte request block as
>> 2 32-byte blocks so that it is handled by the hardware pio write handler
>> if write-combining is enabled.
>>
>> Signed-off-by: Brice Goglin <brice@myri.com>
>> ---
>>  drivers/net/myri10ge/myri10ge.c |    4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> ACK, can you resend due to patch collision in #upstream?

Ok, I wasn't aware of the annotation fixes from Al Viro. Maybe I should
add a MAINTAINER entry so that I could get CC'ed more often when changes
are done in myri10ge ?

Anyway, I will resent an updated patch as a reply to this mail soon.

Brice


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

* [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx
  2006-12-05 15:28     ` Brice Goglin
@ 2006-12-05 16:26       ` Brice Goglin
  0 siblings, 0 replies; 5+ messages in thread
From: Brice Goglin @ 2006-12-05 16:26 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev

In the myri10ge_submit_8rx() routine, write the 64 byte request block as
2 32-byte blocks so that it is handled by the hardware pio write handler
if write-combining is enabled.

Signed-off-by: Brice Goglin <brice@myri.com>
---
 drivers/net/myri10ge/myri10ge.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: netdev-2.6/drivers/net/myri10ge/myri10ge.c
===================================================================
--- netdev-2.6.orig/drivers/net/myri10ge/myri10ge.c	2006-12-05 16:29:14.000000000 +0100
+++ netdev-2.6/drivers/net/myri10ge/myri10ge.c	2006-12-05 16:30:08.000000000 +0100
@@ -795,7 +795,9 @@
 
 	low = src->addr_low;
 	src->addr_low = htonl(DMA_32BIT_MASK);
-	myri10ge_pio_copy(dst, src, 8 * sizeof(*src));
+	myri10ge_pio_copy(dst, src, 4 * sizeof(*src));
+	mb();
+	myri10ge_pio_copy(dst + 4, src + 4, 4 * sizeof(*src));
 	mb();
 	src->addr_low = low;
 	put_be32(low, &dst->addr_low);



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

end of thread, other threads:[~2006-12-05 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04 10:31 [PATCH 0/1] small myri10ge fix for 2.6.20 Brice Goglin
2006-12-04 10:33 ` [PATCH 1/1] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx Brice Goglin
2006-12-04 23:36   ` Jeff Garzik
2006-12-05 15:28     ` Brice Goglin
2006-12-05 16:26       ` Brice Goglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).