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: 1134345 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=kvm-ppc-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.ru Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45r9XP6gW8z9sP3 for ; Sat, 20 Jul 2019 11:39:33 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728987AbfGTBjb (ORCPT ); Fri, 19 Jul 2019 21:39:31 -0400 Received: from ozlabs.ru ([107.173.13.209]:47898 "EHLO ozlabs.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729002AbfGTBjb (ORCPT ); Fri, 19 Jul 2019 21:39:31 -0400 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 Cc: David Gibson , kvm-ppc@vger.kernel.org, Michael Ellerman , Paul Mackerras , Alexey Kardashevskiy , Paul Mackerras 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 Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org 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(-)