From patchwork Thu Feb 21 06:28:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 1045785 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.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 444l5D5cdKz9s6w for ; Thu, 21 Feb 2019 17:32:32 +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="eX6ALhZC"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="6NvEPFSi"; 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 444l5D4HVvzDqNn for ; Thu, 21 Feb 2019 17:32:32 +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=) 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="eX6ALhZC"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="6NvEPFSi"; 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 444l1m4S0MzDqMH for ; Thu, 21 Feb 2019 17:29:32 +1100 (AEDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3166D21F79; Thu, 21 Feb 2019 01:29:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 21 Feb 2019 01:29:30 -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=RNMBDd4z7tmFW IkcWlZ4TSnWgyypLRtvmNy07/uQqqE=; b=eX6ALhZCaYtCHcw18v1aaeB7d236j +mBqzAsvpKb06wvXDDqghy5uVcvG1UWh2e5hNcQyDwGnylv9IfVHQQ4ZHMLmmuQI id2wZr4GTezPNEXhBLIJm3OKGTceX9To4PtEWKDcyUVKnXWQV9auFkeK7x4KHFqA rT1mQSfp9D7F8dI9PnHCTMKIux7bn4HilZIGcGZt/GEcqKy5njxYxVoon7jDtGLt piKb64UvjnuO+bJJ5RyfvooRpszX77st2e1tDQdVXHdqRw2ddoo1u6WKuNeoFaBK eFiIYXPaGN6Rdcrv9OeouiYiU5lxH1byH6+jGT0SrAXZQU87TJK7NbEaQ== 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=RNMBDd4z7tmFWIkcWlZ4TSnWgyypLRtvmNy07/uQqqE=; b=6NvEPFSi vKPD++IDOYCUadqAsALIQU9kwU+2fvozgdE+wxIfglL6SKYMlBZL1bi3dvSqFNwJ bUHm265uSfkRrpe8bNrWmjMYxx/9rGs7k5ipOprewNycV8pJG11yivixoMpCnncJ gwVxSNCiuFvn9f/0vl6NH+husorexJ1RdHUm8w5IUCViz5Nm8/ya/tlIHVtJr6Kk 6/Awq9KbnT1EB5z14H25IVckkL6d3uSRMZ8/oCjRZQC78UqVGeJMyV70JtjjYxaV 46akj1JxZNpGdUpLl7Z+9+XzwxqKrWy6+qA/A6Jge+fJ/NxJEFQHRr2FCmUQ0BHO HLL2CtKB8EYrRg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtdejgdeljeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegr jhdrihgurdgruheqnecukfhppedvtddvrdekuddrudekrddvkeenucfrrghrrghmpehmrg hilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushhtvghrufhiiigv peeg X-ME-Proxy: Received: from mistburn.bha-au.ibmmobiledemo.com (unknown [202.81.18.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 5F328E4210; Thu, 21 Feb 2019 01:29:27 -0500 (EST) From: Andrew Jeffery To: skiboot@lists.ozlabs.org Date: Thu, 21 Feb 2019 16:58:07 +1030 Message-Id: <20190221062851.21958-9-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 08/52] test-ipmi-hiomap: Ensure the completion code is set 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: , Cc: Andrew Jeffery Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" ipmi_queue_msg_sync() intercepts and implements the IPMI transfers for the test scenarios. In some scenarios we want to return IPMI error codes, so make sure the msg->cc field is set. Cc: stable Signed-off-by: Andrew Jeffery --- libflash/test/test-ipmi-hiomap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c index e2330fe85486..738352cc89f1 100644 --- a/libflash/test/test-ipmi-hiomap.c +++ b/libflash/test/test-ipmi-hiomap.c @@ -164,6 +164,8 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg) } assert(false); } + + msg->cc = cmd->cc; memcpy(msg->data, &cmd->resp, msg->resp_size); msg->complete(msg);