Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2973116ybt; Mon, 29 Jun 2020 11:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZBiHZeW8cNqQ5LmvhlKNoZ8ukhErpYNioaqCSERSde1phM+Fyt1CodeZNs7fJMbcomOK3 X-Received: by 2002:a17:906:6441:: with SMTP id l1mr14573349ejn.169.1593456668638; Mon, 29 Jun 2020 11:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593456668; cv=none; d=google.com; s=arc-20160816; b=KBXq/BWVeIB+zZMg6i+m6rbN7fWVbSd8ZkKzKhDUwaWIsOIDqwzJVhWPYdzQtwC/cX TaOeBCwCi5PGjiPnRa/a73+DVFIf0zSqYs/a4ahfllWSXMv0K/Eahznd4zhlJrz+lTCE FEGV8qjSR4Bdw0Tu9pFYTstPWPs4IvYlNFu1q9OtOjE1l6CQ42EChtbULFeleLckvL7r lylyk4HIUEo+1UyfljCmStq1qMcehG3dszJ4pSqoj9xvGG7WJYijt3zB191byviynDuR pOIGE35dM2tikwqmJyzck/95vhtvAvWK5qm0uQf1ObF5mFYOc9/dQMEa0GlDeRxWOQ7S nLIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1UyGEuKKv7QPpnKTQyvySdq++Xy2htWNjL8xPcuV1nY=; b=x92LVT4Knb1pKMgk422ZxKENDKQUMB0G5OWKVFqRJXtaFjb/lIk7A7yZ7k5sdzUN1i w3oUFGhE4gHHVPUo1rLKoBp2r6Csz1CzVpPJG5Uzr94QAf0xetnUTukR/vnPD7vBKamE i979g/x+wEg8NT6891q4MkTwabh8z8TPeCxreasn/B6nWpfTS6oTPmvnMR/oZqW7FH/O ni8FPAa5cJJS989Uk7Z+GZrTZBLf+QzTLFdFlKOiBqeQGfrP65q3qN0/qtqswW56vsfB zv+5KMcuwyf8B5pAL01BdcKsvHkPYsX63mc0Eec+vTz1TsarMcSttfqRgQIlcHcSFNNk hq6A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 m8si285922ejq.294.2020.06.29.11.50.45; Mon, 29 Jun 2020 11:51: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728004AbgF2Sso (ORCPT + 99 others); Mon, 29 Jun 2020 14:48:44 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:10384 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728109AbgF2Ssh (ORCPT ); Mon, 29 Jun 2020 14:48:37 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05T5Vwwl188340; Mon, 29 Jun 2020 02:01:04 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 31wyqufjc0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 02:01:04 -0400 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05T613Px163660; Mon, 29 Jun 2020 02:01:03 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 31wyqufjar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 02:01:03 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05T5tJR7020658; Mon, 29 Jun 2020 06:01:02 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 31wwr89w10-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 06:01:01 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05T60wQh51445850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jun 2020 06:00:59 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B0821A40CB; Mon, 29 Jun 2020 06:00:56 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 895FCA41C8; Mon, 29 Jun 2020 06:00:36 +0000 (GMT) Received: from [9.102.0.109] (unknown [9.102.0.109]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Jun 2020 06:00:36 +0000 (GMT) Subject: Re: [PATCH 01/11] kexec_file: allow archs to handle special regions while locating memory hole To: piliu , Michael Ellerman , Andrew Morton Cc: Kexec-ml , Petr Tesarik , Mahesh J Salgaonkar , Sourabh Jain , lkml , linuxppc-dev , Mimi Zohar , Thiago Jung Bauermann , Dave Young , Vivek Goyal , Eric Biederman References: <159319825403.16351.7253978047621755765.stgit@hbathini.in.ibm.com> <159319828304.16351.6990340111766605842.stgit@hbathini.in.ibm.com> From: Hari Bathini Message-ID: <38237270-ce15-c8ec-a527-1ff938ca257d@linux.ibm.com> Date: Mon, 29 Jun 2020 11:30:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-29_04:2020-06-26,2020-06-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 mlxscore=0 adultscore=0 spamscore=0 suspectscore=0 impostorscore=0 cotscore=-2147483648 bulkscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006290035 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/06/20 7:58 am, piliu wrote: > Hi Hari, > > If in [4/11], get_exclude_memory_ranges() turns out to be unnecessary > ,then this patch is abundant either. As my understanding, memblock has > already helped to achieved the purpose that get_exclude_memory_ranges() > wants. As mentioned in the other patch, there is a need for @exclude_ranges as crashkernel region is likely to have an overlap with regions like opal, rtas.. But yeah.. the weak function should have been kexec_locate_mem_hole() instead of kexec_add_buffer(). Will take care of that in v2. > On 06/27/2020 03:04 AM, Hari Bathini wrote: >> Some archs can have special memory regions, within the given memory >> range, which can't be used for the buffer in a kexec segment. As >> kexec_add_buffer() function is being called from generic code as well, >> add weak arch_kexec_add_buffer definition for archs to override & take >> care of special regions before trying to locate a memory hole. >> >> Signed-off-by: Hari Bathini Thanks Hari