From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id AD495D806C6 for ; Tue, 6 Aug 2024 15:08:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=mZ40u1dEBMwjLhrAotygwtEMvbT9Xi7W8pHsJN/Bo2o=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1722956899; v=1; b=zmd36FzlaytUehpfd5IA8DTVD4vFuyD97lry+X8esPziKybSUlNSohWoBDPKTRICqL29DB+7 6r9YSjM/DDC5ewi6DazpqaGuHzFL2MmAXGjZgc44E9fbytzBPR5jVq35afB09eXOZQOeq9sAtVs hTQVXOWfCQUe3ZbsWx/70FrYw9/HqqavmkPn0kRQbH7rBUrZXlwB272vuOu1Reu05z1RgtSdxkQ Rj5m5qdLFaBAhe/V1Ov2WBAEA64ZZRawGBbLyzFJdZhepqv15UL8riKfkZkEGrb656wAhI2d/hB vObT0Rs9scIa6xYLnrzYa0m/A+l62adHCNUaUHm987/QA== X-Received: by 127.0.0.2 with SMTP id 5HPxYY7687511xRJlxCYPO7c; Tue, 06 Aug 2024 08:08:13 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mx.groups.io with SMTP id smtpd.web10.736.1722922609829174113 for ; Mon, 05 Aug 2024 22:36:49 -0700 X-CSE-ConnectionGUID: 34V4ujz8SuiqP4SLeNgafg== X-CSE-MsgGUID: yx9Oe1iITVGZcrCMehcXCw== X-IronPort-AV: E=McAfee;i="6700,10204,11155"; a="23831148" X-IronPort-AV: E=Sophos;i="6.09,266,1716274800"; d="scan'208";a="23831148" X-Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2024 22:36:50 -0700 X-CSE-ConnectionGUID: Eje5bs5vSWSVh+7nNdq83g== X-CSE-MsgGUID: NbVGMbMiRNqJGFZQGFfOyg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,266,1716274800"; d="scan'208";a="56061739" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa006.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Aug 2024 22:36:49 -0700 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 5 Aug 2024 22:36:49 -0700 X-Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 5 Aug 2024 22:36:48 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 5 Aug 2024 22:36:48 -0700 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 5 Aug 2024 22:36:48 -0700 X-Received: from PH8PR11MB7022.namprd11.prod.outlook.com (2603:10b6:510:222::15) by SN7PR11MB7995.namprd11.prod.outlook.com (2603:10b6:806:2e2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Tue, 6 Aug 2024 05:36:45 +0000 X-Received: from PH8PR11MB7022.namprd11.prod.outlook.com ([fe80::d9b6:5c8:e2cc:a2a0]) by PH8PR11MB7022.namprd11.prod.outlook.com ([fe80::d9b6:5c8:e2cc:a2a0%7]) with mapi id 15.20.7807.026; Tue, 6 Aug 2024 05:36:45 +0000 From: "Ck, Chitralekha" To: "devel@edk2.groups.io" CC: "Ck, Chitralekha" , "Chaganty, Rangasai V" , "S, Ashraf Ali" , "Ni, Ray" Subject: Re: [edk2-devel] [PATCH] IntelSiliconPkg: Add IgdOpRegion32.h to support IGD OpRegion v3.2 Thread-Topic: [PATCH] IntelSiliconPkg: Add IgdOpRegion32.h to support IGD OpRegion v3.2 Thread-Index: AQHa58H421cpOBb9rkycH0lag4g0ubIZtP5g Date: Tue, 6 Aug 2024 05:36:45 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH8PR11MB7022:EE_|SN7PR11MB7995:EE_ x-ms-office365-filtering-correlation-id: cddbb88c-05fc-4ab4-b548-08dcb5d9c28b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?o8owv7AkALvaH5TQt7rbUZHiKZjaZgzpuLgYY8Y4qcL5rehAQlMtZXbXFHFT?= =?us-ascii?Q?go9Of+xeMqrN3rFvlE8imUykqP3iHRhEaSA6CT4anj92zH8synYgcYG8znUP?= =?us-ascii?Q?Sf708B2zIjOF4lmab/zJ4nl1lsWSinxygw21u6rkpb22xmRIc6CoWqNUh4+E?= =?us-ascii?Q?I1Z2TivPdg3eBHMj04yeO8G91/ACxRS2M5EMAYLR/XE2jCRmtTUiKjTL5mhV?= =?us-ascii?Q?/0InZ5o9VlL9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?= =?us-ascii?Q?iEG3wC0lIq5vjyE+9tEVOARljKna7Et3lGEi/RLQ+ImHf0if973QdCG00wO3?= =?us-ascii?Q?tP/EbNy/ixy7yQSJSDUsKKGsYOudjk8VPKeq/m971a0bmFdqJBd7NoUGkL6t?= =?us-ascii?Q?NbkGNO6gXbQDJSlpzHcJ4lud2NIoMdF0xQs+4a83+87Cwgp8GZRG7YqhXvDJ?= =?us-ascii?Q?sbwEw98vI02OKWD+umY57yr3QpKnsExh0JqEvoOm1gqprVhkBJd2BTsVt/Hk?= =?us-ascii?Q?qM4DL2A=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ecLHCio9hVjf6Nc1g9B2CeHO3isIbhVtCxOrpTtGFnDhv7G6HJFNf/JGwGU2?= =?us-ascii?Q?eaGXNWcN89wMFB9QUCmUMEyK8EFXpyoirRv2f9R3nA4cJa0x03a+XggBDraf?= =?us-ascii?Q?RtLYJ6d/6JJ2yTztNYWq1xhwWBL26dbSP1+Zc58xFPMLXqzGyFNe/v+QglT1?= =?us-ascii?Q?tiEGxrkhMsDeFK0nj4hO4B1i7APh7elfO3RqL5gF5g1RgQ2QI8/RbNE20E7M?= =?us-ascii?Q?RqgPlM1dAUCbuN8GxrUVsg7MU9gEwD5T/lSyGH8K09CmVXb9x33EvGE7DAl7?= =?us-ascii?Q?jeQkWIz90TGLuEH+3cjAHm3trgyS+DgcszwAv2ofmDIwb2dt9+yPT/GhaRQu?= =?us-ascii?Q?4vyY7C+v5U8zTfKeBZgt7xU0j3OBSxbveNE/Ajn+bxQIpBcnMpeIJI+0BWce?= =?us-ascii?Q?1Q0RBkedpg4aClbjxSAcQQBDaRPVwI8yZnW0CURp/3xVuCKehWSwUcUz0STu?= =?us-ascii?Q?GEFZEpfZTbp51km6UmH0mGja8NJ1SoVQPGF1S0b4M3cpnbALJufKRvl4NADk?= =?us-ascii?Q?SUsLrc6sr4rD3iDyhlRVNM64AwnSp5N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YB/0DVjBPNn/sPEshb2AEtSYkPDpvn8FdlLakkmFjzOkxgvJMBJE?= =?us-ascii?Q?5lqXnNRvTHpy/kCdqmIYVpDQdToq4JryJEcC7LpOQYlNBpU7QTpdbuGggNVo?= =?us-ascii?Q?KCMLlUrUnsMHJVKKPoLFv1u2aPzRBuLT8vgwnUnA?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB7022.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cddbb88c-05fc-4ab4-b548-08dcb5d9c28b X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2024 05:36:45.5793 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0or71CBokqYLLZib0day+vf8X2U0taxg1V+XZZubPdvr3ClSk7Bc6jm6cBWjg1aG1+Q9riYCqyzla11N9onChT1g1SpjFVumhrV2TTecqDM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7995 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 06 Aug 2024 08:08:12 -0700 Resent-From: chitralekha.ck@intel.com Reply-To: devel@edk2.groups.io,chitralekha.ck@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: YFVMxjW6ZKFBOURbuuZ0azvwx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=zmd36Fzl; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) PR : https://github.com/tianocore/edk2-platforms/pull/177 -----Original Message----- From: Ck, Chitralekha =20 Sent: Tuesday, August 6, 2024 11:01 AM To: devel@edk2.groups.io Cc: Ck, Chitralekha ; Ck; Chaganty, Rangasai V ; S, Ashraf Ali ; Ni, = Ray Subject: [PATCH] IntelSiliconPkg: Add IgdOpRegion32.h to support IGD OpRegi= on v3.2 - Backlight related fields in MBOX2 has uncalibrated brightness support - Valid Bit added for BCL in MBOX2 Signed-off-by: Ck, Chitralekha Cc: Rangasai V Chaganty Cc: Ashraf Ali S Cc: Ray Ni --- .../Include/IndustryStandard/IgdOpRegion32.h | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/= IgdOpRegion32.h diff --git a/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRe= gion32.h b/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegi= on32.h new file mode 100644 index 00000000..657a1a6c --- /dev/null +++ b/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion +++ 32.h @@ -0,0 +1,58 @@ +/** @file + IGD OpRegion definition from Intel Integrated Graphics Device=20 +OpRegion + Specification based on version 3.2. + + Copyright (c) 2024, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#ifndef _IGD_OPREGION_3_2_H_ +#define _IGD_OPREGION_3_2_H_ + +#include "IgdOpRegion30.h" + +#define IGD_OPREGION_HEADER_MBOX2_VER_3_2 BIT5 + +#pragma pack(1) + +/// +/// Backlight Brightness for LFP1 and LFP2 /// typedef union { + typedef struct { + UINT32 Brightness : 8; ///< Backlight Brightness + UINT32 Rsvd : 22; ///< Reserved Bit + UINT32 Ubs : 1; ///< Uncalibrated Brightness Support + UINT32 FValid : 1; ///< Field Valid Bit + } Bits; + UINT32 Data; +} IGD_BCL; + +/// +/// OpRegion Mailbox 2 - Backlight communication /// Offset 0x200, Size=20 +0x100 /// typedef struct { + IGD_BCL BCL1; ///< Offset 0x200 Backlight Brightness for LFP1 + IGD_BCL BCL2; ///< Offset 0x204 Backlight Brightness for LFP2 + UINT32 CBL1; ///< Offset 0x208 Current User Brightness Level f= or LFP1 + UINT32 CBL2; ///< Offset 0x20C Current User Brightness Level f= or LFP2 + UINT32 BCM1[0x1E]; ///< Offset 0x210 Backlight Brightness Levels Dut= y Cycle Mapping Table for LFP1 + UINT32 BCM2[0x1E]; ///< Offset 0x288 Backlight Brightness Levels Dut= y Cycle Mapping Table for LFP2 +} IGD_OPREGION_MBOX2_VER_3_2; + + +/// +/// IGD OpRegion Structure +/// +typedef struct { + IGD_OPREGION_HEADER Header; ///< OpRegion header (Offset 0x0, Si= ze 0x100) + IGD_OPREGION_MBOX1_VER_3_0 MBox1; ///< Mailbox 1: Public ACPI=20 +Methods (Offset 0x100, Size 0x100) + IGD_OPREGION_MBOX2_VER_3_2 MBox2; ///< Mailbox 2: Backlight=20 +communication (Offset 0x200, Size 0x100) + IGD_OPREGION_MBOX3_VER_3_0 MBox3; ///< Mailbox 3: BIOS to Driver Notif= ication (Offset 0x300, Size 0x100) + IGD_OPREGION_MBOX4 MBox4; ///< Mailbox 4: Video BIOS Table (VB= T) (Offset 0x400, Size 0x1800) + IGD_OPREGION_MBOX5 MBox5; ///< Mailbox 5: BIOS to Driver Notif= ication Extension (Offset 0x1C00, Size 0x400) +} IGD_OPREGION_STRUCTURE_VER_3_2; +#pragma pack() + +#endif \ No newline at end of file -- 2.42.0.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120254): https://edk2.groups.io/g/devel/message/120254 Mute This Topic: https://groups.io/mt/107746663/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-