Received: by 10.213.65.68 with SMTP id h4csp3241189imn; Tue, 3 Apr 2018 01:04:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rnWovbTEWiysdEysiqq+5JKyqevUvqxOBkMoe8Fhc3gFqvwHMDB0FjhHmDNgy16qLIacR X-Received: by 2002:a17:902:9a86:: with SMTP id w6-v6mr12987549plp.168.1522742659536; Tue, 03 Apr 2018 01:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522742659; cv=none; d=google.com; s=arc-20160816; b=bgDmXA5LpBlii1dixDktjDatFCnCzooToCIaMYBVm/bC4Wni044gmozS2rs4GuIBIs gj3mqyWQTJJF1VkzV2fOD8hbydg0VUSvfUznkAhR6QMVsSbGi25e1uWBCCsGRQFWf07y J5jCzLdOvpGZh3u/kFw6XHwEC6lvfpCGk891e/sYSbB1wyNPMMpF8w7kMBWzCOvmR5WQ tM+3mDJOdp+7BzYfppSBRUCvtbA/lN5ptniz1y7fwxCPi/x4U4VxCNdOLuhudT5rdOQ9 r9I+YdJsQZ+jdbgAtE5u0WTIfm0YXEa+pi8VVsF1vNpohDhXf3xsqHDISOvskvVyBVP2 3Tww== 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=u2r8QUXuWgESiiNQgZ8q+LKQNcJ7J2hG7+CNhfcAYRY=; b=rr2WIFdWxgYMReAYFzM9SNiKilV5TP3smkpkAlm+ZidwjpkJhJOS/gHsXnq9DRQz/e MY4pq4/whQfRuEt45M44MoQm2fwHEJl1Bp6SlkiypCT3FxL/cJCi6l02tQYQasXfwR7R EWeOm9wRBYJm/bHkwzWxYCVkfGN65z0dT55UZD763PXWlnmVf0qxC7LkUrJHml0EOF1W Z4QQw+F1DUb4l7sHsbqOis6x4kJPnpq/u428jw9xTOkS1xBFqWgKivyEQMEB4HbjEkcv Ps8A/8rDb+TEKpMf8FpdQj8GlwbTN0uIZahMKO4WBF41Xo383Qyrfy38QaE4nJgapBVO favQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hcgYUEO6; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZGkAKI29; 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 g190si616585pgc.741.2018.04.03.01.04.05; Tue, 03 Apr 2018 01:04:19 -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=hcgYUEO6; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZGkAKI29; 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 S1755131AbeDCICh (ORCPT + 99 others); Tue, 3 Apr 2018 04:02:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43832 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755105AbeDCICd (ORCPT ); Tue, 3 Apr 2018 04:02:33 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F07F460767; Tue, 3 Apr 2018 08:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522742553; bh=mugyeAAo99d3KfHBr8Pfw5fHLDHlIh91ty0JagHe0Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hcgYUEO6Mykbbn5UfNzUBN2I1qHW0BGH5SlJ/RN0Ys/zFRPWrGQnuenaqko9+TWzq ZUfkMc611Rcs2bodvgqYNz9+C+u67hB72b6o+fTznWoZV5A0GC3xZ7HmYl8BtWJVRQ 0q0iF07HK6amvsfv8ACtpTacxAK+L0tlAsHdt/Pw= 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 ABF5C60C55; Tue, 3 Apr 2018 08:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522742545; bh=mugyeAAo99d3KfHBr8Pfw5fHLDHlIh91ty0JagHe0Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZGkAKI29X+KYvZEaIdat2XmOsZ3Qe9KiOHnz84mUF0EHQDY89sDct10ZiwXyzI+cW QSObHSeVXCMQo+BOOSF378izEp/Wu5qLu8CBw1lHNUa4Emud2iwx0SaibufdbwWp40 HhlfQpWVTfex/+QLMxVQZcbCu6NjgvA866e+rU3E= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ABF5C60C55 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 v8 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Tue, 3 Apr 2018 13:30:46 +0530 Message-Id: <1522742446-5084-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522742446-5084-1-git-send-email-cpandya@codeaurora.org> References: <1522742446-5084-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 0f651db..170009b 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