From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=68.232.149.220; helo=esa2.dell-outbound.iphmx.com; envelope-from=mohammadyounaskhan.p@dell.com; receiver=edk2-devel@lists.01.org Received: from esa2.dell-outbound.iphmx.com (esa2.dell-outbound.iphmx.com [68.232.149.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C867E21B02822 for ; Wed, 15 Aug 2018 23:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1534400924; x=1565936924; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=8B0Niob4K9S1/Jt28PJIF9y/GwcKwZ/YQ4lnJe0QQos=; b=i87ron27HEK/MEs2OTrYFdqatc87SmnWFlz7FgPrJ286Ft5NgDRqLdqV Xr+ldSYoBWKZ8vjVPxZNzw/OWKMzD3RMr83ceDeNsIde1EgthePH7eNZA /AsZjBVYaX6IKR4PqK/LvxvlrCwAfGl/nNFsxn8/yoR3A5fGQ9g/5d/cU k=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FtAADfGHVbhyWd50NdGwEBAQEDAQE?= =?us-ascii?q?BCQEBAYQyfygKi29fjWGWE4F6CxgLCQKEPgKDVjQYAQIBAQIBAQIBAQIQAQE?= =?us-ascii?q?BCgsJCCkjDII1IhGBCAEBAQEBAQEBAU0CDWMBAQEBAgEBARAoNBAHBAIBCBE?= =?us-ascii?q?EAQEfCQcnAR4JCAIEARIIGoMAAYF5BwEPnzKJVwEBAYIbilsFiyuBEoMSgxs?= =?us-ascii?q?BBIIKhSoCkjqIMQcCgRyFCYVDg2sdgTqELoJ2hU6IK4Jdh3ICBAIEBQIUgUG?= =?us-ascii?q?CC3BQgmmCIhEJiFmFPm+BFowTAYEaAQE?= X-IPAS-Result: =?us-ascii?q?A2FtAADfGHVbhyWd50NdGwEBAQEDAQEBCQEBAYQyfygKi?= =?us-ascii?q?29fjWGWE4F6CxgLCQKEPgKDVjQYAQIBAQIBAQIBAQIQAQEBCgsJCCkjDII1I?= =?us-ascii?q?hGBCAEBAQEBAQEBAU0CDWMBAQEBAgEBARAoNBAHBAIBCBEEAQEfCQcnAR4JC?= =?us-ascii?q?AIEARIIGoMAAYF5BwEPnzKJVwEBAYIbilsFiyuBEoMSgxsBBIIKhSoCkjqIM?= =?us-ascii?q?QcCgRyFCYVDg2sdgTqELoJ2hU6IK4Jdh3ICBAIEBQIUgUGCC3BQgmmCIhEJi?= =?us-ascii?q?FmFPm+BFowTAYEaAQE?= Received: from mx0b-00154901.pphosted.com (HELO mx0a-00154901.pphosted.com) ([67.231.157.37]) by esa2.dell-outbound.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Aug 2018 01:28:42 -0500 Received: from pps.filterd (m0089484.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w7G6Rbei118366 for ; Thu, 16 Aug 2018 02:28:42 -0400 Received: from esa6.dell-outbound2.iphmx.com (esa6.dell-outbound2.iphmx.com [68.232.154.99]) by mx0b-00154901.pphosted.com with ESMTP id 2kvpp8bhem-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 16 Aug 2018 02:28:42 -0400 From: Received: from ausxipps310.us.dell.com ([143.166.148.211]) by esa6.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA256; 16 Aug 2018 12:28:40 +0600 X-LoopCount0: from 10.166.134.89 X-IronPort-AV: E=Sophos;i="5.53,246,1531803600"; d="scan'208";a="226648107" To: , Thread-Topic: Question regarding CMOS regions. Thread-Index: AdQwbXw0bU09G6E1SGqYwJK+xDH0yQCldFkAAABUloAAHxeNsABmsI1QAALlTaAAAFY8wA== Date: Thu, 16 Aug 2018 06:28:37 +0000 Message-ID: <907e738d5a3543c8a47738843877b3c1@BLRX13MDC420.AMER.DELL.COM> References: <1b14d8bcb83c4db48a7f4b72f8b8dff6@BLRX13MDC420.AMER.DELL.COM> <2d9aeae9d4c94b2c9c1f63161b94c9f5@BLRX13MDC420.AMER.DELL.COM> <734D49CCEBEEF84792F5B80ED585239D5BDD7A02@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5BDD7A02@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [163.244.186.30] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-08-16_03:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808160070 Subject: Re: Question regarding CMOS regions. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2018 06:28:45 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Ruiyu. I have some inconsistencies with CMOS regions. Even EDKII uses some CMOS re= gions. I have attached the CMOS dump took using RW tool below: Type:ISA Port 0070,0071 Width:01 00=3D56 01=3D17 02=3D45 03=3D17 04=3D11 05=3D15 06=3D04 07=3D16=20 08=3D08 09=3D18 0A=3D26 0B=3D02 0C=3D50 0D=3D80 0E=3D00 0F=3D00=20 10=3D00 11=3D00 12=3D00 13=3D00 14=3D00 15=3D7B 16=3D02 17=3DFF=20 18=3DFF 19=3D00 1A=3D00 1B=3D00 1C=3D00 1D=3D00 1E=3D00 1F=3D00=20 20=3D00 21=3D00 22=3D00 23=3D00 24=3D00 25=3D00 26=3D00 27=3D00=20 28=3D00 29=3D00 2A=3D00 2B=3D00 2C=3D00 2D=3D00 2E=3D02 2F=3D7B=20 30=3DFF 31=3DFF 32=3D20 33=3D00 34=3D00 35=3D9D 36=3D0B 37=3D00=20 38=3D00 39=3D00 3A=3D00 3B=3D00 3C=3D00 3D=3D00 3E=3D00 3F=3D00=20 40=3D00 41=3D00 42=3DCA 43=3DB8 44=3D6C 45=3D58 46=3D00 47=3D00=20 48=3D00 49=3D00 4A=3D00 4B=3D00 4C=3D00 4D=3D00 4E=3D00 4F=3D00=20 50=3D00 51=3D00 52=3D00 53=3D00 54=3D03 55=3D00 56=3D00 57=3D00=20 58=3D00 59=3D00 5A=3D00 5B=3D00 5C=3D00 5D=3D00 5E=3D00 5F=3D00=20 60=3D00 61=3D00 62=3D00 63=3D00 64=3D00 65=3D00 66=3D00 67=3D00=20 68=3D00 69=3D00 6A=3D00 6B=3D00 6C=3D01 6D=3D00 6E=3D00 6F=3DA5=20 70=3D00 71=3D00 72=3D00 73=3D00 74=3D00 75=3D00 76=3D00 77=3D00=20 78=3D00 79=3D5F 7A=3D00 7B=3D00 7C=3D00 7D=3D00 7E=3D00 7F=3D00=20 80=3D56 81=3D17 82=3D45 83=3D17 84=3D11 85=3D15 86=3D04 87=3D16=20 88=3D08 89=3D18 8A=3D26 8B=3D02 8C=3D40 8D=3D80 8E=3D00 8F=3D00=20 90=3D00 91=3D00 92=3D00 93=3D00 94=3D00 95=3D7B 96=3D02 97=3DFF=20 98=3DFF 99=3D00 9A=3D00 9B=3D00 9C=3D00 9D=3D00 9E=3D00 9F=3D00=20 A0=3D00 A1=3D00 A2=3D00 A3=3D00 A4=3D00 A5=3D00 A6=3D00 A7=3D00=20 A8=3D00 A9=3D00 AA=3D00 AB=3D00 AC=3D00 AD=3D00 AE=3D02 AF=3D7B=20 B0=3DFF B1=3DFF B2=3D20 B3=3D00 B4=3D00 B5=3D9D B6=3D0B B7=3D00=20 B8=3D00 B9=3D00 BA=3D00 BB=3D00 BC=3D00 BD=3D00 BE=3D00 BF=3D00=20 C0=3D00 C1=3D00 C2=3DCA C3=3DB8 C4=3D6C C5=3D58 C6=3D00 C7=3D00=20 C8=3D00 C9=3D00 CA=3D00 CB=3D00 CC=3D00 CD=3D00 CE=3D00 CF=3D00=20 D0=3D00 D1=3D00 D2=3D00 D3=3D00 D4=3D03 D5=3D00 D6=3D00 D7=3D00=20 D8=3D00 D9=3D00 DA=3D00 DB=3D00 DC=3D00 DD=3D00 DE=3D00 DF=3D00=20 E0=3D00 E1=3D00 E2=3D00 E3=3D00 E4=3D00 E5=3D00 E6=3D00 E7=3D00=20 E8=3D00 E9=3D00 EA=3D00 EB=3D00 EC=3D01 ED=3D00 EE=3D00 EF=3DA5=20 F0=3D00 F1=3D00 F2=3D00 F3=3D00 F4=3D00 F5=3D00 F6=3D00 F7=3D00=20 F8=3D00 F9=3D5F FA=3D00 FB=3D00 FC=3D00 FD=3D00 FE=3D00 FF=3D00 I have update my queries below. Thank you, Younas. -----Original Message----- From: Ni, Ruiyu [mailto:ruiyu.ni@intel.com]=20 Sent: Thursday, August 16, 2018 11:38 AM To: Pathan, MohammadYounasKhan; edk2-devel@lists.01.org Subject: RE: Question regarding CMOS regions. Younas, Why are you still working on CMOS in now UEFI world? Detailed answer is in below. Thanks/Ray > -----Original Message----- > From: edk2-devel On Behalf Of=20 > MohammadYounasKhan.P@Dell.com > Sent: Thursday, August 16, 2018 12:44 PM > To: edk2-devel@lists.01.org > Subject: Re: [edk2] Question regarding CMOS regions. >=20 > Hi Guys, >=20 > Please help to reply to my below queries. >=20 > Thank you, > Younas. >=20 > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of=20 > Pathan, MohammadYounasKhan > Sent: Tuesday, August 14, 2018 9:17 AM > To: edk2-devel@lists.01.org > Subject: [edk2] FW: Question regarding CMOS regions. >=20 > Hi All, >=20 > As we know CMOS data can be 128 or 256 bytes. CMOS lower 128 bytes are=20 > stored in IO ports 0x70-0x71 whereas CMOS upper 128 bytes are stored=20 > using IO ports 0x72-0x73. >=20 > 1. How to know that the system has 128bytes of CMOS or 256 bytes of=20 > CMOS region? You could read the data to know whether high 128 bytes are valid or not. [Younas]: How to check the validity of data? > 2. Is there any CMOS location which represents CMOS upper region is=20 > exists or valid or any other mechanism for it? Refer to #1. [Younas]: CMOS upper region means port 0x72-0x73. Each IO port can store 25= 6 bytes of data (0x00-0xFF). Default lower CMOS region has date and time an= d is valid always. But for upper CMOS region, I am not sure how to check wh= ether it is valid or not? > 3. Are we replicating lower 128 bytes to upper 128 bytes in CMOS=20 > location > 0x70-0x71 (or 0x72-0x73)? If yes, Why are we doing that? It depends on BIOS implementation. I don't see any bios is duplicating the = contents. [Younas]: You can refer to my CMOS dump copied above which shows upper 128b= ytes have same information as lower 128bytes (of port 0x70-0x71). I would l= ike to know why we are doing this? >=20 > Thank you, > Younas. > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel