From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E6360CD6E56 for ; Sun, 31 May 2026 09:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sKVLCLu8XTfsvb4XdRoPm7KvsQtWzPp56I8MFy8zhao=; b=IJXlLYb0q7H8LDOKZu5orGAQ7I GQ99H3y/vdam9jbDg9+NXFfF1BPOEoFHc+DIjIigyQoLXn39ePMTdVQbOSDbotXh6g1EtqiJk4Ymj Yz+M/oAkPgVNfsqN6dM44z9a0IB7+T7mR8m12jKDBVj2YQdvw77u4d3U5rgWLTv8d71c35vTszVb2 X0WtaDMRbcQdeKKe2eUp+96AsTwpjTpsiLEHQua9q1+863oNtI6FkJZEXU1wiJCEFtXeQ4CA28gEI UR7uC+cN+mDxHG53kvUR2GFC7PEDIH3wkTUmi+BuZBOxS/1muN34V3xFYcbqt/pbhFKJTiRRILIAU MkmR1k8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wTcTa-00000009QTa-0o8G; Sun, 31 May 2026 09:28:58 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wTcTZ-00000009QTN-0eC8 for kexec@lists.infradead.org; Sun, 31 May 2026 09:28:57 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 40A66600AF; Sun, 31 May 2026 09:28:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF0A11F00893; Sun, 31 May 2026 09:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780219735; bh=sKVLCLu8XTfsvb4XdRoPm7KvsQtWzPp56I8MFy8zhao=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Rez7EVFpovoH5ATL25xVJfV9kmDIZar9McePukksCWV9f6z3A32X4rp/Miehff7Pu pSh6vOduka57MCJpt/oqUNBbev7WkZ5mUBS0z3YjxCJ+35wmJDqb3J8CGYMuup9CyX RW3OhrJVLdjgyVZqAD6WN68jTQ2yPuTvwRu3G2tA5TrCR0kPk9trY3R4kZ1Xj5jGJc Jd0iGSgxC68WFOdG3BFEzZ9IK9qw7cLjJ3CBAMzBGNbAuJ2ynJO1HTugu1aLHbuHTu HBjZu/5dhv30F1d9FKs5DpoYZRJMKkKwAAyr8947gK76H1CPrR+CsHX00AZJ1MBpbD hm+oilmW9WQTA== Date: Sun, 31 May 2026 12:28:47 +0300 From: Mike Rapoport To: George Guo Cc: Huacai Chen , Pasha Tatashin , Pratyush Yadav , Shuah Khan , WANG Xuerui , Alexander Graf , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, George Guo Subject: Re: Message-ID: References: <20260529143238.169169-1-dongtai.guo@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260529143238.169169-1-dongtai.guo@linux.dev> X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org Hi, On Fri, May 29, 2026 at 10:32:34PM +0800, George Guo wrote: > From: George Guo > > WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?) > #26: > containing only /chosen with the two KHO properties. Since DEVICE_TREE_GUID > > ERROR: Invalid commit separator - some tools may have problems applying this > #34: > ------------------------------- > > total: 2 errors, 1 warnings, 0 lines checked I believe something went wrong with sending the emails :) Please include changes from revision to revision in the cover letter next time. You also may want to consider using b4 prep/send for sending the patches. > > > Date: Fri, 29 May 2026 21:54:01 +0800 > Subject: [PATCH v2 0/4] LoongArch: add KHO support and selftests > > This series adds Kexec Handover (KHO) support for LoongArch and extends > the KHO selftest infrastructure to run on LoongArch under QEMU. > > KHO passes metadata (the KHO state FDT and scratch area addresses) to the > second kernel via the FDT /chosen node, using the linux,kho-fdt and > linux,kho-scratch properties that drivers/of/kexec.c:kho_add_chosen() > writes and drivers/of/fdt.c:early_init_dt_check_kho() reads. > > Selftest support (patches 3-4): > > Patch 3 adds loongarch.conf and extends vmtest.sh to recognise loongarch64 > as a build target. The LoongArch virt machine is FDT-only (no ACPI), so > 'earlycon' must appear on the kernel cmdline or the console UART is never > discovered. PS/2 input devices are also disabled since QEMU's LoongArch > virt machine has no i8042 controller; the fallback port probe hits a page > fault and panics before reaching userspace. Patch 3 should not introduce regressions > Patch 4 handles QEMU not exiting after kexec on LoongArch. QEMU provides > no EFI runtime services, so machine_restart() falls through to an infinite > idle loop. QEMU_NEEDS_KILL=1 in loongarch.conf signals vmtest.sh to run > QEMU in the background, poll the serial output for the test verdict, and > kill QEMU once it appears, so the test completes unattended. And patch 4 should be folded into patch 3. As I said during v1 review, the whole wait and kill loop can be replaced with 'timeout' command which does not need to be specific for LoongArch. The actual timeout value might, though. Will wait for v3 for more detailed review. > George Guo (4): > LoongArch: kexec: add KHO support for FDT-based systems > LoongArch: kexec: add KHO support for ACPI-only systems > selftests/kho: add LoongArch vmtest support > selftests/kho: handle QEMU not exiting after kexec on LoongArch > > arch/loongarch/Kconfig | 3 + > arch/loongarch/include/asm/kexec.h | 7 + > arch/loongarch/kernel/machine_kexec.c | 38 +++ > arch/loongarch/kernel/machine_kexec_file.c | 256 +++++++++++++++++++++ > arch/loongarch/kernel/setup.c | 21 +- > tools/testing/selftests/kho/loongarch.conf | 13 ++ > tools/testing/selftests/kho/vmtest.sh | 35 ++- > 7 files changed, 365 insertions(+), 8 deletions(-) > create mode 100644 tools/testing/selftests/kho/loongarch.conf > > -- > 2.25.1 > > -- Sincerely yours, Mike.