Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3543173imm; Fri, 25 May 2018 07:29:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrYBfnQdiwCt4lhdLs6N1D993SPiD0Wq3+0HintPw1EynzCedO8bbKGFDMFkKX+CLtHwLCZ X-Received: by 2002:a63:6b84:: with SMTP id g126-v6mr1015814pgc.272.1527258591883; Fri, 25 May 2018 07:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527258591; cv=none; d=google.com; s=arc-20160816; b=i5i6jJoH+C6SUBkqbhbrj+5SojF6ChuHnX+j3pfm2KSfQM7ZDCYm3dzhh3ybXB4PdA ltT5P2PpoRQ6YoOug9lM5XDQv+nN+kigcVMg+dEzeHcxIlq07fajXXsujn0ZVHK0mBV+ lzEViwEDywE1UsLUVKKSHOJUNtiE9Kzja1emdhdDFDUiH/AqgPg5f+AMEYnZLMnRjNO6 ll6rhlaEgsZkMB5yNIaVk3mY9UxLv3MzpAjwKOshXrXreGJXUJZ1ofCkNBCZUG44wrc1 /Hy+KU8wtL1o5wbySyQlXnstxfBdWGizWlHuHQ2VITLPFYxIRrcTsB6YpI7N8faiVESh EMKQ== 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=QXbOWK7p94tINfM1UoS0+9I+5ZsLw13hbVlBpZTN+UM=; b=Hzl9EcCzDBmscaXG4eVIB/PZC5M8kSiahgO2ZuSi2Z8O+YWN0fmZVtnCYZQV7xmt5P dAB08VehRRDUqw7CJur1P8UteEF9TEDdS9Lb55JYQwWur9mJNYop1TQiF9TEzH2fi8w1 cK3LNKFkuH7OW+1wsDTDlKB53KiydIy6S7l+X2GdFuKtcLUPI3hcR9d60OTgHHqXqgRr hZ09brFktXy5YTK8I2SAC8OHv4B/noUoAuihxVo03PaVUanP0eYVo6z6DCm9KUJigjiP 0SzKpRjOzwQbrl/Sajugd6OO/hVJe8W0CemPawJyQ0BRSNEm6DNtXe19aOOg53z/DH/p fcow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=mxyxpSy0; dkim=pass header.i=@codeaurora.org header.s=default header.b=SmZ9ao1c; 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 n3-v6si18516531pgc.56.2018.05.25.07.29.37; Fri, 25 May 2018 07:29:51 -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=mxyxpSy0; dkim=pass header.i=@codeaurora.org header.s=default header.b=SmZ9ao1c; 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 S936227AbeEYO2u (ORCPT + 99 others); Fri, 25 May 2018 10:28:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54786 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935826AbeEYO2r (ORCPT ); Fri, 25 May 2018 10:28:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6400D6032D; Fri, 25 May 2018 14:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527258527; bh=7uWLY5XaxGXbsWyiB1wX7JtHRVqbgAzKc6PVCjzNEiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxyxpSy0D71tCF9lJnWEjBPZYD6gld8OjouEkLA0FpTsuYTHb390wzyCW11XopHtt U2tT1Ai4/StDBmSRmtRd47sUstg8bqbNRPMzqayfbkQYcvcvp1jF8yoiJnRCHrADZl sFlq/YIW61QJZ0ng+GuWLdqgy4anfs5n7C5GSbC4= 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 CE7D160AF9; Fri, 25 May 2018 14:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527258526; bh=7uWLY5XaxGXbsWyiB1wX7JtHRVqbgAzKc6PVCjzNEiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SmZ9ao1cCuZj5oaBZmrLVqq4ptmx80zFUivQnKpTFiPCv7JOOkNu0FhRCeKgqlUrf BQhd3d6C6rLIZ9POpun00A+Vo+DVefqlZvHwya8DhZlAbj4wf6zFIFG68SevvJHrk2 hhuJRFfg8IB+Y8iU7IxKKzZ8lZ/Df9AGB7BTFYKg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CE7D160AF9 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 v11 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Fri, 25 May 2018 19:58:09 +0530 Message-Id: <1527258489-30473-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527258489-30473-1-git-send-email-cpandya@codeaurora.org> References: <1527258489-30473-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 5f2da5c..c71e9df 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