From patchwork Mon Nov 4 13:29:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deb McLemore X-Patchwork-Id: 1188958 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 476DNl6QR4z9sP6 for ; Tue, 5 Nov 2019 00:36:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 476DNl3mSYzF07t for ; Tue, 5 Nov 2019 00:36:55 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=debmc@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 476DHz3VsDzF39V for ; Tue, 5 Nov 2019 00:32:47 +1100 (AEDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA4DUO2o170063 for ; Mon, 4 Nov 2019 08:32:45 -0500 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 2w15etr3vt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Nov 2019 08:32:37 -0500 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xA4DSZlb022154 for ; Mon, 4 Nov 2019 13:30:06 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma03wdc.us.ibm.com with ESMTP id 2w11e74472-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Nov 2019 13:30:06 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xA4DU4Iv50397586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 4 Nov 2019 13:30:05 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9DF5078070 for ; Mon, 4 Nov 2019 13:30:03 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 785F27807F for ; Mon, 4 Nov 2019 13:30:03 +0000 (GMT) Received: from debmc-p50.localdomain (unknown [9.80.210.252]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP for ; Mon, 4 Nov 2019 13:30:03 +0000 (GMT) Received: by debmc-p50.localdomain (Postfix, from userid 1000) id 33A056602B1; Mon, 4 Nov 2019 07:30:01 -0600 (CST) From: Deb McLemore To: skiboot@lists.ozlabs.org Date: Mon, 4 Nov 2019 07:29:36 -0600 Message-Id: <1572874189-32264-1-git-send-email-debmc@linux.ibm.com> X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-11-04_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=677 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1911040133 Subject: [Skiboot] [PATCH v2 00/13] ipmi-hiomap: Enablement for Async opal_flash_op's X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 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 series optimizes opal_flash_op's by breaking the buffer sizes into smaller chunks. The IPMI window movements are re-worked to not re-enter OPAL since the poller design is a limiting factor. The smaller buffer chunk sizes allow operations to be re-queued, which allows OPAL to jump back out to Linux to prevent RCU or scheduler issues. v2: Patch 7 fixed irqmask handling Patch 8 removed (the SuperIO handling, misunderstanding clarified) Patch 12 fixed root bug for ipmi timer scheduling Patch 13 added log helpers v1: Patch 1-5 were inherited from previous foundation work which provide base enablement. Patch 6 is the core of the re-work for IPMI window moving and re-queue'ing. Patch 7 and 8 were issues addressed during test which surfaced and needed fixing. Patch 9-11 are additional logging which aides debug where timing paths become critical. Patch 12 enables the IPMI messages to be efficiently returned since re-queues need to be turned around more readily. Cyril Bur (4): core/flash: Allow OPAL flash calls for size equal to flash core/flash: Make flash_reserve() and flash_release() use any flash core/flash: Don't hold flash_lock for the entirety of an opal_flash_op() core/flash: Make opal_flash_op() actually asynchronous Deb McLemore (8): hiomap: Enable Async IPMI messaging lpc: Fix lpc probe irqmask handling hw/bt: Add some more queue debug core/flash: Update some logging libflash/ipmi-hiomap: Add some debug logging lpc: Add logging for hardware diagnostics hw/bt: Allow ipmi regular intervals libflash/ipmi-hiomap: Add helpers for logging Stewart Smith (1): qemu: 1ms heartbeat time core/flash.c | 324 ++++++++++++-- core/timer.c | 8 + hw/bt.c | 8 +- hw/ipmi/ipmi-sel.c | 4 +- hw/lpc.c | 39 +- include/skiboot.h | 4 +- libflash/blocklevel.h | 5 + libflash/errors.h | 1 + libflash/ipmi-hiomap.c | 1131 ++++++++++++++++++++++++++++++++++++------------ libflash/ipmi-hiomap.h | 41 +- platforms/qemu/qemu.c | 9 + 11 files changed, 1246 insertions(+), 328 deletions(-)