Received: by 10.213.65.68 with SMTP id h4csp1642120imn; Thu, 15 Mar 2018 05:47:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELtbfP4Z2xm8HRo1oLXeJICep9abCaieazeEue7EkB6T54OfxQdUG89DfvkGw/xdh2byugxR X-Received: by 10.98.88.5 with SMTP id m5mr7615207pfb.231.1521118043684; Thu, 15 Mar 2018 05:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521118043; cv=none; d=google.com; s=arc-20160816; b=Zsmx8mVKW9q08q49SHiTTZtb8cTP80hhyS3u/tuNqw/K54p3GnugmaODtEvY+xdOk7 lv4XPa2qGAcxomdfGKdi/rjHS5MDKR8L4cQZOIxW9Ka3IXVUcQcMtUWMWL4QiZ5F1L/+ oqU5mPRx7toljkTjxQTFgDii47NMNQExyaYsY7NuPbzx7GG+jITEOL7hUMdvMGT+MUun 9r7M46eIUnIic83L7bTziWzNq2CQJWN0EZZcpuxVuYeVKQrK2upmKRFyNkrw5bSNnGI1 EbrtnqT9GmMcLYJ2QTd9AMXn9RN0wdC2JyXFlnAQpYVKmGGlauFopWOzgsgpD1KbtWZq F9og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=bpKHGdohq3xWPT9EsRYWPI6dZg8BWoFRa1FKZuzimFs=; b=A0Nntsf16eUq7ZDNQamrNjiZdLdQLTwV5H/gi91hADW8xz94Qs6LeqOHl+xsEKpYNJ xsW80p0QRDgvZ2zz6vYFc0RdPDDjWHwxGYSR881VT10cgVRTsCkyj1NXA/uiIeCDMfMH NE8jisqVVbNFHxfDYI31hThdFos6Jpzto9fXezpwtM/uYkiWcrKPQvyWj/1321ZsOptK MEHjg1ldC/CO3fRBazNbcnlPYD5sAesX7H0INuyIjbD0WSGyIuWJeXpYBAmSurYEE74D ASHN0cj0/rdWAamffYlrMcV5liLjbKIpDAG7/NewODbHMoNazM16fH/EaI1JjtfPMARG TB1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SqTEinXh; dkim=pass header.i=@codeaurora.org header.s=default header.b=H8GQyqyW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b90-v6si3985093pli.261.2018.03.15.05.47.09; Thu, 15 Mar 2018 05:47:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SqTEinXh; dkim=pass header.i=@codeaurora.org header.s=default header.b=H8GQyqyW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071AbeCOMp4 (ORCPT + 99 others); Thu, 15 Mar 2018 08:45:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56282 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752025AbeCOMpx (ORCPT ); Thu, 15 Mar 2018 08:45:53 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1A02460C64; Thu, 15 Mar 2018 12:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521117953; bh=HH6ulqmorgp5ZdE8PjOaDvmN48mLxAY8JqlIic4hM9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SqTEinXhQh0kZvVbmQG77C4IeuZSPFgWUxV6mGQWeN6IQYh2wLmCJHbwd4B8diA0+ 4PX8ZKeJUvztIGdbofP4xNr7CSfpqPT8yS1mOSXkAh2mDfnIQTLA5iO+B9C6hTRX+X WDKC02MDBa5oqzxOYEfguAXWSZd4hESM9PByxZ8A= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from cpandya-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cpandya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C2B1860FEF; Thu, 15 Mar 2018 12:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521117951; bh=HH6ulqmorgp5ZdE8PjOaDvmN48mLxAY8JqlIic4hM9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H8GQyqyWYokWBhSjTxARftgQjBSLkuUsyQCgyIOE4E77G8tQ37bR5Zpz1cct6rp80 ZSwzGeXrq67x+xSVyvlyLcHROHvzLRWEMOqnp4nuM2omFPQytoBclsOxCTFMsx0zvY genFm/itIsy2ejw92VgN8w5E9aA+urezjTiTwKnA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C2B1860FEF 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=cpandya@codeaurora.org From: Chintan Pandya To: catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de Cc: mark.rutland@arm.com, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, james.morse@arm.com, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org, toshi.kani@hpe.com, Chintan Pandya Subject: [PATCH v2 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Thu, 15 Mar 2018 18:15:06 +0530 Message-Id: <1521117906-20107-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521117906-20107-1-git-send-email-cpandya@codeaurora.org> References: <1521117906-20107-1-git-send-email-cpandya@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit 15122ee2c515a ("arm64: Enforce BBM for huge IO/VMAP mappings") is a temporary work-around until the issues with CONFIG_HAVE_ARCH_HUGE_VMAP gets fixed. Revert this change as we have fixes for the issue. Signed-off-by: Chintan Pandya --- arch/arm64/mm/mmu.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index 6f21a65..a1b8073 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -936,10 +936,6 @@ int pud_set_huge(pud_t *pudp, phys_addr_t phys, pgprot_t prot) pgprot_t sect_prot = __pgprot(PUD_TYPE_SECT | pgprot_val(mk_sect_prot(prot))); - /* ioremap_page_range doesn't honour BBM */ - if (pud_present(READ_ONCE(*pudp))) - return 0; - BUG_ON(phys & ~PUD_MASK); set_pud(pudp, pfn_pud(__phys_to_pfn(phys), sect_prot)); return 1; @@ -950,10 +946,6 @@ int pmd_set_huge(pmd_t *pmdp, phys_addr_t phys, pgprot_t prot) pgprot_t sect_prot = __pgprot(PMD_TYPE_SECT | pgprot_val(mk_sect_prot(prot))); - /* ioremap_page_range doesn't honour BBM */ - if (pmd_present(READ_ONCE(*pmdp))) - return 0; - BUG_ON(phys & ~PMD_MASK); set_pmd(pmdp, pfn_pmd(__phys_to_pfn(phys), sect_prot)); return 1; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project