Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3090901ybt; Mon, 29 Jun 2020 15:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEoEAMdvqfaM8cKx/c44WdP/c7yVsQwTNI+pN9zJLZ0JFUP1tXDJDNBFjEq1o8lPnmHho3 X-Received: by 2002:a50:8467:: with SMTP id 94mr19432703edp.249.1593468430534; Mon, 29 Jun 2020 15:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593468430; cv=none; d=google.com; s=arc-20160816; b=nPEBgQLNgZNF9eoOilRqQsBZmpUfz3Zj3IMHKBiUH3Z1POCHaoIBTm2IVK/RLMSjrO OanL/UUkJMmUY4W4qrapN72T6jpQCnmvAMeB3n5Q+jLjAAfyeNaQVfbjfHY+xzDlTcb9 Db4m4YlGcS8bG8h02gmTj6Kf0K9u7IFE5eeZdsqqxnb9KYY18Gbp6SmZZ/grhChNp1zC /NiG6LVK4C0O14NWwQvZe9V7k8s6iPhiv1/TQZWtJEgFJDjYbl1mvDu5ewJeefrGcUWQ +zM4M8tGBlqMLQ6Y0ETgwycTaWDFqJi7YJ6Iu7aR96HmPPHavZIC7PIjPF3JLkV8j19V 9hsQ== 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=JkE/b+NNBLrwgivCzj1Glu0w0gZrzNDVV9fIo3x1ecI=; b=gmCbalV2bWnBSf/QzhOTh6Ctw72560u/q1JdVavXg83axvodzwtvIx5SGXb4l5IdvK 5b4R/y9/bw/xhVAxktLEr02wluZAOw7SWBCqolBOgH8rN4L9vMkjOjPxmOPN8gp1qrQm J6caNQFXwMD7wbbov62KB4eaSmkO03c2Ibiic6Wm+OmcPLEWX+ZjTqMdc0VdOQalDPRy agOb8Zz2IuJl70UFjLRmHst50TpdB5iGcIib30Y8853I3AZG6jmpy6DtdN6w+HU3F4/u j0Bh8rDbhsBuxgeXul1oDJsICowB1nx/J55Z936jQt5wEKNv1pcIbZHiDRd6l6/k/Z+V avGA== 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 k91si511331edc.296.2020.06.29.15.06.46; Mon, 29 Jun 2020 15:07:10 -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 S2404692AbgF2WFo (ORCPT + 99 others); Mon, 29 Jun 2020 18:05:44 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:31230 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbgF2SfT (ORCPT ); Mon, 29 Jun 2020 14:35:19 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05TBZdHO132225; Mon, 29 Jun 2020 07:56:33 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31ydk8w3p2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 07:56:32 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05TBaD7B135261; Mon, 29 Jun 2020 07:56:32 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 31ydk8w3mh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 07:56:32 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05TBpvef012283; Mon, 29 Jun 2020 11:56:30 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06ams.nl.ibm.com with ESMTP id 31wwch25f9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2020 11:56:29 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05TBt7MH63045990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jun 2020 11:55:07 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 25FDAAE04D; Mon, 29 Jun 2020 11:56:27 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B7209AE055; Mon, 29 Jun 2020 11:56:24 +0000 (GMT) Received: from [9.102.22.29] (unknown [9.102.22.29]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Jun 2020 11:56:24 +0000 (GMT) Subject: Re: [PATCH 01/11] kexec_file: allow archs to handle special regions while locating memory hole To: Petr Tesarik Cc: Pingfan Liu , Kexec-ml , Mahesh J Salgaonkar , Mimi Zohar , lkml , linuxppc-dev , Sourabh Jain , Vivek Goyal , Andrew Morton , Dave Young , Thiago Jung Bauermann , Eric Biederman References: <159319825403.16351.7253978047621755765.stgit@hbathini.in.ibm.com> <159319828304.16351.6990340111766605842.stgit@hbathini.in.ibm.com> <20200629133933.0787f562@ezekiel.suse.cz> From: Hari Bathini Message-ID: <7981ae61-26c6-000c-9ee4-382dab3eecab@linux.ibm.com> Date: Mon, 29 Jun 2020 17:26:23 +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: <20200629133933.0787f562@ezekiel.suse.cz> 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_11:2020-06-29,2020-06-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 suspectscore=0 adultscore=0 mlxlogscore=859 lowpriorityscore=0 clxscore=1015 bulkscore=0 malwarescore=0 cotscore=-2147483648 impostorscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006290079 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Petr, On 29/06/20 5:09 pm, Petr Tesarik wrote: > Hi Hari, > > is there any good reason to add two more functions with a very similar > name to an existing function? AFAICS all you need is a way to call a > PPC64-specific function from within kexec_add_buffer (PATCH 4/11), so > you could add something like this: > > int __weak arch_kexec_locate_mem_hole(struct kexec_buf *kbuf) > { > return 0; > } > > Call this function from kexec_add_buffer where appropriate and then > override it for PPC64 (it roughly corresponds to your > kexec_locate_mem_hole_ppc64() from PATCH 4/11). > > FWIW it would make it easier for me to follow the resulting code. Right, Petr. I was trying out a few things before I ended up with what I sent here. Bu yeah.. I did realize arch_kexec_locate_mem_hole() would have been better after sending out v1. Will take care of that in v2. Thanks Hari