From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=nj5gqbJt; spf=pass (domain: linaro.org, ip: 209.85.210.193, mailfrom: masahisa.kojima@linaro.org) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by groups.io with SMTP; Thu, 08 Aug 2019 05:23:42 -0700 Received: by mail-pf1-f193.google.com with SMTP id g2so44024586pfq.0 for ; Thu, 08 Aug 2019 05:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FIZmTH9AGRD/yGooueB7v45MyREitNhjfnF9qZr3gBU=; b=nj5gqbJtwar6VykJHud32p5RRnoiDVBnU5IUNF1VobFJhp/oRHsyN7tLb1ebxno1iW 2M1lCzDSerbA7LO9nFLi28wSO/vx8S00zASniL+mFFrl/lDmiSz3nbT+yr4Yy2/KlnlF 0NtVewp4xf1J0BJH1pQuymLNRIZWJprUkKWcEL0Ecrzl+j0RoRQ7ZQhOh5FtN+jCCnc8 zqw9ku3m02bxFgT8P3hTj8p0HmoHv9UbbsGu6RAvXuDQ2ribmBez0npLiQNKKNy5t+Py 2amvTVc4YrawKtFPpVGetMjovA6dtFvx/CUKAJiovkHxzbiBbM8iZOacDx/l9hmXzy9a iosw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FIZmTH9AGRD/yGooueB7v45MyREitNhjfnF9qZr3gBU=; b=N2noPpOXzsCAKmGa6qaReLGPdxWrlpIClpTvEK4OzWfwNkd5pDrCFpuU5X55tf9vcV 5L9dKQMUr1un0OBM5KXB0dpdY7xUBcZdo4ebW/BMAYMiEyYu20c2z+5VkSMS4rodq0a8 LTCSe8wT5yYhvzJiW/DtrdDWz4r2a8aFfqOlz6MJ9+vJeAaQct7Af9DcgPz+3wgaK9gk 3Z1WIuxwSPHfVm1v6C3nIjWA3EyqVRTodqrxH0VnAtIoLJcqMIfIyJ2JXx4B757L3HCD Q+kpZXOZUKvW7hN4IK8DwCcdhmwzkiyEJenWbCGNh7NuAX6lthAVQpdUcVGH5KRK7eAc Ns+w== X-Gm-Message-State: APjAAAW2MnJAw5nPR4OXxxrsn4d+AzFC7ysaqvM+j+6sIwMGsfBoQSbE f3oJGk4u1ed/F4jyIyr8vc5TCiBSiyI= X-Google-Smtp-Source: APXvYqwD1RwWxyP3dbFgA6l3J/PL15ZrWUAno/pjzm2dXCIhwlWrxa002CnIsYqoobmMiVpi6m5qEA== X-Received: by 2002:a63:204b:: with SMTP id r11mr12512107pgm.121.1565267021098; Thu, 08 Aug 2019 05:23:41 -0700 (PDT) Return-Path: Received: from localhost ([121.95.100.191]) by smtp.gmail.com with ESMTPSA id q7sm108185949pff.2.2019.08.08.05.23.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Aug 2019 05:23:40 -0700 (PDT) From: "Masahisa Kojima" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, okamoto.satoru@socionext.com, Masahisa Kojima Subject: [PATCH edk2-platforms v3 0/3] Robust Netsec Initialiation Date: Thu, 8 Aug 2019 21:23:32 +0900 Message-Id: <20190808122335.11883-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 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 v2: - use From: tag instead of Signed-off-by: Changes since v1: - modified wrong indent - updated order of new parameter - updated comment - removed unrelated whitespace changes Satoru Okamoto (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 | 78 ++++++ .../netsec_for_uefi/netsec_sdk/src/ogma_reg.h | 4 + 10 files changed, 211 insertions(+), 181 deletions(-) -- 2.17.1