Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp204848lqp; Thu, 4 Apr 2024 10:39:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrIcgQuzH3NChA2UmMlCNd77W2MIMC3cmcxBkdM2zB5TqXTyEFu7DS5b4NUZpts82xAz8Du3cSYwamjWsp6EV7UmvLhhGLzhJxVqS++w== X-Google-Smtp-Source: AGHT+IE/D0P4TNd0/qWt6vzsX7je4fMnmt/EgDzOFwVW7/KgKuMA1bXL1tK6khhAYY3fxpxclnL2 X-Received: by 2002:a17:906:3747:b0:a4e:26a4:bc2e with SMTP id e7-20020a170906374700b00a4e26a4bc2emr272367ejc.12.1712252359539; Thu, 04 Apr 2024 10:39:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712252359; cv=pass; d=google.com; s=arc-20160816; b=GjfWSRSiRyMWTA0tEKCfTtELqqRqBCoibXO0zhv4xHrlCoLNadHQEqU8DRjM/j6Yus UO5wgaJ5/2lQSvWEN2Z9wff7jdHnOfnr0vPr5iiblNNoOnCnC7FrwZv9LNgMgeycFmNP Gb0sDZG5M30ar/laHvYYa0K/OOStb7vGQmiexa/P/0UONRro532HJfQNndPgkWnbIEXG RYv452WPLLlY4tKkaQgHrteravY2ne264fZeWt3qh7iEzOEpgUc6eocv6IFoBOic9u0w D8xa5nRWbuwOpYdM2PdFoEzeYhBpFwOXIGQEuHKk8bY5iVWoIKYL/bw3x7fCkoYLm7g7 vIww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=mu6JasIbGp2LvTEQQARohxWmS3G35jW8ywOJSAWSHxg=; fh=oNisMWpEcvm2DtsgRWUV2Wser7pCk8sGpM8IY4kS9gA=; b=OeSUELdS2iVej+7lhywle8KdziKdjMCf2tU8viBhOmVRJXJcTJvDqdatntf8jDR0Yw AIU+cHSK9pv0O6r2Hb3NfOyuNf7lwFY43J1cZg/iD/g7Da9N7HkaeCD+oUlGmrc08L9t 1yp7ZCsLfLKvU8ZWfOGPc2yfAx0Yjb2+ApfViKRZx63PYtv2UnNpH0GHPTqCT3DKg/kh fwcHfHKuUGQsgBcP83ZBuoW34Aq5Rl5nAuT9waAsRYVyXOltsT44tu8/jbunlkwT1cGP V41+Vxvby4tK6d36SuFvqGPTv5m5merM3y0/bVMa4vzOSl/KQCXL5H+24gAtepA2Nswc tbnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-131898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z17-20020a170906669100b00a4a37082313si7670225ejo.700.2024.04.04.10.39.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-131898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4587B1F27795 for ; Thu, 4 Apr 2024 17:39:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03C3C12FB06; Thu, 4 Apr 2024 17:39:04 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06D9E10962; Thu, 4 Apr 2024 17:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252343; cv=none; b=snZnLhFsWHEV2nCJk2wr1VMpqaHpV+rsc7EjzDeSjpS6E+brlAXkxKjZVHdmFNEwofTgHLgUx2J6msDMZ4rt7DSSc0j82RNXofjlwGb1CBQgiz3LAIC6jahuhSHlm+LbMaRtgcuxeXW36oBsxBLgM7N8AQpdF0eAqIkdtw1751Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252343; c=relaxed/simple; bh=WWRwiKZ7ojw9erMXt2B4DeqPhUMuv4qbTOVKdIj34nM=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tG8icT1XFiRB5usDnkVfTwYGPsX+ZuGvfbMchyHyP5cNdlm5MiahiF3qUuv8GeUMjSxk2y4RNXuG7QN12RQbMHf2pbz/lNWpTfAAkcfLygcJ5M2R8WPXisV390NoPyNSWoh5oYeaJZT8cMHxHss1W62mU6OZVTg79+vBV2d6QQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4V9TJB5WVFz6K7G7; Fri, 5 Apr 2024 01:34:18 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 40413140A36; Fri, 5 Apr 2024 01:38:58 +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_256_GCM_SHA384) id 15.1.2507.35; Thu, 4 Apr 2024 18:38:57 +0100 Date: Thu, 4 Apr 2024 18:38:57 +0100 From: Jonathan Cameron To: CC: Dave Jiang , Fan Ni , "Navneet Singh" , Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , , , Subject: Re: [PATCH 23/26] cxl/mem: Trace Dynamic capacity Event Record Message-ID: <20240404183857.00007ce4@Huawei.com> In-Reply-To: <20240324-dcd-type2-upstream-v1-23-b7b00d623625@intel.com> References: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> <20240324-dcd-type2-upstream-v1-23-b7b00d623625@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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100005.china.huawei.com (7.191.160.25) To lhrpeml500005.china.huawei.com (7.191.163.240) On Sun, 24 Mar 2024 16:18:26 -0700 ira.weiny@intel.com wrote: > From: Navneet Singh > > CXL rev 3.1 section 8.2.9.2.1 adds the Dynamic Capacity Event Records. > Notify the host of extents being added or removed. User space has > little use for these events other than for debugging. > > Add DC trace points to the trace log for debugging purposes. > > Signed-off-by: Navneet Singh > Signed-off-by: Ira Weiny > One trivial thing Reviewed-by: Jonathan Cameron > +/* > + * DYNAMIC CAPACITY Event Record - DER > + * > + * CXL rev 3.0 section 8.2.9.2.1.5 Table 8-47 > + */ > + > +#define CXL_DC_ADD_CAPACITY 0x00 > +#define CXL_DC_REL_CAPACITY 0x01 > +#define CXL_DC_FORCED_REL_CAPACITY 0x02 > +#define CXL_DC_REG_CONF_UPDATED 0x03 > +#define show_dc_evt_type(type) __print_symbolic(type, \ > + { CXL_DC_ADD_CAPACITY, "Add capacity"}, \ > + { CXL_DC_REL_CAPACITY, "Release capacity"}, \ > + { CXL_DC_FORCED_REL_CAPACITY, "Forced capacity release"}, \ > + { CXL_DC_REG_CONF_UPDATED, "Region Configuration Updated" } \ Tidy up indents and alignment etc. Doesn't look consistent.