From nobody Fri Apr 4 04:24:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1742240992; cv=none; d=zohomail.com; s=zohoarc; b=XPx6ozHFD7Fnuk9Bvm1vX5oPbs61t8npnawHdYV+AY0yL7Z9nyFQdi5ynKZKSgswTME4ZVpQ2/hwL7gge5FxMBz47toRreLEtVIMGY4fM7k/iGdWe5xGYeITOtoGoDrHBBjKv+SVHGkDOeMn/dZ5G7fbSJQF3RrZwmdqZjkd37E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742240992; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Rk6IJKvkiGFyR1sJ6s9cHj4os4KvgEvO+mrUOM2U7lM=; b=ga86xPATWtP9/0HMpKO2NybWj0iPZhuRSFNBrmuF/FSZT4xETvgg+J2Wrz8s0Y8F3+4Qae7BgUG4bsRHnw3Ghd78jZoOF3NMS8ZKv+eVT9ZVaWHMRTLl3B32dcxb5GhZ78ycPsdufTOOJs8HIf9xR0NvbINd1n+B69YGWdK1+i0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742240992882495.49374738276003; Mon, 17 Mar 2025 12:49:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tuGSG-0007ic-QO; Mon, 17 Mar 2025 15:48:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tuDZ9-0003WY-89 for qemu-devel@nongnu.org; Mon, 17 Mar 2025 12:44:01 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tuDZ3-0001Dj-TZ for qemu-devel@nongnu.org; Mon, 17 Mar 2025 12:43:50 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-225e3002dffso45153105ad.1 for ; Mon, 17 Mar 2025 09:43:43 -0700 (PDT) Received: from deb-101020-bm01.dtc.local ([149.97.161.244]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-225c6888461sm77810085ad.23.2025.03.17.09.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Mar 2025 09:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742229821; x=1742834621; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Rk6IJKvkiGFyR1sJ6s9cHj4os4KvgEvO+mrUOM2U7lM=; b=DryDuqnDO/lKsoZ5KCvGVpNX2Y5ObvBvei8DM1J9wYUM6fOsDPSyhgIy+4FO6nwaIx XNYENlPX6IwumK5ez5QOI83CBQdto68wM8eHJB5Pea+BN6VyE0sjBmEGGuLRDbMQrE4a GlEhxmdfDF4C+4HK4UGcFOs1ZN0rz8KVdn+esfV0erViPR+atySf/t0SC+Xg9ScLk95O H6yAxSFG92FL7sxEaRi8e6iQPI1ofE8TkhzgNS/F+Web1DzkUxnH/BBWUbdzGojMS+h4 GH8cAJT6JqcEhAGA89WivzbxQ2PPMVQFKkySVJhUVXffX74ahTjC0DEthiFSEaaS+VmN qoQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742229821; x=1742834621; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rk6IJKvkiGFyR1sJ6s9cHj4os4KvgEvO+mrUOM2U7lM=; b=S44iM4+dvRyjD4N8jVlsPJr040gJohFsXg/32tl+FCEb/F6+06j6Stxah5QxeqXcNV yhvngwCsHYrzZalNlpGyUCavOShR6IVxhPN+6hewr2RHniVMFmfqjqhIgKwpCVEFMC2W 1hgeG5yASe5UYxlbQpzezd8wArCNJfKtjC7H2DvzW3juRuGR8K5Ahl4DnTQ12Otzz9Nz Lvz8M6VThZKyijymwW6M9jOnr41aNT2JBTgF/qRK4V7o+BN9SafQ+b5SzHlU3TmY9zIM LchT8hW/HwW2IO01GWNnu2moIIQOnur+KhcOGUUW3rifY/lCqUJl0cAtynFPCyspNd6n kEzg== X-Gm-Message-State: AOJu0YxhlvMLMB0rq0iCdlmDrcCX998vRW7yrhOporbDyE0zOV8f7cIr QTOoZHa0t7pN0tokw5yBLnz74KHxtqZCR8vhZ3rj3v2XKb9/aPCJjvF5Bw== X-Gm-Gg: ASbGncsqtvxlPo9jT/khGZBgwiehk5fnLnZP5jVPPShxZIhwUNfq9uR6h0iVQgXPkSV sWR2uFGKBztBqRGtHqG9n3RADgH6udP1+843kcY94iBJOpQXeaCTbm3jeQiaECut1YWWVCLSKI9 sPLFERqiP8wPmCJrWrYBIajCpTYwH+o1HcEl6iAw1THPmCAP5bGfC3DUMeeV3mp9Q/+zDyj+2U5 lInUgNp7p49jjj6R+ctHNo4n/h9gjHrpga4DrIT1wOD/Da3JQsRBVPzBHUJ4DL897qUjeW/S7zb gB5saDG8Mm6ZWgccQ26CbAEtgw+R1Ftyia7l4VjWchyE/2jtxLWktupaSuSp7FztvQ== X-Google-Smtp-Source: AGHT+IHJF7qFLM+Pmkm+5K3dO4fVWd4hfqjmxUtHCW9DjeicaQbB8loeNTkjtv4HsY3E1p8uNG/mgg== X-Received: by 2002:a17:903:19cf:b0:223:3396:15e8 with SMTP id d9443c01a7336-2262c562623mr3466815ad.22.1742229821467; Mon, 17 Mar 2025 09:43:41 -0700 (PDT) From: anisa.su887@gmail.com To: qemu-devel@nongnu.org Cc: jonathan.cameron@huawei.com, nifan.cxl@gmail.com, dave@stgolabs.net, linux-cxl@vger.kernel.org, Anisa Su Subject: [PATCH 3/9] cxl/type3: Add dsmas_flags to CXLDCRegion struct Date: Mon, 17 Mar 2025 16:31:30 +0000 Message-ID: <20250317164204.2299371-4-anisa.su887@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250317164204.2299371-1-anisa.su887@gmail.com> References: <20250317164204.2299371-1-anisa.su887@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=anisa.su887@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 17 Mar 2025 15:48:18 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1742240993607019000 Content-Type: text/plain; charset="utf-8" From: Anisa Su Add dsmas_flags field to DC Region struct in preparation for next command, which returns the dsmas flags in the response. Signed-off-by: Anisa Su --- hw/mem/cxl_type3.c | 2 ++ include/hw/cxl/cxl_device.h | 1 + 2 files changed, 3 insertions(+) diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c index 731497ebda..452a0c101a 100644 --- a/hw/mem/cxl_type3.c +++ b/hw/mem/cxl_type3.c @@ -237,6 +237,8 @@ static int ct3_build_cdat_table(CDATSubHeader ***cdat_t= able, void *priv) ct3d->dc.regions[i].len, false, true, region_base); ct3d->dc.regions[i].dsmadhandle =3D dsmad_handle - 1; + CDATDsmas *dsmas =3D (CDATDsmas *) table[cur_ent + CT3_CDAT_DS= MAS]; + ct3d->dc.regions[i].dsmas_flags =3D dsmas->flags; =20 cur_ent +=3D CT3_CDAT_NUM_ENTRIES; region_base +=3D ct3d->dc.regions[i].len; diff --git a/include/hw/cxl/cxl_device.h b/include/hw/cxl/cxl_device.h index bebed04085..81b826f570 100644 --- a/include/hw/cxl/cxl_device.h +++ b/include/hw/cxl/cxl_device.h @@ -609,6 +609,7 @@ typedef struct CXLDCRegion { uint8_t flags; unsigned long *blk_bitmap; uint64_t supported_blk_size_bitmask; + uint8_t dsmas_flags; } CXLDCRegion; =20 typedef struct CXLSetFeatureInfo { --=20 2.47.2