Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1193252rwd; Wed, 7 Jun 2023 12:26:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6KfB/wHAW4GY1x5wd3xU1Rw8hkolO00BBYtNu9pKXyGuMgI2pSxDr/0pyRjKo+S/zgEml/ X-Received: by 2002:a17:902:b701:b0:1b0:499f:7a8d with SMTP id d1-20020a170902b70100b001b0499f7a8dmr2577441pls.9.1686165979320; Wed, 07 Jun 2023 12:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686165979; cv=none; d=google.com; s=arc-20160816; b=vXYVJVUh3tArgjTo+tQM5QwBEW9fj6BiUaQv+kT1p3SicMORdwi+QBht3YzQR1eH/3 6wAL/0yPb/RHRteoeysY3TPIsAoXw4xMgdXwRkAbSQCJEkIRxHp4VMdrQWmv8CeNiXMH jdMhFDG0yqtlfGNCCHlHXSZ8szJL9xlM20V3Ck/fObDzquzPooDIFuZJ0kmrAIoBhZYn aFe48s8e9wUbBFp1wNw2e6VgjdbsHHRU7E4Cg0zj9/eViT91fPZAC8ZZlVu6YX4V/OxX 9EI6Jq6KyagKsfYFadxIKzmkCS1nIMrvKkVPSiJ2+CzeL2h6JGD2RHNfyR0KAsjAbNaP GCqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q+WbDGJ3Ra1LfjVMOyH/8PQwp4WbIxB8RXSo82A26Sk=; b=nsQJqRiJn1tyeATrWBisYdzrNp8ebmkhBIqAUgfGL9b5hJ5z0mslqF/RV1Ny4QuLPT MOvnVFiqbxS+Y/jq/H7Z1UGHj/eume4ESKAHFSVMLE/gsecLvaKhyBgAIg9zxiZb7WB6 Cur26HOOFXlyLvCdjuHx/N3BpLWHM54RWibnb6PktpZdflww4kG7gwyAUTVUKVxe2yKm itbhCScf2LuCNvueoSZOriVkXgGJKjb9I0QdZ20tbC/IDFnEh3fRZj5+M4IroX/L9gGu J06iaq/IvTJqe49YUxTvOpeW/c045CwG87+Mq2jpk2CHd9yrH1UMcOEIPiErRfgScbOW fP5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CnI6y377; 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 l1-20020a170902f68100b001b231cb6f2dsi3529303plg.138.2023.06.07.12.26.06; Wed, 07 Jun 2023 12:26:19 -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=CnI6y377; 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 S233143AbjFGTTB (ORCPT + 99 others); Wed, 7 Jun 2023 15:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjFGTTA (ORCPT ); Wed, 7 Jun 2023 15:19:00 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29911B0; Wed, 7 Jun 2023 12:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686165538; x=1717701538; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ebd/5EJZnMmscD9/Cb26uNOTuFkdf4ba2XYKYT0ut5A=; b=CnI6y377SGSgZVjWME/t6cfeC4iFnmXnWPWFY2Emj+IP7CkN9dv5y8uV TA5POn6b/vPfZKLI/QfmhPNR2c9s+gdTGHJ8AnVJcKjMl3QCbgc/VMWbW uytCBzg+9PQjhwf2PTXETzLl6TkLXtgxcW3cEmfuq+7fQQixtkHvjUpQ1 uMEfBkgBSWmx0SO0Ed7FkVAnczpbnFUUae0ilBcl1YPdDrrn+engLf3qv zOiXvW03ENgw5XKMlIN4fpCqCose7xqP756uPWGFqPNJXEGWBNyALdzJy rn0e0UXfETkjnhXVCbCaMcwrxFehAM6yPuNC6XwADvvg7eB8wkS2d+ADd w==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="337447801" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="337447801" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 12:18:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="1039804709" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="1039804709" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.21.116]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 12:18:57 -0700 Date: Wed, 7 Jun 2023 12:18:55 -0700 From: Alison Schofield To: Vishal Verma Cc: Ira Weiny , Dave Jiang , Ben Widawsky , Dan Williams , linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso , Jonathan Cameron , Russ Weight Subject: Re: [PATCH v2 2/4] tools/testing/cxl: Fix command effects for inject/clear poison Message-ID: References: <20230602-vv-fw_update-v2-0-e9e5cd5adb44@intel.com> <20230602-vv-fw_update-v2-2-e9e5cd5adb44@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230602-vv-fw_update-v2-2-e9e5cd5adb44@intel.com> 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_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Mon, Jun 05, 2023 at 02:20:23PM -0600, Vishal Verma wrote: > 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 Hi Vishal, I took a look at this, wondering if we should promote it as a 6.4 fix. I came up with a no. It has no user impact of inject/clear usage in the mock driver environment. Thanks for fixing! Reviewed-by: Alison Schofield > --- > 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 >