From patchwork Tue Jun 27 18:56:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 106474 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp2712125obb; Tue, 27 Jun 2017 11:57:09 -0700 (PDT) X-Received: by 10.55.70.76 with SMTP id t73mr8107910qka.41.1498589829819; Tue, 27 Jun 2017 11:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498589829; cv=none; d=google.com; s=arc-20160816; b=cGCucwqdbfnVusCB1ILOWFHoxb6qR6me6uBn29iLx+zO5wuHMBTVW9sJ34xPJpBBiS BNrergCwNaCncQDX741IQdt8o4crdYfs7oo0/j4PFj9FyBMJGNQE0eu0QYPSxdus9ptF fk4JCql+atK5pJ70EwAyaLxqL7SjpbZSZVIZ1k6iH4tPDuHJ6zO9UJPnklydqJulueCQ 5w9yoxExliI9aatZR52mCE7kRQbJoFl65BCCE5sNNiQVV7lypD2EfECO7Sw9AQ9T7ITe unLbkD9e7iyB4m5wYKCnVYC9ogpkS/aHKTzAIjLqogwmU3BhK3mgW2nedUGSrsXFo3k6 ZAZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=8M7gnrkAXj9mpg/zq+OQ3eBTyeer2oRoUSrRjOJCifg=; b=CA8pcMJmKPfMuFeP92KuAmZgr9+KvIblq9+2z6shG0FiUt1oCkytb1rGr12rm26YAM TwSLgwVx13Vgx7GjeL15it+rQG6O0qraPMWvKR9dZ5etWgtl9BB6fzqbbFQzSZbN4Zc5 6kBlx9MLhtScFQA1WjrRPUC5pkwP0SyN1llcZo+f+URy9xwWobGya4mSROeFXcQekDga u3xQZ6a5B8/gg2nPYz8Wheki6x7NtOsjE51WRtYdoKfhoTr25RFKbDmhSSUguCjh0+cI as32YpjjsuaZzuuNUpntlqyOVo/RjBU7omX8jFDmDOUJ7soyLYViKjqunuzkG2qxbp4u grxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v205si26210qka.10.2017.06.27.11.57.09; Tue, 27 Jun 2017 11:57:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 423FC60C92; Tue, 27 Jun 2017 18:57:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5CAA460BF4; Tue, 27 Jun 2017 18:57:05 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3D91B60BF4; Tue, 27 Jun 2017 18:57:03 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by lists.linaro.org (Postfix) with ESMTPS id 5725360AD1 for ; Tue, 27 Jun 2017 18:57:02 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id i127so36245336wma.0 for ; Tue, 27 Jun 2017 11:57:02 -0700 (PDT) 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=QE/HCFvJ3dcluzdxe0I7yXXkjFSgS0C9KnSikQlrtUQ=; b=BLP/kG7kpOORX9De9edHnw2zF/vke87EsM4O6JvKi5qO1ZN65Pb6r7ORq+vNII1ua8 qZtZ0ZDiQJGHg4gDb2rL6NIWKFThPJUxa8ErCHNGGUaEcIIRWVAU0yI6D8TwPE9TSlZK Q4piGNIXb3+v9ssk+YmmRqltgy/hvV410Sh9yaK+1KUe8AGQF2yMYcbLyQS0Grh7VSZY Z+JlTY3aD4oZiEL8i04Pt7IAZjUvUwxpI6AMAp8UUmLy7p21U/NcaHnYOwfhHrOKJO7I 4wVnAwz0+FkBpMLcjzlxkSXS75zLws6EpQ3BmViuKQ+/9HzvNTOzcVVb8JdymGV+Fnv9 a/iQ== X-Gm-Message-State: AKS2vOy+5Xt2SK71uLJjpZXYnlZoH1M2IcUYMDF3qk0ns9AxoAxuctxl rW7iUmwxCf1cmVv3vNgvLBTO X-Received: by 10.28.166.137 with SMTP id p131mr4565848wme.5.1498589821148; Tue, 27 Jun 2017 11:57:01 -0700 (PDT) Received: from localhost.localdomain ([105.133.250.69]) by smtp.gmail.com with ESMTPSA id h16sm5399744wma.14.2017.06.27.11.56.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 11:57:00 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Tue, 27 Jun 2017 18:56:17 +0000 Message-Id: <20170627185619.21847-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: rfranz@cavium.com Subject: [Linaro-uefi] [PATCH 0/2] Platforms/AMD/Cello: implement MAC override X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" Given that we're unlikely to ever see Cellos with the MAC programmed correctly, implement a driver that programs a MAC in a volatile manner instead. This still does not allow us to boot from the network, but at least we no longer have to care about this at the OS level. Ard Biesheuvel (2): Drivers/Net: add MAC override driver for Realtek 8169 Platforms/AMD/Cello: add Realtek MAC override driver Drivers/Net/Realtek8169MacOverride/Realtek8169MacOverride.c | 262 ++++++++++++++++++++ Drivers/Net/Realtek8169MacOverride/Realtek8169MacOverride.inf | 44 ++++ OpenPlatformPkg.dec | 3 + Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc | 7 + Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf | 4 + 5 files changed, 320 insertions(+) create mode 100644 Drivers/Net/Realtek8169MacOverride/Realtek8169MacOverride.c create mode 100644 Drivers/Net/Realtek8169MacOverride/Realtek8169MacOverride.inf Reviewed-by: Leif Lindholm