From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id E4C28780091 for ; Wed, 31 Jan 2024 01:27:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=8iZqgpRr1XNNfWRlQD49TRIVCBDmKczLtibs+4mj9EI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20140610; t=1706664475; v=1; b=rf/6K2gSwNd8gas4OoGYUXYHM5I4b/UFRSkzlaRkhMwa9YMGS+WAYvNUIbWt+bP8Wfbb/YEG pMUQKy7hNPMhNZ9RS7veKkckLHWAxaUbseOuuwY1JuPSsapzCIjxn/Nlra443uRarWQZMOd0hx4 cUk4jZ207Vl/QhOOudqU1bjk= X-Received: by 127.0.0.2 with SMTP id j65NYY7687511xDrIMeTrUnC; Tue, 30 Jan 2024 17:27:55 -0800 X-Received: from zrleap.intel-email.com (zrleap.intel-email.com [114.80.218.36]) by mx.groups.io with SMTP id smtpd.web10.4471.1706664473476208499 for ; Tue, 30 Jan 2024 17:27:54 -0800 X-Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id D6F1DA32E16D for ; Wed, 31 Jan 2024 09:27:49 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id ADED5A32E11F for ; Wed, 31 Jan 2024 09:27:49 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by zrleap.intel-email.com (Postfix) with SMTP id EF7CBA32E165 for ; Wed, 31 Jan 2024 09:27:46 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Wed, 31 Jan 2024 09:27:44 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: , Cc: "'Ray Ni'" , "'Michael D Kinney'" References: <20240122095323.1824627-1-zhi.jin@intel.com> <20240122095323.1824627-2-zhi.jin@intel.com> In-Reply-To: <20240122095323.1824627-2-zhi.jin@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYyIDIvMl0gTWRlTW9kdWxlUGtnOiBPcHRpbWl6ZSBDb3JlQ29ubmVjdFNpbmdsZUNvbnRyb2xsZXI=?= Date: Wed, 31 Jan 2024 09:27:46 +0800 Message-ID: <019401da53e4$b1fb8270$15f28750$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQJVjJ3msac31u22jfgsddLALgMaVQHSBtOpr+4ftHA= 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 Reply-To: devel@edk2.groups.io,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ycQmO10myuX4LUtikVKdkoKHx7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="rf/6K2gS"; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Zhi Jin > =B7=A2=CB=CD=CA=B1=BC=E4: 2024=C4=EA1=D4=C222=C8=D5 17:53 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Zhi Jin ; Liming Gao ; > Ray Ni ; Michael D Kinney > =D6=F7=CC=E2: [edk2-devel] [PATCH v2 2/2] MdeModulePkg: Optimize > CoreConnectSingleController >=20 > CoreConnectSingleController() searches for the Driver Family Override > Protocol drivers by looping and checking each Driver Binding Handles. > This loop can be skipped by checking if any Driver Family Override > Protocol installed in the platform first, to improve the performance. >=20 > Cc: Liming Gao > Cc: Ray Ni > Reviewed-by: Michael D Kinney > Signed-off-by: Zhi Jin > --- > MdeModulePkg/Core/Dxe/Hand/DriverSupport.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c > b/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c > index 0b824c62b7..64d7474f15 100644 > --- a/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c > +++ b/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c > @@ -497,7 +497,12 @@ CoreConnectSingleController ( > // > // Add the Driver Family Override Protocol drivers for ControllerHandl= e > // > - while (TRUE) { > + Status =3D CoreLocateProtocol ( > + &gEfiDriverFamilyOverrideProtocolGuid, > + NULL, > + (VOID **)&DriverFamilyOverride > + ); > + while (!EFI_ERROR (Status) && (DriverFamilyOverride !=3D NULL)) { > HighestIndex =3D DriverBindingHandleCount; > HighestVersion =3D 0; > for (Index =3D 0; Index < DriverBindingHandleCount; Index++) { > -- > 2.39.2 >=20 >=20 >=20 >=20 >=20 -=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 (#114840): https://edk2.groups.io/g/devel/message/114840 Mute This Topic: https://groups.io/mt/104067208/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-