From patchwork Mon May 28 03:55:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 921290 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 40vNM76FL6z9s08 for ; Mon, 28 May 2018 13:56:19 +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="V0lHdSZ+"; 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 40vNM74fCkzF0S2 for ; Mon, 28 May 2018 13:56:19 +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="V0lHdSZ+"; 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::241; helo=mail-pf0-x241.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="V0lHdSZ+"; dkim-atps=neutral Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (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 40vNM25D44zF0S2 for ; Mon, 28 May 2018 13:56:13 +1000 (AEST) Received: by mail-pf0-x241.google.com with SMTP id c10-v6so5180855pfi.12 for ; Sun, 27 May 2018 20:56:13 -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; bh=eLUWeXhUrqrGKrMbis1+lY8X28aOfn8zceyw3hnn/2k=; b=V0lHdSZ+yaNYUcQ0R8Uf+w67xBmYwvRM1ADtgZ8JkNLiLnNczWuUyZR0rS6VnTMQ1f Als3AveFxb30wbMMPyXRy6MvI787qrkb7XFS6LXXR2jSFkdTQDKxsPxEp1fhgz0rhIRu tsID/Exiq2X2c/TeGeZPuoTe5Z7tLpK0lxJRD2hd5TdvWup7969A14355EsIB8nn96BX JF4sYb0qoclALEgleJnrp4YHx4GJzKaJFb+5fZm6A/YqvDwaUZrNaT0vDXr0gP/bvT63 5RMAl+xTCJqwXyEp9xkvEusGGpDSEEuqYXr9MVcvjMcsugqQeIBY4k2LORjRx7o+3CV5 9gjA== 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; bh=eLUWeXhUrqrGKrMbis1+lY8X28aOfn8zceyw3hnn/2k=; b=GPx6NvpTOBwY7jcNEDZFlP3oNa7mREVFEwaei0c30pCLjk7QVTPoSYA5fPnS9rv8ES JCzC8UxflEdjJoAGigTQtTY45HL6glt2ns4QbBqVbTFxzCYON5irvs5vB1JgOiqt9W1g xKvrhSIRkl+3Zxm0k6SiB4AbGqIVHBSDIR7RkXYvE/aXAGgARtKTNyH7cteyZNnxGCN/ gef4Bre32Ad4Apjm/nTUVt6RW1f5fZzpeshaOAXzG158xCgAV9vHJlvYSjvZhl0BHKW3 3fc0z74oAqD1LnHj8TJKdh6nr9qSRdkDako1qQWz+K0Y5rWh/EUBNSTpPP7Tz4eGWNTq TkZA== X-Gm-Message-State: ALKqPwfHwNK24Pbzl8gtkT0i+0h+zJ1HJOee86/zxQHwZ5wMjZ0oiMhR Nqzv+mgj8phw3X9G+McwGdXcafR7 X-Google-Smtp-Source: AB8JxZoXtNO0li/EOL3Cy4SLwHg6YJ2URCu7SHbEAf7qM4bCcEaNyQtcdiOjbZ4pfRmmDv07TQSKiQ== X-Received: by 2002:a62:fc8:: with SMTP id 69-v6mr11916379pfp.14.1527479770400; Sun, 27 May 2018 20:56:10 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id h130-v6sm80376825pfc.98.2018.05.27.20.56.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 May 2018 20:56:09 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 28 May 2018 13:26:04 +0930 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Mon, 28 May 2018 13:25:57 +0930 Message-Id: <20180528035559.13422-1-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 Subject: [Skiboot] [PATCH v2 0/2] BMC dumping 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" These patches enable kernels to register the addresses of their log_buf pointer with skiboot over the exiting OPAL APIs, which in turn allows debug tools to discover where the host keeps it's secrets. v2: Address Vasant's review The first user of this feature will be the implementation of a 'pdbg dmesg' command to read out the contents of the host kernel log buffer. I've tested this on a romulus system. Joel Stanley (2): debug_descriptor: Claim reserved field for host kernel log buffer core: Implement non-FSP dump region opal call core/Makefile.inc | 2 +- core/dump-region.c | 61 +++++++++++++++++++++++++++++++++++++++ core/init.c | 4 +++ include/dump-region.h | 26 +++++++++++++++++ include/skiboot.h | 2 +- platforms/astbmc/common.c | 4 +++ 6 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 core/dump-region.c create mode 100644 include/dump-region.h