Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2104375lqp; Sun, 24 Mar 2024 03:27:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUhAxKbumNKKwdY7vxgQmHaocyNwj31ur6jKwqWw2cjLHz5g4+AvAxzhcTvd/yCG5r0NladBo4ya9+lcQZS+XSkMtXoiL3EgTkd52FgQ== X-Google-Smtp-Source: AGHT+IF0tlf5Ao3H9eBjtsyZriGj5huIvUwRDjhYk/T8RiLxXJR+8GCvv31WvpeiwyiSMZmnp51A X-Received: by 2002:a05:6830:16cb:b0:6e6:ae43:6464 with SMTP id l11-20020a05683016cb00b006e6ae436464mr5387400otr.10.1711276078292; Sun, 24 Mar 2024 03:27:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711276078; cv=pass; d=google.com; s=arc-20160816; b=d0UIki8n7XXAs5xs+udFZLD9rzIrARS5YQFSQ2CGkA8MeKbokT4rTWlh1efYJNKp1S BWeOApe0E1/ssPsliJWbnGi44xy7IEKg1RX89f6h5QiaEA+1YGgDMtooR5vqi5iOqz3G OIt0xxEkepWu/VB5jciZXYAPVhXhEfLbCOBfFUmCUAThxwsZr6hEFsjMoY5xoOj7C+ME 3nbEK2wMKpEGNLDMhNsgBg84KMYPqATZMFnhEsw7qmnhxls0iDHj6+rDd6gIOTPKxNyt NNZOjQ7qEbaehhivYCJmOMQaBrY15/DHODWARZaTv1Mz3zWnBwAJAkPepw+UEhqJ2AQX ybVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=bauhf/2rjBkok/hrNxsx2Lp6yFKty71agj7qYN59Fb4=; fh=ZR5fFM1tFH1f138kx9s0uwVGd9vDDXEa89g+bX76lzk=; b=ltZsZeApeBj8OG88eSmbRr2/A7oKQNVGYEY3onVOZWp0+XJ3ndZkvIoH/Klev/fYj/ iH6qcPzsHm/iRNJ39rMzmIKA48fVo6T3ryxcNzS6l4M1vM2CA8F4jTHHdz+grQP8XlmP FB1mZQugFzU4qT/gqMp1qb+r7xx9eRzJexATcVEPH2ZTAy06WdFM53WPXyQPABChEfGd S2rsVaI44VtrmlAL8Lp8nFillUXcMd6SSagfH9gA64PNGcBPD70cQqR1zPzqtu8hlqdo ELq4kBlgX2UAvjAu1C/Zl6cb/fAFed6wdI2+kNcPHqj008M0gNfI1Ky0uBV6wamctN4C p16Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a88nlKwt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pi4-20020a05620a378400b00789e79e1857si3246932qkn.702.2024.03.24.03.27.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 03:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a88nlKwt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E309C1C20C16 for ; Sun, 24 Mar 2024 10:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 402BE1756A; Sun, 24 Mar 2024 10:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a88nlKwt" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2B4615E89 for ; Sun, 24 Mar 2024 10:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711276071; cv=none; b=OIXXXqWfyqOEXSXTUp91bWGF5JX1ioFZon1FNK8/nj5BBzD+LxFYdPBsKmE2Ichkg6hlLYpknxjO/uWa99ut8IRjffK1vPrNVdX97D7BCknbkWIUVI4L6Nw3WFIFNQfFxfz8rbKU/aPc5q3AVds6/rqtvIH2FQ6FLJdTPJ3sOII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711276071; c=relaxed/simple; bh=g5o4Usv6iCgLDxofD0zUG1xxJtGV/DtXPWmHDLxqyrQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YrCOCUpSDrh6XktYOfJtXCzHuMhXwMHVrBYOJhtIsl/IXzrkhONgu2uQnQRvhK1GQN8+EAw8ZU2kdXEWsRNFPy0cnY81dvFEst5FSU6xJkvBNbYB3PaC5fTxh5A6Rpj5eFgDVIj5dnkfyJ8QZL7xwxsZNytX8g6fFrg0ehj3WNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a88nlKwt; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-513e89d0816so4307449e87.0 for ; Sun, 24 Mar 2024 03:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711276068; x=1711880868; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=bauhf/2rjBkok/hrNxsx2Lp6yFKty71agj7qYN59Fb4=; b=a88nlKwtLMDtpmkVgKn7iCcZLp4xcfsLF/PRb8fI2tUjrpxa+XHAKfL3mLDzVOXIe2 zXwW8hpfWOijIvX+eWHB9gdtY2z6cMrHIm9NrTyCPvmiY+I1JtqyECoyIIQ9uAfDuA1s ihSOvWluIfTsuQ4UzRzMRbZyHNC3DT59tP8BqDQFoThBgRFdji1CCDb91DmBOTXdvsF8 Y/RdhXMKZ9A6XTnHdBjvtVr51CuQLmxflcUacyVloz2gIsQVmVfVVis6rqK9tUmHa+1W I8qQE40s0AARbFnEHIEaqlk0JTDABlAhS/BUgpjgT+JRECapAXDHmuB8MN4wdhVYAeuM UzhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711276068; x=1711880868; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bauhf/2rjBkok/hrNxsx2Lp6yFKty71agj7qYN59Fb4=; b=qOv4vQz6QgDv/FE3K7baiLOl2Y2YLHPreSfK2EgkGNtnYb28cn6rsQ6lzNwgrLV+ei 150HwCvXhkzLcbaEr1Q9G5E01VNCiphpj+2XnDRq/jYRI1Y1XII2rTLdMN4ctx8KvJdH 9ikJedbarhqyL+m8PfE+LkZAFA8PFPU3N1sFEh7Dyl3bZwBvgtDOIrmwNwa9KM75wyfC FCQUKTUtwVXGLx/dq3Nih13S5pbRt0lzPZW+MgDxqvPV6/T1+aPP2U8W3DzcrNQ01dHf BffsKU21rW3mm/iVcMiftZY1d4ctN+k5nI+c+FZotO7ET/a1djGDVYZhi6PtMNkGVDeP cp2g== X-Forwarded-Encrypted: i=1; AJvYcCXh5vlY/eBVtqXQ7GIV5A6m7tKk696+B8FylAeXTo4gw7ix8R5dNL2qMEGAl9WM6bir2iau3CtX+DHPV+Gf25msclxkgsUaghLBGuVI X-Gm-Message-State: AOJu0Yw4kwsF1XDPPqDSdHixrr/hW9HV/ZQ6FuvCTUvEQqdtXR83vWW/ 22xCF53cDE/1odrhRHwMguKiYquBHWJbbBhSVOv26p/gatRsyqrQ X-Received: by 2002:ac2:4643:0:b0:513:4705:a4f3 with SMTP id s3-20020ac24643000000b005134705a4f3mr2753394lfo.65.1711276067486; Sun, 24 Mar 2024 03:27:47 -0700 (PDT) Received: from gmail.com (195-38-112-2.pool.digikabel.hu. [195.38.112.2]) by smtp.gmail.com with ESMTPSA id r18-20020a05600c35d200b00414808dea22sm1107606wmq.0.2024.03.24.03.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 03:27:46 -0700 (PDT) Sender: Ingo Molnar Date: Sun, 24 Mar 2024 11:27:44 +0100 From: Ingo Molnar To: Baoquan He Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, x86@kernel.org, akpm@linux-foundation.org, chenhuacai@loongson.cn, dyoung@redhat.com, jbohac@suse.cz, lihuafei1@huawei.com, chenhaixiang3@huawei.com Subject: Re: [PATCH] crash: use macro to add crashk_res into iomem early for specific arch Message-ID: References: <20240324033513.1027427-1-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=us-ascii Content-Disposition: inline In-Reply-To: * Baoquan He wrote: > On 03/24/24 at 05:06am, Ingo Molnar wrote: > > > > * Baoquan He wrote: > > > ......snip > > > --- > > > arch/x86/include/asm/crash_reserve.h | 2 ++ > > > kernel/crash_reserve.c | 7 +++++++ > > > 2 files changed, 9 insertions(+) > > > > > > diff --git a/arch/x86/include/asm/crash_reserve.h b/arch/x86/include/asm/crash_reserve.h > > > index 152239f95541..4681a543eba3 100644 > > > --- a/arch/x86/include/asm/crash_reserve.h > > > +++ b/arch/x86/include/asm/crash_reserve.h > > > @@ -39,4 +39,6 @@ static inline unsigned long crash_low_size_default(void) > > > #endif > > > } > > > > > > +# define HAVE_ARCH_ADD_CRASH_RES_TO_IOMEM_EARLY > > > + > > > > Any reason for that stray space? > > No clear reason. I saw stray space was added for macro definning when my > below patch was merged, not sure if this is preferred. No, it's not preferred - and I don't see any stray spaces added in the code added by: > commit 85fcde402db1 ("kexec: split crashkernel reservation code out from crash_core.c") Anyway, please just remove it. > And there are a lot of "# define " when searching with 'git grep "# > define " arch/x86/include/'. The overwhelming majority of those are not standalone defines like yours, but nested/conditional defines where the space is justified: #ifdef CONFIG_X86_32 # define MAX_IO_APICS 64 # define MAX_LOCAL_APIC 256 #else # define MAX_IO_APICS 128 # define MAX_LOCAL_APIC 32768 #endif Thanks, Ingo