From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5] helo=mx0a-001b2d01.pphosted.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpmqp-0002G6-U7 for kexec@lists.infradead.org; Mon, 29 Jun 2020 06:01:08 +0000 Subject: Re: [PATCH 01/11] kexec_file: allow archs to handle special regions while locating memory hole 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 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: piliu , Michael Ellerman , Andrew Morton Cc: Kexec-ml , Petr Tesarik , Mahesh J Salgaonkar , Sourabh Jain , lkml , linuxppc-dev , Mimi Zohar , Vivek Goyal , Dave Young , Thiago Jung Bauermann , Eric Biederman 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 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec