Received: by 10.213.65.68 with SMTP id h4csp381261imn; Wed, 28 Mar 2018 05:33:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+oNRPeHPZ0n54eQ4ABj3VpemCbg6cdoAcpOVyhVeSOYmkHeEyzZmhJx77mqgutBZb74YM X-Received: by 2002:a17:902:5388:: with SMTP id c8-v6mr3662430pli.90.1522240414100; Wed, 28 Mar 2018 05:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522240414; cv=none; d=google.com; s=arc-20160816; b=kgRTMImF1P1ijae0mE1IUsSElr8FuGQl7ucm+SyMSWJWQhAuYxrY1g18YFaY+ZiRK3 /K7wJbseaUGmuGnyXdD5bk583HvsFwpOtsKuLR0zusZGXepcMtYIxu/kkfMOMgUuGfSH +NxrijwRwV1QJSYmJ2M6AzBRHwpnREAtTrQuakiL5nQL3RbIfpAfn6b9B9F6ZWTfLUPY 2aYCUU/tZmtQF5uhVfdSB1WXyhIXnt8YmHKrRDRfJ7ucbYpRgtmyY8rbnLWFbKOwqhM4 X4y5YGUHOlgZy33luZF2CE/vLutAzF9QXb3qwhkxKGwclt0dWD+vmHOslysJ5NvqKQJP TKeg== 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=T/RCuCzPbsoPgO7JK8bEeKNj5QDMIydORZSIcKcyqsXLekxlO9E138DLQ6I9yz6Glc /ft37Ycbzht0Psw8oOattBINW7+Pc1E6WYBfMZpv8EjacbbbgFeFpka2pH3LnIJUCtVC dB/jpq8SXmzlqptxopIhKSpFzj/3s4qg4H8qaqaJG4m1ohx+cSotvgu1GY5ROIrZl5wO cVYkVoibaIYkQN/Bpr/j3H9/eaom/wqclODaZ5wkEWCPmMkl8zr4B5HCcSkf03D15AjA 0zMuc86oc4ITkep9ZI4yy8V8Rmznl62uj1FAg0HTcRxelDPTIX/is4a/PNz152vcJIox Qu0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZvNV7gWu; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ix0B4MvW; 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 h10si2427162pgf.715.2018.03.28.05.33.19; Wed, 28 Mar 2018 05:33:34 -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=ZvNV7gWu; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ix0B4MvW; 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 S1752886AbeC1McL (ORCPT + 99 others); Wed, 28 Mar 2018 08:32:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60198 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeC1McH (ORCPT ); Wed, 28 Mar 2018 08:32:07 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 772B7610D6; Wed, 28 Mar 2018 12:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522240327; bh=mugyeAAo99d3KfHBr8Pfw5fHLDHlIh91ty0JagHe0Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZvNV7gWuTLM3UejhT7QhCM9W05ENXWNhF0evPi7xB3EOVra9KquQOjMp18uI/ENbe 8jJ3Icjft9gM2qZTVLmA16l7sLuk3Uk0uVYykgCzVE2niahkl+EHpHF4kPuAdeu6j7 dsoVwLWrv2TBvC1CJ/xFfONuDDefzRtOb8TPOx3c= 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 CA0F26110D; Wed, 28 Mar 2018 12:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522240326; bh=mugyeAAo99d3KfHBr8Pfw5fHLDHlIh91ty0JagHe0Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ix0B4MvW8b/vgGsbPoj7wjqRFMlgY/nllabpZYtT0RODk0OOh6g2zcnKhBZWskkwz msJTbC3Ds+aQGjVjzOb2l7GWe5epgrax1Gnv5bwtIUaq6jI62b9wq3e+6dayKvF0oy GgqSbZoEVk/DZt0EjXQH5T/jTbNiDnKI3RbzcxHs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CA0F26110D 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 v7 4/4] Revert "arm64: Enforce BBM for huge IO/VMAP mappings" Date: Wed, 28 Mar 2018 18:01:22 +0530 Message-Id: <1522240282-12104-5-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522240282-12104-1-git-send-email-cpandya@codeaurora.org> References: <1522240282-12104-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