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: 28095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 735DA2145A for ; Wed, 9 Apr 2014 15:15:39 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id lx4sf11617700iec.7 for ; Wed, 09 Apr 2014 08:15:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=t5zkcn8DTPXdUv8YtxrQFRuKYQSez++Yz7Lz94mJAYc=; b=fZvmj2SCdAX93s6idtHc4C4J4H6BNnps4btBXgDauXy8lTC7xYsyrEnGznf0lXUhHL eSCmOkz9zbROspgtzkFQ7o2Cs6IoKBTSTlKJD1ubJdUf/dwsw+DCudeX4rQNHnXdap+L HJGwCxNn+PldfjqUStvGC+ROfW6ISOAU3RdDFFtAyarztBxMd+GTbkUHJ7OQdANsrjMa 7KsCOUyNRZPjPEW59yixidyQlk6NVtGYCP/2VOi9C0TXH8eisr5YREEzFhQzs0LAYEvn Q2Ow7bwU+untd2LGnW2vKE8S6u/GjKZ0ufTN3DGqFCmYGkI0r6n6djNdhb7bT/SA+JSY BqKg== X-Gm-Message-State: ALoCoQk1XHGBisoxd1fZUsHmZAKNXl7MiFlo6a7KN93X3rH0EAiZJc08SXRH5jPlV/wOYa6LG9Gu X-Received: by 10.182.19.34 with SMTP id b2mr5106950obe.17.1397056538885; Wed, 09 Apr 2014 08:15:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.69 with SMTP id e63ls712306qgd.29.gmail; Wed, 09 Apr 2014 08:15:38 -0700 (PDT) X-Received: by 10.58.126.4 with SMTP id mu4mr9588099veb.0.1397056538590; Wed, 09 Apr 2014 08:15:38 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id w5si187021vcl.66.2014.04.09.08.15.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Apr 2014 08:15:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so2219312vcb.14 for ; Wed, 09 Apr 2014 08:15:38 -0700 (PDT) X-Received: by 10.58.13.104 with SMTP id g8mr9178864vec.16.1397056538477; Wed, 09 Apr 2014 08:15:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp338201vcv; Wed, 9 Apr 2014 08:15:36 -0700 (PDT) X-Received: by 10.68.102.34 with SMTP id fl2mr12865545pbb.2.1397056535844; Wed, 09 Apr 2014 08:15:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xs1si621941pab.237.2014.04.09.08.15.35; Wed, 09 Apr 2014 08:15:35 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933902AbaDIPPV (ORCPT + 27 others); Wed, 9 Apr 2014 11:15:21 -0400 Received: from mail-ee0-f52.google.com ([74.125.83.52]:62892 "EHLO mail-ee0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964800AbaDIPOa (ORCPT ); Wed, 9 Apr 2014 11:14:30 -0400 Received: by mail-ee0-f52.google.com with SMTP id e49so1980900eek.25 for ; Wed, 09 Apr 2014 08:14:28 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tomasz.nowicki@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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)