Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3294287pxj; Tue, 1 Jun 2021 01:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDoNXZop6vvDkPjsavLLTdS5Kyd9mzZQwFnOMdrRm/ASXacRLnFrB5syEcTLMm141jlkQu X-Received: by 2002:a05:6e02:1a68:: with SMTP id w8mr21418303ilv.122.1622537266313; Tue, 01 Jun 2021 01:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622537266; cv=none; d=google.com; s=arc-20160816; b=zMHFg/Rz994kQLrtl1YfhcsWnGTrLzvj434mIzM+1lChuvacV1m2LZoGAvkgtixXQQ PhQinnW5YmWim7SpiQOs+/9y8HWcB6MMYkbPF/w6xwMUk2aRrGx5KlgpGeVdxq38XaUk pzjAJybtm2il14RuKArRCAQdpyOeGdm7piC+QwD7ZxcX+Wj51BJ3rmDj30EdJ2kCYW2q qcMdQXoKZ+vTCszWTCJHsOSko3hLedMURl9hzLA2ScimLTjtXUS/F+iEK3J1JALL2EZp xxdc/RIhmrVEVUIS0+q/7zjC5Kg7B710NGLLXbF7X1Jj9GyUAdL9tPbpN54T7+xpnDCe rW6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject :organization:from:references:cc:to:dkim-signature; bh=Ei1+7YPTwhcGwSC6x5usnbU/cNlmjtRYkQNi6UDFTrc=; b=akGvK7BoU8IwcU8WXIIVkL92zbBz/7pUEvtGNw1Uj/yNonR89E1O0SOvL56icY8I/V o/KGqfoDKUBq2cT09vNuRHOrcQSrcPm5lT/0npOW0KzdU9H9Oal14NiSqCbue81arxn4 FPBRviv+63lvMibZpxbohaxzvutyzccPaKbbIk1XiiJmEL2zOHLKY8Rwphs8TnI4Cjga wSu0NsEAjjfq6JColOd2N7HDUX8rBkqi43AHROdPX2HZV/OAqt4TgXiXm1GMnW7Tw29e bjts8oR1WimnObsLal8qkrNMyMM5KpQlvjZaXQe/FD7tsUWLVAxejkji1FT/qNSVRBuX icgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EkJhtoON; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si3301669ilv.7.2021.06.01.01.47.33; Tue, 01 Jun 2021 01:47:46 -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=@redhat.com header.s=mimecast20190719 header.b=EkJhtoON; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233664AbhFAIra (ORCPT + 99 others); Tue, 1 Jun 2021 04:47:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32984 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233657AbhFAIrU (ORCPT ); Tue, 1 Jun 2021 04:47:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622537138; 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=Ei1+7YPTwhcGwSC6x5usnbU/cNlmjtRYkQNi6UDFTrc=; b=EkJhtoONb6k8ZLDNDIAdPVTlgBlWdVE2M2uF60nvXfXnMQucj4l2m8Qmn6iUvJzoV6pLuw uXb5R3JA/pDjQdM2pIKir6rnLgUmu5Csi80b7NIAbGKeR8neOhOSev5B089vY3oW3kRi/A FgCEeItGeDXPGrbZBz/vOIujyyTE/+8= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-82Tdn6vKPFGI1wfhpQg-Wg-1; Tue, 01 Jun 2021 04:45:37 -0400 X-MC-Unique: 82Tdn6vKPFGI1wfhpQg-Wg-1 Received: by mail-wm1-f71.google.com with SMTP id j6-20020a05600c1906b029019e9c982271so786968wmq.0 for ; Tue, 01 Jun 2021 01:45:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Ei1+7YPTwhcGwSC6x5usnbU/cNlmjtRYkQNi6UDFTrc=; b=KDUTe8p3J9XgJtNCjbgLs5LDZjA4hLU2A/DnRT8Z3FzhK9Fceb/DlX60J+ZtQTlD/3 +GDu5noRdIseNyjPFYoC6pWvJA4yTRdqFLfePmBFoA62rAPzF+G9uWTRSsmzHLmZarGx 1XiF8/RmSgpsBXsQ+CXQnkFoRtHYuN0jXXg/eSdQVTBJfLxjWr63+knKv9nH1L8ch7zL turfgu2kvvN9A1L+zsI/M1cZxD5QkTDksk7r6v7TzFFz1p+KtYGKhHCQP1qzaHCjGyNM Mhs2gg1VLXLzmvBs3we6WpJHPZ749sFGMSRuwf+fUgzMM/l/VOIVTeNDwMG3EKIVcgEk dAYg== X-Gm-Message-State: AOAM5315Yo8zC4AcMkaXRntsHxEdZvB6IPhjop4ZxagnP69M7qwEh4bG it0a7Sy3Pn+92jwU5XxFFtrPJKNYCPEBoeICLBASDPrNFn1rdbSM0UgSeeA+FCJ6qJLZ6/PmgiQ cvE8cYLJErKj+ZSEoaQlKyDsI X-Received: by 2002:a05:600c:2256:: with SMTP id a22mr3376721wmm.138.1622537136544; Tue, 01 Jun 2021 01:45:36 -0700 (PDT) X-Received: by 2002:a05:600c:2256:: with SMTP id a22mr3376705wmm.138.1622537136338; Tue, 01 Jun 2021 01:45:36 -0700 (PDT) Received: from [192.168.3.132] (p5b0c69ce.dip0.t-ipconnect.de. [91.12.105.206]) by smtp.gmail.com with ESMTPSA id e26sm16961562wmh.39.2021.06.01.01.45.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jun 2021 01:45:36 -0700 (PDT) To: Mike Rapoport , linux-kernel@vger.kernel.org Cc: Andrew Morton , Catalin Marinas , Christian Borntraeger , Heiko Carstens , Mike Rapoport , 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 References: <20210531122959.23499-1-rppt@kernel.org> <20210531122959.23499-2-rppt@kernel.org> From: David Hildenbrand Organization: Red Hat Subject: Re: [RFC/RFT PATCH 1/5] s390: make crashk_res resource a child of "System RAM" Message-ID: <1efc386c-2cb4-164f-7194-497f142f969f@redhat.com> Date: Tue, 1 Jun 2021 10:45:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210531122959.23499-2-rppt@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" ... So once you make "Crash kernel" a child of "System RAM", kexec-tools would break if I'm not completely wrong. -- Thanks, David / dhildenb