Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp406895lqp; Tue, 11 Jun 2024 07:58:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBYpo+mzByEA6cy9kLGnWyoChUhcvwGwxzLBR47ZRPZCLz/tqpkgNPhC8fnlYkFTsw/lMW7Wx5XryZusMfLwRTRFk53qY5JT9OjjXIKw== X-Google-Smtp-Source: AGHT+IFJuEeNjrubFZfrGIwvdnv6rcd1YwtTX5Pams7twn1hfi7okuk3eEv1ASpDAG1m8PxExul6 X-Received: by 2002:a05:6808:3c88:b0:3d2:2a32:bd2e with SMTP id 5614622812f47-3d22a32bf3cmr6689571b6e.39.1718117912174; Tue, 11 Jun 2024 07:58:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718117912; cv=pass; d=google.com; s=arc-20160816; b=KTHP92ufsC3OVdPsHeRY1k238+1gGduhNzJO96g8uSmNFFfA2e6Dj84Ou89TuM/bsE 04KsIhVfaNfPwxOQUEni8PDIVrOkRA5pYhMgRs6IMHxrjsmcm+AFCvN9ZW4zMlVFlTs/ X9fAELtpc542oLhbaN1lNL/PDThJh/gjlDW8zuRxkDMohTAXpRivJzW/qCRqajVCMBxO yIZhZ66vhw9MFGcdCQKx4qz+IpUlPuC6lTDnZJC4W+ONRpclFbITxQMZax3J8MMeardF LghRjw7SqP2/W/vECRohQLWKmMTJRY/wBxRiik0AFzNnc3TSSai9EpJfeDGJr6kHvwfG s/Jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=k1Uj1gDVRQBejZBAkMeXGHZ3JqvJXJF5YGLTBips13A=; fh=fhdoGyw9MQmuOBwzy51wox3Jkwhd4PnVVfFOthuZCNA=; b=0OkAFvDJoLgZmBOc9QPviIRnSpJxTBzl4UEMQXBZLpkXcZXNz5BraoWTafiGdpAbjY EedayWg5cCuFojtXtMog0czN0xRS5uv5Vl/b5aHrYt3Li1Ru76jC0s5vz8cGqWHWU6pe 4QTuIk4C56M3cu6nl4XuIHdYdaGItf+gLx1a/1PLQ7JXtMr8Eb84BenUrewS9YpB0HQp vNHCFER3NuCnbkNOGc+QJ6O9WSy+AE9JkAB9UYapbhKPNfdnDN0OYhbDOdu8sp+k1PbX 5ZrklUZDbGyvi4356dWpgmJdmPhDtfJA/kTFBdlNwI/0Wh8hRFGJF7D1+hfq7PFobRq0 QAjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="V/dy9Tk7"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-210103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210103-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44153be6194si10893251cf.420.2024.06.11.07.58.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210103-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=@gmail.com header.s=20230601 header.b="V/dy9Tk7"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-210103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210103-linux.lists.archive=gmail.com@vger.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 CEA4C1C22F09 for ; Tue, 11 Jun 2024 14:58:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A5E217736; Tue, 11 Jun 2024 14:58:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="V/dy9Tk7" Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 278C412B75; Tue, 11 Jun 2024 14:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718117903; cv=none; b=hJbWXBfG4bfS+RIFdWwyspCINApRqiCq8R9kf45UAQrCnqOKjHKszJMh8E4SFi5pWQuzExEzy8qAEfmQTXzjL5sr5fiJFg1vK3haGi53MFemTS1D+d1Jbv9p6evCTVuGKOfINm6yNYM3stzujga/Ft0CCOGy3qTxXBsBLcwK/kM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718117903; c=relaxed/simple; bh=w0lTTEL9S/t3CRyNcH3ajEkkKrl1z10KCvWum/RVML8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nXcILn5wx2VMKU18Ju25V6e8QC8Y0XozF8SKkVIWgBc3mm9yGm4ifU7niD7kTeJcyr5H4QFS3B0CHBbP9NJ5bnVoFMEVDiboqNwZY07sRa02uo3D77wE7xRV46JFdBly+DPVyn4NAZKHjEHWLzSkgd6ikXwLRStrUhKlJjLRPXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=V/dy9Tk7; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-6819d785528so3932765a12.3; Tue, 11 Jun 2024 07:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718117901; x=1718722701; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=k1Uj1gDVRQBejZBAkMeXGHZ3JqvJXJF5YGLTBips13A=; b=V/dy9Tk74XE+sUItyTvaMKrIrWBpDkeI5eSZET1hJSdCjrgXvlEMNHBm/LV47WcCxj 3bNiFo0iOiDR+rTwCh6liia0uYnaV5WIeZ7lDNbThSrfZt5IXknL78yXOct639PiVAGX mNxzzU0RgZDRA82C/yITSQbsTxMpt3C9d+p6XiHm/rKH4Ru2S8Jk1bzR/RHEDCN58wVB FsGxNNhf3iLYHuhgnYl/f/jwG+z36VQXlcJKgXQT0QWWuFWgpmZKwE4Qn7tUaDP4CS8u B+hMeRl7G2y3bsOofitkB+ikW6JRLwENqUXL9oVEzCkQpyv/ojzuIY3xSVcncCDwOmu6 +tGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718117901; x=1718722701; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k1Uj1gDVRQBejZBAkMeXGHZ3JqvJXJF5YGLTBips13A=; b=K89g+1hS+UXCV4zm7rLaCQXV+R1N9nR94sy/QaF4Pf+Do1GMDaPhdS4I/DQJUqjX3g cGqo8sMymKCNYnZZAfKr87Iopwut9i50/jmTAhTulVaRgcGU66vt89XKo+5+xYfX2uQu GP5GlERH03jf1RSuKGLN4G8NygTkjElKKGukUadrlOTEpUh0OdxYFdDSjk8C/crJRHOO AaMr6DBdtCtxqOuoaHbx1WzO39+g6n7guaC11kd5YgEEHQwGWK3srWqOTYcVdO2swbrW U1a8V0o10BJXE2T+tenmVX71QbnwK3CHbWZDc9dpzl+hnPUtGwPtudMLWece0zwjW9vR ZkQA== X-Forwarded-Encrypted: i=1; AJvYcCWo6Jrqq56mPcnvlWKfKJpTs7Npdfx0I/BwV6Orne4DmGtlw/VU9B8ZgoqTstlPMpxN7ZVmvt9/D0bUZQPAiJNW+wkzudb9U7a+n88XG7ayc6o98Qn26KEp69bAgcnCFZIqrDvIxA3v1KqUYWZQdMeOv0lA X-Gm-Message-State: AOJu0Ywy1G7pgdd3QqQy7mpBH+W0iANGxtRVktO8IPH7t44OhmAe+fSB 18jZCS9S9RMxx+VsvoNm/KN7voXVoJtSa34GuaIkRwalT9Q/LmEI X-Received: by 2002:a17:90a:cf16:b0:2c2:edc2:6021 with SMTP id 98e67ed59e1d1-2c2edc26151mr7151848a91.11.1718117901001; Tue, 11 Jun 2024 07:58:21 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c31ed7133esm2934501a91.8.2024.06.11.07.58.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 07:58:19 -0700 (PDT) Sender: Guenter Roeck Message-ID: <9011c405-eaa5-4001-9f36-cb9516c1bf18@roeck-us.net> Date: Tue, 11 Jun 2024 07:58:17 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] mm/memblock: Add "reserve_mem" to reserved named memory at boot up To: Wei Yang , Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , Lorenzo Stoakes , linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , linux-hardening@vger.kernel.org, Ross Zwisler , wklin@google.com, Vineeth Remanan Pillai , Joel Fernandes , Suleiman Souhlal , Linus Torvalds , Catalin Marinas , Will Deacon , Ard Biesheuvel , Mike Rapoport References: <20240606150143.876469296@goodmis.org> <20240606150316.751642266@goodmis.org> <20240611144029.h7egl4aif5mjlrwf@master> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dS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mMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20240611144029.h7egl4aif5mjlrwf@master> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/11/24 07:40, Wei Yang wrote: [ ... ] >> +/* Keep a table to reserve named memory */ >> +#define RESERVE_MEM_MAX_ENTRIES 8 >> +#define RESERVE_MEM_NAME_SIZE 16 > ^ > Suggest to align with previous line. > It _is_ aligned. It just looks unaligned because of the "+" at the beginning of the patch. Guenter