Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1239264pxb; Sun, 21 Feb 2021 17:34:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBJDqscua7+9GmJ56BQ8b4XrA5PPCFgGs6fNVBIklQXg9RA8OwnfhOJ54xzupOAJ4YeB23 X-Received: by 2002:a17:907:9da:: with SMTP id bx26mr15888632ejc.206.1613957654535; Sun, 21 Feb 2021 17:34:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613957654; cv=none; d=google.com; s=arc-20160816; b=EN9yglJt5WpI+mnOkaQOsGCXTyfNXGSV0seWYvNIDt1OeWN250JDZRzLacsUGMWhaT JG10/hPCNR0dCrIVUXokLaRKLdCdy1HyaiZU/8pYdC6i7Lk9OtEl/kkAFU7MptBGhJtL 6V3aZayFUzo30XW4HFVlPvfltsv7xuanWgykKIUBGq5m5DcGE8tSziNcZnYd1T6gTdJK rjPv+cgP9I/W7flk4OmLnnO9oVkygi2tw2fijuhseRm4UFVUiY7ro5YU+lQE1GyehFff WRrqC+6lXRSEM8rP1B82e2WITiZRV/0KGoQ0ARt3Edzx+p1cX7Hhs99nRfdlBDfbmSLn Xw0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=urSTMy9t6cTiTrhHbL96lNEFLr5gM8etKvvG8YybOtM=; b=GkTkOoAdHMcvqpgIBwwGbGuZ9f+8OsRhLxkAqdinr0EtWv0r3BDZR0DMQIsVPqjLdp y6VFFGX3RYzrPKZV0m7Hrra29OZ1jVf2Y4mS+ZMhSoJjHpUW/dlYtHGCUdwVxxB9BRBz Y6PMPeOjSwi4LqPQ/QxHGOujZC5XQXnAs4/P7KRjg9E5fh6Su62kDpx5fvKFyngkXcde z6TMpPYd7bTI18fq//v95RoOc70Kd7Opk4QuHAWJz7TWUzZvNuJsRohXrksg/f3almMu EH6Rre2Losa3aCewgY5hk/w7ugoXf+WsTDjLFfyA0jL2849K7QeVsKNMPbpOi/13NtbM bfXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RiKpsUd2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si10763617eds.116.2021.02.21.17.33.52; Sun, 21 Feb 2021 17:34:14 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=RiKpsUd2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231716AbhBVBdI (ORCPT + 99 others); Sun, 21 Feb 2021 20:33:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231687AbhBVBcu (ORCPT ); Sun, 21 Feb 2021 20:32:50 -0500 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD042C061574; Sun, 21 Feb 2021 17:32:09 -0800 (PST) Received: by mail-ot1-x32e.google.com with SMTP id b8so10579330oti.7; Sun, 21 Feb 2021 17:32:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=urSTMy9t6cTiTrhHbL96lNEFLr5gM8etKvvG8YybOtM=; b=RiKpsUd2eg9pq2eKx9PgQDgKlS6S2TMP1cA6OmvM+0aHJN1D+Fxatx7zLPScl4ZvP1 z0qfvtLpR+HDDilB8prIpl46msQycXNibiUYYCf1kto7cDyfvgtxVKRI9ZSyyvcl3ZKp 6JBAGiAbBDBlaRu8DbGbpHN8pvSQ+rk81NktKSs/nBI+1M2aoBpkxjSBIkaFd8An7F12 tFHljIX96wMyJpDhZO9594jJ13VQxiZjSjSnv1IBAor0PzRNmhjg0BWxLWZkBRd06PFD K7d/0XsrGKDw2UK+ViumxfVoK96HtpH/Sdl+TJkEgMQC8MGj+XmO3FBglsLneyIIE6YI G1Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=urSTMy9t6cTiTrhHbL96lNEFLr5gM8etKvvG8YybOtM=; b=sw6ysVdaGbfgS712zmMMhIkQvcfw6UlNftu9cxfaPJnmbdJ8jX1DLDjIcXQs/jnsMu nIWVP/kLYmomMJ7QQQ9nEXOUT8FJKDg2OGxO+O0Y5atqtpENlzAhzLGZEoZLoKvYAaLU LlbSRP/NY3m8RZ+8rKGReN+HOEGLUN2z138julAg7irtMwLoquHGWVrF5s6gqeYNEuQl lhgQkKIxy0f3G8vzRsxl3XCSBRn+sE40Fig3HDJJ5ukCXDqM95qV6dcsUBk5MY5UjrFt l3P9ollg6GmzCesLPMwLFrWFdFvJkciCmFXGzWtb+c3WxdnFC+o3xr1BNb68KsLAavOI xzDw== X-Gm-Message-State: AOAM531RoCByz7gUfAj9L/Ptdy52uhnqmkLcbd1BnNIk0bt8Auwc8BTg x95N4NxvxvODp8LEpMXBdqk= X-Received: by 2002:a05:6830:3151:: with SMTP id c17mr1142078ots.194.1613957529125; Sun, 21 Feb 2021 17:32:09 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id p3sm1046484otf.22.2021.02.21.17.32.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Feb 2021 17:32:08 -0800 (PST) Sender: Guenter Roeck Date: Sun, 21 Feb 2021 17:32:07 -0800 From: Guenter Roeck To: Lakshmi Ramasubramanian Cc: zohar@linux.ibm.com, bauerman@linux.ibm.com, robh@kernel.org, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, will@kernel.org, joe@perches.com, catalin.marinas@arm.com, mpe@ellerman.id.au, mark.rutland@arm.com, benh@kernel.crashing.org, tao.li@vivo.com, paulus@samba.org, vincenzo.frascino@arm.com, frowand.list@gmail.com, sashal@kernel.org, masahiroy@kernel.org, jmorris@namei.org, allison@lohutok.net, serge@hallyn.com, devicetree@vger.kernel.org, pasha.tatashin@soleen.com, prsriva@linux.microsoft.com, hsinyi@chromium.org, linux-arm-kernel@lists.infradead.org, christophe.leroy@c-s.fr, mbrugger@suse.com, balajib@linux.microsoft.com, dmitry.kasatkin@gmail.com, linux-kernel@vger.kernel.org, james.morse@arm.com, linux-integrity@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v18 03/11] of: Add a common kexec FDT setup function Message-ID: <20210222013207.GA142216@roeck-us.net> References: <20210213161049.6190-1-nramas@linux.microsoft.com> <20210213161049.6190-4-nramas@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210213161049.6190-4-nramas@linux.microsoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 13, 2021 at 08:10:41AM -0800, Lakshmi Ramasubramanian wrote: > From: Rob Herring > > Both arm64 and powerpc do essentially the same FDT /chosen setup for > kexec. The differences are either omissions that arm64 should have > or additional properties that will be ignored. The setup code can be > combined and shared by both powerpc and arm64. > > The differences relative to the arm64 version: > - If /chosen doesn't exist, it will be created (should never happen). > - Any old dtb and initrd reserved memory will be released. > - The new initrd and elfcorehdr are marked reserved. > - "linux,booted-from-kexec" is set. > > The differences relative to the powerpc version: > - "kaslr-seed" and "rng-seed" may be set. > - "linux,elfcorehdr" is set. > - Any existing "linux,usable-memory-range" is removed. > > Combine the code for setting up the /chosen node in the FDT and updating > the memory reservation for kexec, for powerpc and arm64, in > of_kexec_alloc_and_setup_fdt() and move it to "drivers/of/kexec.c". > > Signed-off-by: Rob Herring > Signed-off-by: Lakshmi Ramasubramanian s390:allmodconfig: drivers/of/kexec.c: In function 'of_kexec_alloc_and_setup_fdt': drivers/of/kexec.c:378:10: error: 'const struct kimage' has no member named 'arch' 378 | image->arch.elf_load_addr, | ^~ drivers/of/kexec.c:379:10: error: 'const struct kimage' has no member named 'arch' 379 | image->arch.elf_headers_sz); | ^~ drivers/of/kexec.c:387:35: error: 'const struct kimage' has no member named 'arch' 387 | ret = fdt_add_mem_rsv(fdt, image->arch.elf_load_addr, | ^~ drivers/of/kexec.c:388:16: error: 'const struct kimage' has no member named 'arch' 388 | image->arch.elf_headers_sz); | ^~ Guenter