Received: by 10.192.165.148 with SMTP id m20csp3490712imm; Mon, 30 Apr 2018 00:44:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo9Ji1brw9Vls/747kkKnYIKsK/JXwZbReyZZUKy1/px8bwmUNghXKIPA4um9bifb7J9su6 X-Received: by 2002:a17:902:102:: with SMTP id 2-v6mr11595250plb.48.1525074250868; Mon, 30 Apr 2018 00:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525074250; cv=none; d=google.com; s=arc-20160816; b=0CZO5mH4H7GRDrX6DEii8VZJRv0sL+H0Yd2cTt1A2ijlNlbMzXoA65ubkI7ePmh0BZ xK8D4vFTAoDXYGxVB/pWvq9ia862pgKowS/d7rQH/vtna7ccTcqhjL9Q022DG/wV0Z1r FqyIqQrH6XWX62kxw67o6NNqXzBUQqq0UrDaIDN9mYah1J8zZJePxuOo6l83AhYZJOKP vwk9Q0NiiXqsYr2a87mjTZnnMr9XA05xo3CPBMP5uHsu8DgNpr7I+6+x536saOTY5KZC 5yjRcKjhccpvjugUibPbZ0Usaeo2UNtNobptOf8DMiuMOsLuI3OLhVr0InA/4pzl7Fk6 IXyA== 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=lShVM9z1toGXXJdPjGf7/qoT7iNFVqaGw6AnV6T4CjMacgrKhOLagTozHMTw8TLFq7 Twa5GUFjxRV6flYd/LgyRsUtfvk73VgnHdaWugF1uUvUDWd+6xe/e4hsHZqwtcnu1qtQ jLLZ7XaFFwYbO/qFhHQN6hhtBT+aaw1i1E7NFKKkTHNoWCN7dwQiN/Ri3A7kjFGHYxsb UFhsuSLth9p4+W7z/4TC9MnY+v3F6q5oA8fx9Pn8cC9GX6ccn2E9smhsoSuBLuobgOn/ Plk99vmFWx0WB29p9UyMlBGJfcT1qurRyCawfm73cbB4jhF2aq9BROLDbxWYSQE6RoSC PB+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=EszFPipp; dkim=pass header.i=@codeaurora.org header.s=default header.b=GBpo7HJL; 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 b8-v6si7594630pls.261.2018.04.30.00.43.56; Mon, 30 Apr 2018 00:44:10 -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=EszFPipp; dkim=pass header.i=@codeaurora.org header.s=default header.b=GBpo7HJL; 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 S1752909AbeD3Hmg (ORCPT + 99 others); Mon, 30 Apr 2018 03:42:36 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47862 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752509AbeD3Hmd (ORCPT ); Mon, 30 Apr 2018 03:42:33 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6837160FEA; Mon, 30 Apr 2018 07:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525074152; bh=mugyeAAo99d3KfHBr8Pfw5fHLDHlIh91ty0JagHe0Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EszFPippMa5TpszA/19zKvIpD7vLAFK3lbqpQZmzpvoV9fjIpeg9tdhadz2zi5dgV n3MoqoFmQ0KeOWv6hhjca7B6Hc7PDEXmrC5T0R+y7rVsZNJ+FnV3+aJUD3Y4l03cJ+ m84GqPxOAwNT4e9EcAIswaIbvdC1n0G/sQ3nHRqE= 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 2422A61133; Mon, 30 Apr 2018 07:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525074148; bh=mugyeAAo99d3KfHBr8Pfw5fHLDHlIh91ty0JagHe0Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GBpo7HJLKKksJoEyXLiBM6vlUECQ5VWnAqbVc/h1vfgAxHmdGSJxWvt+U8mePwEB/ IOYDJI45pDuHWMTh87GGIHTUw5LIKihivZl8kU+zsQpY6mxXQFD9bXh5l+jG4x0Hnd N2t9dEt34+o6KikCokwIe5RP1OBNjh5wz2C07uJk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2422A61133 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: Will Deacon , Arnd Bergmann , Mark Rutland , Ard Biesheuvel , Marc Zyngier , Andrew Morton Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Philip Elcan , James Morse , Kristina Martsenko , Toshi Kani , Dave Hansen , Vitaly Kuznetsov , Joerg Roedel , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Chintan Pandya Subject: [PATCH v9 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Mon, 30 Apr 2018 13:11:34 +0530 Message-Id: <1525074094-25839-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525074094-25839-1-git-send-email-cpandya@codeaurora.org> References: <1525074094-25839-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