Message ID | 20180308080020.22828-2-ard.biesheuvel@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp6174804lja; Thu, 8 Mar 2018 00:02:04 -0800 (PST) X-Google-Smtp-Source: AG47ELtKHUlnAHsDT38hjh4TYchSnpYop6sKC4tmLvNyuAq5ya3xW6wznqgvW9Fky9YD9M3xme/4 X-Received: by 2002:a17:902:5984:: with SMTP id p4-v6mr23720952pli.38.1520496124194; Thu, 08 Mar 2018 00:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520496124; cv=none; d=google.com; s=arc-20160816; b=szIeMFiMoCvIW6NC9SPg/FXHdSBymC/AKRRet79FREvOWoaEoXVUq/o4XcirG1HqXK /o8AeU4q1u5ShzRxIlXSArvRpj+hvwTolY4EfnpywL2K1cNdbjYeoE0oQU1xzHK2wZ/a wjAFWtMp9cjX+DTfUsFtYgvUUOarpo01Dsdp0sSCk0aOCT/j6lXIpbzRFQLwdZ9S8MCM IW6uj+ManZ25e+ivBHuVeqVTAz/MQcakjBkZQiFKUnnRLnlpJW33/qa6YSQb4o47SW6j kR+sb349qVu13+az1Qb11rs/g29vWTsHtONUy1nSmafsni/hyOwhHZVzTKeGlYWq8fYl Bw9g== 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:arc-authentication-results; bh=a7b3PSNYj8tHT2AB9qUHqW5ltqwjTEi5I9THeAA3O1c=; b=UTuDxQkBXmMMOkquvbph9w1W2XXzx2CFnI3LSvE+I2W9c0Ym2OEjc6IkWfYP72so/R iDkuEIsIPWekfSHZmvOWumX71oB07/ULtnAccwRC0p4WssaDYiwd9mjkYp0Srmz+PEhX Ai9UjqE8ewyQqFaLbjBD+TW1TK3rs9H1jAdf+iiDYI+ng52RJ8l/VR3+pOeovY2S1b/+ ej9m6yraCQiE0qK6VYT2GKlCKpyM1Ug6URrPcxEwDZFQnDsosdfosdMqijm5gvyuOUPB p5WKeGMmXv7jUv1yWANWbP0hQI8CEbntCvO+6tt8aQbteVhL1wfaLaGcsQwwxz4igQsO /NdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W//rEZfl; 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=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si12662799pgf.530.2018.03.08.00.02.03; Thu, 08 Mar 2018 00:02:04 -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=@linaro.org header.s=google header.b=W//rEZfl; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965058AbeCHIB6 (ORCPT <rfc822;dan.rue@linaro.org> + 28 others); Thu, 8 Mar 2018 03:01:58 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36225 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935358AbeCHIBx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Mar 2018 03:01:53 -0500 Received: by mail-wm0-f68.google.com with SMTP id 188so9277034wme.1 for <linux-kernel@vger.kernel.org>; Thu, 08 Mar 2018 00:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a7b3PSNYj8tHT2AB9qUHqW5ltqwjTEi5I9THeAA3O1c=; b=W//rEZflJewEIGqYimBGW4YEyvXzAlHPpIx7VN86+ZlSs+6be/mlz6enk3JfdlGWrh SI6v+/Cfao5ASnrJveEQ3/70cNvbrJ8eqIynSr6iFhkOKBFSXHZ20vyYsfMpb/IRbjw7 eRnbDVTRpJvliNwXBgngDDAwlgrVICvjP01jI= 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; bh=a7b3PSNYj8tHT2AB9qUHqW5ltqwjTEi5I9THeAA3O1c=; b=pZFQVN4cM/eX1ROrLSEUVq0Q6z+OVBZjJCWmZxj+17zetBa1PxeUK5gzijrTl339SU WanxqVT1Bx8PboX3SxGT3BTDljXsQt2W1DWZ4ijajidf4/oa5lH1jKeEKg/89XiHiCol nzn1xB89Wmvwe/u81nggiuuf77I6/cLn+obFpsmFn2MtVRzCb3ZQrvQapNDDJAqhuvkW 3yrwUS6e2e0GDnc/tayYbmc7LR0B1OrHr3cSG43A7gO5R5u8k3EHfn6qL/mYPjbKU/p7 CSroH0bkKr0dJRN6OYMzt762NY8u0BnT6JiI0sIU8yHdglRO2LNO46qfi65YIZYvVgF/ o8dw== X-Gm-Message-State: AElRT7EokUxrIuAQDgN3WYvpM/SDZeoiUWAzxlQcZwplyTSYC3GLm8aG KPEVuWT9MS6x45UKrAZiFGs03Q== X-Received: by 10.28.20.74 with SMTP id 71mr15315608wmu.71.1520496112526; Thu, 08 Mar 2018 00:01:52 -0800 (PST) Received: from localhost.localdomain ([160.89.73.46]) by smtp.gmail.com with ESMTPSA id e191sm11223361wmg.12.2018.03.08.00.01.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 00:01:51 -0800 (PST) From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: linux-efi@vger.kernel.org, Ingo Molnar <mingo@kernel.org>, Thomas Gleixner <tglx@linutronix.de> Cc: Mark Rutland <mark.rutland@arm.com>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, linux-kernel@vger.kernel.org Subject: [PATCH 01/12] efi/arm*: Only register page tables when they exist Date: Thu, 8 Mar 2018 08:00:09 +0000 Message-Id: <20180308080020.22828-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180308080020.22828-1-ard.biesheuvel@linaro.org> References: <20180308080020.22828-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[01/12] efi/arm*: Only register page tables when they exist
|
expand
|
diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c index 1cc41c3d6315..86a1ad17a32e 100644 --- a/drivers/firmware/efi/arm-runtime.c +++ b/drivers/firmware/efi/arm-runtime.c @@ -54,6 +54,9 @@ static struct ptdump_info efi_ptdump_info = { static int __init ptdump_init(void) { + if (!efi_enabled(EFI_RUNTIME_SERVICES)) + return 0; + return ptdump_debugfs_register(&efi_ptdump_info, "efi_page_tables"); } device_initcall(ptdump_init);