From mboxrd@z Thu Jan 1 00:00:00 1970 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 84333207DF4; Fri, 4 Apr 2025 16:41:45 +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=1743784907; cv=none; b=ToxofCmcCHQ8AhJIoFWDLslzt9vEwo+s6DgQnn7ULB9y90cpn+7TBbWqovZWDGEVtmKJwrGatGJBG7XEvDf8TQG7JFDAFRkBwYVS2y/3QDC4Nh0Gei5BRvYnCyPtqFwEMOaaXajFjlf290aRp/k452tIlpyCwtV4sqHjd09Z8uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743784907; c=relaxed/simple; bh=IZ45kYWoymWfnMP9RFgRBLjbZ0FC1fR0NE9Yd2GIbhE=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=B7PuAD0Na8lAZ5+Gic+Fq1aXoHcI2EaRBTiQGJqFV82nxCMq1yN1Qno6c4WIN0ociYz5RlXNkoPTPmed+UYQjta3551IzGQle2vYfrmbCcFLHKSGLwAbEo1BIe1LGCWIa9PkoueXPxFI9KqoJxb6yf94cGyJW6DofYyDQRXrcrE= 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.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4ZTkrC2KMyz6L4t0; Sat, 5 Apr 2025 00:40:59 +0800 (CST) Received: from frapeml500008.china.huawei.com (unknown [7.182.85.71]) by mail.maildlp.com (Postfix) with ESMTPS id 2E071140625; Sat, 5 Apr 2025 00:41:42 +0800 (CST) Received: from localhost (10.203.177.66) by frapeml500008.china.huawei.com (7.182.85.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 4 Apr 2025 18:41:41 +0200 Date: Fri, 4 Apr 2025 17:41:40 +0100 From: Jonathan Cameron To: CC: , , , , , , , , , Alejandro Lucero , Ben Cheatham Subject: Re: [PATCH v12 13/23] cxl: define a driver interface for DPA allocation Message-ID: <20250404174140.000073fd@huawei.com> In-Reply-To: <20250331144555.1947819-14-alejandro.lucero-palau@amd.com> References: <20250331144555.1947819-1-alejandro.lucero-palau@amd.com> <20250331144555.1947819-14-alejandro.lucero-palau@amd.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: netdev@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: lhrpeml100006.china.huawei.com (7.191.160.224) To frapeml500008.china.huawei.com (7.182.85.71) On Mon, 31 Mar 2025 15:45:45 +0100 alejandro.lucero-palau@amd.com wrote: > From: Alejandro Lucero > > Region creation involves finding available DPA (device-physical-address) > capacity to map into HPA (host-physical-address) space. Define an API, > cxl_request_dpa(), that tries to allocate the DPA memory the driver > requires to operate. The memory requested should not be bigger than the > max available HPA obtained previously with cxl_get_hpa_freespace. > > Based on https://lore.kernel.org/linux-cxl/168592158743.1948938.7622563891193802610.stgit@dwillia2-xfh.jf.intel.com/ Lets start a campaign for Dan to use shorter msg IDs :) > > Signed-off-by: Alejandro Lucero > Reviewed-by: Ben Cheatham Reviewed-by: Jonathan Cameron