From patchwork Thu May 31 04:29:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 923154 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 40xDzQ1qLyz9s1B for ; Thu, 31 May 2018 14:30:42 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TxJi3TuG"; 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 40xDzP6zyxzF0S2 for ; Thu, 31 May 2018 14:30:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au 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="TxJi3TuG"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::242; helo=mail-pf0-x242.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TxJi3TuG"; dkim-atps=neutral Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::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 40xDym16DbzDrZD for ; Thu, 31 May 2018 14:30:08 +1000 (AEST) Received: by mail-pf0-x242.google.com with SMTP id b74-v6so6661692pfl.5 for ; Wed, 30 May 2018 21:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=m0mhRnbbrZdeU9LHFgARIb6MLZ2XMDu4bV2ErUYi2rM=; b=TxJi3TuG8Ii6ucms9zZ6Whw7b0v4DSTptk8599nrhlAOjqLwb4/A949frqjApE31u8 DFUNwtgqKCcXp2nZmROSxF0Z4pkmBD2s9xJ8Qa4W9rjFkIWwgV3yl1tLi3xpFhT+ES3H VjmqKaLpsFjy+6athRUo8jpw3TJD5oQ/6VaArOwR+wriQYS/F9IehTomTPPDTtOx3F+U VYe7FPvjX5+OB/uvxawGHGS0szsxBFd2SpeZYWouPfLOrLcfX2yj80rHgup85UgtLjVA iVB+DLS6B/JoAAr32njWb8M6UcLs2D75HHSap0m1xukLy+WY5xXMi56th482WJLnUeB1 jsdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=m0mhRnbbrZdeU9LHFgARIb6MLZ2XMDu4bV2ErUYi2rM=; b=ONxGfK4dTUGOzoiEtKrOewFKFy+1p7A9lqxYKQK0wxtyHvnTQ2cVqqtJjVWpLVKs5X In5BoCY3FeDD+kdDfHf3m1kWZDunpUF+2BMMF8BKkPyef1THc/K0XDQ7XIGn42lS1xod skyoqre8vGRPUTS59CPbJjnPC/XN1sQL51bQwtFS9vIa8poT+XEuR8VReadQRpyyk/hB MgKyXplk2edfYRo1N+8PrdZSGme0sNFuI6sAGAV8SC6A1VVHX4+MHcZuJ0fs3lDW7yIF sgFqNxYLP3OMzqibF9Y1dD+/7VlYuSOiEMuiwzvHfrk/A9Q0jq+RMmT1DIeYr32zCQSX ge8g== X-Gm-Message-State: ALKqPwcPNoVTWrLTdxC7h6W/0qcN/gdPrzNuL/XpYKixIcDvRrWpLFPR F/skgq3Q0Di/9nJ6+Th0qMy0s6hd X-Google-Smtp-Source: ADUXVKLSk8l3rmXeNci7qOI/bIYHG8JXmfQlbh7IarBGYEPj43VB0p4YRD6QBbB3sDNB3ssXUWmOZg== X-Received: by 2002:a63:4383:: with SMTP id q125-v6mr4378586pga.412.1527741005939; Wed, 30 May 2018 21:30:05 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id h23-v6sm59865944pfi.175.2018.05.30.21.30.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 21:30:05 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 31 May 2018 13:59:59 +0930 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Thu, 31 May 2018 13:59:42 +0930 Message-Id: <20180531042943.15804-3-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180531042943.15804-1-joel@jms.id.au> References: <20180531042943.15804-1-joel@jms.id.au> Subject: [Skiboot] [PATCH v3 2/3] debug_descriptor: Claim reserved field for host kernel log buffer X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This will be used by the dump region opal call. This bumps the version of the debug descriptor to indicate this field is now in use. However, any users of the descriptor should remain compatible as the non-reserved fields behave in the same way as previously. Signed-off-by: Joel Stanley --- include/skiboot.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/skiboot.h b/include/skiboot.h index b4bdf37795dd..9a49bfca74a5 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -69,13 +69,13 @@ static inline bool is_rodata(const void *p) */ struct debug_descriptor { u8 eye_catcher[8]; /* "OPALdbug" */ -#define DEBUG_DESC_VERSION 1 +#define DEBUG_DESC_VERSION 2 u32 version; u8 console_log_levels; /* high 4 bits in memory, * low 4 bits driver (e.g. uart). */ u8 state_flags; /* various state flags - OPAL_BOOT_COMPLETE etc */ - u16 reserved2; - u32 reserved[2]; + u16 reserved; + u64 log_buf_phys; /* Pointer to kernel log buffer */ /* Memory console */ u64 memcons_phys; @@ -90,7 +90,7 @@ struct debug_descriptor { u64 trace_phys[DEBUG_DESC_MAX_TRACES]; u32 trace_size[DEBUG_DESC_MAX_TRACES]; u32 trace_tce[DEBUG_DESC_MAX_TRACES]; -}; +} __packed; extern struct debug_descriptor debug_descriptor; static inline bool opal_booting(void)