From patchwork Tue Mar 27 13:25:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chintan Pandya X-Patchwork-Id: 10310093 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 DECDF600F6 for ; Tue, 27 Mar 2018 13:33:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD36C285C8 for ; Tue, 27 Mar 2018 13:33:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1C0029CBA; Tue, 27 Mar 2018 13:33:15 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 56258285C8 for ; Tue, 27 Mar 2018 13:33:15 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=b0TYvZV2DJuknENi38TBq4IiAFM5Ia+XzGM2B67VFSI=; b=qKe1PxqvLz9kEAQstsJGjAmnlH XsquLiv2yzoyKltjnUjIBLUlX7FzX88jXn25yIdS7frduk9AmfXsnlXYpXq9CEGPjYUnkjqb56yQ4 +6F9BLW9hwspoSTtiFvyjmm3Y+j2fwBzFIlwYG1/frwK/xnj8miGO2qMIibFld7V6+kF50HLbbzIk PKxhkXtWGUCl3NbmwnRW2z8Wuz6BjJr6Zc5BVqhMU2r00OCTkTQ428zHT7HA55C1XC7EJ+GZy8Gd+ 5J77m5IcQag5qr/19EpTYBWm+XX0d/YlgW/6s5uEvhak9W+SJgsPJRJBjAEhoTL1y1ahrrc4bTKeG HG2aUapQ==; 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 1f0oiq-0003Yf-JF; Tue, 27 Mar 2018 13:33:08 +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 1f0obu-0005dS-0V for linux-arm-kernel@lists.infradead.org; Tue, 27 Mar 2018 13:26:06 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 49AAD60BFA; Tue, 27 Mar 2018 13:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522157147; bh=976lFZpciioH7uwCUjR0IYEDSM95uEvP1A3VakwfEoY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O3Ud7HjWMhIkOxFbdl7I0Bzjj6ekqcUXAnQFfXQWMMaA+rZyefPJtsJGizh3+QkWb wSBt9uV0Fln0TKcscd8+xSpnbn7xpM2BSoK5ZVDdHRfGxUhUXWHO9ZN5C42ETv52dr 7Ktp8Ns+bEajufYb8e8F5YQwAGtzYurBtdsjaF78= 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 7BAE460F6B; Tue, 27 Mar 2018 13:25:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522157144; bh=976lFZpciioH7uwCUjR0IYEDSM95uEvP1A3VakwfEoY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G89N4Jbl7lM5Lv+qbsVJD9V3prrhHpirhtamDF+KtpB+4bt1mBOhSB9UnOsczBFJ/ oPlQzbtnkjI91gET9TjbLmzU3EnliGJqJXE2aryzuvJlj0mYmPrXYADXCPdb9NbuUc E3W1szxHQND0k1H/MuKkLxPCiPX57ds9JQgZnH+0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7BAE460F6B 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, mark.rutland@arm.com, toshi.kani@hpe.com Subject: [PATCH v5 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Tue, 27 Mar 2018 18:55:00 +0530 Message-Id: <1522157100-16879-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522157100-16879-1-git-send-email-cpandya@codeaurora.org> References: <1522157100-16879-1-git-send-email-cpandya@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180327_062558_202436_7FC1A849 X-CRM114-Status: GOOD ( 10.16 ) 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-arch@vger.kernel.org, arnd@arndb.de, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, james.morse@arm.com, Chintan Pandya , tglx@linutronix.de, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 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 --- No change in v5 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 3552c7a..11a24a1 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -935,10 +935,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; @@ -949,10 +945,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;