Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp711518lqb; Wed, 29 May 2024 08:25:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWURVyQgtaQHc8UEHhserw+H0hEt8yf64zrB1J62dWFyNk/Sk9uaIeF5H6Rk3xoAF+IbaDFL7viY/AoKfn+voRE0cIDAAv5u76oi6XNzA== X-Google-Smtp-Source: AGHT+IE2NqwzBYoOHo5dd911rPlgvdMJZ26iaY9vRVJuLQezX8i+Nh0jAxc6o8YHRj3PiuLY5AH+ X-Received: by 2002:a05:6122:da7:b0:4da:a82e:95f5 with SMTP id 71dfb90a1353d-4e4f0236ab7mr15085092e0c.5.1716996326694; Wed, 29 May 2024 08:25:26 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 71dfb90a1353d-4e4f07d045dsi2785941e0c.239.2024.05.29.08.25.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 08:25:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194358-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; dkim=pass header.i=@memverge.com header.s=selector2 header.b=TRZUOGk8; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-194358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=memverge.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 454301C212C9 for ; Wed, 29 May 2024 15:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EEEE1802C7; Wed, 29 May 2024 15:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=memverge.com header.i=@memverge.com header.b="TRZUOGk8" Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2111.outbound.protection.outlook.com [40.107.244.111]) (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 9F4C71B947; Wed, 29 May 2024 15:25:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.111 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716996314; cv=fail; b=j4sHwgCYxKK6tusoDN1bADF9nmBhowW6mFQCOcKGPnsqA25LCqjqsVPFNDylO3kXB8tsOSI/X6vlwHmPJlRLCDzJKa6g+JnP9MJIPY+k8RH6jo43mZdL5VWrrkrSE1+8vKy9JasL/Bub0bAR/AilPh6d53HZhkWQjPvjEn3pFTw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716996314; c=relaxed/simple; bh=KH2c4x0rbCeNTduzQmJZ8txWN8YsItNWfXJoY1VYlO4=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=JDSFMYIRrgGaiXzBwXbWKJ31OnPrfVFUnX3e7ZpzSpPz88N57QB3qqaNiEJ7NctMVq4KrDv40BrhCbUkTlJdot8iKkJSTc9rl3AVi8Gd3lit9NEwZ0/f/5r6aV4OqOam4m1G+qnrXX2TRkLD/VyiazFg4+15p0usdSXhIXYECRk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=memverge.com; spf=pass smtp.mailfrom=memverge.com; dkim=pass (1024-bit key) header.d=memverge.com header.i=@memverge.com header.b=TRZUOGk8; arc=fail smtp.client-ip=40.107.244.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=memverge.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=memverge.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DxwTMhg0t5wyWhYRC7m5FN/3G21kCUnsW6gEk8z2eS6hF9d0EJzJSMQiuKVK7IaErXTsbW6BsoConG/LiIPrl3EWAUD0AQ6ALhkpSPdtCQO1sV2jRAzHvGaoUFlMZY4M15T1xEIzL+6oYuG5CWHprSqBZYCeAa5i23CVau6qrXUGd1iA3AqTGSJjBrItNh96gBavuZAc5nGn0fscz66icUNsGGDZawxVQyPwJxaTDqNPPRxI442y+eFdneGJUUqOr+Tmmm58en2QMkXy/52Nm4TcoxN6fn62QfT/67g8hZ4Y2J8JlN1YMdiv1K0sjIvZWd2YDF792OT+WTWQ5E0P4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NgOSYUjd83CH8Lz94T09tCCA7wOcti4rZ4mNYFqGyHA=; b=JCyK4N4oI2koBsb91HGCGdU9fQRfRG4jdv9ZLPBAh9K8uMqjn5JrNN4oEfwuDjirD8wG/L6Dy9tfRgpMhUQIQ/u6McbeBg8iuraRLlVYrotWr04cuYqOUqtpOrJxY1OkXdnvKhRpTEAVWFXxVh8allRni/Fv11QjZAYUYxnymLiozk5Pz7YStIYGNPoIWzZSBW+EqUuKqDYyRerGoXvg/xk9dbUaMGhyXnlxIIb6/r5MSfh5t5q8OZ6V85jHz1QqndOZqP1mNNrCuXFskeeFBvbzipCc2X+6KjTQG+lyDZM1kD9Zsus5YiVvbMnS7UFGWWW4JPlPOgY9zefqgkThEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=memverge.com; dmarc=pass action=none header.from=memverge.com; dkim=pass header.d=memverge.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=memverge.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NgOSYUjd83CH8Lz94T09tCCA7wOcti4rZ4mNYFqGyHA=; b=TRZUOGk8Xj8keJA2CdKYWVyYmRxeWG3A/rPIbTmC90TpmH3dXBROvJPloQ8g8KNHvxy2GUBFt4/z55qzRIRUjIg2d3vdKg4fQGs5w7LbbyS0LaoxWTaFylGm1umHfWdV7mgz+ukQ7cOeA2onpelP4QBvIV3DgYThhV9QPFxDdtg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=memverge.com; Received: from MW4PR17MB5515.namprd17.prod.outlook.com (2603:10b6:303:126::5) by PH0PR17MB4623.namprd17.prod.outlook.com (2603:10b6:510:83::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Wed, 29 May 2024 15:25:09 +0000 Received: from MW4PR17MB5515.namprd17.prod.outlook.com ([fe80::a27e:e0a5:9b63:297f]) by MW4PR17MB5515.namprd17.prod.outlook.com ([fe80::a27e:e0a5:9b63:297f%6]) with mapi id 15.20.7611.030; Wed, 29 May 2024 15:25:09 +0000 Date: Wed, 29 May 2024 11:25:02 -0400 From: Gregory Price To: Dongsheng Yang Cc: Dan Williams , Jonathan Cameron , John Groves , axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev Subject: Re: [PATCH RFC 0/7] block: Introduce CBD (CXL Block Device) Message-ID: References: <20240503105245.00003676@Huawei.com> <5b7f3700-aeee-15af-59a7-8e271a89c850@easystack.cn> <20240508131125.00003d2b@Huawei.com> <20240508164417.00006c69@Huawei.com> <3d547577-e8f2-8765-0f63-07d1700fcefc@easystack.cn> <20240509132134.00000ae9@Huawei.com> <664cead8eb0b6_add32947d@dwillia2-mobl3.amr.corp.intel.com.notmuch> <8f161b2d-eacd-ad35-8959-0f44c8d132b3@easystack.cn> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8f161b2d-eacd-ad35-8959-0f44c8d132b3@easystack.cn> X-ClientProxiedBy: BY3PR05CA0047.namprd05.prod.outlook.com (2603:10b6:a03:39b::22) To MW4PR17MB5515.namprd17.prod.outlook.com (2603:10b6:303:126::5) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR17MB5515:EE_|PH0PR17MB4623:EE_ X-MS-Office365-Filtering-Correlation-Id: 67490fab-22f1-4781-1a0c-08dc7ff386a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bE9HSGJWdEFRRE5Wd1FUbTZaVXRSa1RBelZCNlcvL0NYWnAxbjNsZU8rdm9t?= =?utf-8?B?UFhvWFplbzB6RmdYVlU2N3ZhQTF0bWpJWXVGcTQ1bUdlZXp1dFVDbmp0KzRl?= =?utf-8?B?emVPbmJsVkhqcFhvalZ1Yi8vWEVjb3lpTEkwOHdHN3NSUVFmT3dQd1hKWk9t?= =?utf-8?B?ZnhPZjU3K0dpOUUxNlNMK0I4ZjB6VnBFSlJJU3dwZEwwaGJCd08zZVBqT1ky?= =?utf-8?B?MkU2SUptL1BIczllbm82MFk3NDNDRXJOVEFVYkxsd2NTWDJCMFYyNEtE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hRYUFybnVhaDMzdVBC?= =?utf-8?B?dUFkZzQ4eWxSaU84WVZvMnhET1RYd0ZqMm1wdGpsRnNDd212aU5wOUxLLzFU?= =?utf-8?B?ajZEODVQcG1MMWlrc3NUdVBGNktzSTMxVHRnNVB0TjVnTGsrdEdPYjhHSUlp?= =?utf-8?B?b3VVVExkSVB2bmlUZ2JHTEdWT0hBS3k4dE12L1dvemxCaGo0WFUrSGhkNTRl?= =?utf-8?B?WUJrK2g4bGlOU3o0SzViWjZHbENUZEFjekFoTTZLMlFGSWhNWUVkR1EvNUZ2?= =?utf-8?B?Um1nd25rSFAxbnE4M3dtWkF4amJBT3QyM3V4bzRVM0pWZXRFRytqZkFFRFRk?= =?utf-8?B?QlVINVJpU2w2TXlkSWd1ekV3SUxhRzdZN3BrdWpBV3VxeDBwZllvSE1oMllj?= =?utf-8?B?UlMrZ3dzSnA4ejkzRjVyaWtsczF1MTNYSWcvQmN4RVFBRVlmemtRVnVFdW8z?= =?utf-8?B?OHczMGRkUnJKbWRLL1dCRmJiam9OUklzWnhVNlBuOFhVaHdXa29WMFg3ZC9S?= =?utf-8?Q?GZZx6EQiowMPv7b2Cx0e?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR17MB5515.namprd17.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WEtrRHh1bzhkSitPc3BJM1AvWGh5ZHpCZkgxOGFiUmxGc1lydy9LUE50Ulp5?= =?utf-8?B?VVpjakxGdFBHTDVwM2E2ZzR0VkxkSVlRbWlKSll4ZS9YeFdBVmpHWG94QVNB?= =?utf-8?B?RkU5d2kya3IvZ054VnZwZ1VLdGQvTU9taXEwZHNGTzQ0eGFzdFdncThGcHEw?= =?utf-8?B?eTM3W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GR4KzcwVVVQSThBWVdZc1MrdFd5d3NS?= =?utf-8?B?cXJPeEJRQXN4QWNsOVRkUklzVXZ3Yyt2LzEvbUJGRzBoRldrUjViUVc1NEhR?= =?utf-8?B?R1lBQkEyY3E4alJwY0VzQWZLYTNwOERENHU2cUpUKzlYQUU0a0RxVzFiZVUw?= =?utf-8?B?YnR2OW9pNlYydG43OTRPR3Fwb1hMS1Y0SGd5Wlp2S2p1SlZpcFRDR1FMeTN1?= =?utf-8?B?b3c9PQ==?= X-OriginatorOrg: memverge.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67490fab-22f1-4781-1a0c-08dc7ff386a3 X-MS-Exchange-CrossTenant-AuthSource: MW4PR17MB5515.namprd17.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 15:25:09.3714 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5c90cb59-37e7-4c81-9c07-00473d5fb682 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Tdkv43Z5hizUY6haSuXiKQekXQjCozgMEhYOrROnJO1Mm0eAlMMr4ksYYR4ZkYeiJY1wxGXEwKzN7t7xPePVR5Ssjka0BczRZdfGHQYEADo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR17MB4623 On Wed, May 22, 2024 at 02:17:38PM +0800, Dongsheng Yang wrote: > > > 在 2024/5/22 星期三 上午 2:41, Dan Williams 写道: > > Dongsheng Yang wrote: > > > > What guarantees this property? How does the reader know that its local > > cache invalidation is sufficient for reading data that has only reached > > global visibility on the remote peer? As far as I can see, there is > > nothing that guarantees that local global visibility translates to > > remote visibility. In fact, the GPF feature is counter-evidence of the > > fact that writes can be pending in buffers that are only flushed on a > > GPF event. > > Sounds correct. From what I learned from GPF, ADR, and eADR, there would > still be data in WPQ even though we perform a CPU cache line flush in the > OS. > > This means we don't have a explicit method to make data puncture all caches > and land in the media after writing. also it seems there isn't a explicit > method to invalidate all caches along the entire path. > > > > > I remain skeptical that a software managed inter-host cache-coherency > > scheme can be made reliable with current CXL defined mechanisms. > > > I got your point now, acorrding current CXL Spec, it seems software managed > cache-coherency for inter-host shared memory is not working. Will the next > version of CXL spec consider it? > > Sorry for missing the conversation, have been out of office for a bit. It's not just a CXL spec issue, though that is part of it. I think the CXL spec would have to expose some form of puncturing flush, and this makes the assumption that such a flush doesn't cause some kind of race/deadlock issue. Certainly this needs to be discussed. However, consider that the upstream processor actually has to generate this flush. This means adding the flush to existing coherence protocols, or at the very least a new instruction to generate the flush explicitly. The latter seems more likely than the former. This flush would need to ensure the data is forced out of the local WPQ AND all WPQs south of the PCIE complex - because what you really want to know is that the data has actually made it back to a place where remote viewers are capable of percieving the change. So this means: 1) Spec revision with puncturing flush 2) Buy-in from CPU vendors to generate such a flush 3) A new instruction added to the architecture. Call me in a decade or so. But really, I think it likely we see hardware-coherence well before this. For this reason, I have become skeptical of all but a few memory sharing use cases that depend on software-controlled cache-coherency. There are some (FAMFS, for example). The coherence state of these systems tend to be less volatile (e.g. mappings are read-only), or they have inherent design limitations (cacheline-sized message passing via write-ahead logging only). ~Gregory