Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp816738rwb; Wed, 16 Nov 2022 08:03:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hpyvFMIDeltI9nyDZRyug1w9/fCvbxUH1mRdvz7BnUVH135ZaQ6RiMSmz/3AgZ/CU2N1+ X-Received: by 2002:a17:90b:3c0a:b0:213:5de3:13e with SMTP id pb10-20020a17090b3c0a00b002135de3013emr4505507pjb.6.1668614621233; Wed, 16 Nov 2022 08:03:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668614621; cv=none; d=google.com; s=arc-20160816; b=P4y/o1o2IRW0qJNfjmNOWcoUbDh8P406UhZEGJXiEbsB+o1UK6YzZ1IBjx+UWnx1Ao Wdr/UBsf14zv/izi0fzWCIMQyxzUzrlbhSdl24NwbW7MuRqwl8gsiEOoz3Tt2poqcHdR eixaL1cX5Ttuq8yaHPd7H3rR3TJ4pwREkYugagXX8ZONZJWH0k/daT5nk+cvZnVxCRS4 xIDdldMPI2t36T3hmXtIR6CezO88lNnKIUQaL2ATz5SSjX6RzJlkkipu/fAtbQxdWXee vZf8WOb5isUtuk06eLz+6XE7cqCdl28dZ/z4fuyJPbPFY1E8XOQ4rC2v4xC4xtHz9tZI kplA== 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=6Bf73Z3yKRYyaKs+ho2dJepcXm5ELDbgwIf6GbRKXYQ=; b=ZYpTlz1sBsMYrh9WjTms1LYG6G72jfJHvyftzViOdA6B91LJQ5xqnrUkMEoR99Kjnv I60L6lLmd0TMj/+PGqeqhQZKvGI7o5+QplER+KKnXxWf8wFk4v1ovIRJuMcB+AGY0vUF cNwSuiLGZtcSpBDxMTd5DF8Od4OBdBEe+urtaP83fBUQNr+Bg6eFYLcceTQPi1TVAAfX qXWWlNxt+3bqUtoPnTuGZx+BCPC2t9LyB4IBWBA7YI0FID7GPa9zT1MMzfvrv9Txeq2G xqv4LL71J5ijOrrhhRyvMVE/5opzCFeda+TWMzIrSPOB7zdxUTp3CGjAESGHlAACewhN ho9g== 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 c9-20020a63da09000000b0047011722bc6si14479816pgh.531.2022.11.16.08.03.28; Wed, 16 Nov 2022 08:03:41 -0800 (PST) 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 S232125AbiKPPbN (ORCPT + 91 others); Wed, 16 Nov 2022 10:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231231AbiKPPbL (ORCPT ); Wed, 16 Nov 2022 10:31:11 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 495D41B1F9; Wed, 16 Nov 2022 07:31:10 -0800 (PST) Received: from fraeml715-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NC6QM2WF9z68735; Wed, 16 Nov 2022 23:28:43 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by fraeml715-chm.china.huawei.com (10.206.15.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 16 Nov 2022 16:31:07 +0100 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.2375.31; Wed, 16 Nov 2022 15:31:07 +0000 Date: Wed, 16 Nov 2022 15:31:06 +0000 From: Jonathan Cameron To: CC: Dan Williams , Alison Schofield , Vishal Verma , "Ben Widawsky" , Steven Rostedt , Davidlohr Bueso , , Subject: Re: [PATCH 05/11] cxl/mem: Trace General Media Event Record Message-ID: <20221116153106.000025d7@Huawei.com> In-Reply-To: <20221110185758.879472-6-ira.weiny@intel.com> References: <20221110185758.879472-1-ira.weiny@intel.com> <20221110185758.879472-6-ira.weiny@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: lhrpeml100001.china.huawei.com (7.191.160.183) 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_H2,SPF_HELO_NONE,SPF_PASS 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 Thu, 10 Nov 2022 10:57:52 -0800 ira.weiny@intel.com wrote: > From: Ira Weiny > > CXL rev 3.0 section 8.2.9.2.1.1 defines the General Media Event Record. > > Determine if the event read is a general media record and if so trace > the record as a General Media Event Record. > > Signed-off-by: Ira Weiny > A few v2.0 references left in here that should be updated given it's new code. With those tidied up Reviewed-by: Jonathan Cameron > diff --git a/include/trace/events/cxl.h b/include/trace/events/cxl.h > index 60dec9a84918..a0c20e110708 100644 > --- a/include/trace/events/cxl.h > +++ b/include/trace/events/cxl.h > @@ -119,6 +119,130 @@ TRACE_EVENT(cxl_generic_event, > __print_hex(__entry->data, CXL_EVENT_RECORD_DATA_LENGTH)) > ); > > +/* > + * Physical Address field masks > + * > + * General Media Event Record > + * CXL v2.0 Section 8.2.9.1.1.1; Table 154 Update to CXL rev 3.0 as I think we are preferring latest spec references on any new code. > + * > + * DRAM Event Record > + * CXL rev 3.0 section 8.2.9.2.1.2; Table 8-44 > + */ > + > +/* > + * General Media Event Record - GMER > + * CXL v2.0 Section 8.2.9.1.1.1; Table 154 Update ref to r3.0 Never v or the spec folk will get irritable :) > + */