From patchwork Wed Apr 9 15:14:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 3956221 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 52BA0BFF02 for ; Wed, 9 Apr 2014 15:16:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FB5C205D6 for ; Wed, 9 Apr 2014 15:16:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81B16205D4 for ; Wed, 9 Apr 2014 15:16:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933695AbaDIPPT (ORCPT ); Wed, 9 Apr 2014 11:15:19 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:50592 "EHLO mail-ee0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964806AbaDIPOa (ORCPT ); Wed, 9 Apr 2014 11:14:30 -0400 Received: by mail-ee0-f50.google.com with SMTP id c13so2057131eek.9 for ; Wed, 09 Apr 2014 08:14:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=01jcg3pdG4Tpmhm49nu0tN1Xk8YYa/ONXWxea+/p1uE=; b=JFg5IHwdMjs/tE8rbu2lZ8/8eqKq0Z7mpd4PiDdy2e3dOKdYtCBJWbxhnGsf02OyYC StlxEbeGapOuGOuQeJC7oazlk7bxyZRcinFEZ3WkjuJSBGp+t/y6yvXtLrRvGw4yP02A NbOdtMSMbQ/CEvCES9LnAzkhhPhuV6V5Ctmt8e6qG1zk0hsUxu1zhaSnkqDyQcJkTJhv B41o/HocrwL2LsorD6ZBtZcz5mKP5SCcCAB8n+sN0rfQnu11SZ0gO4k9FXqmG/fs72il HvcPFvXu72kanXgFI9xgnsWuM5JL41A4vIKFG0DwEUjHO7DMp93rVp7JuFDWKw1W0SzQ w41w== X-Gm-Message-State: ALoCoQkqISwqHDRDK2xbrTRKy+vLkvgaTz9t8+pCmuJRLM189KjnE4nidE5E295CwbF/DjawZe+Q X-Received: by 10.14.7.137 with SMTP id 9mr117225eep.114.1397056468471; Wed, 09 Apr 2014 08:14:28 -0700 (PDT) Received: from tn-HP3-PC.semihalf.com ([80.82.22.190]) by mx.google.com with ESMTPSA id x46sm2326082een.17.2014.04.09.08.14.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Apr 2014 08:14:27 -0700 (PDT) From: Tomasz Nowicki To: rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, bp@alien8.de, bp@suse.de, m.chehab@samsung.com Cc: linux-edac@vger.kernel.org, x86@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Tomasz Nowicki Subject: [PATCH 6/7] acpi, apei, ghes: Make unmapping functionality independent from architecture. Date: Wed, 9 Apr 2014 17:14:34 +0200 Message-Id: <1397056476-9183-7-git-send-email-tomasz.nowicki@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397056476-9183-1-git-send-email-tomasz.nowicki@linaro.org> References: <1397056476-9183-1-git-send-email-tomasz.nowicki@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Till now __flush_tlb_one was used for unmapping virtual memory which is x86 specific function. Replace it with more generic flush_tlb_kernel_range. Signed-off-by: Tomasz Nowicki --- drivers/acpi/apei/ghes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index aaf8db3..624878b 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -185,7 +185,7 @@ static void ghes_iounmap_nmi(void __iomem *vaddr_ptr) BUG_ON(vaddr != (unsigned long)GHES_IOREMAP_NMI_PAGE(base)); unmap_kernel_range_noflush(vaddr, PAGE_SIZE); - __flush_tlb_one(vaddr); + flush_tlb_kernel_range(vaddr, vaddr + PAGE_SIZE); } static void ghes_iounmap_irq(void __iomem *vaddr_ptr) @@ -195,7 +195,7 @@ static void ghes_iounmap_irq(void __iomem *vaddr_ptr) BUG_ON(vaddr != (unsigned long)GHES_IOREMAP_IRQ_PAGE(base)); unmap_kernel_range_noflush(vaddr, PAGE_SIZE); - __flush_tlb_one(vaddr); + flush_tlb_kernel_range(vaddr, vaddr + PAGE_SIZE); } static int ghes_estatus_pool_init(void)