From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240C0C433E0 for ; Fri, 12 Feb 2021 01:10:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D5D2464E3B for ; Fri, 12 Feb 2021 01:10:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D5D2464E3B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BqJhQy7Ft4qDK7nNYre/okeYYxRNv2yhsrsNHVtIbBo=; b=Do/lVbS3xcyD5xLPOqcTaBt9i Ma1GpqhI7YHczig1yIz1YQxlzyFiZSIld4JwUsAlF1lQJCaqbtm2P1b9ynb2Hy4Rg/LENG+9fNcsN cWRfdHN5k6meCrR0nOQE+33xjhgGLIsstdBxITDELAZlRvOgdZndJxWKbb9zUcv433hR5siqhCOOQ sXiXB8rQOAE4M1EQ1vvo8g7x3NYS5C+WFeuE+u/L8rRstxmGNwmVJ/zVlzUfZb5xxkDBI9nU++P7a Pp0Oxh9rHNI/M4jvtkET5AzoWUKbjaDygcrhIzwv+eoWL3EzLAc8RTVX4LNaMDZXYIvYBR2IUqHZb ouUsYSnSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAMxn-00057x-1f; Fri, 12 Feb 2021 01:09:39 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAMxk-00057S-Or for linux-arm-kernel@lists.infradead.org; Fri, 12 Feb 2021 01:09:37 +0000 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id 65CEC20B6C40; Thu, 11 Feb 2021 17:09:34 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 65CEC20B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1613092174; bh=3zzV73EkFkyAFdXlcurFqdYMOv5kFYuG+PJrfjUphp0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=MXmM2de7TfpqZuJwO4ub1wkhJKgb/jdcBxS+arQ0yNQnI1al+YvbGIBOeT9Bqg18I d1NUo3q8EJWF+w6XyVj9ZVhah5VxcshbiXjU6M3k8whqnh8YDPSrt5BLEeVRp/qMPc ePohmOBtDmUSJR+6vnpAOKAuZ8RF4v2KeBs98ewI= Subject: Re: Fwd: Re: [PATCH v17 02/10] of: Add a common kexec FDT setup function To: Thiago Jung Bauermann References: <202102120032.Bv0MoYv7-lkp@intel.com> <40fd1869-dcb4-36ae-e997-b8486dd4846c@linux.microsoft.com> <87mtwap35f.fsf@manicouagan.localdomain> From: Lakshmi Ramasubramanian Message-ID: Date: Thu, 11 Feb 2021 17:09:33 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87mtwap35f.fsf@manicouagan.localdomain> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210211_200936_995180_4CE12864 X-CRM114-Status: GOOD ( 18.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , linux-integrity@vger.kernel.org, linuxppc-dev , linux-arm-kernel , Mimi Zohar Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2/11/21 3:59 PM, Thiago Jung Bauermann wrote: > > Lakshmi Ramasubramanian writes: > >> On 2/11/21 9:42 AM, Lakshmi Ramasubramanian wrote: >>> Hi Rob, >>> [PATCH] powerpc: Rename kexec elfcorehdr_addr to elf_headers_mem >>> This change causes build problem for x86_64 architecture (please see the >>> mail from kernel test bot below) since arch/x86/include/asm/kexec.h uses >>> "elf_load_addr" for the ELF header buffer address and not >>> "elf_headers_mem". >>> struct kimage_arch { >>> ... >>> /* Core ELF header buffer */ >>> void *elf_headers; >>> unsigned long elf_headers_sz; >>> unsigned long elf_load_addr; >>> }; >>> I am thinking of limiting of_kexec_alloc_and_setup_fdt() to ARM64 and >>> PPC64 since they are the only ones using this function now. >>> #if defined(CONFIG_ARM64) && defined(CONFIG_PPC64) >> Sorry - I meant to say >> #if defined(CONFIG_ARM64) || defined(CONFIG_PPC64) >> > > Does it build correctly if you rename elf_headers_mem to elf_load_addr? > Or the other way around, renaming x86's elf_load_addr to > elf_headers_mem. I don't really have a preference. Yes - changing arm64 and ppc from "elf_headers_mem" to "elf_load_addr" builds fine. But I am concerned about a few other architectures that also define "struct kimage_arch" such as "parisc", "arm" which do not have any ELF related fields. They would not build if the config defines CONFIG_KEXEC_FILE and CONFIG_OF_FLATTREE. Do you think that could be an issue? thanks, -lakshmi > > That would be better than adding an #if condition. > >>> void *of_kexec_alloc_and_setup_fdt(const struct kimage *image, >>> unsigned long initrd_load_addr, >>> unsigned long initrd_len, >>> const char *cmdline) >>> { >>> ... >>> } >>> #endif /* defined(CONFIG_ARM64) && defined(CONFIG_PPC64) */ >>> Please let me know if you have any concerns. >>> thanks, >>> -lakshmi > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel