Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp504918rwd; Thu, 8 Jun 2023 04:04:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ433MwwlWKjP88TmLjyzk9ePBFjQ5ZN7MWlKWkp2XjNQ0SvXIUtr94vUnQ2wKg6q4lRV0Oj X-Received: by 2002:a17:90b:1a87:b0:259:c257:40b6 with SMTP id ng7-20020a17090b1a8700b00259c25740b6mr2139940pjb.6.1686222286760; Thu, 08 Jun 2023 04:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686222286; cv=none; d=google.com; s=arc-20160816; b=LGOpBSnq6qyFVHto4ivBTItMNqz/pCmLlpAKvvZcr5ioP8fTv7/4qSd4naUrCqCRVf ibtGDIkKPlKBK7+HW5nhPtvb7Nr4BbF6MyWn40k7M4ogoDfa9bSAXN6ThuKdP0SQ47wI Vpab0kK5TygpTX5AEWFpc84H/W5fpqJ4jcEC7fRiWw9hLOd1jtcEs3iITJ7Tmw771R+D BFkqCCrG4BtjY4ny19GluC6c5cVPwAzEypE+CsHDvnrnaLG8ol4va72/ftKjxAVjwDTG cafdLlEXLAR8FBHz/Eggpbw1CUD6SWu042t9J3pratrz4KhKLkb8XEdEI9vWeY2kykRx IQuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=3VMC+rdORRBzL1Xs0BH+TAHgjsG4lw8UbQvcH2Dg5eo=; b=tAV69Do0tbNAGywe9bDah3BY95OXgPrSGE6winLvV69jmH/RfNqcOzeA2YeVXrP5qr Y9qob5LAiAfgwohxCOsEzbHkggNmDZA72bdiaxhi1XusWpwOjwr0uMRDv6dZy8A0qhaz +V04WpJjmq1RtUBGR94mtrmD2j5gYj/wFNUU5M3XvCybCjHAjT9Udw9aM1TQmlRHP/pW JvM/QHlJRMpSGxPPD8+/vWnWJdaE1eX7ELJKCXluQA16J6G22A809WmxLu9Gu3AyNQsK ToTBIIS5cuG416RC3v1VAU2zmG7Xzt0MKUAfZqSVamQOpH13VNubhtr2oYJ/6sQQjY1D Eg1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju4-20020a170903428400b001a63d8efabasi866553plb.445.2023.06.08.04.04.32; Thu, 08 Jun 2023 04:04:46 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235718AbjFHLCB (ORCPT + 99 others); Thu, 8 Jun 2023 07:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235157AbjFHLBv (ORCPT ); Thu, 8 Jun 2023 07:01:51 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 716472710; Thu, 8 Jun 2023 04:01:22 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QcLn81PWhz67fjT; Thu, 8 Jun 2023 18:59:08 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 8 Jun 2023 12:01:11 +0100 Date: Thu, 8 Jun 2023 12:01:11 +0100 From: Jonathan Cameron To: Alison Schofield CC: Vishal Verma , Ira Weiny , Dave Jiang , Ben Widawsky , Dan Williams , , , Davidlohr Bueso , Russ Weight Subject: Re: [PATCH v2 2/4] tools/testing/cxl: Fix command effects for inject/clear poison Message-ID: <20230608120111.00003fd2@Huawei.com> In-Reply-To: References: <20230602-vv-fw_update-v2-0-e9e5cd5adb44@intel.com> <20230602-vv-fw_update-v2-2-e9e5cd5adb44@intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500001.china.huawei.com (7.191.163.213) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, 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 On Wed, 7 Jun 2023 12:18:55 -0700 Alison Schofield wrote: > 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 > Agreed on patch and Alison's comment FWIW Reviewed-by: Jonathan Cameron > > > --- > > 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 > > >