From patchwork Mon Aug 26 19:00:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 11115267 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF1C21395 for ; Mon, 26 Aug 2019 19:01:51 +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 BC5AD2070B for ; Mon, 26 Aug 2019 19:01:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="exKPd667"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=soleen.com header.i=@soleen.com header.b="UFXzaaLC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC5AD2070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=48JdhFAdd810MYy8dLAtc+E8wFsmz2jqoOW/KUT1l+k=; b=exKPd667RGrwWZ CrHxbBx7YNljKTQn2xD20PWDr+ffH/vLQEs7UWPUj74Dug4+2Jcg3xagKZrhSoSDglg8xPn+UaHfm ceWDRz2n5WBndc2LQT0NGe7o0HXQh6V1YfkeaCIBNYBkUxDx84ODDmjcBImT9lWwlcOEtBPALWwyv aUaefPZLmJrHgQ/5BLc64FfKkvzwJFWcbG5gQoIA4QuaJtc7QAsk3LdjIkUUi8Sz1LHihFkKMV7Ly FTK8nUuoDG1x5v3FYWxu4F6aOaD0W350Kkp+D9xnENoiBJFZNST8ELQnz2vIJlG3MRZPSzqQZW4Od zlNzzgTXKZpdhkwjjPkg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2KFO-00082t-OK; Mon, 26 Aug 2019 19:01:46 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2KEf-0006yz-RU for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 19:01:03 +0000 Received: by mail-qt1-x843.google.com with SMTP id q64so7291706qtd.5 for ; Mon, 26 Aug 2019 12:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=2Iyu8V2mhRgac8+S13ID8s2986xy5pxZvhk9T7S5rNU=; b=UFXzaaLCAVwRSz6XEcr9mJF5kHCBrdjGe3QkcYu3MGkKN44wfFfrzlG0jc7ANzJ77n 9EoRiykDzx5lyexiZKGga2j3mHmXj7jLWKeImUzAxoVVED14tv/gZEJHmCbMexLFIPAF 5ZytoKvyGY0XeEXjN9ofyjZRs3CXeuzBSR6meTOyX137+CHIWynDofBLwZgxFIeOEuwU OK7JwW7xuggSckOozTZhHrg1yHzheQ686DtTHSePs2X0r2pswsBkvl7gwF6Fso0bHiKp JpJ0aXsoIgjae8qYFNMcuLsCVjUn7vzSman7d/ATv3DURMO5i0LYjOOZX24xNTqRoQ4o 0w0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2Iyu8V2mhRgac8+S13ID8s2986xy5pxZvhk9T7S5rNU=; b=EptbNqVleG8IM4PGs/ae8MLaKXMXeTYE08L6G6RjwOcalx3y8X7evI6Ph6ywqa6iKV CK9G03g6xx97WbpfbwQ8YqJNrZTvfhm8CcgXUlBrW17XZy7QBbQizvv+8XVq5h8/DXd8 HEQ2WZcv/cBA6BUWiIXHOXz/oow4S9OOulKa88mCnRpgpcKb/6vLCglxmjH9fwnrI0pC 0e5+vYhKxyDUWZUuoaMw1cVw3ftrC9dK9UUSmMeR5aQUyw/BResNkAIIUJ2yjCO3xCz3 /sQV/bwkeMK9yn62W6t/1nyoXLBOt5B6OOje7K44hBLksgqkbC3yN8k2RpwD0G0zO9xo DCOA== X-Gm-Message-State: APjAAAUUTihRJlFRR+u4ms/8/Ruh1siZu8chU6e8S23ph6eqBTwAdOJi I5qAWIhgPiqgyL6zWGgQwWWGmg== X-Google-Smtp-Source: APXvYqwJEoLilU8DEOh3KuHyqH0S1JmiSp9yFcsGVAyDCCyoqq7RSrfnW4/Garo6AgPuH9RBmHyTWg== X-Received: by 2002:ac8:317a:: with SMTP id h55mr19163671qtb.105.1566846061160; Mon, 26 Aug 2019 12:01:01 -0700 (PDT) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id o45sm8614377qta.65.2019.08.26.12.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 12:01:00 -0700 (PDT) From: Pavel Tatashin To: pasha.tatashin@soleen.com, jmorris@namei.org, sashal@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, james.morse@arm.com, vladimir.murzin@arm.com, mark.rutland@arm.com Subject: [PATCH v1 2/6] rqchip/gic-v3-its: use temporary va / pa variables Date: Mon, 26 Aug 2019 15:00:52 -0400 Message-Id: <20190826190056.27854-3-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190826190056.27854-1-pasha.tatashin@soleen.com> References: <20190826190056.27854-1-pasha.tatashin@soleen.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_120101_983991_899F64EC X-CRM114-Status: GOOD ( 10.27 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:843 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This is a cleanup, that will help later when a variant that does not require memremap is added. Signed-off-by: Pavel Tatashin --- drivers/irqchip/irq-gic-v3-its.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index ada18748ed1c..656b6c6e1bf8 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1668,15 +1668,17 @@ static int gic_reserve_range(phys_addr_t addr, unsigned long size) static int __init its_setup_lpi_prop_table(void) { if (gic_rdists->flags & RDIST_FLAGS_RD_TABLES_PREALLOCATED) { + unsigned long pa; u64 val; + void *va; val = gicr_read_propbaser(gic_data_rdist_rd_base() + GICR_PROPBASER); lpi_id_bits = (val & GICR_PROPBASER_IDBITS_MASK) + 1; - gic_rdists->prop_table_pa = val & GENMASK_ULL(51, 12); - gic_rdists->prop_table_va = memremap(gic_rdists->prop_table_pa, - LPI_PROPBASE_SZ, - MEMREMAP_WB); + pa = val & GENMASK_ULL(51, 12); + va = memremap(pa, LPI_PROPBASE_SZ, MEMREMAP_WB); + gic_rdists->prop_table_pa = pa; + gic_rdists->prop_table_va = va; } else { struct page *page;