From patchwork Mon Dec 9 03:03:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 180978 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp3801014ile; Sun, 8 Dec 2019 19:02:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyQsr05AkS2vy1a8fvmXWiYS7DbjJa4Nc2HTJrCdbnSp7z5QFfHdthz8szvgSzYM55MNltv X-Received: by 2002:aca:dac6:: with SMTP id r189mr2513061oig.125.1575860544004; Sun, 08 Dec 2019 19:02:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575860543; cv=none; d=google.com; s=arc-20160816; b=j23pdoRVYlHbriGGsbdCdutAsYKK31Gfc89EXtUg2dSF/FW9zbOJ0+OA9wyZMtEiTP jtuidOx4ZaPdc43YCNUcWXJaQk27I4SuygyY/wAofYdg/TfaQBwV6tCF/fOTFn8NIDrB zC9o8xDyENSTjw5MBD1okAzaB0bCKZXimo0omuiSRSQu24a7PfwCYzkGXF4SIG7Cuigl oRv2dYPRH81JCbKOteHRXc+OCdE+kWRyokIfeimQJNEZIbHrmua4nvwz5S5T76ER0DU7 WNcGhzqi2WzFb/DaXa0NbQrcJnGo6diLBCg35AYoDeZzkq8IdqwCEWx2LV5V3/o9IKdt Pzew== 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=NbnsQ6ttBdh/Z/p6HKp+CY97QZQdRbJ9oPgvtM/X3Xk=; b=NAJC3Sdn9jBl/w5uymEUnReMZj39tO7jrOf7jTZEONVlDD2BOU58YY+kYgyI6/2P0D kyWX0Jgt/rXmkrdJKBcNVI7rwxwGD/6x1HrQvVh5djX6h9BygO2nqHXcsoVQ+Bl76kls aXWjKuHfIgtjW/vtvwWxw7GyiMpo3YqB00hf8bhRIjWXOJ3OyV3xuS5Ztv5Tszv2o5Ep ZWjGm4m1p/QiUB0IFN8WQhPYNl8qosN7BTcW2Wd3EWfJPs5XXMn4zBD+WCV6PW8HkmI0 6U1kc1M1AnwldXseatMQOS9Ykb63PGOdiBycox4JFVQpW+Bh3jtM58AyG4Fq6OvrNzTz 107g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UqR48An0; 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 o16si12065709otp.289.2019.12.08.19.02.23; Sun, 08 Dec 2019 19:02:23 -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=UqR48An0; 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 S1726923AbfLIDCO (ORCPT + 27 others); Sun, 8 Dec 2019 22:02:14 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39796 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbfLIDCO (ORCPT ); Sun, 8 Dec 2019 22:02:14 -0500 Received: by mail-pf1-f193.google.com with SMTP id 2so6441391pfx.6 for ; Sun, 08 Dec 2019 19:02:14 -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=NbnsQ6ttBdh/Z/p6HKp+CY97QZQdRbJ9oPgvtM/X3Xk=; b=UqR48An0tfqvHjq/UHrgSgERccvByqklZebNFmIzyHBPsp3DcP29jBrAtbNOopkKfp fgJYRqkbswS/wiiDwlRCu3DJYHi/1aC//Zy5pTi7J0OVW6UHkFQKZXOcs+OMVTwtK2zT obluGXLQTOk8bvwqXcwtul7vuclqcwztBHIDUmmnc4jA32ji14qcCudxPJavX6Irs/iT PUm1NzQhqmvC5+C1y1+PTIgaRR/a57mBerAI5ECJp4b/kIyiLp5fkevyjAXT565pQ4QN 3dtTpLUAZBC+NYLXYkbGr1259qR2aIWtmgt2vwjdw27nKXRw2p7fG+R5AoY5rMjycuca uz8w== 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=NbnsQ6ttBdh/Z/p6HKp+CY97QZQdRbJ9oPgvtM/X3Xk=; b=j4GI/u/4LHQHBTrSlrOmaEH719g3QP+gWpSYUe1Zfw+4h0YYYRHanc3/KIZMAxmzg4 flQQc+HWR25FnPeNWdYmUO/9mQjkMkOXsp2QErFulVMKQE9MHGuZbgz1pw0dx+C2Z2kY 17JFE57Kd7e4sSAvqM91iZ8FqtEBNPZ2G+IoJnhLae1qdIqFtRs9y/hLp4cYHUrC4LPJ 8zaDoWd8C4RxH7ks04C2WgxdZVF5NSYtGi/RoT3cx4+/6ovbj6oUdhdffAF+/PYRu6hE XoraMBw3+pDvy2shrneUxUm4MkIuTyjfx8wyeXS3SKu3oK4mbygh3W+EB4VZc47fMFft 6VXQ== X-Gm-Message-State: APjAAAV6vjLDzj4hwAmLrOP766w3PJJ9MVWKBzldTZDoq3ACEcVK+xgB 8Q9o8AmE5T4wHT6G6hk7INjeSNgdWqw= X-Received: by 2002:a62:382:: with SMTP id 124mr2496242pfd.11.1575860533827; Sun, 08 Dec 2019 19:02:13 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id z19sm23401431pfn.49.2019.12.08.19.02.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Dec 2019 19:02:13 -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 v3 0/2] arm64: kexec_file: add kdump Date: Mon, 9 Dec 2019 12:03:43 +0900 Message-Id: <20191209030345.5735-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.24.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.) Patch#1 is preliminary patches for libfdt component. Patch#2 is to add kdump support. Bhepesh's patch[3] will be required for 52-bit VA support either against legacy kexec or kexec_file. Once this patch is applied, whether or not CONFIG_ARM64_VA_BITS_52 is enabled or not, a matching fix[4] on user space side, crash utility, will also be needed. # NOTE: # As of v5.5-rc1, crash utility doesn't work due to the commit # b6e43c0e3129 ("arm64: remove __exception annotations"). # But the fix is trivial and it won't affect this kernel patch. 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 [4] https://www.redhat.com/archives/crash-utility/2019-November/msg00014.html Changes in v3 (Dec 9, 2019) * rebased to v5.5-rc1 * remove v2's patch#2 as the same fix has been applied * Otherwise, no functional changes (since v1) Changes in v2 (Nov 14, 2019) * rebased to v5.4-rc7 * no functional changes v1 (Sept 12, 2019) * on top of v5.3-rc8 AKASHI Takahiro (2): 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 ++++++++++++++++++++++++- lib/Makefile | 2 +- lib/fdt_addresses.c | 2 + 5 files changed, 109 insertions(+), 9 deletions(-) create mode 100644 lib/fdt_addresses.c -- 2.24.0