From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2BB1CA9EC5 for ; Wed, 30 Oct 2019 12:50:56 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3960E2087E for ; Wed, 30 Oct 2019 12:50:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3960E2087E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4737bx6bHnzF4Lh for ; Wed, 30 Oct 2019 23:50:53 +1100 (AEDT) Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4736nx43JGzF4BZ for ; Wed, 30 Oct 2019 23:14:29 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Received: by ozlabs.org (Postfix, from userid 1034) id 4736nw2fQ5z9sPw; Wed, 30 Oct 2019 23:14:27 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: a9336ddf448b1cba3080195cec2287af3907236c In-Reply-To: <1526868278-4204-1-git-send-email-debmc@linux.vnet.ibm.com> To: Deb McLemore , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Subject: Re: [PATCH v3] powerpc/powernv: Add queue mechanism for early messages Message-Id: <4736nw2fQ5z9sPw@ozlabs.org> Date: Wed, 30 Oct 2019 23:14:27 +1100 (AEDT) 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: Deb McLemore Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, 2018-05-21 at 02:04:38 UTC, Deb McLemore wrote: > Problem being solved is when issuing a BMC soft poweroff during IPL, > the poweroff was being lost so the machine would not poweroff. > > Opal messages were being received before the opal-power code > registered its notifiers. > > Alternatives discussed (option #3 was chosen): > > 1 - Have opal_message_init() explicitly call opal_power_control_init() > before it dequeues any OPAL messages (i.e. before we register the > opal-msg IRQ handler). > > 2 - Introduce concept of critical message types and when we register > handlers we track which message types have a registered handler, > then defer the opal-msg IRQ registration until we have a handler > registered for all the critical types. > > 3 - Buffering messages, if we receive a message and do not yet > have a handler for that type, store the message and replay when > a handler for that type is registered. > > Signed-off-by: Deb McLemore Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/a9336ddf448b1cba3080195cec2287af3907236c cheers