{"id":806267,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806267/?format=json","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.0/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/"},"msgid":"<20170827161032.22772-3-hch@lst.de>","date":"2017-08-27T16:10:22","name":"[02/12] mips: don't use dma_cache_sync to implement fd_cacheflush","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"4d1cc0c2be31482fdd2a1e81418ff90de9ae091b","submitter":{"id":82,"url":"http://patchwork.ozlabs.org/api/1.0/people/82/?format=json","name":"Christoph Hellwig","email":"hch@lst.de"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170827161032.22772-3-hch@lst.de/mbox/","series":[{"id":29,"url":"http://patchwork.ozlabs.org/api/1.0/series/29/?format=json","date":"2017-08-27T16:10:24","name":"[01/12] floppy: consolidate the dummy fd_cacheflush definition","version":1,"mbox":"http://patchwork.ozlabs.org/series/29/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806267/checks/","tags":{},"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgKrC0JVlz9s8V\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 28 Aug 2017 02:20:27 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xgKrB6HXDzDq5k\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 28 Aug 2017 02:20:26 +1000 (AEST)","from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xgKdB0xVszDqZr\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 28 Aug 2017 02:10:51 +1000 (AEST)","from clnet-p099-196.ikbnet.co.at ([83.175.99.196] helo=localhost)\n\tby bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat\n\tLinux)) id 1dm092-0006r9-K3; Sun, 27 Aug 2017 16:10:40 +0000"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"Y/KacImR\"; dkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"Y/KacImR\"; dkim-atps=neutral","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"Y/KacImR\"; dkim-atps=neutral"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=bombadil.20170209;\n\th=References:In-Reply-To:Message-Id:\n\tDate:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=Nufn+M7g9f/SclKMtM/dKuZNRXT1sUMnL9Iic9J1/sA=;\n\tb=Y/KacImR9nJLifA7GnGcKDD2j\n\t0rQWkRuN5yN6orhi0nLilCL7PsZhFJfOCk/DicmMJbSrH3pMHh9Sjc2TaWFUCqI7hgY6hQCsEV0Ap\n\tJVrDRwBQ+2HBeTp61vBqX1hhIE9VxTYl54FiDmXzEtOc+6pCnJB+uMt4cjCkXtMb8IkpX8PDE9dWh\n\t2qd5W5ZkRkwghAWzyLN+JmXL4voHJ1YAwORbhRkqLn/m5n2L9zdgIq9aKXkwTq06ln0PoiLT2EJuN\n\talQq1pHkTymp/2L6aqsFLj4YnI3M4pfo6K4+9oc34HNmcT+iRKy2UyQpOOMjmUDk8SkCCRGRoR6cq\n\tjlDaw1F3Q==;","From":"Christoph Hellwig <hch@lst.de>","To":"iommu@lists.linux-foundation.org","Subject":"[PATCH 02/12] mips: don't use dma_cache_sync to implement\n\tfd_cacheflush","Date":"Sun, 27 Aug 2017 18:10:22 +0200","Message-Id":"<20170827161032.22772-3-hch@lst.de>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170827161032.22772-1-hch@lst.de>","References":"<20170827161032.22772-1-hch@lst.de>","X-SRS-Rewrite":"SMTP reverse-path rewritten from <hch@infradead.org> by\n\tbombadil.infradead.org. See http://www.infradead.org/rpr.html","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"Chris Zankel <chris@zankel.net>, Michal Simek <monstr@monstr.eu>,\n\tlinux-ia64@vger.kernel.org, linux-mips@linux-mips.org,\n\tlinux-sh@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\tlinux-xtensa@linux-xtensa.org, x86@kernel.org,\n\tlinux-kernel@vger.kernel.org, \n\tDavid Howells <dhowells@redhat.com>, Max Filippov <jcmvbkbc@gmail.com>,\n\tGuan Xuetao <gxt@mprc.pku.edu.cn>, Robin Murphy <robin.murphy@arm.com>,\n\tMarek Szyprowski <m.szyprowski@samsung.com>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"The floppy drivers doesn't otherwise use the DMA API, so indirecting\nthrough it just for cache flushing in MIPS-specific code just call\ndma_cache_wback_inv directly.\n\nSigned-off-by: Christoph Hellwig <hch@lst.de>\n---\n arch/mips/include/asm/floppy.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/arch/mips/include/asm/floppy.h b/arch/mips/include/asm/floppy.h\nindex d75aed36480a..021d09ae5670 100644\n--- a/arch/mips/include/asm/floppy.h\n+++ b/arch/mips/include/asm/floppy.h\n@@ -10,11 +10,11 @@\n #ifndef _ASM_FLOPPY_H\n #define _ASM_FLOPPY_H\n \n-#include <linux/dma-mapping.h>\n+#include <asm/io.h>\n \n static inline void fd_cacheflush(char * addr, long size)\n {\n-\tdma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL);\n+\tdma_cache_wback_inv((unsigned long)addr, size);\n }\n \n #define MAX_BUFFER_SECTORS 24\n","prefixes":["02/12"]}