Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp735960ybg; Tue, 28 Jul 2020 18:15:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhzZ9dFQeX732cNjGzWD3D2OgcROWCkr7E8lxCSd+wpV7ksoIWyq248D5JzrcfCtkPrGnI X-Received: by 2002:a05:6402:38c:: with SMTP id o12mr121904edv.271.1595985349573; Tue, 28 Jul 2020 18:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595985349; cv=none; d=google.com; s=arc-20160816; b=lDmJH9m/TH5uG3KxsFikbsTEB7tHcCYznjdVCvIj4X4jhQaTAC6S+Hkst7VwPCCxTx 6MtVSalGh+9Mr9kc+luUjYy1ZBZT5HbToIXNR7c2UDjIQKukxrfeFhw3sl1ZKXBTNxla 9w5kxSjRhA1M9dVMScWCgPZbtihwN0D6nlfWTKhURws3VnfBsIuDegCpOHVAnOniBTr2 FUtO8nJMRUGSOUHyNmEIeBUHQ2K9OK1kO/nZ9UMMEqVpwPtDFWMPjjf+LCC+XAwoha3o UBgpXw392s+PoTXmZrKtbVrFnzAhYJwfQ/+RMYmRQbWHkyddMqOrUfn1Liy4WECwkWyc mx5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=Zg3++hMmPLKvBzmnPbVx0FJ8s3QoaNfRSuxQEp2dX00=; b=YQOYRI3cnBDK5PFDHHCmiTHM18aUQ8X5+jLhnrl0g/UlWgR1pGBRkqjn+qx7Cb+iHk 9XkYdHHF08SSpepnX/kBNu9vW5WAQCHO0+qo29cFftJp4Hxt9Oza10kRvCcZhQ88jOwB +3wABw/5fVyNk9Txa71CHdEPWUScfNPb+hWRRLRvfoQ/+QplDCSyEY74Xki9n5HcXbjj auqg3c08A2weIdlAnLa8TXrGZ5NgwdU5NTtxXHIEoXUl8Aca6ZZEvb94pfkN0CeXk+8L 6MDheqCo+OuB38QvmUkJQ2Ur10cajkMjMmi+PiQQl/2CwJnKZ6OtXA1LeG3ANeq6eJ84 K8LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=UxEKgHV0; 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 ov12si109553ejb.671.2020.07.28.18.15.26; Tue, 28 Jul 2020 18:15:49 -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=@ellerman.id.au header.s=201909 header.b=UxEKgHV0; 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 S1729867AbgG2BPU (ORCPT + 99 others); Tue, 28 Jul 2020 21:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbgG2BPU (ORCPT ); Tue, 28 Jul 2020 21:15:20 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15074C061794 for ; Tue, 28 Jul 2020 18:15:20 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4BGbFJ0Qhjz9sRW; Wed, 29 Jul 2020 11:15:16 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1595985317; bh=uLD3L3DOKgJ2d1NC32eZyYYdag6TLa6nReuwfKtIbCg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UxEKgHV0KiOjp3qRusBz2S3sjmtAiTE1oCvCgnfRuEuSn1kkp+Jx0+MEF+ozPCAZC x8bgKeVUNY+wXri/8XnjJj7suHZNu/l639huAXpHph568BQdZAU2U94bzjyWldttvm mVl1zrsh+yNPRMb5kinHvGdaqjFIECn5/kQf9b6EOCxouOzKdxofVz1ytU0QacXDkv J7cRYJDeEhRrJ83DCGVu7+4MCdj2lmStKpttXXR0fg6s6WPeMCZpyOgs/D4+6ZfFHT u7BUtR8ieCbqkSmiRkuMWiwgLNA+cgTtRX7AIZMAqS3uteJB1AJUmC+1v350NVhRjn gB+xizwWf4WaQ== From: Michael Ellerman To: Hari Bathini , Andrew Morton Cc: Pingfan Liu , Kexec-ml , Mimi Zohar , Nayna Jain , Petr Tesarik , Mahesh J Salgaonkar , Sourabh Jain , lkml , linuxppc-dev , Eric Biederman , Thiago Jung Bauermann , Dave Young , Vivek Goyal Subject: Re: [RESEND PATCH v5 07/11] ppc64/kexec_file: enable early kernel's OPAL calls In-Reply-To: <23baef6a-6ddc-572a-82c5-21a7fa441485@linux.ibm.com> References: <159579157320.5790.6748078824637688685.stgit@hbathini> <159579233676.5790.10701756666641782647.stgit@hbathini> <87365b7nx4.fsf@mpe.ellerman.id.au> <23baef6a-6ddc-572a-82c5-21a7fa441485@linux.ibm.com> Date: Wed, 29 Jul 2020 11:15:12 +1000 Message-ID: <87v9i75dgf.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hari Bathini writes: > On 28/07/20 7:16 pm, Michael Ellerman wrote: >> Hari Bathini writes: >>> Kernel built with CONFIG_PPC_EARLY_DEBUG_OPAL enabled expects r8 & r9 >>> to be filled with OPAL base & entry addresses respectively. Setting >>> these registers allows the kernel to perform OPAL calls before the >>> device tree is parsed. >> >> I'm not convinced we want to do this. >> >> If we do it becomes part of the kexec ABI and we have to honour it into >> the future. >> >> And in practice there are no non-development kernels built with OPAL early >> debugging enabled, so it's not clear it actually helps anyone other than >> developers. >> > > Hmmm.. kexec-tools does it since commit d58ad564852c ("kexec/ppc64 > Enable early kernel's OPAL calls") for kexec_load syscall. So, we would > be breaking kexec ABI either way, I guess. Ugh, OK. > Let me put this patch at the end of the series in the respin to let you > decide whether to have it or not.. Thanks. cheers