From patchwork Mon May 14 15:59:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 913062 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.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40l57N12NWz9rxs for ; Tue, 15 May 2018 02:02:24 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d15mBTL4"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40l57M6ZNxzF3gV for ; Tue, 15 May 2018 02:02:23 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d15mBTL4"; dkim-atps=neutral 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=gmail.com (client-ip=2607:f8b0:400e:c01::243; helo=mail-pl0-x243.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d15mBTL4"; dkim-atps=neutral Received: from mail-pl0-x243.google.com (mail-pl0-x243.google.com [IPv6:2607:f8b0:400e:c01::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40l54b30ZGzF37v for ; Tue, 15 May 2018 01:59:59 +1000 (AEST) Received: by mail-pl0-x243.google.com with SMTP id c41-v6so2411101plj.10 for ; Mon, 14 May 2018 08:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=fe5WfVpH2BcpLtHIIchqDiuCYlRNuLMTyt8YOPTWd4A=; b=d15mBTL40rsl3xpg+3e1Xhqp2DU4nnFBZW+7DfBgpNew/j/5dgmQb9Y0kQndWfGAjY J01owI7dIwi8eFgw63KiKl7ftkvgguZAU7acbHW4lQ3mj9tL6M/YY9CyOGvV9Ob9DEQa zPZggQ4nNq4nVPJWrTD5dxgHl/m7a+7Zwy6UMCur49Qgl0SgO7IreM/5nlkOpwTQ9S39 l3cy5DE1sX729hKH1E91Gm9znhtppzkmPS5zXKq9xkTgFG1xrh2REqtQrThhYEdLKOg3 IqS1zxHNwJSjrt/2HK0CVzl2KdmUe2jMlTUAwBjxe/QAW1Mth1TfuXvOcEbn9Zt+kP+A xwGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fe5WfVpH2BcpLtHIIchqDiuCYlRNuLMTyt8YOPTWd4A=; b=pqjeg/WAtutRj4S3BSmEOlIIzL+1jNPwdkjChiASWepNkuSRh39K9Xvmgi2ooAU+Es uo75lvbvrLMP1JTAPP/ekIEr1EUKr3RhSvo+YKTWqIPZc+BJW9j9sNUp/iOvIAcSfZvC 7AaqLIWf9Fi1bjzx0TIQwSLDZ+WGhyTVrmlU/HDqLGf2ZKOUiaMeIAz8V0bXkY9Ie3fE UF5wQrHxNchrJveWXWejMW75iawGzgndSlKD05syLXPEfdJEqzj5VPdldVDdqlEvG5SF PQhBIz87/jiXnUYSi4NWvotK6wC4DASTdYRmUMRlgrjLowDFcjKOi1ZQT3WwVnkYmrdB Yv4Q== X-Gm-Message-State: ALKqPwcC7b4dXK/scTvbSntda2JQI3/h8S3LO3PmVnbJ+1wV0DZQzC29 zjiGmr6+OY4UGTdZ2dkbxTbBag== X-Google-Smtp-Source: AB8JxZqZ9VoZ4/dgAqMv+MIeNuHZFfiUDXAzT2R2X1bRZbNF1s0JvoxKjBLYT2CHE7PoQTpE6pTdUQ== X-Received: by 2002:a17:902:9a08:: with SMTP id v8-v6mr10535463plp.148.1526313596906; Mon, 14 May 2018 08:59:56 -0700 (PDT) Received: from roar.au.ibm.com (59-102-70-78.tpgi.com.au. [59.102.70.78]) by smtp.gmail.com with ESMTPSA id r90-v6sm24138529pfg.122.2018.05.14.08.59.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 08:59:55 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 0/2] sleeping functions in invalid context on panic fixes Date: Tue, 15 May 2018 01:59:45 +1000 Message-Id: <20180514155947.22753-1-npiggin@gmail.com> X-Mailer: git-send-email 2.17.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Here's a couple of fixes which seem to solve a problem where panics can hang forever rather than reboot after 10 seconds. The symptoms are that a CPU calls panic(), but later it is found in idle. Nicholas Piggin (2): powerpc/powernv: Fix opal_event_shutdown() called with interrupts disabled powerpc/powernv: Fix NVRAM sleep in invalid context when crashing arch/powerpc/platforms/powernv/opal-irqchip.c | 2 +- arch/powerpc/platforms/powernv/opal-nvram.c | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-)