From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in24.apple.com (mail-out24.apple.com [17.171.2.34]) (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 5E0EF2195FD50 for ; Wed, 17 May 2017 22:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1495084883; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PKmPq77hI1DOZbz9Z0z/ptC5x/Mr+Dbpqs8QWsKKdtE=; b=XrUKveD5tAhVXHcGXOguYqElCXo93K0UbPaw3/OoSV4ZnNVgxs+EI/tudKHh44L+ dLyOUsc/OmahKf7wQ4PqVjcsPSKhBHMwGjdhepl0d4R3VJy4K2pg2Ko1TBLE+iHK 35suxVXfGO7B5MpY4Cdjk4OeOSOs4OSrh+AQ13St+ODF5O15j1WEBFLyZVlD6p1o lz8PWC6jo4aMDKSPxBgo9g3Pm7f0oE000y7RpHLPaL6bv+H33/6YQBkit6zZlCHf ARktMJlYbTZko+y+h/3gXHEccB6wkRiWTtUeWBJkvSR83qzLnKn21A3oGhhOdBF/ tgCwv0fk60FdHBfsFeIVZw==; Received: from relay7.apple.com (relay7.apple.com [17.128.113.101]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in24.apple.com (Apple Secure Mail Relay) with SMTP id 04.12.20460.25F2D195; Wed, 17 May 2017 22:21:23 -0700 (PDT) X-AuditID: 11ab0218-80c229a000004fec-09-591d2f527148 Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by relay7.apple.com (Apple SCV relay) with SMTP id C2.76.18088.25F2D195; Wed, 17 May 2017 22:21:22 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.32.91] by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OQ400HOBUVMR800@nwk-mmpp-sz10.apple.com>; Wed, 17 May 2017 22:21:22 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Wed, 17 May 2017 22:21:21 -0700 Cc: edk2-devel-01 , "Zeng, Star" , "Dong, Eric" , Mike Kinney Message-id: <98D24FD3-B4DD-4132-BFA3-7D3887CA250D@apple.com> References: To: Michael Zimmermann X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsUi2FCYqhusLxtp8GSXssWeQ0eZLTa/CLbo 6PjHZDF36lNWi3291g6sHjtn3WX3WLznJZNH9+x/LAHMUVw2Kak5mWWpRfp2CVwZi6+9YC5Y KlxxaNNR1gbGx/xdjJwcEgImEutWHmTvYuTiEBJYyyQx/dsEJpjE4eProRKHGCUm3ngFluAV EJT4MfkeSxcjBwezgLzEwfOyIGFmAS2J749aWSDqvzBKbOqYwAKSEBYQl3h3ZhMzhK0jMXXh OXYQm01AWWLF/A9gNqdAmETXy2NgNouAqkTn8auMIIOYBRYySnS/eM0KsdhGoutxGyPEhjmM EivWLmEDSYgIGEo8bX4MdbasxK3Zl5hBiiQEjrBJ/G37yzqBUXgWkstnIVw+C8nlCxiZVzEK 5yZm5uhm5hmZ6CUWFOSk6iXn525iBEXBaiaJHYxfXhseYhTgYFTi4Y0IkIkUYk0sK67MPcQo zcGiJM57fRNQSCA9sSQ1OzW1ILUovqg0J7X4ECMTB6dUA6Og4fQEu6gdXPe37H0WlBZo1ZkR tpN5rXFWteTn21IbEleci83cYNNx4YlX5Q6uugQn0bK4HUZdM0w2dTG/ueD/lHX6pn0GKQ6y e5ZGnhW+lzST+VtGguxWlud7r863U82WvPxST+CGXer8r5t+dG3pn/Kjp8Beqfb3rjUH699x 3WMTEP+jelKJpTgj0VCLuag4EQBabCj3YwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsUi2FBcpRukLxtpcGuHqcWeQ0eZLTa/CLbo 6PjHZDF36lNWi3291g6sHjtn3WX3WLznJZNH9+x/LAHMUVw2Kak5mWWpRfp2CVwZi6+9YC5Y KlxxaNNR1gbGx/xdjJwcEgImEoePr2fvYuTiEBI4xCgx8cYrJpAEr4CgxI/J91i6GDk4mAXk JQ6elwUJMwtoSXx/1MoCUf+FUWJTxwQWkISwgLjEuzObmCFsHYmpC8+xg9hsAsoSK+Z/ALM5 BcIkul4eA7NZBFQlOo9fZQQZxCywkFGi+8VrVojFNhJdj9sYITbMYZRYsXYJG0hCRMBQ4mnz YyaIs2Ulbs2+xDyBUWAWkmNnIRw7C8mxCxiZVzEKFKXmJFaa6yUWFOSk6iXn525iBIdsYeoO xsblVocYBTgYlXh4NwTJRAqxJpYVV+YCQ4ODWUmEN1JLNlKINyWxsiq1KD++qDQntfgQYxXQ BxOZpUST84HxlFcSb2hiYmBibGxmbGxuYk4VYSVx3ifiQJsF0hNLUrNTUwtSi2CWM3FwSjUw nk16tsC8Tqbslea5rXOvtCw2fLalbsolgUIF9kIOmyNZT9v+m5ydLs396cf7fZuXM6Wzb1dZ 7G2269h6z7fX05Y/ZF98ajK32eTnPnJt6bwH1IvebTlu/+rfhHcaeYkJ0XO772tb3CrNc9qq 5Lszkqft5+4lSqfiTkvu25ob+L9vw2vnhglfc5VYijMSDbWYi4oTAcpfkjG0AgAA Subject: Re: UEFI_DRIVER dependencies X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2017 05:21:24 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On May 17, 2017, at 10:00 PM, Kinney, Michael D wrote: > > Michael, > > The UEFI Driver Model and the Driver Binding Protocol > provide support for this case. The idea is that a driver > is loaded and started, but when a UEFI Driver is started, > it only registers a Driver Binding Protocol. Then in the > BDS phase, the devices required to boot are started using > the UEFI Boot Service ConnectController() and > ConnectController() calls the Driver Binding Protocol(s). > > The dependencies between UEFI Drivers are in their Driver > Binding Protocols which are not used until after all of > the UEFI Drivers are loaded and started. > Micheal, 1st off no dependency is really a dependency on all the architecture protocols, which is a fancy way of saying all the EFI Boot and Runtime Services are available. Lets say you have a driver that depends on DiskIo. The DiskIo driver depends on BlockIo. Now what happens when a disk driver is connected and produces a BlockIO is the DiskIo driver can know get connected. The DXE Core knows a protocol was added to the handle so it will keep trying to connect drivers to that handle as long as new protocols get added. So this is how the DriverBinding Support() is used to resolve the sequence issues. Thanks, Andrew Fish > Mike > >> -----Original Message----- >> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Michael >> Zimmermann >> Sent: Wednesday, May 17, 2017 9:43 PM >> To: edk2-devel-01 ; Zeng, Star ; Dong, >> Eric >> Subject: [edk2] UEFI_DRIVER dependencies >> >> I know that UEFI_DRIVERs don't need or support Depex sections, but >> what if an UEFI_DRIVER depends on a protocol provided by another >> UEFI_DRIVER? >> Since they get loaded automatically because I put them in my >> platform's fdf, it raises the question of the loading order. >> >> Will they get loaded in the order they're defined? How often will the >> core retry if one of the drivers returns EFI_NOT_READY? >> >> Thanks, >> Michael >> _______________________________________________ >> 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