Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1019943pxy; Thu, 22 Apr 2021 20:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc+lujR1hB3G5DnVzbWo6g0W0lsUlNqFYrSmVTl5Q+9XsktcxLDieD0nQ7P0FOWm4X3xm+ X-Received: by 2002:a17:902:bd4a:b029:ec:7b39:9738 with SMTP id b10-20020a170902bd4ab02900ec7b399738mr2053055plx.59.1619149805929; Thu, 22 Apr 2021 20:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619149805; cv=none; d=google.com; s=arc-20160816; b=G/0k+KdlVjEAb6vrjzsecJloarIKCyRWSoJd42MXXYHvsPSYxe/gSpItD9W9+ZQVcP 9vjddnmowJRJL5fn/VYguq80+Nrsz43pPQ46LZDceguugZRxOnPm7Ecx6sohnsq9l0SQ mPYhvC9YhI4+lslmcfPRprDkeUuyJHSQqeO+3OnS07kjZ3qpToJKrBZrXfO66ba+u0n2 XbFTab7mEU2wgUFm16Fd3w+76ek/BKzk11HJwi8Ww+ugGSqfzUxu9D2c3E0IVZZQehqV m4RjYKVRDXPdOduQG6PFBESj0y9byumusrChmNXkUXVGqI8I8QWzzalpqUuFYRBnv7UF X4gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=+ntpVuO8X+igpPibq9Gc+rNStHJCK1DeGnF4sSyHqys=; b=XrkLOyu57EwFinRnLpUCsALRNpZJYQpLw7IuM7b7scnGbjuMb5wMjST2o/uIktHSCh 1Xs+BopgFmPYZZLXdwoYTi6AQSoqp+JSAzSKQKmz3Yiyu3GxlXlAuu81pfFF2Uifxwui Iee7oRp1GoMNpwpIQC64H1sUaR+B128/OV1XzZkofYLgLJdTBSd6Sm3BFGM2iuQYvFh3 y0gnUTDLsHB0l1R6ThpAPk2aTKNvG0HZ1Cf0xs84Q3gsqGP7sxBoi7H2a6yxcBUYVQMH sckX5bzxHGdroCEWaCoy7mVQ4ON6N533jXEOTrYsHKQO0nn9XvHJDrYAkBzMYNorkrNq pjAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=q+8tLACl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k34si6579548pgi.260.2021.04.22.20.49.53; Thu, 22 Apr 2021 20:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=q+8tLACl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240301AbhDWDtG (ORCPT + 99 others); Thu, 22 Apr 2021 23:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231261AbhDWDs7 (ORCPT ); Thu, 22 Apr 2021 23:48:59 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEDA9C061574 for ; Thu, 22 Apr 2021 20:48:22 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id c3so14413009pfo.3 for ; Thu, 22 Apr 2021 20:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=+ntpVuO8X+igpPibq9Gc+rNStHJCK1DeGnF4sSyHqys=; b=q+8tLAClXdoKZoxwH6aoS8dhA2mAeIiEAz7jxIDqN0n9qnE03NAy3X0j1MrEkrgCTN HcSUZKyKOYTMLFzO7PBxcrdMLSXwhozbg3PmqMP4lHT8uCS1AdwGK6GdkQzlUC3wFHNv OK6FzK79xQOJ6Gxtx17C8RKo24JbajOBtUoLslGTSNmwaD+QGQBULbQVvimxv83x2W1R rVlvBcawqR8zMjVh5HAZhN2kBVsbRfiTLeJ/FWozXbFuIqEfrEoIjzIBQyk0+gkUPMbS S/GPgWLDL5Z+PvJrVxHdku9Hi8HTzuRTpy4nBlNJZZQpcZn/cJftbs4j+ZU+w+hTEbvF FNOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=+ntpVuO8X+igpPibq9Gc+rNStHJCK1DeGnF4sSyHqys=; b=cVYS6CEq85s4r4ZpGsnfd5VIjVl6Jfxtlcclnb6WVkVc9XzekrDIIykuAs8cxk0UHI tMckVNb0CLOcWoOat9rH7tFEamvK09PB4PV2n+D/bi50huzvweCaKa1+dADZAL5aPMCo s816WwVrRJHI3+gMBgLDZzCzOM8L1u1oAbStHIR57eQMbG8WMrXBS6aelxuLrwNBzlJK uWDbAy0DBwI2++1IQBrxhiY71JcXvEpUzWZuJerC65Hm/kR0TGiyootOaesp1UfCKekr 3plp68+r0fEKX64gFcTKm9ROGmy7Lq3aptqH0iKLAsU1pz0Gxtyxm+DpcZHWFwvWb6k4 PxuQ== X-Gm-Message-State: AOAM531GHG0aNesZ9W6x0ymFeJnUnNI5FLDc4yvohXj9M+3n8trI1A+R HTuRXSwDMFUWa3J798yHKx0lEw== X-Received: by 2002:a62:1b50:0:b029:257:da1e:837f with SMTP id b77-20020a621b500000b0290257da1e837fmr1756576pfb.57.1619149702227; Thu, 22 Apr 2021 20:48:22 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id kk9sm3416763pjb.23.2021.04.22.20.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 20:48:21 -0700 (PDT) Date: Thu, 22 Apr 2021 20:48:21 -0700 (PDT) X-Google-Original-Date: Thu, 22 Apr 2021 20:48:20 PDT (-0700) Subject: Re: [PATCH v3 0/5] RISC-V: Add kexec/kdump support In-Reply-To: <0ce30336b7dfaaf14a20e72e990d70f5@mailhost.ics.forth.gr> CC: mick@ics.forth.gr, linux-riscv@lists.infradead.org, Paul Walmsley , linux-kernel@vger.kernel.org From: Palmer Dabbelt To: mick@ics.forth.gr Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Apr 2021 20:36:56 PDT (-0700), mick@ics.forth.gr wrote: > Στις 2021-04-23 06:30, Palmer Dabbelt έγραψε: >> On Mon, 05 Apr 2021 01:57:07 PDT (-0700), mick@ics.forth.gr wrote: >>> This patch series adds kexec/kdump and crash kernel >>> support on RISC-V. For testing the patches a patched >>> version of kexec-tools is needed (still a work in >>> progress) which can be found at: >>> >>> https://riscv.ics.forth.gr/kexec-tools-patched.tar.xz >>> >>> v3: >>> * Rebase on newer kernel tree >>> * Minor cleanups >>> * Split UAPI changes to a separate patch >>> * Improve / cleanup init_resources >>> * Resolve Palmer's comments >>> >>> v2: >>> * Rebase on newer kernel tree >>> * Minor cleanups >>> * Properly populate the ioresources tre, so that it >>> can be used later on for implementing strict /dev/mem >>> * Use linux,usable-memory on /memory instead of a new binding >>> * USe a reserved-memory node for ELF core header >>> >>> Nick Kossifidis (5): >>> RISC-V: Add EM_RISCV to kexec UAPI header >>> RISC-V: Add kexec support >>> RISC-V: Improve init_resources >>> RISC-V: Add kdump support >>> RISC-V: Add crash kernel support >>> >>> arch/riscv/Kconfig | 25 ++++ >>> arch/riscv/include/asm/elf.h | 6 + >>> arch/riscv/include/asm/kexec.h | 54 +++++++ >>> arch/riscv/kernel/Makefile | 6 + >>> arch/riscv/kernel/crash_dump.c | 46 ++++++ >>> arch/riscv/kernel/crash_save_regs.S | 56 +++++++ >>> arch/riscv/kernel/kexec_relocate.S | 222 >>> ++++++++++++++++++++++++++++ >>> arch/riscv/kernel/machine_kexec.c | 193 ++++++++++++++++++++++++ >>> arch/riscv/kernel/setup.c | 113 ++++++++------ >>> arch/riscv/mm/init.c | 110 ++++++++++++++ >>> include/uapi/linux/kexec.h | 1 + >>> 11 files changed, 787 insertions(+), 45 deletions(-) >>> create mode 100644 arch/riscv/include/asm/kexec.h >>> create mode 100644 arch/riscv/kernel/crash_dump.c >>> create mode 100644 arch/riscv/kernel/crash_save_regs.S >>> create mode 100644 arch/riscv/kernel/kexec_relocate.S >>> create mode 100644 arch/riscv/kernel/machine_kexec.c >> >> Thanks. There were some minor issues and some merge conflicts, I put >> this on for-next with some fixups. > > I've sent a v4 that shouldn't have merge conflicts, addressing some > comments from Alex as well, could you use that instead or is it too late > ? Thanks, for some reason I didn't see it when poking around. There was still that one init_resources() merge conflict and I fixed up some of the commit texts, it's now on for-next as b94394119804 (HEAD -> for-next, riscv/for-next) RISC-V: Add crash kernel support 6e8451782c90 RISC-V: Add kdump support 0a0652429bdb RISC-V: Improve init_resources() d9a8897d6b5d RISC-V: Add kexec support f59938095b94 RISC-V: Add EM_RISCV to kexec UAPI header