From patchwork Tue Jan 26 04:54:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 12045229 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C907C433DB for ; Tue, 26 Jan 2021 04:54:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2B2D722D04 for ; Tue, 26 Jan 2021 04:54:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B2D722D04 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B57148D008B; Mon, 25 Jan 2021 23:54:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AE1AC8D0076; Mon, 25 Jan 2021 23:54:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F1E88D008B; Mon, 25 Jan 2021 23:54:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0089.hostedemail.com [216.40.44.89]) by kanga.kvack.org (Postfix) with ESMTP id 8820A8D0076 for ; Mon, 25 Jan 2021 23:54:24 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 4BA918249980 for ; Tue, 26 Jan 2021 04:54:24 +0000 (UTC) X-FDA: 77746710048.09.slave56_120f2162758b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id 1A872180ACF9A for ; Tue, 26 Jan 2021 04:54:24 +0000 (UTC) X-HE-Tag: slave56_120f2162758b X-Filterd-Recvd-Size: 4167 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Tue, 26 Jan 2021 04:54:23 +0000 (UTC) Received: by mail-pj1-f50.google.com with SMTP id cq1so1322665pjb.4 for ; Mon, 25 Jan 2021 20:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kxNEOYhgKwvRvVfu2/k3ZgwDNvcTYU3oc8R54p0XWwA=; b=to0uKAF7Nj1QlCsWyg4IjE5lSdoDnjb+l9Ld6oFvxCEr+TdnupQouEo+9kBXa/CDTa CcWbs9nZMugSmys1AYrg0YzRl7gGvYIGqFcWo3m+tnDDoNP1eEytLw8r3y7GSwMyrmCe D1MkaErva8TKJARzEmQ3TRygPOnZWkae0oQNXH8nuBTl1tLbbILHBtIsNbb52vxMEmBG HQHRvco4f3ttmI5jpwD72uQoDxUVtsLsRLoXAOuHMtgh+IGcrxP5DwZ+4nZ3hWnf9Yc7 BPYalDoaBtLHOmX56hB5YjYixLyMljyMwoz86Q8ScLyG6lL2uoJfpDdBof0J7WJ4hrPV oSuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kxNEOYhgKwvRvVfu2/k3ZgwDNvcTYU3oc8R54p0XWwA=; b=jOJG2lHpvHq6xg1tCmuVP7Qw0Ft8Y6dOX2+/LS7n60wxk6pc/idRVRfo8NJ41/hFgT b3MFT1Jdw4isMgg+iGREF78Po50ntyfJvlHP610XL0E3WjMIy2lnbSj9oU3CbTRggkpj olr3UkN301GO9iuoYBw5ETbGxD4WnJCtO1A3hY1daE+R2sfdHub605NJWljQVjy9qRb+ FRg5Qlxub1I/nYAhaEd3R9WavJGrtwPA2jvEfHJGjivhrHl7c4aPXdclIF98/XRhorrB +u2/c37U3tIvf5ex08/DsG9StZBe6ZyYmIiAeYESPQ5xtUu7U4nrWhH3N7476bBcbmY/ N8Pw== X-Gm-Message-State: AOAM531oV4yFT8SSHtjBP3hLIdIN3Ly4hJ4FXnMWArC7mei1vfEgkmg+ aT3o+SO662A07UW2lGBC0u9+Pxy7Q8Q= X-Google-Smtp-Source: ABdhPJwtUyXXER9bmRZ+e2DThvE7nOQ7xV1I38TK3IzCWyGCRxyYZp+rA6/30YI7Bw+AQQF+pC05Lw== X-Received: by 2002:a17:902:e844:b029:de:5abb:7df1 with SMTP id t4-20020a170902e844b02900de5abb7df1mr4028710plg.55.1611636862738; Mon, 25 Jan 2021 20:54:22 -0800 (PST) Received: from bobo.ozlabs.ibm.com (192.156.221.203.dial.dynamic.acc50-nort-cbr.comindico.com.au. [203.221.156.192]) by smtp.gmail.com with ESMTPSA id w184sm18803382pgb.71.2021.01.25.20.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 20:54:22 -0800 (PST) From: Nicholas Piggin To: linux-mm@kvack.org, Andrew Morton Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, Christoph Hellwig , =?utf-8?q?C=C3=A9dric_Le_Goater?= , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 3/5] powerpc/xive: remove unnecessary unmap_kernel_range Date: Tue, 26 Jan 2021 14:54:02 +1000 Message-Id: <20210126045404.2492588-4-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210126045404.2492588-1-npiggin@gmail.com> References: <20210126045404.2492588-1-npiggin@gmail.com> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: iounmap will remove ptes. Cc: "Cédric Le Goater" Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Nicholas Piggin Reviewed-by: Christoph Hellwig Acked-by: Cédric Le Goater --- arch/powerpc/sysdev/xive/common.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c index 595310e056f4..d6c2069cc828 100644 --- a/arch/powerpc/sysdev/xive/common.c +++ b/arch/powerpc/sysdev/xive/common.c @@ -959,16 +959,12 @@ EXPORT_SYMBOL_GPL(is_xive_irq); void xive_cleanup_irq_data(struct xive_irq_data *xd) { if (xd->eoi_mmio) { - unmap_kernel_range((unsigned long)xd->eoi_mmio, - 1u << xd->esb_shift); iounmap(xd->eoi_mmio); if (xd->eoi_mmio == xd->trig_mmio) xd->trig_mmio = NULL; xd->eoi_mmio = NULL; } if (xd->trig_mmio) { - unmap_kernel_range((unsigned long)xd->trig_mmio, - 1u << xd->esb_shift); iounmap(xd->trig_mmio); xd->trig_mmio = NULL; }