Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3977325ybv; Sun, 16 Feb 2020 10:25:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyMkBvotJrHWmAION/EvvVZCE9My2i9FHW21KPxbhu0LbWNI1mAuaqRiaUaqI9C9HN+TSSZ X-Received: by 2002:a9d:7d87:: with SMTP id j7mr9202174otn.159.1581877512320; Sun, 16 Feb 2020 10:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581877512; cv=none; d=google.com; s=arc-20160816; b=qhRlDd/hJSUZ2J1ccjp2rdoEukbbtCfhJKX2nq8nKNx1wgfhgyr8kLUqU6Fky7Jvuw 008reJ4ZIu2dwGNpvl+toQwMCfIJxFD3ZgloaoxjSPu/ylCVKXwFZ97v+d2fUzZe2moV suAz3eZImFujA2ykyqMMyh7uW+LuhS3I7Gzu6/6c1aXDn9yjmkf6qvdRZGdhjaKojY9b uYFB1pSjz0f+S7RFqpt504/BAfDgt494ezOCwY9XrVepNe+taM54RpQ2ZtNHCPU+kCZk Sn5WRjh6V2aCa4vSm6RWH5hb1TphmiIfMJw+wkI7i3eJWyj00hyCrtVQitYustuArxeh m0lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8+p3hU6zVjv0aq9C69QGyYoY3StCM8ba0oep5y/Hj1M=; b=ngUhd/mjUJ+VLNv9dvsXBKqELIZ11iJrDMrD7ayye3cRltXBHRN2iN+ZXCi2fBjxF6 Kh5bW9P4+d0KTb8XLA0gOxtk6UhBwSpFIZJIpaDAWwMwe8dxJSQqmmCFmLtaPwEFaQ4C sZtsxbLFAr/0V7pnp///V2gRERBam5Dw7kFgjCYUdxxMJlrqXKEtFVgXKKniDjrFY6hr EIMoUFRFo4Xm5fEYM1L1KCibGUZ//voImHRAlYUmEeHaVeFlJFalLNFW3hiFgF29N59u QASWM78EWnQ2NwiZAITTjLRs8taE05Lb2c6eFv5l9NW95STZHDVnV/1Ut9nblm6UEcNo 3kRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HF+fSYYC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si6021989ota.43.2020.02.16.10.25.01; Sun, 16 Feb 2020 10:25:12 -0800 (PST) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HF+fSYYC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbgBPSYJ (ORCPT + 99 others); Sun, 16 Feb 2020 13:24:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:33440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbgBPSYD (ORCPT ); Sun, 16 Feb 2020 13:24:03 -0500 Received: from e123331-lin.home (amontpellier-657-1-18-247.w109-210.abo.wanadoo.fr [109.210.65.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1234B2465D; Sun, 16 Feb 2020 18:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581877443; bh=M6CtQIWxWimc9CTNa99EsOazRYurLdEN+0lz9EbRkzY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HF+fSYYCHuFY90WdfozOQ/Gg+MLB1ebGPUlwlpGiC5OyQbuTT7J7qecISnVTyY8Fz w7Z1mlXr2uRiv6VsFCnhx8poDOo8eS3nvWJQA9Hw/NeTHiAOqiPapXEntfifvNZvo3 hoes4JQxVBBy9jejNEh4C6g5Oiox3GkIeL9mvBl4= From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , nivedita@alum.mit.edu, x86@kernel.org Subject: [PATCH 10/18] efi/ia64: switch to efi_config_parse_tables() Date: Sun, 16 Feb 2020 19:23:26 +0100 Message-Id: <20200216182334.8121-11-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200216182334.8121-1-ardb@kernel.org> References: <20200216182334.8121-1-ardb@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IA64 calls efi_config_parse_tables() via efi_config_init(), which does an explicit memremap() of the tables, which is unnecessary on IA64. So let's call efi_config_parse_tables() directly, passing the __va() of the config table array. Signed-off-by: Ard Biesheuvel --- arch/ia64/kernel/efi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index 81bc5031a115..3b5cf551489c 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -531,7 +531,10 @@ efi_init (void) palo_phys = EFI_INVALID_TABLE_ADDR; - if (efi_config_init(arch_tables) != 0) + if (efi_config_parse_tables(__va(efi_systab->tables), + efi_systab->nr_tables, + sizeof(efi_config_table_t), + arch_tables) != 0) return; if (palo_phys != EFI_INVALID_TABLE_ADDR) -- 2.17.1