From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.4171.1684917765338726866 for ; Wed, 24 May 2023 01:42:46 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=el5Y5j6j; spf=pass (domain: intel.com, ip: 192.55.52.88, 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=1684917765; x=1716453765; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9K7Qu5mLFf0nfdxE+GpcfQYZ/oP4KgPPRCBnFhNAPQg=; b=el5Y5j6j9RBE4x3zywGZM1Qp6O8YI27kmX8olKBnmRq7IWZ29MHqpj5u wn7SN5WZJK3qSteWg22gUHppr2W2bOZPLUVoUG6k2z3w3H7wF89CRnsTm v81HjVe1rBda+vNtUN1z8RVssuR/r2DS7ASM2UeTRYrl9Fadvpoj8tNcN qBHhyIoIxvRGop8vyTQu60/A8ulCOwV0Sf1PxLMNmssSC4SN9duTFv74/ FT2Y9CZbV99u5i7UorIETtciF1tB2AcisDBCw+uDRKSw1OtmetAkGbAtE +UYR3sLiil+P9yizqCGUQpncW0Bd751ZfpeTpoCYvE0ZcPyxV0OdDlFL4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="381745537" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="381745537" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2023 01:42:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="848658004" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="848658004" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by fmsmga001.fm.intel.com with ESMTP; 24 May 2023 01:42:44 -0700 From: "Guo, Gua" To: devel@edk2.groups.io Cc: gua.guo@intel.com Subject: [PATCH v4 0/1] PcAtChipsetPkg: RTC Runtime unable to get correct IO port by PCD Date: Wed, 24 May 2023 16:42:38 +0800 Message-Id: <20230524084239.1223-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 V4: merge mRtcIndexRegisterIo and mRtcTargetRegisterIo into mRtcIndexRegister and mRtcTargetRegister 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 | 36 ++++++++++--------- .../PcatRealTimeClockRuntimeDxe/PcRtcEntry.c | 14 ++++++-- 2 files changed, 31 insertions(+), 19 deletions(-) -- 2.39.2.windows.1