Received: by 10.213.65.68 with SMTP id h4csp328497imn; Wed, 28 Mar 2018 04:31:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49B9XwamkytZ+gQniuQRRvkj2Y4cbvrwPMKLfTiw21kmd/iO4O0d7zOwqbJ5oFtdc4gpnso X-Received: by 2002:a17:902:227:: with SMTP id 36-v6mr3344745plc.134.1522236683980; Wed, 28 Mar 2018 04:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522236683; cv=none; d=google.com; s=arc-20160816; b=HDOFnXzbgigU4Ms1qQUYL7Z6SW7LUE9ng1bTXlnIZGF6+llPz8rRFSFNZnrW27NN8m 9/TgQShIiYzgA7ki3uJk9nd02C9X3lKOt+WouGJes6OZhrIrMvOu8Hhxt0ZJGWh3RlnR OVmFMJNubxSraWy1YOCAldjRln3YVs3hddTNRbAnCG5P1c7TROI3OJNZFTb5jsyr8C2w iZBudinjGXNvvL9eFHBMnw73j4PQCSnlsY6cfwxab6mgK7ioaOTOuoE9H35H6QBPW/tP CdMb+K2xtVcXbugV+HsAesrObFbw5JXCRe891SAy2+LK9ktBzARnOd3/TH1ZkdC4j88R YNPg== 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=eVPzFtzti5J7FxYmIMYrWRkVhy3wLfAGwnJQ9DlJSDM=; b=alF14n5anCZ5Hcoeb04i2XABD/IrGZs56AoQqsGgC1Twu+isc2Og5tudloZaUzTt3I cI8GD8u6zHbOxWUr/GipZ4U8+rIemWAUv14adSR0a9xRydgulcxaLxB33em5bqhxybh6 PCMtVP2OGhUDYEljtWBRLJp2ZUwvNRvT/jTb6s5Fkh8PnEKJPoCJeYi8OJDHVIdRJ9Fi I1ytZtNLJgMXAqZAZCvMIKCwiGEg8f9QiO9nZQHz3TQlUdng8FfR7AjAt1DlqDR9bT82 vjbVsr3Rz94BJVQpOcm1NycdcP7JPXc8wojyI3XA+HxkNclvGrIQ8qI8la0YaoBlLw00 Pjvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=A3hIG4Tt; dkim=pass header.i=@codeaurora.org header.s=default header.b=eDIChwzA; 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 p91-v6si3360240plb.705.2018.03.28.04.31.09; Wed, 28 Mar 2018 04:31: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=A3hIG4Tt; dkim=pass header.i=@codeaurora.org header.s=default header.b=eDIChwzA; 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 S1752787AbeC1K7j (ORCPT + 99 others); Wed, 28 Mar 2018 06:59:39 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35896 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeC1K7g (ORCPT ); Wed, 28 Mar 2018 06:59:36 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8927D60F90; Wed, 28 Mar 2018 10:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522234775; bh=5LnhQ/QrCMd31xkFZkClBBp5NoUdTN++br/tTIzaSSQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A3hIG4TtGE2YgLZ6OW4HTh7f8qZgioS7q/QmofAuA1ybwajwTMlUyRB5oF8ZYBO9T ogIsClv3PpIZuvuRiE5u/lzoBmi+syazcRhxF1dh8E1vfpzFCOoHXuhOyDS4m90QUX bDJR3L5/pFO70M/h4va3Lsn2Jvd4luSJzqCZ7ot8= 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 CC0B960F5C; Wed, 28 Mar 2018 10:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522234771; bh=5LnhQ/QrCMd31xkFZkClBBp5NoUdTN++br/tTIzaSSQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eDIChwzA4ZpG3S4vKtEJrRM7pwyHKycb6pU/tJgfoHcmRiJFItMoqGi5we0DmVfoj EuDcaIHuJTL/6CrRKL+uXG/yion+KVWAqXXA/uKL1Vfmu7z2cuiuU2kA2Y55wR1IRj SWRVyBPsXKiERhJHgVjGKiGz6gIqpmP75wYGCTe8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CC0B960F5C 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 v6 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Wed, 28 Mar 2018 16:28:51 +0530 Message-Id: <1522234731-27397-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522234731-27397-1-git-send-email-cpandya@codeaurora.org> References: <1522234731-27397-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 --- From: V1-> V6: - No change 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 f84b747..601f22f 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