From patchwork Wed Nov 6 17:22:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deb McLemore X-Patchwork-Id: 1190572 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 477YQh6JGLz9sPv for ; Thu, 7 Nov 2019 04:28:12 +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 477YQh5H4CzDrL5 for ; Thu, 7 Nov 2019 04:28:12 +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 477YKW5x9wzF21G for ; Thu, 7 Nov 2019 04:23:43 +1100 (AEDT) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA6HNWcC085873 for ; Wed, 6 Nov 2019 12:23:42 -0500 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 2w41wthd0a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 06 Nov 2019 12:23:37 -0500 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xA6HKDcG014242 for ; Wed, 6 Nov 2019 17:22:36 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma02dal.us.ibm.com with ESMTP id 2w41ujge5k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 06 Nov 2019 17:22:36 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xA6HMauL37618108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Nov 2019 17:22:36 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F1B40B206A for ; Wed, 6 Nov 2019 17:22:35 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D5B62B2066 for ; Wed, 6 Nov 2019 17:22:35 +0000 (GMT) Received: from debmc-p50.localdomain (unknown [9.41.175.242]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP for ; Wed, 6 Nov 2019 17:22:35 +0000 (GMT) Received: by debmc-p50.localdomain (Postfix, from userid 1000) id 56FD366023D; Wed, 6 Nov 2019 11:22:34 -0600 (CST) From: Deb McLemore To: skiboot@lists.ozlabs.org Date: Wed, 6 Nov 2019 11:22:19 -0600 Message-Id: <1573060953-6464-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-06_06:, , 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=784 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911060168 Subject: [Skiboot] [PATCH v3 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. v3: Patch 6 added more commit description to address comments Patch 7 added more commit description to address comments 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(-)