Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp209880lqp; Thu, 4 Apr 2024 10:49:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6SfkZXrVkJaep00hRDFzA3buyXFfsP59HzfUE8kHT0vyz00aTWn6Yc1m02EJjCl5+SFuFmmKsZRvVmWG2s/HzUhmfc+ZL6v+sgFvgyA== X-Google-Smtp-Source: AGHT+IE7osvU5w5/eBedvsDuQ70VvnF1BhOAt50LZgS9kI8Y63Wu5E5OTLDb3dzI+13Ct6CR/fgR X-Received: by 2002:a17:906:3d1:b0:a4e:618e:649e with SMTP id c17-20020a17090603d100b00a4e618e649emr307686eja.20.1712252961383; Thu, 04 Apr 2024 10:49:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712252961; cv=pass; d=google.com; s=arc-20160816; b=PbnTTFlov3GLI90ipfEdoynbGJW3XEP65qTIhtRaI+vvEhl8RRZbzCpQ0mlftnzkPv QuJ6bk3TjJPi5ceaaBupCNCpXVtOYjFT46FQQ9MEdwEWtgfz9q/6TXqPlPWukzb3ejML 3s38abKwTMxm10yqP+EoN6KXgKLwm6bPpRiHbRWAup9pioRJRaHB1ZTKZeig68bR0m3p aMItPECXdsSV2vng9j02GGx1k6cSvIrclBSWVrKC95eRAMgDp3CmNubgyk87DwZ7sWHF tLyLZG1tub4d+qOIG+TNyPUfypA/Aa71c2CuQbj1SQbDhaxPg2ab9CIwnR+fltv0n/9y K/gA== 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=gGMHoJ1/2yoP5IxEzLVDrf685WKGew9cg8opX1mTBn0=; fh=r0NEeLS9uyU7HiHboNkTIWSc6B5oi0Lpk4ClN3yaSf4=; b=Ewcm+L7CrfuuPG5NYSOYrUQbEPHEcxiPh0312lZ350KsgAxhz7iCKUIzMZM54zjjdr JZb6zmOw4IvN8Q1K4lX1j6vCHGhRyM6C8sLldfM8tGZ6kHj9YmNRaEuyCkVL63qLon9O SpgsJkqr4NoX+fOp/RftukL5D0Z8gABTYdcv+M7bSKsrNvoIOSBF9akb/zgV0rGXGuna imoLRV5hu/O/h3OxOcfC6d8jojfNDOJvG/XVh2tAWCHYb22YgiwD5dU2AhXwhO245W+n D0f9RcHA77nlia71NtMtSqHKth5yv4lD1QtFTfruf50/c4E81STEufhYrym9AOHqPVMk TvcQ==; 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-131911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131911-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 bt9-20020a170906b14900b00a4750a78ab2si7901025ejb.941.2024.04.04.10.49.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:49:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131911-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-131911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131911-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 1FD431F2729C for ; Thu, 4 Apr 2024 17:49:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 122A012FB20; Thu, 4 Apr 2024 17:49:10 +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 9FFBC12CDAE; Thu, 4 Apr 2024 17:49:06 +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=1712252949; cv=none; b=iZPk+ea/8e0ITs44WubCCqFmu/WT544+ullBuEjabgJ7xmIkpBkOTiFDYvmFNIu73UT0ZaC1Sd75VbcCsofJPRtgm1d2YL+shbK3k8XRePRTIGMljoPA53zHU61YvpxKHisdFKQ8KvQNJAsw/Y42vSqKfxX4cP3d/4W04BxNcYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252949; c=relaxed/simple; bh=H8se5+kd6ksm1gohnXEwyKYq8XehoQCbyLFZucTxlPM=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RW16NgBWy8Q2w7ZeOj8EngPtVrErQj0FRIhytkKgOe7B8SPKjzPBoui4AdKUEyw+OHnH0KNdrVUFBc1rOJO3U7wLNxEu/V1HvpcCulgM5abmavHLb2bRNncBWMeL4OJ2kgzM8zeEgxUPpaGcS5zdrmlzUrS7xvGF0I0e/33lt2k= 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 4V9TWq47Sfz6K6wd; Fri, 5 Apr 2024 01:44:23 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 0E9A21400D4; Fri, 5 Apr 2024 01:49:03 +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:49:02 +0100 Date: Thu, 4 Apr 2024 18:49:01 +0100 From: Jonathan Cameron To: CC: Dave Jiang , Fan Ni , "Navneet Singh" , Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , , , , Chris Mason , Josef Bacik , David Sterba Subject: Re: [PATCH 00/26] DCD: Add support for Dynamic Capacity Devices (DCD) Message-ID: <20240404184901.00002104@Huawei.com> In-Reply-To: <20240324-dcd-type2-upstream-v1-0-b7b00d623625@intel.com> References: <20240324-dcd-type2-upstream-v1-0-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) > > Fan Ni's latest v5 of Qemu DCD was used for testing.[2] Hi Ira, Navneet. > > Remaining work: > > 1) Integrate the QoS work from Dave Jiang > 2) Interleave support More flag. This one I think is potentially important and don't see any handling in here. Whilst an FM could in theory be careful to avoid sending a sparse set of extents, if the device is managing the memory range (which is possible all it supports) and the FM issues an Initiate Dynamic Capacity Add with Free (again may be all device supports) then we can't stop the device issuing a bunch of sparse extents. Now it won't be broken as such without this, but every time we accept the first extent that will implicitly reject the rest. That will look very ugly to an FM which has to poke potentially many times to successfully allocate memory to a host. I also don't think it will be that hard to support, but maybe I'm missing something? My first thought is it's just a loop in cxl_handle_dcd_add_extent() over a list of extents passed in then slightly more complex response generation. I don't want this to block getting initial DCD support in but it will be a bit ugly if we quickly support the more flag and then end up with just one kernel that an FM has to be careful with... Jonathan