From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::344; helo=mail-wm1-x344.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0C1C0208D6147 for ; Sat, 16 Feb 2019 02:34:29 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id j125so12133080wmj.1 for ; Sat, 16 Feb 2019 02:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4eSLjW4gITVvCfIa3S2lWLu/EnCjKK4jyRsokqmwYuE=; b=yt4YvkLWWS+fEuzNeZ57UkbKbOTi5JXdBe4R/KKhtvLOMeR8K6lw1CiCwLait42E20 DxawgWEawUj8JyflRl7Y8PEf5DPSI6y4qWVn+bsv3/gUv0oPYk4QLEcdGjUrhsxbd+vE Wp7aQP5x2mZUeL/0wtzSmi3DeEXGWlGtaJfblU37ord6AKAYMjU93hOkFKOfOkGjE+uO KnXGO+OmD5Id+kooVPAW8XV/wD7Uj5d7PNjg6FZAM/GeyP6xxIRc7i+oubn1umHPBzYE zrP7lxd+IsZoTVGo6VkbTyh+hihE1Vn2Uvv2jSU2IWwtKzXCo34YGA0S4ZuI0NTl6bYu l4+w== 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:mime-version :content-transfer-encoding; bh=4eSLjW4gITVvCfIa3S2lWLu/EnCjKK4jyRsokqmwYuE=; b=iUD20xZ4F3r2Fg3NntQuYyzHzfi1cuxy5cff0igEk/676srQQzI6A0s/9+kaMBGz/m 4CwvG5Rk+zXFT1WNikBW13xc3CQ347u+ObrhoM4e/DgpwOID3u6O2huB/j44r4JWQzkf p5LHGup4bq1oxRCmsD/4+Iw8P1KBC4t33TuAE2oZccHAxgSGcIUId2Ji2vZPGUxaS9cI TmOx4SouC04xFTvusN/H/wNKW5s+Tua6ZgrCKjqpyyIun87Ru1bL1ZVyEE65j4NjH/wQ 7U94RIWtzdy7cezZHapiJBrNqGwBIsmN5jAhNcJEaNP/MYSsWmNM/Jf+utb/2xDgrzaC vsCQ== X-Gm-Message-State: AHQUAub4KI5BkmaWBQmf6DOCH4KsEDawWwhYmLMujvGh411GnEqpU/S+ Ly+w0+nUnyP3e/874yjn88FtHUF4YzE= X-Google-Smtp-Source: AHgI3IZuH8T6nBLblCKaA7OTgXHwRw4zxHnBfYiuxUNJ3Fjy4Ky6JnDMSuyClQ634boqcorcD2XCUw== X-Received: by 2002:a1c:9c15:: with SMTP id f21mr8954493wme.94.1550313267596; Sat, 16 Feb 2019 02:34:27 -0800 (PST) Received: from sudo.home ([2a01:cb1d:112:6f00:ddaf:5369:7280:8c79]) by smtp.gmail.com with ESMTPSA id u10sm4740314wrr.33.2019.02.16.02.34.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Feb 2019 02:34:26 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Sat, 16 Feb 2019 11:34:20 +0100 Message-Id: <20190216103422.10907-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [PATCH edk2-platforms 0/2] Platform/RaspberryPi3: add RNG support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2019 10:34:30 -0000 Content-Transfer-Encoding: 8bit Add a RNG driver for the BCM283x and wire it up for the Raspberry Pi 3 platform so that the random number generator is accessible to the OS loader via the EFI_RNG_PROTOCOL. This is used by the KASLR implementation in the arm64 Linux kernel to randomize the placement of various parts of the kernel. Changes since v2: - move the RNG specific SoC definitions into the Bcm2836.h common header - add patch that wires up the driver into the RPi3 platform Cc: Pete Batard Cc: Jeremy Linton Cc: Leif Lindholm Ard Biesheuvel (2): Silicon/Bcm2836: add random number generator driver Platform/RaspberryPi3: add RNG driver Platform/RaspberryPi/RPi3/RPi3.dsc | 5 + Platform/RaspberryPi/RPi3/RPi3.fdf | 5 + Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c | 203 ++++++++++++++++++++ Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf | 45 +++++ Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h | 9 + 5 files changed, 267 insertions(+) create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf -- 2.20.1