From patchwork Sat Jul 20 01:29:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 1134341 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45r9P26Jd5z9s8m for ; Sat, 20 Jul 2019 11:33:10 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.ru Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45r9P25HLgzDqwP for ; Sat, 20 Jul 2019 11:33:10 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=ozlabs.ru (client-ip=107.173.13.209; helo=ozlabs.ru; envelope-from=aik@ozlabs.ru; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.ru Received: from ozlabs.ru (ozlabs.ru [107.173.13.209]) by lists.ozlabs.org (Postfix) with ESMTP id 45r9KM2bMNzDqwT for ; Sat, 20 Jul 2019 11:29:59 +1000 (AEST) Received: from fstn1-p1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 921C0AE807F5; Fri, 19 Jul 2019 21:29:20 -0400 (EDT) From: Alexey Kardashevskiy To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH kernel RFC 0/2] powerpc/pseries: Kexec style boot Date: Sat, 20 Jul 2019 11:29:17 +1000 Message-Id: <20190720012919.14417-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.17.1 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , kvm-ppc@vger.kernel.org, Paul Mackerras , David Gibson Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" There is a funny excercise to run a guest under QEMU without the SLOF firmware and boot into a kernel directly to use petitboot as a boot loader (a more power boot loader than grub and yum), the patchset is posted as "spapr: Kexec style boot". Since there is no SLOF, i.e. no client interface and no RTAS blob, we need to avoid the former and call the latter directly. Also, this implements "client-architecture-support" substiitute for the new environment. This is based on sha1 a2b6f26c264e Christophe Leroy "powerpc/module64: Use symbolic instructions names.". Please comment. Thanks. Alexey Kardashevskiy (2): powerpc/pseries: Call RTAS directly powerpc/pseries: Kexec style ibm,client-architecture-support support arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/prom_init.c | 12 ++++++--- arch/powerpc/kernel/rtas.c | 47 +++++++++++++++------------------ arch/powerpc/kernel/setup_64.c | 41 ++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 30 deletions(-)