Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2705061lqp; Mon, 25 Mar 2024 07:09:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFMkI4sY73P6h63S4/r0mPhh1qnHk5jbpha2yOfSuEBvvRV9ZMz+GcqJKeb8pM9OVWS6qoy/NpUyBdl4v40YWG5H3IXuiqCVZbq0SzLg== X-Google-Smtp-Source: AGHT+IG99lY1CaMHxnNWG4RQIFYNRJboTgGeblHWTu8wvGBdm1T+YEBap2xTIJ/i6G8kn4Mqme5s X-Received: by 2002:a25:8550:0:b0:dbd:4578:5891 with SMTP id f16-20020a258550000000b00dbd45785891mr4613840ybn.65.1711375745348; Mon, 25 Mar 2024 07:09:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711375745; cv=pass; d=google.com; s=arc-20160816; b=zfFaspTCaorP3XxBF2r7FMYCn1Bu7ECvn9u2jqMYsD2SYt5FpPnLIgEu3/NBmwWD8i ZctgbDDMys93TRhrdVmUWBv+EyYULw3ID9DRwNd3aYwGtlyUvMbCd9YAnfuR5NG4TKe2 dzJpU3734nxjd1/XRQsrD4QC4x6SU0Vp/zlnbv8V9YnkdwP9OtYFMOGlLeXDs8hFgVyd /3UofEJHQ3sdVWv5J+ioaGzm+dlV3Vs+2fNNiPgYzTp3ZovC6yA3/1vqo4GzP82ljVjb 9OWQ0sUPa0jYvaIin1laQMi2h/opD2sjkdUhoTO0dP+F7VRMtkPbPotresA9sLHp4XuV qQfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BzvHsR0swPhNezye8rUpRIe+AmkradciiszFVdBH2qI=; fh=+IyhWlQbhTSojbGlZmDxFmsikqbukfT+oXHYP4yejuM=; b=GdJwIddKwdZz8Gy44SZqTsgY9YoCIO4YFheuPyWJQyn5z6d2hSrMqQMHgxtJDohqAa oftWqJUVjPd/MHLXl6mwo8xfeAg4ZMsVzzZ1a+UD879QvAUFH+fJ+3WbO1hFa7y4Reu6 6RcvYS4dd9j79Rzqa+QeflCuqZscy0fILuH+PkkDSrrV8oGh6zYRIPTqf0ThJrkcHZln r7efj5jDd4MnESsLn3IfWbocpsIPFs2D3Jz0V25aLkjJ+rRfiAyy2AjSZyZf0WUWuEtw YwTQJG9qVba6UPwrlSazmOfgpnkTEBTVRTe46r50xIl+BwywrhfdvC6f/W2grEIXVU9C kQCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d5QAGzkc; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-116767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d206-20020a254fd7000000b00dd17292fe77si1349474ybb.6.2024.03.25.07.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:09:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d5QAGzkc; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-116767-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C5AED1C2F2D8 for ; Mon, 25 Mar 2024 14:08:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B48CB1474D1; Mon, 25 Mar 2024 10:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d5QAGzkc" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFFB282D68 for ; Mon, 25 Mar 2024 09:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711360124; cv=none; b=CDDEWYXmNB8mHjfteCr0H6goG8eJGfnt1SruXGuG+bYmG+KSOHlBLVrHEbOGSL9z/KT4foQ3TzU7erJOGj4vVZOFyMzx1e5ipdJVpf1kMgLSN6UGe0e0zARrlRCgoUtsneE3MjkPINFGqoV9DQEDWIMGbZ/88NRx808Gm2xyAPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711360124; c=relaxed/simple; bh=z7nQ+fuXBBJwghbwTKA/0pe69mO2YVrSsG63TX2xrh8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eR49JOdsBC4zbNIbLmZtgsncyjOnc+Ym3TRzCM7JKXWYjJOy6AEdVw3j1eeqfvON+Rq0Kqamg+vgxHBMM9ZiWUp7faYu0sjKALb/sBAqR5A+3mxdUG2BKTRnRjkadErdSL+Uyj08OHzEvDnVRulJHVrM5X3pqMwUxyn44R0asBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=d5QAGzkc; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711360121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BzvHsR0swPhNezye8rUpRIe+AmkradciiszFVdBH2qI=; b=d5QAGzkcFVgfNPW1CO0oLPlhmxGApS7hScJ1cLqq6shPh9CB1aGymZAPlr5DzlZwPD5+xp Gq5w9Iph9qjmesRKdP5Xe57/g8T80D7rcjalpl3kRP7o2ljlY/77P9AcXHokfr03tzhcfG PdcgfvMh0EcJg3d8jU5382ubAFA9ES8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-81-sGBrjBOZPjWGzkRUL_JyGQ-1; Mon, 25 Mar 2024 05:48:36 -0400 X-MC-Unique: sGBrjBOZPjWGzkRUL_JyGQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9B0273C0BE29; Mon, 25 Mar 2024 09:48:35 +0000 (UTC) Received: from localhost (unknown [10.72.116.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4782E112131D; Mon, 25 Mar 2024 09:48:25 +0000 (UTC) Date: Mon, 25 Mar 2024 17:48:18 +0800 From: Baoquan He To: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, akpm@linux-foundation.org, ebiederm@xmission.com, hbathini@linux.ibm.com, piliu@redhat.com, viro@zeniv.linux.org.uk Subject: Re: [PATCH linux-next v3 02/14] crash: split vmcoreinfo exporting code out from crash_core.c Message-ID: References: <20240124051254.67105-1-bhe@redhat.com> <20240124051254.67105-3-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 On 03/25/24 at 09:24am, Geert Uytterhoeven wrote: > Hi Baoquan, > > On Wed, Jan 24, 2024 at 6:13 AM Baoquan He wrote: > > Now move the relevant codes into separate files: > > kernel/crash_reserve.c, include/linux/crash_reserve.h. > > > > And add config item CRASH_RESERVE to control its enabling. > > > > And also update the old ifdeffery of CONFIG_CRASH_CORE, including of > > and config item dependency on CRASH_CORE > > accordingly. > > > > And also do renaming as follows: > > - arch/xxx/kernel/{crash_core.c => vmcore_info.c} > > because they are only related to vmcoreinfo exporting on x86, arm64, > > riscv. > > > > And also Remove config item CRASH_CORE, and rely on CONFIG_KEXEC_CORE to > > decide if build in crash_core.c. > > > > Signed-off-by: Baoquan He > > --- > > v2->v3: > > - There's conflict when rebasing to linux-next in kernel/crash_core.c > > because of below commits from Uladzislau: > > commit 699d9351822e ("mm: vmalloc: Fix a warning in the crash_save_vmcoreinfo_init()") > > commit 5f4c0c1e2a51 (:mm/vmalloc: remove vmap_area_list") > > Thanks for your patch, which is now commit 443cbaf9e2fdbef7 > ("crash: split vmcoreinfo exporting code out from > crash_core.c") in v6.9-rc1. > > After this, there are still two references left to CRASH_CORE: > > 1. Documentation/admin-guide/kdump/kdump.rst: > > Subsequently, CRASH_CORE is selected by KEXEC_CORE:: > > 2. arch/loongarch/Kconfig > > config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION > def_bool CRASH_CORE Sure, will post patch to clean them up. Thanks a lot.