public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-platforms v2 0/3] Robust Netsec Initialiation
@ 2019-07-25  1:10 Masahisa Kojima
  2019-07-25  1:10 ` [PATCH edk2-platforms v2 1/3] NetsecDxe: embed phy address into NETSEC SDK internal structure Masahisa Kojima
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Masahisa Kojima @ 2019-07-25  1:10 UTC (permalink / raw)
  To: devel; +Cc: ard.biesheuvel, leif.lindholm, okamoto.satoru, Masahisa Kojima

This patch series is bugfix for the hang-up issue in Netsec driver.

Some linux distributions such as Ubuntu power down the ethernet phy
in reboot. In this case, Netsec initialization fails and
system hungs.

This patch series add the robust netsec initialization,
set ethernet phy as loopback mode to expect stable RXCLK,
and wait for media link up.

The disadvantage of this patch series is that user has to wait
several seconds until netsec driver gives up ethernet link-up
if the ethernet cable is not connected.

Changes since v1:
  - modified wrong indent
  - updated order of new parameter
  - updated comment
  - removed unrelated whitespace changes

Masahisa Kojima (3):
  NetsecDxe: embed phy address into NETSEC SDK internal structure
  NetsecDxe: put phy in loopback mode to guarantee stable RXCLK input
  NetsecDxe: SnpInitialize() waits for media linking up

 .../Socionext/DeveloperBox/DeveloperBox.dsc   |   1 +
 .../Drivers/Net/NetsecDxe/NetsecDxe.c         | 236 ++++++++----------
 .../Drivers/Net/NetsecDxe/NetsecDxe.dec       |   1 +
 .../Drivers/Net/NetsecDxe/NetsecDxe.h         |   2 -
 .../Drivers/Net/NetsecDxe/NetsecDxe.inf       |   1 +
 .../netsec_sdk/include/ogma_api.h             |   6 +-
 .../netsec_sdk/src/ogma_gmac_access.c         |  61 ++---
 .../netsec_sdk/src/ogma_internal.h            |   2 +
 .../netsec_sdk/src/ogma_misc.c                |  80 +++++-
 .../netsec_for_uefi/netsec_sdk/src/ogma_reg.h |   4 +
 10 files changed, 212 insertions(+), 182 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-06 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-25  1:10 [PATCH edk2-platforms v2 0/3] Robust Netsec Initialiation Masahisa Kojima
2019-07-25  1:10 ` [PATCH edk2-platforms v2 1/3] NetsecDxe: embed phy address into NETSEC SDK internal structure Masahisa Kojima
2019-08-06 15:57   ` Leif Lindholm
2019-07-25  1:10 ` [PATCH edk2-platforms v2 2/3] NetsecDxe: put phy in loopback mode to guarantee stable RXCLK input Masahisa Kojima
2019-07-25  1:11 ` [PATCH edk2-platforms v2 3/3] NetsecDxe: SnpInitialize() waits for media linking up Masahisa Kojima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox