linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cxgb4: use pgprot_writecombine() on powerpc
@ 2011-03-14 20:36 Nishanth Aravamudan
  2011-03-14 20:51 ` Steve Wise
  0 siblings, 1 reply; 4+ messages in thread
From: Nishanth Aravamudan @ 2011-03-14 20:36 UTC (permalink / raw)
  To: benh; +Cc: Steve Wise, linuxppc-dev, Anton Blanchard

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 <nacc@us.ibm.com>
Cc: Steve Wise <swise@opengridcomputing.com>
Cc: Anton Blanchard <anton@samba.org>

---

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

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

* Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc
  2011-03-14 20:36 [PATCH] cxgb4: use pgprot_writecombine() on powerpc Nishanth Aravamudan
@ 2011-03-14 20:51 ` Steve Wise
  2011-04-15 17:27   ` Nishanth Aravamudan
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Wise @ 2011-03-14 20:51 UTC (permalink / raw)
  To: Nishanth Aravamudan; +Cc: linuxppc-dev, Anton Blanchard

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<nacc@us.ibm.com>
> Cc: Steve Wise<swise@opengridcomputing.com>
> Cc: Anton Blanchard<anton@samba.org>
>
> ---
>
> 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 <swise@opengridcomputing.com>

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


Steve.

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

* Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc
  2011-03-14 20:51 ` Steve Wise
@ 2011-04-15 17:27   ` Nishanth Aravamudan
  2011-04-20  3:07     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Nishanth Aravamudan @ 2011-04-15 17:27 UTC (permalink / raw)
  To: Steve Wise; +Cc: linuxppc-dev, Anton Blanchard

On 14.03.2011 [15:51:26 -0500], Steve Wise wrote:
> 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<nacc@us.ibm.com>
> >Cc: Steve Wise<swise@opengridcomputing.com>
> >Cc: Anton Blanchard<anton@samba.org>
> >
> >---
> >
> >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 <swise@opengridcomputing.com>
> 
> 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

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

* Re: [PATCH] cxgb4: use pgprot_writecombine() on powerpc
  2011-04-15 17:27   ` Nishanth Aravamudan
@ 2011-04-20  3:07     ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2011-04-20  3:07 UTC (permalink / raw)
  To: Nishanth Aravamudan; +Cc: Steve Wise, linuxppc-dev, Anton Blanchard


> > >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 <swise@opengridcomputing.com>
> > 
> > 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.

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

end of thread, other threads:[~2011-04-20  3:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 20:36 [PATCH] cxgb4: use pgprot_writecombine() on powerpc Nishanth Aravamudan
2011-03-14 20:51 ` Steve Wise
2011-04-15 17:27   ` Nishanth Aravamudan
2011-04-20  3:07     ` Benjamin Herrenschmidt

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).