From patchwork Mon Apr 16 22:01:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10343973 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5336F601C2 for ; Mon, 16 Apr 2018 22:02:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F5BA2891E for ; Mon, 16 Apr 2018 22:02:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33A8A28924; Mon, 16 Apr 2018 22:02:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A9A532891E for ; Mon, 16 Apr 2018 22:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6tm0hGkzEwFon2WOGnAGBmcB8tfEX0LkiMM65zsodgQ=; b=Ei6/4jh1TudeEW /pOAfY9oai1/IiQvepFkKoOTSOxtsDMmp0NBbaBgxsuIwiS9jlznANfq82f8hjdM2LkoOjc7d7tKg mvzEmvYMZf8bAzU6nM6LSdyZQ5U+CgOb/kVVNmUTUyK5MjWmmmlYIGKHo3qQxS6VsvPZ7anj5wa+f uOapb+YD/A5lL3qjPdQCe9hG5mE7OWRTzHY/v6YrqxNneEuLBBsYLLCH6NSowoCGNXnoUu3OA5DJg FurqhmNO42+UuXsehkDhiszoCUQjcsPKXLScJSLDFKUbH2/UuE9KQKBMF2DRT7VY6nM9E3IJT/H4Q N89QH8YE1F9Rw4Tdb2nA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8CCW-0008NX-1b; Mon, 16 Apr 2018 22:02:16 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8CBs-00084t-MP for linux-arm-kernel@lists.infradead.org; Mon, 16 Apr 2018 22:01:38 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A3557600ED; Mon, 16 Apr 2018 22:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523916085; bh=3DXSRxES2iOgBauLrcSenurbQDbzuXacQwQjQKj8Ys8=; h=From:To:Cc:Subject:Date:From; b=Fnc/eYqFqJpDCoIC9HRiHjQC/JTZF+ImBq5P3J92K4f+6I4Ttfby3B6PR/1um5lX2 lJXws6CYLaEcN3KtA6qsXxpmanoSop0TEB3i1WzZtRNSogQZJxjiTyx7UiQ6YdAidC fPlfE74Q6r6ZKA+5JMs3AcFULeYN6gxXT7uoembk= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5CF34600ED; Mon, 16 Apr 2018 22:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523916084; bh=3DXSRxES2iOgBauLrcSenurbQDbzuXacQwQjQKj8Ys8=; h=From:To:Cc:Subject:Date:From; b=UQQyP1liAIEIv7lOzphRZgkVse1NKg181Cqf5MRnAmDz8p28huoKMymq/82yfMpGE FyDbl6RndEj2w4SGsHyR2HTsVzzejfsM6g8JPsG12fM54RFRJyGzf3HA9w2Xu9fmwz TG03MsW/+OxlNJDxG0Pp1465YWaLB/luyFnUQ2wA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5CF34600ED Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-parisc@linux-mips.org, arnd@arndb.de, timur@codeaurora.org, sulrich@codeaurora.org Subject: [PATCH 1/2] parisc: use the asm-generic version for writeX() Date: Mon, 16 Apr 2018 18:01:15 -0400 Message-Id: <1523916078-23049-1-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180416_150136_903095_25507B95 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-parisc@vger.kernel.org, Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Helge Deller , "James E.J. Bottomley" , linux-kernel@vger.kernel.org, Sinan Kaya , Philippe Ombredanne , Thomas Gleixner , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP parisc architecture seems to be mapping writeX() and writeX_relaxed() APIs to __raw_writeX() API. __raw_writeX() API doesn't provide any kind of ordering guarantees. commit 755bd04aaf4b ("io: define stronger ordering for the default writeX() implementation") changed asm-generic implementation to use a more conservative approach towards the writeX() API. Drop the arch specific version and rely on the asm-generic version for parisc since parisc version doesn't seem to do anything special with these macros. Signed-off-by: Sinan Kaya --- arch/parisc/include/asm/io.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h index afe493b..ef04864 100644 --- a/arch/parisc/include/asm/io.h +++ b/arch/parisc/include/asm/io.h @@ -194,41 +194,14 @@ static inline unsigned long long readq(const volatile void __iomem *addr) return le64_to_cpu((__le64 __force) __raw_readq(addr)); } -static inline void writeb(unsigned char b, volatile void __iomem *addr) -{ - __raw_writeb(b, addr); -} -static inline void writew(unsigned short w, volatile void __iomem *addr) -{ - __raw_writew((__u16 __force) cpu_to_le16(w), addr); -} -static inline void writel(unsigned int l, volatile void __iomem *addr) -{ - __raw_writel((__u32 __force) cpu_to_le32(l), addr); -} -static inline void writeq(unsigned long long q, volatile void __iomem *addr) -{ - __raw_writeq((__u64 __force) cpu_to_le64(q), addr); -} - #define readb readb #define readw readw #define readl readl #define readq readq -#define writeb writeb -#define writew writew -#define writel writel -#define writeq writeq - #define readb_relaxed(addr) readb(addr) #define readw_relaxed(addr) readw(addr) #define readl_relaxed(addr) readl(addr) #define readq_relaxed(addr) readq(addr) -#define writeb_relaxed(b, addr) writeb(b, addr) -#define writew_relaxed(w, addr) writew(w, addr) -#define writel_relaxed(l, addr) writel(l, addr) -#define writeq_relaxed(q, addr) writeq(q, addr) - #define mmiowb() do { } while (0) void memset_io(volatile void __iomem *addr, unsigned char val, int count);