From patchwork Thu Oct 1 07:08:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1374878 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 4C24792CZwz9sVM for ; Thu, 1 Oct 2020 17:11:49 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=fcYkfRqp; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C247904vMzDqTh for ; Thu, 1 Oct 2020 17:11:49 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (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 lists.ozlabs.org (Postfix) with ESMTPS id 4C24720thrzDqTb for ; Thu, 1 Oct 2020 17:11:42 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=fcYkfRqp; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4C246y72d8z9sVL; Thu, 1 Oct 2020 17:11:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1601536302; bh=e3OZmmr9VZb/oZF1HN/w8GFZO50VczqzwGnnJz8KzjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fcYkfRqpLNCQSWMNg3pKRWya2mjsKQd+yjNmpm8XV4hg8zbq/Skx7yw1/kYslqaTG AkcXnvv0/gvb44cjCQ/VTciMcJ3rpo2QbOY5vAvJu4wRB+8/SK4anUmgquZfk2ra1n Z2LMUwvHzvUTeiySPB1rVGbWW+gzCuCGFPuCC0c2JZR0/SlKKUUfm2wcRJXlcj2LOx Ucq0mJS57AA8HSCnufYMd6RL9vRVn3nr6Jc4J9AfNTZPIcBFOpBjRwanYrInu9fWPm hY/x0UTL5h1GC/TMKm89t/oOBf3E8wIBtDHgonXTGSPm0aRlOzHTt1yOrDJDaoU0z9 cNGLAlSppQ0mQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 1 Oct 2020 17:08:06 +1000 Message-Id: <20201001070814.102735-13-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201001070814.102735-1-amitay@ozlabs.org> References: <20201001070814.102735-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 12/20] libsbefifo: P10 dropped put_ring_from_image chipop X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Joel Stanley --- libsbefifo/cmd_ring.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsbefifo/cmd_ring.c b/libsbefifo/cmd_ring.c index c1c0ec2..44e8eff 100644 --- a/libsbefifo/cmd_ring.c +++ b/libsbefifo/cmd_ring.c @@ -178,6 +178,9 @@ int sbefifo_ring_put_from_image(struct sbefifo_context *sctx, uint16_t target, u uint32_t msg_len, out_len; int rc; + if (sctx->proc != SBEFIFO_PROC_P9) + return ENOSYS; + rc = sbefifo_ring_put_from_image_push(target, chiplet_id, ring_id, ring_mode, &msg, &msg_len); if (rc) return rc;