Received: by 10.213.65.68 with SMTP id h4csp1488250imn; Mon, 19 Mar 2018 05:42:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELuSB6eb/wwxoapgaTviXTR2IMFg57nulLkUzLZ02aYqwdZfta/tfPOAh98YVPsxicEM/Vxg X-Received: by 2002:a17:902:8607:: with SMTP id f7-v6mr8545809plo.11.1521463378166; Mon, 19 Mar 2018 05:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521463378; cv=none; d=google.com; s=arc-20160816; b=lBDLGGMdaaKAoM/oVqNiMS3/70Tt1oMy6uymGduhE0kMWKMFhQASWdmMAl4KISoRkz 0ugyiGHcrggCBon7aGaq26uWjHJjZN30m7HgAP3436nOBNHd9RwxGO46unMtN3rLbX0r Cem7dCYNSd73BvYkTOhUSf7ZhTaATjgfh9gz9quT1+okQAZBFuK4WV1Lpi9StTr2jTbs 9E2G7j7AjSIwKWwGBMpDm17fqfn3xmUXvDo6ggdlFCc+DSH7nWidTnVF+cUmn3aPZKoS 3uN3+WPI6XRb1KonrB2vO29deri28vJC/EzFB3Tan75Fwdiv32mUJa8fATtr/jPe8sI2 uWSA== 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=7nSf7oknGm/epL63Ldhm1CAaIXJab0fI4VB+j7ZzDjg=; b=G6qwkVZRhs0LH83YZBtP9FfGnO4XOWWYjxRt5F5QCe8zICi4+mxfKi0Elr0VERDRNJ W0u3nuA1v3w+tOlQwyX2hbpD/Gedlxz5+wqCOlOnLECrak1HHAm9SWqgfdRBtQwQFDY7 eKyA02gZg1RNEudN8O3sHcGPsksjZIeEpjCQdW4BSMSxcxt1fMR0e9VLNhPMQCutsp3R 9CPFlMVIHymY9DhLKR6opn0YglUCKXArFaDKFtWrMNsv7QaKUsx8NVgfx7qGUzsh/BSq +zxeFkxIpV2fG9CCAkrlH0BQ2Kzp5JUHdwZrCEHLUDKIJTKdW7OWUMj8HhtJpR8LFmsx pfgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=AoLLZ66l; dkim=pass header.i=@codeaurora.org header.s=default header.b=hAm0re8G; 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 w9-v6si11894878plp.425.2018.03.19.05.42.44; Mon, 19 Mar 2018 05:42:58 -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=AoLLZ66l; dkim=pass header.i=@codeaurora.org header.s=default header.b=hAm0re8G; 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 S932953AbeCSMln (ORCPT + 99 others); Mon, 19 Mar 2018 08:41:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36136 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932666AbeCSMlk (ORCPT ); Mon, 19 Mar 2018 08:41:40 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4016F60FEE; Mon, 19 Mar 2018 12:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521463300; bh=ys2nQK1l5nuSkbXsOuYu68VX7O2X0GA8vXlOtYJslfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AoLLZ66l4qwB6FaUim/I6Jt4m5f0iXFTUF37hzyrEPQUZlM7m44b3k18GJyB9ZmLP /u7T7Nwe8cHDKOnRSdhUlMyWLQ1W3BHw92ZrAOFLI+zeGDrB3QaqJr+RjlW+6u0vJU ri28c+yq/mY1KLoJPS80LKOHZZPNBjOzn2AC6S+s= 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 9058560C5F; Mon, 19 Mar 2018 12:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521463295; bh=ys2nQK1l5nuSkbXsOuYu68VX7O2X0GA8vXlOtYJslfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hAm0re8GJPiXdlXerwP4RXY7zj8ABC5QdVb783dsDqYBi9jfI3w5IbgSZyXhFaRqU VU02IAOCLlyLUABd/au8wS7ujrvYj5KrIIgmogSBOY+Q74dzxeo3wqOWSek5Bp4MvH cYrIDsTNRed1F8pqU13MlfWvNHxWDZhZmQu9h6Iw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9058560C5F 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 v3 3/3] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Mon, 19 Mar 2018 18:10:56 +0530 Message-Id: <1521463256-19858-4-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521463256-19858-1-git-send-email-cpandya@codeaurora.org> References: <1521463256-19858-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 c70f139..a29a684 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