Received: by 10.213.65.68 with SMTP id h4csp850948imn; Wed, 14 Mar 2018 01:50:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELvQWJE3LoB8iPyq795Rgx2/BpUTWKLwhWeJWzXT3xko7SufKacGcKL+8NBb9HONWSkzX6Eo X-Received: by 10.99.131.73 with SMTP id h70mr2998233pge.195.1521017450631; Wed, 14 Mar 2018 01:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521017450; cv=none; d=google.com; s=arc-20160816; b=tDiitVV3pLTpeA71nNzWELbef2J3qgnoiAhgMSPKex8lJIWaxVzU9RvB0n9Gurbcdo yjApum4T0msQgBWFk7tE65HHyGJl3+/xyvbNgoAianiiZH8VJhm9AKIkIwMG5wU+Dc+w F0bKFQeD+7ZTe0Kv/sJ1pWLzZCSDAQB2BFpUpDA386Isx+g5ym11u+jFxaL/2SxeGmYy 9frFQkv14WzIQ46kBDEYCdaVTRMDS+X/+b83+/sy2yhpMT7lhYDTqDLTbSnGv7BNnDJ7 wKCLbjBkCtR7a40yTSZHSkO9ux60jAxLPYXVZAfwmNcqIvTqhI0MIyzIri5WPsSPuFHl j6Ow== 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=+TVdfKGRmp7qtPHpFgWe45ByWnnPmkoff+bIy3YtaTc=; b=nmhW0QmB8aW4iyFcKvg4i70Y07RUyvIaB+tgR5MwyPmZX8bJoWMeybNARE0zxuhbAk XLpQxwDIDJCU4JOmZwQBZfRMNF5wm5tgqksVlzhjIQyM0umKXzKpyjf4DDZwKVBprb3R CmaXN/si7cb1a/khaRNP42fjvn0KEeT/VzEKJg1oIHwACTWo8pUCHcDzc2mz4VmuPnsC W3tgOA3ywHb+Cuh3ZjPFCYOc0Ggy1/mhcr23lQ9fk3Yi+mnDthsqV257wA9cKE/x81FD JmD/Nyxz6Guf415H+6h0fJPxvqZL7FMZljqHdH9TXYA/qIvTg4DVWdRvA42fosDnJojr moNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=n1WGOR8l; dkim=pass header.i=@codeaurora.org header.s=default header.b=PtSomUgD; 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 t71si1558733pgb.70.2018.03.14.01.50.36; Wed, 14 Mar 2018 01:50:50 -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=n1WGOR8l; dkim=pass header.i=@codeaurora.org header.s=default header.b=PtSomUgD; 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 S1753491AbeCNItQ (ORCPT + 99 others); Wed, 14 Mar 2018 04:49:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60078 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752799AbeCNItN (ORCPT ); Wed, 14 Mar 2018 04:49:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F0BFC60F92; Wed, 14 Mar 2018 08:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521017353; bh=hq4I+GH8c9Mo+zd4z/nncPNznixjrbIfbJ2VShLR9Mc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n1WGOR8l3qdlT/SmixMHM2VXly/biSSoujA/uURVm86IcvhEP3NUXnS7cB2PSviP/ xdQEBvp/+X5/7kqjhsLwUr7dRlZfKB7+sXPi8c5tFg4K2btuQex9kRyfncsnKRhVpX CmAsroB+9h6I9gFswfrxetHM69tTCb7HaYOV1YKY= 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 D215060F90; Wed, 14 Mar 2018 08:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521017344; bh=hq4I+GH8c9Mo+zd4z/nncPNznixjrbIfbJ2VShLR9Mc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PtSomUgDJpVZ1GjdSSSO/prwQ85kNS3zYzvC9sVLKYPvuKFh73bx8ZagsC2tIPppl te/+Z+fNGIvPKQzdDJATSkvHYsG8DYbGBrNSF4U2crbxo/KHcPDbLOw7lHkNAX+3/8 eeGQYGUsI+mPop+Dqrdeh/psHoab98cUY3kc8T3c= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D215060F90 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 v1 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Wed, 14 Mar 2018 14:18:25 +0530 Message-Id: <1521017305-28518-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521017305-28518-1-git-send-email-cpandya@codeaurora.org> References: <1521017305-28518-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 c0df264..19116c6 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); if (pud_val(*pud) && !pud_huge(*pud)) free_page((unsigned long)__va(pud_val(*pud))); @@ -952,10 +948,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); if (pmd_val(*pmd) && !pmd_huge(*pmd)) free_page((unsigned long)__va(pmd_val(*pmd))); -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project