Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2831842lqp; Mon, 25 Mar 2024 10:23:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYpS443/taQ0qWX0hGJO2TX3QHKA8RR3/zdylQe5vN7r2jIrx0ArmIGnm9/ZTTAvxFAxeX3p+1+gpObxTuWPVf2kfJ7/+V14ELkHe30Q== X-Google-Smtp-Source: AGHT+IEZJoVWvklGgi6dJ1DHSGMlt/f5zsf8ckbKfee2An/IhPVOOqS1ZqoRYZ7I4qCc/qY6lKya X-Received: by 2002:a05:620a:1379:b0:78a:5eb3:8e3d with SMTP id d25-20020a05620a137900b0078a5eb38e3dmr847569qkl.8.1711387416464; Mon, 25 Mar 2024 10:23:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711387416; cv=pass; d=google.com; s=arc-20160816; b=g3qPVqqYQq6BzuPtG4qtR+1TPpIvmf+y/dTxH9aSiYnwOR9vio37fBCdl4M/PlzDX3 icKjO4RjznCNeAyeXWzVI94Pqm304i9nhpi6eBD+SwnZGz58JIDZYQz9BMG0pjMl4Cly 5FJ2tHImzQV7VFqu1hynAVhOZ92TbiSZda1/vIvKHELlTaTq0Y5gBJxdPREoZbBf2pmg 3DCO5IXrMp1W5hgd0rIK82CvUGz/quNbz2BTUPxmoLaPhvFbr7CASBDhqY/pdxxsdSJk Tg+2su19bP82Qvaki0rul+Znt2M8Amf841sXCCfrao1srV7z5YCyEoISu7F3u6nB8cFe slWQ== 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=bONU7wENhtV5m1pa9tLjCZTF1W9EwmKDt9bkdaV7aCQ=; fh=oNisMWpEcvm2DtsgRWUV2Wser7pCk8sGpM8IY4kS9gA=; b=GnTUkGZ2Z9mwj5okAQR6cmAv0KuNmI0ZjYo+Rm+6riSnU2RNpMUw5J8dc9i5EFwZhJ 8gaICCWPJzvX+LtlrJwpADY+6NCRzBkGvKA5vHnDX5ySaS1tIzWIBbFiHmEBRRLzlbPZ b3rZgz5CEVIwLVi5V6Ty8wj2PnNqHaafQdPLp1ety83Jq5dDeuigkrEXUKgfh0jmQYJ5 IIaOcZq82tRYx6vkNZ3rjwzAAD5idONvFDiDCej4T9SGZadZoTQ2wMxIq7QXXyEbuA8i e5MfHpDOn+wW0wEqtrshsFTVkIgkp0ondY7t0y+6gZe9Y/1BTPAjC2ht0Uxi0FDQ4MdG OvRA==; 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-117441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l8-20020a05620a0c0800b00789fdd09e15si5725699qki.444.2024.03.25.10.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-117441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117441-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 30A731C3D3F0 for ; Mon, 25 Mar 2024 17:23:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB95412D1EE; Mon, 25 Mar 2024 16:11:12 +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 47B5579D3; Mon, 25 Mar 2024 16:11:10 +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=1711383072; cv=none; b=UlDx8gpJ8LBt9IEjacuIvv0OszUA0OEQimGdTJ2J/JSVYoQTYfn85rowSzIOym14g5p/SXKyki9U9gZ+4mU6XBaGGARs4YUo7o1Qls/FAJjwlvNKuFrUFNcKu4jVLZQPr1V4veybPhAzHdi2sfI05uGekDoimNMk6PRagw4Hb4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711383072; c=relaxed/simple; bh=e6PTf8m/SdwclEKU0xg7xc3gQO12sSEwiHUQ7QTw0os=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dr1X4VWX4pcEibZKqJHgioS2nU0K1xrenyuPRgCpYPz4f5afTZbmtEiXaMufXivy2MRJoWD4MW4y50LtomdP5C5EPVtBbg9jbwsB4/vEI13NqMiq9w+LfM4vaeCdN5TXPBboWLZVg52AnwiDO/KjkWaJrn5TPhDKmfEwG1O3I5Q= 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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4V3Hql1KNtz67CxC; Tue, 26 Mar 2024 00:06:43 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 9BC5E140D1D; Tue, 26 Mar 2024 00:11:07 +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; Mon, 25 Mar 2024 16:11:07 +0000 Date: Mon, 25 Mar 2024 16:11:06 +0000 From: Jonathan Cameron To: CC: Dave Jiang , Fan Ni , "Navneet Singh" , Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , , , Subject: Re: [PATCH 01/26] cxl/mbox: Flag support for Dynamic Capacity Devices (DCD) Message-ID: <20240325161106.00006041@Huawei.com> In-Reply-To: <20240324-dcd-type2-upstream-v1-1-b7b00d623625@intel.com> References: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> <20240324-dcd-type2-upstream-v1-1-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: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) On Sun, 24 Mar 2024 16:18:04 -0700 ira.weiny@intel.com wrote: > From: Navneet Singh > > Per the CXL 3.1 specification software must check the Command Effects > Log (CEL) to know if a device supports dynamic capacity (DC). If the > device does support DC the specifics of the DC Regions (0-7) are read > through the mailbox. > > Flag DC Device (DCD) commands in a device if they are supported. > Subsequent patches will key off these bits to configure DCD. > > Signed-off-by: Navneet Singh > Co-developed-by: Ira Weiny > Signed-off-by: Ira Weiny This aligns with similar existing code etc and the opcodes are right so There is a vague argument that maybe we shouldn't claim to support the command in the debug message at that point in the patch set, but I don't think we really care either way as expectation is this set should go in all together. Reviewed-by: Jonathan Cameron