[PATCH] cxgb4: use pgprot_writecombine() on powerpc

Subsystems: cxgb4 iwarp rnic driver (iw_cxgb4), infiniband subsystem, the rest

STALE5650d

4 messages, 3 authors, 2011-04-20 · open the first message on its own page

[PATCH] cxgb4: use pgprot_writecombine() on powerpc

From: Nishanth Aravamudan <hidden>
Date: 2011-03-14 20:36:19

Commit fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7 ("powerpc: Add
pgprot_writecombine") in benh's tree exposes the pgprot_writecombine()
API to drivers on powerpc. cxgb4 has an open-coded version of the same,
so use the common API now that it's available.

Signed-off-by: Nishanth Aravamudan <redacted>
Cc: Steve Wise <redacted>
Cc: Anton Blanchard <redacted>

---

Given that this depends on a patch in Ben's tree, should this go in via
the powerpc tree? Presuming Steve acks it, of course.

 drivers/infiniband/hw/cxgb4/t4.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb4/t4.h b/drivers/infiniband/hw/cxgb4/t4.h
index 7000442..2fce083 100644
--- a/drivers/infiniband/hw/cxgb4/t4.h
+++ b/drivers/infiniband/hw/cxgb4/t4.h
@@ -269,11 +269,8 @@ struct t4_swsqe {
 
 static inline pgprot_t t4_pgprot_wc(pgprot_t prot)
 {
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__i386__) || defined(__x86_64__) || defined(CONFIG_PPC64)
 	return pgprot_writecombine(prot);
-#elif defined(CONFIG_PPC64)
-	return __pgprot((pgprot_val(prot) | _PAGE_NO_CACHE) &
-			~(pgprot_t)_PAGE_GUARDED);
 #else
 	return pgprot_noncached(prot);
 #endif
-- 
1.7.1

Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc

From: Steve Wise <hidden>
Date: 2011-03-14 20:51:37

On 03/14/2011 03:36 PM, Nishanth Aravamudan wrote:
Commit fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7 ("powerpc: Add
pgprot_writecombine") in benh's tree exposes the pgprot_writecombine()
API to drivers on powerpc. cxgb4 has an open-coded version of the same,
so use the common API now that it's available.

Signed-off-by: Nishanth Aravamudan<redacted>
Cc: Steve Wise<redacted>
Cc: Anton Blanchard<redacted>

---

Given that this depends on a patch in Ben's tree, should this go in via
the powerpc tree? Presuming Steve acks it, of course.

  drivers/infiniband/hw/cxgb4/t4.h |    5 +----
  1 files changed, 1 insertions(+), 4 deletions(-)
Acked-by: Steve Wise <redacted>

I suppose it should go into the same tree with the commit that adds this function.


Steve.

Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc

From: Nishanth Aravamudan <hidden>
Date: 2011-04-15 17:27:36

On 14.03.2011 [15:51:26 -0500], Steve Wise wrote:
On 03/14/2011 03:36 PM, Nishanth Aravamudan wrote:
quoted
Commit fe3cc0d99de6a9bf99b6c279a8afb5833888c1f7 ("powerpc: Add
pgprot_writecombine") in benh's tree exposes the pgprot_writecombine()
API to drivers on powerpc. cxgb4 has an open-coded version of the same,
so use the common API now that it's available.

Signed-off-by: Nishanth Aravamudan<redacted>
Cc: Steve Wise<redacted>
Cc: Anton Blanchard<redacted>

---

Given that this depends on a patch in Ben's tree, should this go in via
the powerpc tree? Presuming Steve acks it, of course.

 drivers/infiniband/hw/cxgb4/t4.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
Acked-by: Steve Wise <redacted>

I suppose it should go into the same tree with the commit that adds this function.
Ben, I don't think this is in your tree yet, will you be taking it?

Thanks,
Nish

Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2011-04-20 03:07:45

quoted
quoted
Given that this depends on a patch in Ben's tree, should this go in via
the powerpc tree? Presuming Steve acks it, of course.

 drivers/infiniband/hw/cxgb4/t4.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
Acked-by: Steve Wise <redacted>

I suppose it should go into the same tree with the commit that adds this function.
Ben, I don't think this is in your tree yet, will you be taking it?
Thanks Steve. Yes, I'll put this in powerpc-next.

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help