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 E26521FDE12; Fri, 14 Mar 2025 12:45:58 +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=1741956360; cv=none; b=CgcjrKSsYlK5OHgtUFOAzo5yM93W26sQAtG6vQSotaGbbeeB3niw2KpkWdGhZkzGDDnbW1lk98afLYmelerHfm9e9R0KQMP4l5NAG2zYDQkGDrLVGlDfP0+4H2+5/p3Tud4AGiWEZNgBRYn7xCb4OXhShSx9nlEIA3Pa8PLdkzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741956360; c=relaxed/simple; bh=r1m9tl5OY0Fnl65VVIH1QDHSBTTDaQhfScaVcOSgBaw=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dbUfar73JxEPNuQAHEspZA67nIgmbsU1E63jObNQBfch0IHCw0ubV7TijWLzpWDudB3JwIeYXJSkTQVxulzhr8KYgNiWe+OGyrkSoic8HjKwgErJSvt6ALaDzK58MOzksYAMOj03ompefsnp0yLBdUSNEkg2hDgdRjSDJS7J2tg= 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 4ZDkYZ2Ys1z6K5pM; Fri, 14 Mar 2025 20:43:14 +0800 (CST) Received: from frapeml500008.china.huawei.com (unknown [7.182.85.71]) by mail.maildlp.com (Postfix) with ESMTPS id 4DCC014039F; Fri, 14 Mar 2025 20:45:55 +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, 14 Mar 2025 13:45:54 +0100 Date: Fri, 14 Mar 2025 12:45:53 +0000 From: Jonathan Cameron To: Robert Richter CC: Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Dave Jiang , "Davidlohr Bueso" , , , Gregory Price , "Fabio M. De Francesco" , Terry Bowman Subject: Re: [PATCH v2 08/15] cxl/region: Use the endpoint's SPA range to find a region Message-ID: <20250314124553.000077de@huawei.com> In-Reply-To: <20250218132356.1809075-9-rrichter@amd.com> References: <20250218132356.1809075-1-rrichter@amd.com> <20250218132356.1809075-9-rrichter@amd.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; 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: lhrpeml100002.china.huawei.com (7.191.160.241) To frapeml500008.china.huawei.com (7.182.85.71) On Tue, 18 Feb 2025 14:23:49 +0100 Robert Richter wrote: > To find the correct region and root port of an endpoint of a system > needing address translation, the endpoint's HPA range must be > translated to each of the parent port address ranges up to the root > decoder. > > Use the calculated SPA range of an endpoint to find the endpoint's > region. > > Signed-off-by: Robert Richter Reviewed-by: Jonathan Cameron