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: 11278371 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 42919109A for ; Mon, 9 Dec 2019 03:02:24 +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 2068F20663 for ; Mon, 9 Dec 2019 03:02:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="b0x/pBnE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UqR48An0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2068F20663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DscBSKFw42H47Ev/fnroDoHhFm+RUeQlquCKxu6ItUI=; b=b0x/pBnEApNOer tDrplATJiIe4SXKOoGDcUTL82+kce+8UvgRNmpLtvxGObahBW2NHzZmaFhwJqJC8VGVa2sbn29kSC E/HySr1QMqLeflsCx/Ykx/xQohtXOvISBqg91LuSiaAjE9MHa4HnegHYytNuSIYcS/uj4DzVLumcf RtHBda0I3/pR92ytIS1Xv4LTKPwPACNB8YrsPecnw89D5AfWGuEOeUFlABF+9HNfO55eoWzgTgl4v 1YSwAuFBgpNtdiF5QedsiWWrlzE8DP+YRpgckHvkUPIuE10a36eSwfHQio/NLcLvlVIxlA8M8saQB fNEd71LDEzOjCHOnelTg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ie9JX-00069v-Hs; Mon, 09 Dec 2019 03:02:23 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ie9JP-00068I-GC for linux-arm-kernel@lists.infradead.org; Mon, 09 Dec 2019 03:02:17 +0000 Received: by mail-pg1-x544.google.com with SMTP id b9so5958158pgk.12 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=AJY/lqwQhRnTuKG2FJX3Kyw6Nf0JwpBEm16SpTrpSgj16S8Hm9Z/aIJS+jcSXYtrq9 8eo6NSnlgeixFYo6gNxd2OhLIdqJ4OjCBVq1pLuQqmXLuMGBRVu59AeMBfAdQTAOuH8c E4Ww8JBm41T4f/QRIXbZLImfjB/zi9RZRbdzrjwIPCkVfPz8Z3ys/OWyytC+ZpWDAZDD zf3PLMFrZdNHP5Lg/iaCkwWBR/eP0Imt4c/H83d132IqfSVcU+ToIJId2H/DNx02OSY3 hLeYcAIrvDelEQb/9Ic7oNZ1x8xiwKAEFGT5S4tvbXBxWsrjrZKwpu953PqnSy3E90b+ mHUQ== X-Gm-Message-State: APjAAAVdzgNWxk/rD02+7hL1kW/SbQFoqD1KuU69YKZVeFYKnE17/XVl aKAB7L5uYvLvuHYskB/aU5vruQ== X-Google-Smtp-Source: APXvYqyFDl32R/rnwpVkKgrNnE1eRzlqR9wwFkEon9M0auaRUzwaRi9sgW8y2FSWf8RbQdA7tC4HnA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191208_190215_565160_E2F69146 X-CRM114-Status: GOOD ( 11.28 ) 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:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's 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: , Cc: kexec@lists.infradead.org, james.morse@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AKASHI Takahiro Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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