From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 DBE2421B02822 for ; Sun, 14 Oct 2018 19:37:15 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2018 19:37:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,383,1534834800"; d="scan'208";a="100237779" Received: from ray-dev.ccr.corp.intel.com (HELO [10.239.9.11]) ([10.239.9.11]) by orsmga002.jf.intel.com with ESMTP; 14 Oct 2018 19:37:13 -0700 To: Ard Biesheuvel , Sami Mujawar Cc: "edk2-devel@lists.01.org" , Leif Lindholm , Evan Lloyd , Matteo Carlini , Stephanie Hughes-Fitt , nd References: <20181012144009.48732-1-sami.mujawar@arm.com> <20181012144009.48732-2-sami.mujawar@arm.com> From: "Ni, Ruiyu" Message-ID: Date: Mon, 15 Oct 2018 10:38:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Subject: Re: [PATCH v1 1/6] PcAtChipsetPkg: Add MMIO Support to SerialIo Lib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 02:37:16 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 10/12/2018 11:33 PM, Ard Biesheuvel wrote: > On 12 October 2018 at 17:06, Sami Mujawar wrote: >> Hi Ard, >> >> I believe you are referring to MdeModulePkg\Library\BaseSerialPortLib16550\BaseSerialPortLib16550.inf >> I have tried using this Serial Port Library. However, this has a dependency on PciLib which is difficult to resolve as we use the Serial port early in the boot. >> Please do let me know if you know a workaround to solve this issue. >> > > Yes. Just keep PcdSerialPciDeviceInfo at its default of 0xff, and the > PCI dependencies in that driver are essentially circumvented, so you > can use any PciLib implementation as a dummy (or create a new one that > ASSERT()s in all functions if you prefer) > Yes I was just about to say so. Actually I plan to retire/remove the SerialIoLib in PcAtChipsetPkg. -- Thanks, Ray