Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp331757pxj; Tue, 1 Jun 2021 23:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfScnnjm703DbF83JqQM+l+a5Ph0D/aL89YDX0T8iAxYKczpFf06rer6Juy3xiaSKrpWll X-Received: by 2002:a05:6402:26ce:: with SMTP id x14mr1136922edd.104.1622616368424; Tue, 01 Jun 2021 23:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622616368; cv=none; d=google.com; s=arc-20160816; b=nb8+m6i+3mlKorJy2nWUNknCc7GQFp7hisZCmhdzp2mOqeGUz5iC3ARm/Q5mBnkBWo 5VL0YYa9FLyWN7QihPcfa4YE2UPom+LLI+3quTqrt+eoNw95xYpSBnzBGHiVowHq+lRK 3fyjeKebjfPihovaO5pNa9EeJwc4Uj9r3pxG9wWZKVvtSHVkeLSHVZsNNnbBMUHWlEM5 jbxZ98eTm+FRbD3fowZRZG4MY0JlAWXqtbCXJJiq7B/znPOVran2KvGP8eEiUTx/Y+H6 mWd82FrtQY+rzHGrGIw0DGIyDwSOU92cDwbK1+UzEZrf93kRCPXQFaqrxaR5kpRG8hjk 9OoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8+/9VRNAv6IY+/0kZST7XLNkg1WKMJGSudMsk1U8DnE=; b=xrykpsj6ZZg7ZjcK7N+LnyLtgfvoj9lVPOwkay4JGxa2HS5iA9SBAGaYeRpww3KTg6 ksOPTTkKYS+HZJogz9c2xBIokmmj2M/4Qs1x5M5kPVV2CyFTieapcwLixaQrCPOwL/Kq K/beRw+/uEkUhNi0FQwppnDTcRveVUZUqWMXHeHbQlyXXCFHfCS3rk/HpAv9ZCkhcxvQ 7s5WMti2L56aomI0VkSAy4jR51jGWlINUWl+Jw07LD1auCGsKS/cYMvgclVKFBQxmomy kR+XoayA6p/rRxDpxfM50qZ8m6pBQb075ypb9uDoFKSMW941SQfXRpyOdLKAqiuaqYYN mNig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=jKuZ+Ny2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k20si13268726ejd.293.2021.06.01.23.45.44; Tue, 01 Jun 2021 23:46:08 -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=@ibm.com header.s=pp1 header.b=jKuZ+Ny2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231375AbhFBG1u (ORCPT + 99 others); Wed, 2 Jun 2021 02:27:50 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48370 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230522AbhFBG1t (ORCPT ); Wed, 2 Jun 2021 02:27:49 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15263fGb165289; Wed, 2 Jun 2021 02:25:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=8+/9VRNAv6IY+/0kZST7XLNkg1WKMJGSudMsk1U8DnE=; b=jKuZ+Ny27BQUwr+RXmXTxyxmQXBhCc0GQn9cnN3mO935659O8T+5M2na/Bn6Yen62lFJ Jtf35PGVq6zleF/8WXZ46uv/IINDTIFtenhI00A/Se9aoSbPj7uplrDZHEqvGZokvrqV yVjOkrpkjHCKsMmIUClgNqvGdzUiC62R/vjXgE7zePRmx1xBbERqz30LO1Rbs7Y00bU3 5PW5onWk18LaI26Z42tCvvUKRn4OlWUXUuX4aR+LaFEupSOw6ZuCvw0T4rqB3z0W+Rk3 kzozFEwuMuBQqUiYpmDoffkZC4Cc3a4oqGz9XccNjV8iWyjBHuXcLcvvgMvoRBpaBmEm lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 38x3x692v4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jun 2021 02:25:25 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 15265J8I170638; Wed, 2 Jun 2021 02:25:24 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 38x3x692um-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jun 2021 02:25:24 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1526D4Sl009581; Wed, 2 Jun 2021 06:25:22 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma05fra.de.ibm.com with ESMTP id 38ud87s5pt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jun 2021 06:25:22 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1526OmE333948138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 2 Jun 2021 06:24:48 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 945084203F; Wed, 2 Jun 2021 06:25:19 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 641E642047; Wed, 2 Jun 2021 06:25:16 +0000 (GMT) Received: from linux.ibm.com (unknown [9.145.77.40]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 2 Jun 2021 06:25:16 +0000 (GMT) Date: Wed, 2 Jun 2021 09:25:14 +0300 From: Mike Rapoport To: David Hildenbrand Cc: Mike Rapoport , linux-kernel@vger.kernel.org, Andrew Morton , Catalin Marinas , Christian Borntraeger , Heiko Carstens , Russell King , Thomas Bogendoerfer , Vasily Gorbik , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org Subject: Re: [RFC/RFT PATCH 1/5] s390: make crashk_res resource a child of "System RAM" Message-ID: References: <20210531122959.23499-1-rppt@kernel.org> <20210531122959.23499-2-rppt@kernel.org> <1efc386c-2cb4-164f-7194-497f142f969f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: c5HaVm2LHSDSHbt0toyr1MgJ5NoALSH5 X-Proofpoint-GUID: kxH_e3tqR0DMOSN98IBtjQCfDsHcIA-h X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-06-02_01:2021-06-01,2021-06-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=0 spamscore=0 malwarescore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106020039 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 11:02:17AM +0200, David Hildenbrand wrote: > On 01.06.21 10:45, David Hildenbrand wrote: > > On 31.05.21 14:29, Mike Rapoport wrote: > > > From: Mike Rapoport > > > > > > Commit 4e042af463f8 ("s390/kexec: fix crash on resize of reserved memory") > > > added a comment that says "crash kernel resource should not be part of the > > > System RAM resource" but never explained why. As it looks from the code in > > > the kernel and in kexec there is no actual reason for that. > > > > Are you sure? > > > > Looking at kexec-tools: kexec/arch/s390/kexec-s390.c > > > > get_memory_ranges_s390() wants "System RAM" and Crash kernel only with > > "with_crashk=1". Your patch would change that. "Crash kernel" would > > always be included if you make it a child of "System RAM". > > > > Further, get_memory_ranges() and is_crashkernel_mem_reserved() look out > > for "Crash kernel\n" via parse_iomem_single(). > > > > However, parse_iomem_single() does not care about ranges that start with > > spaces IIRC via > > sscanf(line, "%llx-%llx : %n" ... > > I think I'm wrong about that one because I read > > "Input white-space characters (as specified by the isspace function) are > skipped, unless the specification includes a [ , c , or n specifier" > > So having it as a child won't affect parse_iomem_single(). Yes, this was my understanding as well. -- Sincerely yours, Mike.