Received: by 10.213.65.68 with SMTP id h4csp331455imn; Tue, 20 Mar 2018 04:49:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELuAdTcq/hL5u3uC+6iI1A+xncz+m9RmKv+X/+/Hwogu4oriH6X2q0jqT61ottIGmcxT+WoW X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr15908068plb.77.1521546557373; Tue, 20 Mar 2018 04:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521546557; cv=none; d=google.com; s=arc-20160816; b=faQFMAX5l307iTa/CgBCV45/27BYhmiyPZmsNfAg6yNizAtnwFeWdl4v2y8IOnBsqL MALVcY2ooM0kCs9GAH+w5agdIPrNKI9NbFaEktZM3bxsKXrf6HLkWCQCn0fpeE6CHdit Z8X/JCjxqOQaFNPJe52qpr8WSBkWAr3JhU/3YSKN+Aw08ELFwuQuppIxN44mAojs7ekQ 9wCSw6Ww/fM0vzIhgjSK4aDIIAiMAQXKUjHNPWPR+8G6RrG/MeJkDLpNf/EQKk8FNNhW 3S6EkReIlQtnW1sVzp21+IQgyQxdp0dz5YyNW+QUDrTETIrErU9xBWkDrdMsu0uSQ+6W c2DA== 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=/KvwQRJCYjelE1K4zfT6GlaJBtchU7L+GcAY0Ih9g5Y=; b=R6/r4Tx6Bm/vWYEhI7afRN5t4TjZKZwH6PvqLSDVAprU0squ9DCOiq7Aifk/diVvMM MAzBiQTfzTMNPRm+zBe/MNN5o1q7fZgc6JE4qy0wTM2g2BUjy7JCyXOTSOY5Aabebc3T 4kb79uGisZ731Yy2mWs2snKWy3CrXVIJT9WY3p+qlulBOCVC0mwRuW38WR+lhk8vYw+S PBweC5/C6nerNtnXC+AyF/aaGeCtokSwtKSCYOMtNP5anhBNxcbnw+7UCfG4haW9G6Nm efQJv6mTNMbmY6Otd3oMFNKrZ2FQ4TgtD0cWWiF1McJocHlS11JujJOSK8ltt5FaUEKb Zo2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Xm5KMqep; dkim=pass header.i=@codeaurora.org header.s=default header.b=WVm7FogW; 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 g126si1055227pgc.184.2018.03.20.04.49.02; Tue, 20 Mar 2018 04:49:17 -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=Xm5KMqep; dkim=pass header.i=@codeaurora.org header.s=default header.b=WVm7FogW; 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 S1753143AbeCTLqZ (ORCPT + 99 others); Tue, 20 Mar 2018 07:46:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52822 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeCTLqX (ORCPT ); Tue, 20 Mar 2018 07:46:23 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9C23460FF8; Tue, 20 Mar 2018 11:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521546382; bh=b4ePx+alQArJX+mjCQEvReBpG2Vhh3+iN9wcwM6qi58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xm5KMqepRHVjrhvxzU0yu6u5LQx2o3AJLa/cDz6PplAQwMOtJr5eRu/CDCKJX+tQb Gb2wjWZkwyqhf4uAGypqWEnb/20pJY1DUzBmeaG0CjHKNZTtiK1slxAa15HlwjBeEL LrDrAdTszAckna6aeVjHAMwk2vaTz0DZS/0fOns4= 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 713F860F6B; Tue, 20 Mar 2018 11:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521546381; bh=b4ePx+alQArJX+mjCQEvReBpG2Vhh3+iN9wcwM6qi58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WVm7FogWH7sfhnUP7OM5bgqXANPfh4rHoDHe+aeh0E6EjO49lJS90v/QXWHwfMI6z e7tnoHx3O5aJSxu0TbOyAE9qFWEdcEQQ7kAf1g7X52wOVIlLzgBKZSZLBSTEcv5F76 aCBkj0Gx97Uwq8QIT0a+9uv3VLwnpmk6ZnkmBp3U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 713F860F6B 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 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, toshi.kani@hpe.com, Chintan Pandya Subject: [PATCH v4 3/3] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Tue, 20 Mar 2018 17:15:14 +0530 Message-Id: <1521546314-31753-4-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521546314-31753-1-git-send-email-cpandya@codeaurora.org> References: <1521546314-31753-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 7be3106..1238717 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