Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2835872imm; Thu, 24 May 2018 17:12:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqkPGqClF+aPYjksdrgsmC3pLtKBVWnZvPlwMsuA8prhgHNukDwb77iXuJTxA9FSz+Wcqdv X-Received: by 2002:a62:ea1a:: with SMTP id t26-v6mr138283pfh.117.1527207174212; Thu, 24 May 2018 17:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527207174; cv=none; d=google.com; s=arc-20160816; b=Fs7fsQuANd3mK+5e3AwBtOXjbw8GGFyF7/2bhgi3I+XT9pR4JE+6sNAPa6G6IBp2se h1QbLl1EAwLcSDpCacLn53G3H9mQ4dUk47zF4ml629XX8MxauvrRVaZcu5LyTEO8PEUA d7/Z2bpjkWiMs6E9Os8aXj2wucIsOOgCtpGXRiOimHYQzt0f+dH94aWRkEoxw6du2POA yQoP82bUxDySquopF3E4Gw2gpWX4KsMqvrJr0QRe7fq0PlW4LBWhWrm6ILlQyGnJRaEQ oj/ESuJfj7rZx1I04DnACWSdKq6Z+4hYuTXHy/HUnq3Aqfj31KHZ/WcnPllamMy5MPhV z/MA== 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=+8aPY91vOvuYNosHOMDpdNSYJ0UZP23OpobDJksE6KU=; b=0pzi6J8YDrXw3W4CmvUDDb5sEiGch58uf4XiOMYRIJ3xvEynpi0GtT9PEGmVdxiWYy EaZ/xFFUppwPY70BIF3e/ccd9ajwxNXAo3BrGHPGZW1Xzc7LLElKvZQWOdS2CFS2e14H mEmbTCcFg+T3mvOubT7r65yYpjd0wDmZO36g2xmhqdbwAMtX8Yxv8zOk622dygmcgq+X klBavVELmpsqWQ6P4oCY5v8FOK80yfMAW+hLgKBW6jHCDprkPDY1snpdY0YMk4ZdrNuF G+E7qI7Duqi/bm6Is5Da1e6/2nwmz1V0ZD/As06xUZqywru8z4aFztijPpOI+tXMaRiW 8RqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JkwYYz3J; dkim=pass header.i=@codeaurora.org header.s=default header.b=KLKMbcBF; 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 d190-v6si22951600pfg.142.2018.05.24.17.12.39; Thu, 24 May 2018 17:12:54 -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=JkwYYz3J; dkim=pass header.i=@codeaurora.org header.s=default header.b=KLKMbcBF; 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 S970212AbeEXN62 (ORCPT + 99 others); Thu, 24 May 2018 09:58:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39590 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970191AbeEXN6M (ORCPT ); Thu, 24 May 2018 09:58:12 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3232C60C4F; Thu, 24 May 2018 13:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527170292; bh=vjtEY4OcDBRdLYX571fQ6yHZkYiHNT1yV6G0lGhXPDQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JkwYYz3J4FTQzdPeoTFjIAwz6xsxC382F2dIUxNJi/LCrdAYWKtIUm7tsb0ZdHsmL C83Pi/piJgSAKGXCwSD4VjHaVsnmlDgl6uFp/59IS/zs71WJcp0idLsQvl2KwmAHmF VZ0h5c7cvF42Gw1krHDgk1s4NdRz33hu9O0l3cpI= 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 A08BD60117; Thu, 24 May 2018 13:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527170291; bh=vjtEY4OcDBRdLYX571fQ6yHZkYiHNT1yV6G0lGhXPDQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KLKMbcBFwp1/qbf895Kke8B32atrKi/u0Oaacrsv4HFBHrSjxOL6/yZlVXPoFSzXA y55P1rGhIpMK8nz2cpCn8mN+WoRqI2FRP/CpWXaxRi7U7wZciw+eiJZAEVLQ5eZoS4 d2R5zuIrE4gDrXH4/D5V1ij2lWIThdXIi+cuwdyY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A08BD60117 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@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com, labbott@redhat.com, akpm@linux-foundation.org Cc: toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chintan Pandya Subject: [PATCH v10 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Thu, 24 May 2018 19:27:30 +0530 Message-Id: <1527170250-5291-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527170250-5291-1-git-send-email-cpandya@codeaurora.org> References: <1527170250-5291-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 17d9282..defb3bb 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