Received: by 10.213.65.68 with SMTP id h4csp655714imn; Tue, 27 Mar 2018 06:27:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELuJZSycFaCnhtGcEdYwTLlykJU15zUD8eONNQ2kA0r87TZdGyWejXLYSfHlDOXRrToPlTai X-Received: by 2002:a17:902:4003:: with SMTP id b3-v6mr20868671pld.15.1522157247881; Tue, 27 Mar 2018 06:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522157247; cv=none; d=google.com; s=arc-20160816; b=jDVguBnrhkuPACcwL8MJa0FzCUQY1LaEtcoVlU1P+qlMNFeYFAWv0lvlf9Plp5Ntc/ VOR79vMaoDy6vYoyq+JuEUiSYz6ELSi3uJm8FKj9AlYyNpniadlEKe7Yt3Ey9oz8pTJ6 10R0/Lfr44UUVU+SmZxZG37t58i/JKGtfrRWyOccZpXn63cMpcyBs9WASmKEanf7zMtv iHDoV/qh6HOHHV798mlzZnOkfDmXHeJAYVLO55XYTeCqa68/yKQiETJ6GdNG1FhbuxRc vJY8Xc4Oq3NH1ApJ/q2Ah0Cn6SocCTOaeGFhs9ykbOCegZwKoJksYapqsVNNY/kjK3UE MOOg== 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=n1vwegt+6DRasrRycibIpsNS68VxdYal5myjEW3lt40=; b=ARnsnjupexupM8jU8gx3qBnh0OHYTnWDOhKiLR5vHwn4xtmNpQ9qQAQ5skV+o77efV m6ji++QviVqxxx/b7ITsY0dX5YwJOQLgsa3TqONfDeDtkbdvktZPcoTj77gS34cNIDtu UkUWF5PhIkjqbvpsae+iGw/dbznQNizDBM/NLNpLMJgdjOAW1ymoCb6HN8leA574Qcao 1BqzZtji6rjoNfNztDvxIMeCSdWjnNHuoPpUIOPB1IVjVKHhYsm9YrHM4roVdEglg8g7 5LM5SuoLOkMk7qUbAHiAzj2grCp9jXdlzVAkYZvXvWfFG1nX0Vf/ttGKCxlJqDbD3x5u 0uwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=EmECFdgB; dkim=pass header.i=@codeaurora.org header.s=default header.b=G89N4Jbl; 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 d187si934330pfc.348.2018.03.27.06.27.13; Tue, 27 Mar 2018 06:27:27 -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=EmECFdgB; dkim=pass header.i=@codeaurora.org header.s=default header.b=G89N4Jbl; 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 S1753040AbeC0NZv (ORCPT + 99 others); Tue, 27 Mar 2018 09:25:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34202 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753021AbeC0NZr (ORCPT ); Tue, 27 Mar 2018 09:25:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6187F60F92; 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=1522157146; bh=976lFZpciioH7uwCUjR0IYEDSM95uEvP1A3VakwfEoY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EmECFdgBrZakfWmipP8xeRkaR9cE7BmrzYkWjA5gco4iotf1mMPMeuWlj/nBWZI2T 5s1xZ9gDq5hSbh0FPGfGvT3U20IUS3YgMovouVXIGQKrE+fqwzRWG2NKCL946E3PoX BoprDtrYIeT3mLCg3H1g1UjuSySr4f6MYedo3R/8= 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 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 Cc: arnd@arndb.de, 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, Chintan Pandya 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> 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 --- 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; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project