Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1199502ybg; Thu, 11 Jun 2020 03:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhvjlunRXSDkWTr7O/sgm3suYs4mPkDILI0ynuN7xhfvW1nkNOa1V43ccv5FJ1natFHTon X-Received: by 2002:a17:906:1d52:: with SMTP id o18mr7188528ejh.399.1591872144845; Thu, 11 Jun 2020 03:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591872144; cv=none; d=google.com; s=arc-20160816; b=Tm9P5JHhUS1bGVCx62Hg/wj1HTxs33R6H5xVuVIKjnnEyAE1PB5JgLpsSCYwGnCWaf kE7feb+TDXwBmpOQGsVySpRq+cVkJwLM8AMzHxZU7hTzCPtIFST6GSEfWp7xT8xx23FP WGOa9kAdak0x47DVVwQAss0MfvpguvoceZ0micQ9D9EHBw2p5mvkYMTvx3UyI3iogWjU lGZk7rLEd++4QgknLe1Dx/HZk7owRg/mLOEoEwm0Mg/fe8v7kf4oazncdiYfF9SadaMF HQegSEBvsrWaugX4s8iC/qqfx6cv5b26dxBjR6/AFiRWHqFDIlJbwQpPtl2gQGgmp5Tr 6Zdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pVpU95O+J56tcCcKm/rQbMqFedeKvQz8SMkjM9+3a7I=; b=tp/RJxH1ZPzmRm67gWuSCXh6YmkeJ7SwVgDBOpnj7aXy3DSuv3njBIoJ6VHRtm04T7 qNxEqZr5Zz8EpV9snGK530dIiUHxnrZsX57wq+x5xV3P3ANfJv+La4AhugDiHAKI3Yyy CPMhHtvXCgaU3D9JYutRd+rjcHSUlYehj3CLRF2FIIlyJs3SyOgZIO9GKyqse7WGHeC+ mAU02kxd520T2PPIvDf2pMdTbRGlewDrYop2g89/4hBvFfvFKLtVC3XPLeXE7D/6Z430 8u7NDfyoulB85z8ZTCTyMgGdl6ZsDcAz7BSC2SjhCkMZfgErNbTbuSr9eWLaWHhlCz9A kGjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Mah74+Tm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j27si1695192eja.627.2020.06.11.03.42.01; Thu, 11 Jun 2020 03:42:24 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Mah74+Tm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbgFKKh4 (ORCPT + 99 others); Thu, 11 Jun 2020 06:37:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:49490 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726817AbgFKKhz (ORCPT ); Thu, 11 Jun 2020 06:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591871874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pVpU95O+J56tcCcKm/rQbMqFedeKvQz8SMkjM9+3a7I=; b=Mah74+TmCgi6+D6HrO50/4lMw1FzZryCQEYUEpxj5sRov2YfkpXf/wN0zQMTkNCqHFKu9j oN8CnmmqeEE+ImrGK/1BsGmHoF6mD5XtHq4oPRNuFoXoStnAF+jfcI9EOFNNgDFWUwY257 bzUdihzpLn8Y4DkY90Nrg1MuWQJSYNA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-486-V2bqYhnhNjSBKC62ZxAhxw-1; Thu, 11 Jun 2020 06:37:49 -0400 X-MC-Unique: V2bqYhnhNjSBKC62ZxAhxw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0AD211800D41; Thu, 11 Jun 2020 10:37:47 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-13-51.pek2.redhat.com [10.72.13.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA2CC5D9EF; Thu, 11 Jun 2020 10:37:40 +0000 (UTC) Date: Thu, 11 Jun 2020 18:37:37 +0800 From: Dave Young To: =?utf-8?Q?=C5=81ukasz?= Stelmach Cc: Russell King , Masahiro Yamada , Nick Desaulniers , Thomas Gleixner , Enrico Weigelt , Kees Cook , Ingo Molnar , Ben Dooks , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro , Bartlomiej Zolnierkiewicz , Marek Szyprowski , kexec@lists.infradead.org Subject: Re: [PATCH 0/5] kexec_file_load() for arm Message-ID: <20200611103737.GA5079@dhcp-128-65.nay.redhat.com> References: <20200601142754.26139-1-l.stelmach@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200601142754.26139-1-l.stelmach@samsung.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc kexec list in case people may missed the pieces. On 06/01/20 at 04:27pm, Łukasz Stelmach wrote: > The following series of patches provides implementation of the > kexec_file_load() system call form the arm architecture. zImage and uImage > (legacy format) files are supported. Like on arm64, there is no > possibility of loading a new DTB and the currently loaded is reused. > > Łukasz Stelmach (5): > arm: decompressor: set malloc pool size for the decompressor > arm: add image header definitions > arm: decompressor: define a new zImage tag > arm: Add kexec_image_info > arm: kexec_file: load zImage or uImage, initrd and dtb > > arch/arm/Kconfig | 15 ++ > arch/arm/boot/compressed/Makefile | 2 + > arch/arm/boot/compressed/head.S | 9 +- > arch/arm/boot/compressed/vmlinux.lds.S | 22 +-- > arch/arm/include/asm/image.h | 87 ++++++++++ > arch/arm/include/asm/kexec.h | 14 ++ > arch/arm/kernel/Makefile | 5 +- > arch/arm/kernel/kexec_uimage.c | 80 ++++++++++ > arch/arm/kernel/kexec_zimage.c | 199 +++++++++++++++++++++++ > arch/arm/kernel/machine_kexec.c | 39 ++++- > arch/arm/kernel/machine_kexec_file.c | 209 +++++++++++++++++++++++++ > 11 files changed, 662 insertions(+), 19 deletions(-) > create mode 100644 arch/arm/include/asm/image.h > create mode 100644 arch/arm/kernel/kexec_uimage.c > create mode 100644 arch/arm/kernel/kexec_zimage.c > create mode 100644 arch/arm/kernel/machine_kexec_file.c > > -- > 2.26.2 >