Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp361637pxb; Thu, 12 Aug 2021 18:49:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylxdHHjNNt/DHmsXo3WZVgZEfyPzi3I1DLyWSCW5e89pWujJ9jPRxs/ZqpeXMUK4ibQaQq X-Received: by 2002:a17:906:fb08:: with SMTP id lz8mr99955ejb.547.1628819367105; Thu, 12 Aug 2021 18:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628819367; cv=none; d=google.com; s=arc-20160816; b=ez5xBzLUh/0DUBUFfpysIgUXyWF7yEJIYw08jzAmuEBYUjOFn2+IuvSAWE7o+RKRes VkBXyATa03AHv4T+3JSiTIVmN5PXinFSlUTwJVMM6QbydOpP5qaMdgVTmlTwH/k5Ra4+ nZc+HwdAXE1vicU3oNVn8eXBjjN+YZzek38K+l+DSyJyVWWdTPfB1fl8vTUO2jpj1gMX CNFfmaCKulWLJTES6l5FFLCfKZ4JFj9dm8x3G2Nlg5qvoHCF8NCuqs4MP7mrmyzOJB7V Ih8SAU+xPSoA73PEZb+ahoYo1ovP8C8WztTxSow75CL+Ju5W8K+EWyJTdIAyLaG5qRmx pA1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fPju21rn3ILelfg7RS7hZGVtarLEawJudDwImYf1OME=; b=mxPR0WbdRDZhc2aHN7DI3mmeB0LhJ3DMQ0jXWbR/RHSdoueHWKUCM6mfc9roMNIUEE oGbwqSDObFR4GhSHMZbr+IsP6zVGMX8fMNh609URFPrzADAxZ5gMejc/o/odHclbIht6 38doSuDXWaq9pZn5hUDDyawvmmp8ZhWwKEyyolxIs+vL+2qkNvS//jp/1yccdP4XyYRG 1pUBwrKrbOUSFU1lGsDzB8jl8rt10tR/RhI++3InUOPSfbj/lLJ19JJGsxZMk989c+xa kK1IgPtAtMMua20YXcHht5Cjj43YUBRlrvWCe3Oz61UujKIKVTsB3TF1wq3nrKgPLzTa GtHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJ5LZ4UL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si87987ejd.643.2021.08.12.18.48.32; Thu, 12 Aug 2021 18:49:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJ5LZ4UL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238497AbhHLXii (ORCPT + 99 others); Thu, 12 Aug 2021 19:38:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:48714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238056AbhHLXi0 (ORCPT ); Thu, 12 Aug 2021 19:38:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD134610A8; Thu, 12 Aug 2021 23:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628811480; bh=GnoibyRqmuzmp9rlWYYiDkJSczSXQYZSBk2r8Ru2kb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJ5LZ4ULgVjyz2u3mRUlYamQ/7jmPMb7gl8kc5FY89Ndfg1EO7yHTvHxz7q8XDKaA bck5ngmrh8YhCbTADIdDXRaYTj8Nh2Vr8b24023FVZvRD4426mg78uWRO2Pfdom4A8 oB5v4Cozx+FrwVZIErcM8A/GwPNE/+vMszDu1dnhDa5gHUgN4OULVKJ+qqYbLierIW LqShWqr+RbK1q4XPVDe25+wvzUFfBLMSlGwLA0cRMtq2fbEoRw9aELP3HDq+1ArdAU /c5X97hoSq4KcTPBqFFrVy2KLzBHy4uWQONQnKUzKwpxb5xxk1GxpEyLpjgTbAMdzx BgRFn/rB65VUw== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Anshuman Khandual , Mike Rapoport , Vineet Gupta Subject: [PATCH v2 06/19] ARC: ioremap: use more commonly used PAGE_KERNEL based uncached flag Date: Thu, 12 Aug 2021 16:37:40 -0700 Message-Id: <20210812233753.104217-7-vgupta@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210812233753.104217-1-vgupta@kernel.org> References: <20210812233753.104217-1-vgupta@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org and remove the one off uncached definition for ARC Signed-off-by: Vineet Gupta --- arch/arc/include/asm/pgtable.h | 3 --- arch/arc/mm/ioremap.c | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h index 80b57c14b430..b054c14f8bf6 100644 --- a/arch/arc/include/asm/pgtable.h +++ b/arch/arc/include/asm/pgtable.h @@ -103,9 +103,6 @@ */ #define PAGE_KERNEL __pgprot(_K_PAGE_PERMS | _PAGE_CACHEABLE) -/* ioremap */ -#define PAGE_KERNEL_NO_CACHE __pgprot(_K_PAGE_PERMS) - /* Masks for actual TLB "PD"s */ #define PTE_BITS_IN_PD0 (_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_HW_SZ) #define PTE_BITS_RWX (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ) diff --git a/arch/arc/mm/ioremap.c b/arch/arc/mm/ioremap.c index 052bbd8b1e5f..0ee75aca6e10 100644 --- a/arch/arc/mm/ioremap.c +++ b/arch/arc/mm/ioremap.c @@ -39,7 +39,8 @@ void __iomem *ioremap(phys_addr_t paddr, unsigned long size) if (arc_uncached_addr_space(paddr)) return (void __iomem *)(u32)paddr; - return ioremap_prot(paddr, size, pgprot_val(PAGE_KERNEL_NO_CACHE)); + return ioremap_prot(paddr, size, + pgprot_val(pgprot_noncached(PAGE_KERNEL))); } EXPORT_SYMBOL(ioremap); -- 2.25.1