From patchwork Thu Sep 30 01:30:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 12527079 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BA90C433F5 for ; Thu, 30 Sep 2021 01:32:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CE994615E6 for ; Thu, 30 Sep 2021 01:32:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CE994615E6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Jqt+Nih3M5kOz0WB89QDACo4kn4MPnWgSYqTiDGRlGc=; b=xpc77TNHH1f/57 rISnUvwmrKAKtszHAah8WGTYHHJInJqVWHDfdAatMKJ4YL8aiNHSl5A7+1We6LSrAmibm+PMuHev8 tGvPMoXbOwjaXM114kCEhKzGF6E/IgDONc0i0PCzXxwOWXjdvjVoV9dd+hiln3pBmhTTIp9rp7D90 hKl3nbM7rxqb7tluph0ZmBcK/CUDymiDTwoQv02JPGEe+Zks6xpw4kAVfYKbA6+QpLhBsV5Mxxz1R iD4yCKOggcLadf6Hfx8t9RdNknZ+okmEFcjAolWd0m/s7+21g8Iax71pLdTcCp4e4m2rNYHncFPaL MZNbtyYcgn24SGQxrQTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVkuP-00CiFI-QY; Thu, 30 Sep 2021 01:30:49 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVkuM-00CiEr-1c for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 01:30:47 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 20A6261555; Thu, 30 Sep 2021 01:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632965445; bh=W4G6Gi3WfUEF+ocW3iGHbdJrEsYEKtCwelydWmNSTXY=; h=From:To:Cc:Subject:Date:From; b=FeOEGvYRt9YBnwi5kb3qw8llRdbAqgOX6GOAwmn4C6e28NCDqfS8q5TUg2/bAbIFc OvNHwA/EpqIBHDiAdYuUqhshspz+SGchmTQodNjn+9BI89Een4JTe6+CdWq+uqjd/O ELQcKqDQ73VGn9LFULcWdRiwt1PWG2nakPImJSXJYsOz/L+b4+hIrubDMVuWwbi+Xc TB3T9h0huptHiBzUo1Q+MKwh+vm2H+UcPWWNQCxdr9aZf2jRpaAhrHY4bcdq6MNF97 rs0kxTFZvJAdBbiXn8EoQ/8LL2+y2OzRLQtZSrharXYebFR3x1yiN+9kMR+KY+m59L caIl6hfQKQ89A== From: Mike Rapoport To: linux-arm-kernel@lists.infradead.org Cc: Alex Bee , Andrew Morton , Anshuman Khandual , Catalin Marinas , Christoph Hellwig , David Hildenbrand , Linux Kernel Mailing List , Marek Szyprowski , Mike Rapoport , Mike Rapoport , Robin Murphy , Will Deacon , iommu@lists.linux-foundation.org Subject: [PATCH 0/2] arm64: retry dropping HAVE_ARCH_PFN_VALID Date: Thu, 30 Sep 2021 04:30:37 +0300 Message-Id: <20210930013039.11260-1-rppt@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_183046_145932_1061DEBD X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Mike Rapoport Hi, This is a new attempt to drop HAVE_ARCH_PFN_VALID on arm64 and start using the generic implementation of pfn_valid(). The first patch removes the check for pfn_valid() in dma_map_resource() which is required to avoid false positives when there is memory map for MMIO. Anshuman Khandual (1): arm64/mm: drop HAVE_ARCH_PFN_VALID Mike Rapoport (1): dma-mapping: remove bogus test for pfn_valid from dma_map_resource arch/arm64/Kconfig | 1 - arch/arm64/include/asm/page.h | 1 - arch/arm64/mm/init.c | 37 ----------------------------------- kernel/dma/mapping.c | 4 ---- 4 files changed, 43 deletions(-) base-commit: 5816b3e6577eaa676ceb00a848f0fd65fe2adc29