All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Schnelle <svens@stackframe.org>
To: linux-mips@linux-mips.org
Cc: svens@stackframe.org
Subject: [PATCH] MIPS: MIPS74K needs post dma flush
Date: Mon,  7 Nov 2016 20:41:28 +0100	[thread overview]
Message-ID: <20161107194128.25086-2-svens@stackframe.org> (raw)
In-Reply-To: <20161107194128.25086-1-svens@stackframe.org>

The manual states "A 74K processor contains no direct hardware
support for managing coherency with respect to its caches, so
it must be handled via the system design or software"

Signed-off-by: Sven Schnelle <svens@stackframe.org>
---
 arch/mips/mm/dma-default.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index 46d5696..575b7b8 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -73,7 +73,8 @@ static inline int cpu_needs_post_dma_flush(struct device *dev)
 	return !plat_device_is_coherent(dev) &&
 	       (boot_cpu_type() == CPU_R10000 ||
 		boot_cpu_type() == CPU_R12000 ||
-		boot_cpu_type() == CPU_BMIPS5000);
+		boot_cpu_type() == CPU_BMIPS5000 ||
+		boot_cpu_type() == CPU_74K);
 }
 
 static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp)
-- 
2.10.2

  reply	other threads:[~2016-11-07 19:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07 19:41 MIPS74K dma coherence issue Sven Schnelle
2016-11-07 19:41 ` Sven Schnelle [this message]
2016-11-07 20:06   ` MIPS: MIPS74K needs post dma flush Leonid Yegoshin
2016-11-07 20:06     ` Leonid Yegoshin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161107194128.25086-2-svens@stackframe.org \
    --to=svens@stackframe.org \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.