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=eZMYPX3U; spf=pass (domain: linaro.org, ip: 209.85.215.196, mailfrom: masahisa.kojima@linaro.org) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by groups.io with SMTP; Mon, 22 Jul 2019 04:57:30 -0700 Received: by mail-pg1-f196.google.com with SMTP id i18so17555027pgl.11 for ; Mon, 22 Jul 2019 04:57:30 -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=+70cZCnPb8G//gOSNV4z4qrBqAWi3aj0PFfC3PfrgPs=; b=eZMYPX3UBp9NmRRhASlONdsNq8v1XnSI7por+5fpsdN4Mv7RygxhsRKd7LCQ4hHD5z jpwW7n+CoaMKCRS+PT7FbkJwBCSIhPeXptOGX65Gp+tC43rhFJ4e++YUZ/LKANeFjvWt arbvbKZ0ttpJ+8NbNa9unvte3HDOzXLi1uIOxkkWxzT2NmZTysXf749L3j4JGLgsn6B7 61ZWNbgB430GUV4lT1/FhjXCWvV3jL/rh3f3BfEea38U/NGjvqqC4418S72eDUCy6yUi J5Q4vUdS1FFYWjU4Is69hsFFSuQY8yA5XQhQQUIRQeQQoh1YmwxplnJfRJl2YKvf8R7D n8MA== 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=+70cZCnPb8G//gOSNV4z4qrBqAWi3aj0PFfC3PfrgPs=; b=B/fZ+omnUjMFVd0C5RFUUXCuef1ruuwxPkaoFVaBiY2lBvV5kg4k8Zt0tpb2GxtYr7 TLTmKLamf7a4MShXIN4iCCIcwATsws4DVNXcWselyx/Qh3bUcZ/U2fFtbwHW4MTXL6Sy RzY/HWVzda+0IxnGFj6jyruYN5Dw8UqoHFMJE3HfC3On2hzWAoYPLltJZjDxWcFpaaaj DrEGaKbPGeAXXPEPh1J2Qcfy2C/DSVNKErMlOnTChiK48mID8ZQsxnKX/F8I2xgySBF3 CKhgtAuep2JJSJCXMVrvN0mpkh0TC/c9n0B2JWwrbLQpFjxl6IrpvkUUbWqyD05iWOSO MqJQ== X-Gm-Message-State: APjAAAVE0O+Uylm7tGcPlzkEPGHQ8TpAFDioszAAS+vElbdyTq9uiW7T j7AKj58jKVK+npKyQ0sZ0jHXfSmi8qs= X-Google-Smtp-Source: APXvYqxqbuHBZgvH8ojOgY8z5evQ884n45aYZWhDNrDt3eLU5irWZypC9Hdf+aokSzvGlQeM8WZogg== X-Received: by 2002:a63:a35c:: with SMTP id v28mr27753948pgn.144.1563796649771; Mon, 22 Jul 2019 04:57:29 -0700 (PDT) Return-Path: Received: from localhost ([121.95.100.191]) by smtp.gmail.com with ESMTPSA id l189sm47000523pfl.7.2019.07.22.04.57.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2019 04:57:28 -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: [edk2-platforms PATCH v1 0/3] Robust Netsec Initialiation Date: Mon, 22 Jul 2019 20:56:33 +0900 Message-Id: <20190722115636.3413-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. Masahisa Kojima (3): NetsecDxe: embed phy address into NETSEC SDK internal structure NetsecDxe: put phy in loopback mode in order 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, 210 insertions(+), 182 deletions(-) -- 2.17.1