From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 934A32E6CD9 for ; Mon, 2 Feb 2026 18:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770056623; cv=none; b=K+r/2GVaktHBSAOC3npDLntDouI8A3g4atakWuKkFKpe0jp8QyNlPWZEvj2F1ZU8NClnafTc/Q//hUsR6NKRrFSUtg54ZLjq88oHm1qWeh+Eu0s7fMehwgUSoi8rXt83KmYQ6+eNgOmR36oT7c4ab5vy+wUbcVsbQhNREYt1hm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770056623; c=relaxed/simple; bh=ADF7ZKoCipxDP6UUmIGW/IPztV2DncS/DM4/x+XvBnQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VD2L4RYnXFkCke7mNFPufB0Q6BLoqIPvS6hVUfndgn6RZayaUAzOjv3mpyabNVQzKEi2eICDTpY7BZWbE4PO9dIqLFPjI5tYRkb5dOHM16oZysRhDKH4umXxm6lgCel2qwV/bNY9+4th48gbWPZeWl49pO/PIvwL51Yk0xmc5sU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=InR81NOc; arc=none smtp.client-ip=209.85.219.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="InR81NOc" Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-8947e17968eso54373276d6.0 for ; Mon, 02 Feb 2026 10:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1770056619; x=1770661419; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MqsmEA1l4K6M349TDpqaFt5arK8yfZiMH/3re7GUwy0=; b=InR81NOc+P/iyRLUJkh38ul0bKeuarPFPiVT8NeFHBjhUd6Vmo6R/C9sN5zRQ28C8M hEhdNiuaxy6eA5E4vV7dHMOTxed3M8H6zFl6luU8RTKoll1Y3WqFSnV86JTTkuCuL3jD nzt3513DmVtY0QTBkhvh9DMPoVGO5E1o8hbpd0P3sU5NQdQHBmGp2BwRH0p4IdJoALv7 N2tDwHK9yxaq5iqwv+4itd6iPtnz+/ziKgHAPec2W545IzfQRlR2LEHwsR6DOnF2Pmxx S+WGypfw7xh3HvuRDMsP9+ZTeSR5PkQLTaKfuMKd3sdjHJ4kB0zzvrvDgrFBjTmBPp3F J2QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770056619; x=1770661419; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MqsmEA1l4K6M349TDpqaFt5arK8yfZiMH/3re7GUwy0=; b=AAKRYjVwDJQKUbuP+cveCwb00TewDbQdrhqvgOPhGt5T0/S+ieGcOzUCN1JBEY74bp 0JJ3pex1+L1OByWSeis0prrxX4UUhvVThwF8YmL7VW4HlDshgx/L4N5VpTlkIYOW6g6F 5FjTs5QGBt5SuqqGimebn2DjRc8s8sC6tSP0y5b8qRVwvfoYoq4pjswIeqJ0nt0MSYBm CK+LkDTI78DJGCcwojwOp3aLTR7Ma62Mp3Pi8JmYVo5ytgEwVhNnygeju6cijmoVXzfy 69Rn6OomtUxNXfZmPhxB3RZP9f8S6weH/AGEC0Aa9Y4cYjHlz4HL2PUQHV7xxS5yihEU YOZQ== X-Forwarded-Encrypted: i=1; AJvYcCXJ+P4g6MOLU+1eY4Ku12JU3uLU9RXDtzkvm7txalIvo0l8BBLX12nBuIICPnd+R0hxtnM48qObAH5h+/Q=@vger.kernel.org X-Gm-Message-State: AOJu0YyHckY+lpooscIChu7XVzORmmi36tbrewuw5sdtnXqkpUuZcgMc oMKpfLx+VzL/RopXfAk7F5hw0Ym4lMMk9VkSn9gzcrswgDNDdOuhqdCKT9P8jmO2tOQ= X-Gm-Gg: AZuq6aKywjtdGXVbcZ7lwIomb7ykkedmS5gukpmHmhG46kJAd+u8C+cocqvNmcvi0pD +VNsNRScVpmAtmUN2t5sJ/2M5r6XiZ0+AI3TVzfHhA3wM1/hDBuL29+OXz1tR4j8NrX9YN21Q6n 8zUuiYA0GaOCbBVxPibxsU5YNKg9HQBr2mpFLmCTWabSk0GYZI22UUVXE1B1Ye3oNAsSYwtGfsS RtzIIuGw90y8Zr5BaFc25xcm58tnjOckGQNsmzslIoVDuffUWPtpAJgeJKYmAcOOfKI/u7q9VQv yn5rj7JCx6WCLI6N99QAMt4rwuNCxCCi3+tteWp7CKHhcGYV0TyVtSGLG83Eqggzru8xVGdzya0 F3+xfczjfEyEkeCA5AhYhuUwV1Q+kSjJ6rb4eTaIHPwtL00WSh4do6nRRifnYByO88MankH2QCm NaCg3/ZeQfGH73wQQutDhR2OrxYYS0zy1Uxsn3nuEAtEKLc5JSHmhtUpT2+QADNvlprgaahg== X-Received: by 2002:a05:6214:e87:b0:894:6558:58f7 with SMTP id 6a1803df08f44-894ea167cbbmr166333016d6.63.1770056619523; Mon, 02 Feb 2026 10:23:39 -0800 (PST) Received: from gourry-fedora-PF4VCD3F (pool-96-255-20-138.washdc.ftas.verizon.net. [96.255.20.138]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c71b859eaesm1089477985a.46.2026.02.02.10.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 10:23:39 -0800 (PST) Date: Mon, 2 Feb 2026 13:23:37 -0500 From: Gregory Price To: Jonathan Cameron Cc: linux-mm@kvack.org, linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@meta.com, dave@stgolabs.net, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, dan.j.williams@intel.com, willy@infradead.org, jack@suse.cz, terry.bowman@amd.com, john@jagalactic.com Subject: Re: [PATCH 8/9] cxl/core: Add dax_kmem_region and sysram_region drivers Message-ID: References: <20260129210442.3951412-1-gourry@gourry.net> <20260129210442.3951412-9-gourry@gourry.net> <20260202182015.0000325b@huawei.com> 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-Disposition: inline In-Reply-To: <20260202182015.0000325b@huawei.com> On Mon, Feb 02, 2026 at 06:20:15PM +0000, Jonathan Cameron wrote: > > > > +/** > > + * struct cxl_sysram_region - CXL RAM region for system memory hotplug > > + * @dev: device for this sysram_region > > + * @cxlr: parent cxl_region > > + * @hpa_range: Host physical address range for the region > > + * @online_type: Memory online type (MMOP_* 0-3, or -1 if not configured) > > Ah. An there's our reason for an int. Can we just add a MMOP enum value > for not configured yet and so let us use it as an enum? > Or have a separate bool for that and ignore the online_type until it's set. > I think the latter is more reasonably, MMOP_UNCONFIGURED doesn't much make sense for memory_hotplug.c ack. ~Gregory