From patchwork Wed Nov 8 07:10:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver O'Halloran X-Patchwork-Id: 835676 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.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 3yWyBz4Bncz9s7c for ; Wed, 8 Nov 2017 18:11:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pBaYCLNk"; 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 3yWyBz2xmpzDr8Q for ; Wed, 8 Nov 2017 18:11:23 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pBaYCLNk"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c01::242; helo=mail-pl0-x242.google.com; envelope-from=oohall@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pBaYCLNk"; dkim-atps=neutral Received: from mail-pl0-x242.google.com (mail-pl0-x242.google.com [IPv6:2607:f8b0:400e:c01::242]) (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 3yWyBs42fDzDr62 for ; Wed, 8 Nov 2017 18:11:17 +1100 (AEDT) Received: by mail-pl0-x242.google.com with SMTP id m2so732143plk.5 for ; Tue, 07 Nov 2017 23:11:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=x3cqOkHGuRwfpYgIFmDlL/0/9qulm8xpGNL3tAXpyFE=; b=pBaYCLNkSX7+2IOKKGNrMLvCatI+Ycfe9/kkDdNlj9uUE+YeEhbaWukDWSoJxsS8ZP V03rMrKUp/qgJ7IGG5e3a/OkBzXxeCnlJQXlU3OP+eSe9FB2AmPOcq61uoS9sztS5N/9 Wdp83xtx/DvukoPMnFdkpDR0nmORX7iEFvA6jQNX+rta2kYcZSUgljp5tkgGdC2dU1u0 fq+Eiq6oMEYtnBTvS6p4zeHDCuJKVtYYTu5SJUaCtB70TPxZSS+jHEn/LmnDK4hbFKOS 5Ea9He6C9i+U5bS5KiSCy/nsaS5L5k4ZW3LNHwo4O3R8kZaSV0RogIeh8QTj96Mc2RBN /p2A== 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=x3cqOkHGuRwfpYgIFmDlL/0/9qulm8xpGNL3tAXpyFE=; b=ZeTjbQTCzj6ED8mhmyc9+3I6NWqZBVNUPNiNLBi2xsBzGtr/swLULilrmAbxQVDAvO PzMDmmrVpKgH7H3Off2ahGJducHK9RWeebX8lLtL3ngXSPIxdi/8MRj6c7AspQ6BpxEx rQcFAtayoG8gwUO3AgsoIEQoC1sjbkgGT5cbtqBRzbbaFLQ0VJj3YxOzV7m+ze0x0sAf YsfN2v3VDqlu8SpiKmhcfvAhqq/Pz9oi7zrgiEfp9WOL8TZJWhNx/zj+msSp2V+hkO43 4AOWJ4VYP+/4gAn+ic4o9zBVwvAPWawuBtJ8Do+C8fZVLblml0dsHwbQfrrpTG1rATFD EdmA== X-Gm-Message-State: AJaThX6Vs5Z1ES+OlBGYC1MfUv5CnrNQSesItFJeEUPtLQry34RNsyTE Nj7eKyYLBY2rmcM9BcsIZX38YQ== X-Google-Smtp-Source: ABhQp+TIqtCfRWK9MVWOV8o5MwLhCawR9d6+bK+mCuXVSLIzL/w/UIQezsuAS+Y2tu6nNiTSPWbVrQ== X-Received: by 10.84.234.199 with SMTP id i7mr1323388plt.15.1510125075116; Tue, 07 Nov 2017 23:11:15 -0800 (PST) Received: from flat-canetoad.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id x1sm5722176pfh.113.2017.11.07.23.11.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 23:11:14 -0800 (PST) From: Oliver O'Halloran To: skiboot@lists.ozlabs.org Date: Wed, 8 Nov 2017 18:10:59 +1100 Message-Id: <20171108071059.20058-1-oohall@gmail.com> X-Mailer: git-send-email 2.9.5 Subject: [Skiboot] [PATCH] asm/head: Loop after attn X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mikey@neuling.org MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" We use the attn instruction to raise an error in early boot if OPAL don't recognise the PVR. It's possible for hostboot to disable the attn instruction before entering OPAL so add an extra busy loop after the attn to prevent attempting to boot on an unknown processor. Signed-off-by: Oliver O'Halloran --- asm/head.S | 1 + 1 file changed, 1 insertion(+) diff --git a/asm/head.S b/asm/head.S index d82e4e5e7c66..ccf0948273d2 100644 --- a/asm/head.S +++ b/asm/head.S @@ -270,6 +270,7 @@ boot_entry: cmpwi cr0,%r3,PVR_TYPE_P9 beq 1f attn /* Unsupported CPU type... what do we do ? */ + b . /* loop here, just in case attn is disabled */ /* P8 -> 8 threads */ 2: li %r26,7