Message ID | 20190221062851.21958-14-andrew@aj.id.au |
---|---|
State | Accepted |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 444l6Z6JKwz9s6w for <incoming@patchwork.ozlabs.org>; Thu, 21 Feb 2019 17:33:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="AvVBsgVN"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="R/FJvmOS"; 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 444l6Z5C1mzDqNZ for <incoming@patchwork.ozlabs.org>; Thu, 21 Feb 2019 17:33:42 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=aj.id.au (client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=andrew@aj.id.au; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="AvVBsgVN"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="R/FJvmOS"; dkim-atps=neutral Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 444l1z5FbgzDqNJ for <skiboot@lists.ozlabs.org>; Thu, 21 Feb 2019 17:29:43 +1100 (AEDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 745E022167; Thu, 21 Feb 2019 01:29:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 21 Feb 2019 01:29:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=FcTesTmHGyyUh nS13navH2hAs0/zu7bgOTTguOmJmjE=; b=AvVBsgVNMLaxjBN7VVF7tL4RWAkJi n8cmpfQjibxOmGdGHrQwR8TcpuzFQol4N/0tByks54G3s8dscf5bPeBSurIypfP+ GL3bEHsdSPtYN521lEhZTacxEBu23cJSItvPHpkaBeuFEKlzIF9+Eb+M+dmIxgLo hu9AfuIZzgl9g+oVCMzxn6GiOblax1eP+o0qdLyE/a8/BqecX174RsgMKIhU8EjU HQ3c1G02tQ1wOBaN21185IaI5/hkeCKMsPpGX+149H/arW3aiqxRQ+a4PWBWCf4r SPCxkZRSQ/Q6LCJRtOnd2NoAKmctnxqXh+PbUw4/2sDZyriKzvcYP9kJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=FcTesTmHGyyUhnS13navH2hAs0/zu7bgOTTguOmJmjE=; b=R/FJvmOS f0B55n0BRE9ovBpLix7qQINYSSIdUGP7IE3NpC1vU7OmrJCPQJN8xpAytUXk7Xat flJbWeM8XW3PGmNUdgtONV5+Blpg9aB06gMgIii4VyY+1eG+oR21wCRnUZwti+Nl hTJdtPaeYJODJTtvvGjEHdxDTGtXF4KD5DatCqn0u/3YUHVyY8pHZoi9V6fVlTvM Jz0rGlsBK1g3guUS5qmkNms+jRvY7tEtXQQs/RekBrL9SI8KCngTl15vYdLVvX/V felPRQaYBUMsyHy9I7jOgoFIceAXxXgrvX6MzVMnGX5g5wwQX/5bpqtgC+ftWQ+2 yhdeJ5l9wze5+Q== X-ME-Sender: <xms:VUVuXBV7kRNAZL2vUdubG8OdU-KUbh0jBNNaxNnOEqJ5WG77MG3I9w> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtdejgdeljeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegr jhdrihgurdgruheqnecukfhppedvtddvrdekuddrudekrddvkeenucfrrghrrghmpehmrg hilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushhtvghrufhiiigv peel X-ME-Proxy: <xmx:VUVuXF0SCokGasq-eZXmAsuv2Bu8ZoO0gKqbeWed4OXiYzf1kIH7Cg> <xmx:VUVuXKUXbQNc5R9x5Lp3RLd1q0cRK6vWFK5ljSBmET9S8sMXBqqMRg> <xmx:VUVuXDDQXD4WOYE93npEq9zScJsz8TDPrHj7gtzfA0-AEM_ucR7xAA> <xmx:VUVuXBhQ0yhaiu5BpaVZaZQ6hjEL63jlNM-cW-TNWfObWle4onqrVQ> Received: from mistburn.bha-au.ibmmobiledemo.com (unknown [202.81.18.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B641E419A; Thu, 21 Feb 2019 01:29:39 -0500 (EST) From: Andrew Jeffery <andrew@aj.id.au> To: skiboot@lists.ozlabs.org Date: Thu, 21 Feb 2019 16:58:12 +1030 Message-Id: <20190221062851.21958-14-andrew@aj.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190221062851.21958-1-andrew@aj.id.au> References: <20190221062851.21958-1-andrew@aj.id.au> MIME-Version: 1.0 Subject: [Skiboot] [PATCH v2 13/52] libflash/ipmi-hiomap: Remove unused close handling X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> Cc: Andrew Jeffery <andrew@aj.id.au> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
ipmi-hiomap: Tests and fixes for event handling
|
expand
|
diff --git a/libflash/ipmi-hiomap.c b/libflash/ipmi-hiomap.c index fdd12d5754e2..7a36449a5d0b 100644 --- a/libflash/ipmi-hiomap.c +++ b/libflash/ipmi-hiomap.c @@ -204,11 +204,6 @@ static void ipmi_hiomap_cmd_cb(struct ipmi_msg *msg) break; } - case HIOMAP_C_CLOSE_WINDOW: - lock(&ctx->lock); - ctx->window_state = closed_window; - unlock(&ctx->lock); - break; case HIOMAP_C_MARK_DIRTY: case HIOMAP_C_FLUSH: case HIOMAP_C_ACK:
Issuing a HIOMAP_C_CLOSE is not required by the protocol specification, rather a close can be implicit in a subsequent CREATE_{READ,WRITE}_WINDOW request. The implicit close provides an opportunity to reduce LPC traffic and the implementation takes up that optimisation, so remove the case from the IPMI callback handler. Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> --- libflash/ipmi-hiomap.c | 5 ----- 1 file changed, 5 deletions(-)