From patchwork Thu Nov 14 05:15:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 179364 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10572965ilf; Wed, 13 Nov 2019 21:14:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxBoF06sHlfWlR9M0Tr7UkITlGvMvTQiIvhMlhNDDbuEFcqxiVG2Vyi7J14RyZUBqzjMQk2 X-Received: by 2002:aa7:dc1a:: with SMTP id b26mr7780522edu.139.1573708479970; Wed, 13 Nov 2019 21:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573708479; cv=none; d=google.com; s=arc-20160816; b=as1KXLdKWD/0t+6GnTZpSKU0MWAip+YlsvqgGA0syAu6QFpsFl0DWmM9t6EF6a0QlY BZDSBWjKxdr5Z/UR70zBvg6UmWcehGo4xxKcRFMHArxv2WIi2DGe5QdR+Bpqr1cA6Wtw vh1ashcEdcgB0M1qmkCmZAVw0TOZse0lqf5GpMaPlQ2u7uJhuJdzPTEQ+18WEWPgRmOP qifpBNuA91ohwJ21JtU/fVzNgAl8T9ucA8vh8kT/Ie0VTNOvjKED9af9gS19YAfHJHBm gToFvJ7hQGFqP/ZQJvSbC2E3AkkeisEogq1W8hNLd+a37l8xwenZf9qlW1i0+wbq3+AA tgvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=R7b2JPtWwEx72nyCRSKpBp7/BtsD5j/Gd6lSZi42tNY=; b=0emj37XIDc4hLNIvnCTDzPS19r90hPZAYsQEHBq3Hd+mqR4aMtDKUuWCvTDqcusKmF 58sH2ygRT18lTL8JHjUTXmZDJ/0cjrTwKQmuVpMUfBQ/WY5L4t441FJ4zu4GYErMCoxv JtvQ8KN4K7iaDHp5XY11sg1keRxaAK2lOW0OnB8Wvyk3W4JWcj2CoUXG6oD/CAOBvEU3 CUw/gzJT/BTaFBu1talQ8CdM5GTGuMS/I2x0taou5EyKFyhfgJMSW7qAVeFNO8Tdh0/z 10s89fXrHw9ImUPtZYKvJN/KNgCuC1zAuymWIoss0DkRNizv3eEwRSnPSk04wVtRjNur fM+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SAqGs6fQ; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si2928905edr.52.2019.11.13.21.14.39; Wed, 13 Nov 2019 21:14:39 -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=SAqGs6fQ; 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 S1727347AbfKNFOh (ORCPT + 26 others); Thu, 14 Nov 2019 00:14:37 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38384 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfKNFOf (ORCPT ); Thu, 14 Nov 2019 00:14:35 -0500 Received: by mail-pl1-f194.google.com with SMTP id w8so2081524plq.5 for ; Wed, 13 Nov 2019 21:14:35 -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:mime-version :content-transfer-encoding; bh=R7b2JPtWwEx72nyCRSKpBp7/BtsD5j/Gd6lSZi42tNY=; b=SAqGs6fQe8YE08HwbEoz3pMr+dp5RUp5r07rVVDRW1kTo3hsf1d0dzMBdMNQbAqOa+ 6xDVVt10resWw/FTWyy8sWSzzlyQ5a0kQ50/t43SI/7LD8UkqOJsxJdriFxpoUFe8N6l hbL2nLKz5wc1YvFIfbr74jMQPuusyPBbR8Bg5CzEVBj85/whJlLXjWcQROl5qJqCTv40 5pNxOqKDIq/82f9UByGx9DP1aiNI6vHqxFaBPQGBlqnLeebjOcCQcQB2sZxjDyY8L88Q aiYpfon2RNigH4ZfGF8tbhyvLrQe5NiBtmBdC2KZ6cQl379vvUy2IbrfSHKpBv5aITAc 5SJQ== 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:mime-version :content-transfer-encoding; bh=R7b2JPtWwEx72nyCRSKpBp7/BtsD5j/Gd6lSZi42tNY=; b=MKJV41QlAhwSSncgx08S6semh35LzR1rQduiggYIJo0E4Mzy7skEBMur0N1DiVVcuQ YqDrhMz5OmubEaaJaZ/ZCuZk/gASSPpucBEInTgDobEYAmvJotHHVEtSdeRtfkjv5UdK 9qZr0/KUGHu0u2WwJRxQDpCLc2bAP9orYC8kS6oJxMYxpwMFmKr2hxG87PGUy4SwFvJ2 9sdA2dQnYyp0m5uhJdugz0pJlVIokqYvF6h2LacEJS28Twz9ufzucSXFk8XPpkFHzluN Z0S4nwSCfVkND0W57OZh8fd09Lp+4ZirUAgzGOlyOfi2ARuKSbpYDg17kqkwK0Ke3bpb 7IjA== X-Gm-Message-State: APjAAAVTuLVPbSqPOepOPYfJBw04svff/Bvl8uI9oiiKHJEV7Q3makxI LcT+ljIAR6GhR7yJQUp+fbZB07c0PZA= X-Received: by 2002:a17:902:aa42:: with SMTP id c2mr7453010plr.311.1573708474696; Wed, 13 Nov 2019 21:14:34 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id i123sm7799642pfe.145.2019.11.13.21.14.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Nov 2019 21:14:34 -0800 (PST) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, frowand.list@gmail.com Cc: james.morse@arm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v2 0/3] arm64: kexec_file: add kdump Date: Thu, 14 Nov 2019 14:15:07 +0900 Message-Id: <20191114051510.17037-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the last piece of my kexec_file_load implementation for arm64. It is now ready for being merged as some relevant patch to dtc/libfdt[1] has finally been integrated in v5.3-rc1. (Nothing changed since kexec_file v16[2] except adding Patch#1 and #2.) Patch#1 and #2 are preliminary patches for libfdt component. Patch#3 is to add kdump support. Bhepesh's patch[3] will be required for 52-bit VA support. Once this patch is applied, whether or not CONFIG_ARM64_VA_BITS_52 is enabled or not, a matching fix on user space side, crash utility, will also be needed. Anyway, I tested my patch, at least, with the following configuration: 1) CONFIG_ARM64_BITS_48=y 2) CONFIG_ARM64_BITS_52=y, but vabits_actual=48 (I don't have any platform to use for 3) CONFIG_ARM64_BITS_52=y, and vabits_actual=52) [1] commit 9bb9c6a110ea ("scripts/dtc: Update to upstream version v1.5.0-23-g87963ee20693"), in particular 7fcf8208b8a9 libfdt: add fdt_append_addrrange() [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/612641.html [3] http://lists.infradead.org/pipermail/linux-arm-kernel/2019-November/693411.html Changes in v2 (Nov 14, 2019) * rebased to v5.4-rc7 * no functional changes AKASHI Takahiro (3): libfdt: define UINT32_MAX in libfdt_env.h libfdt: include fdt_addresses.c arm64: kexec_file: add crash dump support arch/arm64/include/asm/kexec.h | 4 + arch/arm64/kernel/kexec_image.c | 4 - arch/arm64/kernel/machine_kexec_file.c | 106 ++++++++++++++++++++++++- include/linux/libfdt_env.h | 3 + lib/Makefile | 2 +- lib/fdt_addresses.c | 2 + 6 files changed, 112 insertions(+), 9 deletions(-) create mode 100644 lib/fdt_addresses.c -- 2.21.0