Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6138592rwd; Mon, 5 Jun 2023 13:43:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45Ns+J+bcw0qG8wFKbBM2Dobx3EkT6460bNJVDB8+HHsaTV4yhn8S5bmvltSObz70LblgY X-Received: by 2002:a17:902:ee91:b0:1ab:d89:5ef6 with SMTP id a17-20020a170902ee9100b001ab0d895ef6mr3326795pld.68.1685997789611; Mon, 05 Jun 2023 13:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685997789; cv=none; d=google.com; s=arc-20160816; b=OPEC6D41ZEfbwLA21+Dg4fWaO0TArleoxE0uwQG9h7xj4253MTtzg9XcFMo5LGkofN 9Zop7voCRvEANUqcTXt3Zek6oP6j3Z6MeRxJKCUQj76VvJm9EQlp7MErH9LVbyhxJJOK iQkAAaiGzxKII95ouQp2m0hChvXbCfUooHM7yX4ob+ufnn/R0MAL8Q9HTPdVaKMB72MN DFSdBvM8ol0ENVvbYn5j1LtkIUYuJHQLpxEPKow8N0OqJ/NjBQ82vy+aymH+VMNK+EY3 FRHifXP2vwQ7Vpwp3VrwVOQy7KWgAehEO2/jaGdUT4C3ZknFyi0nAWltZDt2qVmtv2zB iejQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=GaD/zRMfsJLJpYxL24duWpwpxp3yjWIc5cJ7pD+KM2E=; b=bpBeuGwQV46GjIPyBrQkKPnvgHzCgaJciJZTrl5wwb72A6Z9DVRMCbRNqR9b2g/4pb SZ3fPKqCroANoF2/VE+dMiuMfUsDbt4kVNY6QOGh6gz8xXXQ9qulyXNQS4Ntw+wv30b0 5BT48JZCi2XKjFuaFw1jbfVxNW4LNm3JTmyulseRyQvAwcp2lrk6IyX/QQ6/m68cFNYc WQ71zQbu8UjcUoXAX9GVm4HhriWy1vRWquijSKhWqS76g5rSRUfEre1sJdNysIrKp0+W mDcdKmRA4BHj4ePmg0nUuvdQemhZmByOvwEee63B2MkFtJyzKMmhloYQFvWRZZCRSi+N CyYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nrnvBANs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a170903231200b001aaed82c2afsi6199842plh.171.2023.06.05.13.42.57; Mon, 05 Jun 2023 13:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nrnvBANs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232741AbjFEUVK (ORCPT + 99 others); Mon, 5 Jun 2023 16:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232412AbjFEUUy (ORCPT ); Mon, 5 Jun 2023 16:20:54 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B29313A; Mon, 5 Jun 2023 13:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685996453; x=1717532453; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=0+TEi7rDE45s/tGzvp1DbBroD1RgvmAgvEMbWroZX+s=; b=nrnvBANsjK084/uhYMgtubk8uf42DbgcZXELctQkctslY1Oh4wEPdaU6 ID+13/XBKjiS3oajJxVBgpZZG8UpNb/AcpDTNYohqHRQ005q6MI/M0R3K fqid/ILR0uwx9AwVkt0fRo4cBI2XfHx9P4MAdVAGSuIuJyZZbZQ5oAAwR sSpEhFeus5kseybLxB87laHFAzJ8MH9FutKBjUeHvaYoL5HNRuRivnbH9 TUE9Nr/WQ3v2WA5VdQNc2k8M0WWx3qyvoJnppLFFfov5tzNlPygkCpFGw z4apRxl/tpoPvjbj6EdwLXcPOlQHbbr8ExcmObkTH39MJ5ky75VlcFGYK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="336093130" X-IronPort-AV: E=Sophos;i="6.00,218,1681196400"; d="scan'208";a="336093130" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 13:20:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="832934191" X-IronPort-AV: E=Sophos;i="6.00,218,1681196400"; d="scan'208";a="832934191" Received: from kmsalzbe-mobl1.amr.corp.intel.com (HELO [192.168.1.200]) ([10.209.52.9]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 13:20:51 -0700 From: Vishal Verma Date: Mon, 05 Jun 2023 14:20:23 -0600 Subject: [PATCH v2 2/4] tools/testing/cxl: Fix command effects for inject/clear poison MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230602-vv-fw_update-v2-2-e9e5cd5adb44@intel.com> References: <20230602-vv-fw_update-v2-0-e9e5cd5adb44@intel.com> In-Reply-To: <20230602-vv-fw_update-v2-0-e9e5cd5adb44@intel.com> To: Alison Schofield , Ira Weiny , Dave Jiang , Ben Widawsky , Dan Williams Cc: linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso , Jonathan Cameron , Russ Weight , Vishal Verma X-Mailer: b4 0.13-dev-02a79 X-Developer-Signature: v=1; a=openpgp-sha256; l=1090; i=vishal.l.verma@intel.com; h=from:subject:message-id; bh=0+TEi7rDE45s/tGzvp1DbBroD1RgvmAgvEMbWroZX+s=; b=owGbwMvMwCXGf25diOft7jLG02pJDCl1zovOGG+8ouP57qlyTsGmmQxzpe4nWK74elt7qVf6g U2qFZZCHaUsDGJcDLJiiix/93xkPCa3PZ8nMMERZg4rE8gQBi5OAZiIjRjD/5x9MjlvOp49fayV fWn1m2ne8+zWuUQpac7n2+4v9cfiTjEjw2P5pGXJDawSm68psRaWCMf7nehlesRSzNe3ZPKnCXo BLAA= X-Developer-Key: i=vishal.l.verma@intel.com; a=openpgp; fpr=F8682BE134C67A12332A2ED07AFA61BEA3B84DFF X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The CXL spec (3.0, section 8.2.9.8.4) Lists Inject Poison and Clear Poison as having the effects of "Immediate Data Change". Fix this in the mock driver so that the command effect log is populated correctly. Fixes: 371c16101ee8 ("tools/testing/cxl: Mock the Inject Poison mailbox command") Cc: Alison Schofield Cc: Dan Williams Signed-off-by: Vishal Verma --- tools/testing/cxl/test/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/cxl/test/mem.c b/tools/testing/cxl/test/mem.c index 34b48027b3de..403cd3608772 100644 --- a/tools/testing/cxl/test/mem.c +++ b/tools/testing/cxl/test/mem.c @@ -52,11 +52,11 @@ static struct cxl_cel_entry mock_cel[] = { }, { .opcode = cpu_to_le16(CXL_MBOX_OP_INJECT_POISON), - .effect = cpu_to_le16(0), + .effect = cpu_to_le16(EFFECT(2)), }, { .opcode = cpu_to_le16(CXL_MBOX_OP_CLEAR_POISON), - .effect = cpu_to_le16(0), + .effect = cpu_to_le16(EFFECT(2)), }, }; -- 2.40.1