From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.4245.1684917401785896357 for ; Wed, 24 May 2023 01:36:42 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Yvlk1iLi; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: gua.guo@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684917401; x=1716453401; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=G/80Ne2TG8K0MsfbhML+ZeJ4K7FtrEcLo+67CfExYzE=; b=Yvlk1iLiyKky/V8WNv30OmX3MPbA72zDYDBLZO062U9DioMQqip7jYMK jPS2GInCeZSy9aU6zrMByH67ZwubIk7H4MkZyWDJKoLlr3Ni53LbcKwzh 61QzOcaFvQN6iiI4BQ9honSRgbqM96zDmNxhLmwjmp8duby7ynM76vp9B n9ogv8pyI3qu4Lk1ezmLzF4ApLLILY+RZQSstvI5TbtwtpZovdwyfVYft 1rTiq0ESgSW0j+LHA8HZmZhE3nfKoKsBrZlndRdDAIYGqMg3TPHMJtaAV 0hy8wiWtZcNgufWH7hWUgsL3HrfxkIidgiHX/hembdu4q8zZaMa647Evn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="355856918" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="355856918" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2023 01:35:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="794097842" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="794097842" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by FMSMGA003.fm.intel.com with ESMTP; 24 May 2023 01:35:23 -0700 From: "Guo, Gua" To: devel@edk2.groups.io Cc: gua.guo@intel.com Subject: [PATCH v3 0/1] PcAtChipsetPkg: RTC Runtime unable to get correct IO port by PCD Date: Wed, 24 May 2023 16:35:17 +0800 Message-Id: <20230524083518.1962-1-gua.guo@intel.com> X-Mailer: git-send-email 2.39.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Gua Guo PR: https://github.com/tianocore/edk2/pull/4416 V3: change UINTN to UINT8 on global data mRtcIndexRegisterIo mRtcTargetRegisterIo V2: Add more dynamic PCD for runtime service support instead of taking for FixedAtBuild case V1: After https://bugzilla.tianocore.org/show_bug.cgi?id=4193 RTC Runtime Services unable to get correct RTC time. Solution: Cache RTC data, update RTC driver not to use PcdGet after driver init. Gua Guo (1): PcAtChipsetPkg: RTC Runtime unable to get correct IO port by PCD .../PcatRealTimeClockRuntimeDxe/PcRtc.c | 38 ++++++++++--------- .../PcatRealTimeClockRuntimeDxe/PcRtcEntry.c | 16 +++++++- 2 files changed, 35 insertions(+), 19 deletions(-) -- 2.39.2.windows.1