From patchwork Sat Nov 17 00:45:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151391 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1075503ljp; Fri, 16 Nov 2018 16:45:33 -0800 (PST) X-Google-Smtp-Source: AJdET5cjAAIfwYfgTZ+Pn7mlVC22WXfDM/M4r/EWMGkjPoMnQuH7feaqBpm8vsHeI8IuvYMU9Mzg X-Received: by 2002:a17:902:bcc4:: with SMTP id o4-v6mr13174435pls.13.1542415533357; Fri, 16 Nov 2018 16:45:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542415533; cv=none; d=google.com; s=arc-20160816; b=tYgxk8aJzrb3AlBGoNwEKjwadF0ugYVqs/HC9yvXwgewRMe1LShamvyWvlQc3durId VsoH82xiQJuv4KGZHOCGgN3KQgM2A/ymXHVUN/yYYB2J1qe7bNz/QlKK8MFL/4jQNq3J jCGDtyqSzHrwYMT1ijxnxkIq/rIBsMkuRZccbSRAyyVOtyZKhJBOZ/romTPxbboIce6f JOMrv431gOqhKyqAzmiAUGM+4pZUoVoFvG4v6oJNJ3AiXI68W0PTWIKokkTS9lmwocrL N2zsVqZf1V3uHlcq2np2brERLr2UPioLUoUw1CEcfmfwf27CAIK7Rud6+QIxXimutfVo eyew== 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:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=oLqWemPfFBUFq36PWPPKdGB44H8rdf5iiIwBawBMoGk=; b=pPvlZBKoBGi14cJIOWDW8sz1y1njbWckElste7ZymcNBZ4O1TaFtX2jU7BXmRZwZiR 4g1EKnBOdD5qaUTRLjBzo5upfzuwV4CLQgefKO6EgdoYwiEJwMjgxLC009BXuBuo9U9c cNlx5WeEwVAExintLdda655Kde8hxCmJwBy17BWtO1TE/bbiH57qBxRvKaBBYZ2kIwT7 Ozz3Gdj4J0ukdWo17NssN+vs1jEbMPO8odGxem0ELjTDq1D8BlbmBQqo4KYqEB5OVrEc gNJvdQJ/gG2JyHrl3d0jLwFAwQW0Fx/6gpuvBtTl/fNtPkypySwdT3ekXg7bc6hVj8cT khpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iM45dP0k; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id i63si31184058pge.515.2018.11.16.16.45.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 16:45:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iM45dP0k; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C90DB21191F25; Fri, 16 Nov 2018 16:45:32 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::644; helo=mail-pl1-x644.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (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 B2B852118EF7C for ; Fri, 16 Nov 2018 16:45:30 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id z23so649385plo.0 for ; Fri, 16 Nov 2018 16:45:30 -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; bh=y/USopXtDt6IrT+RJnpu9PlhR1VwovWXzy00NjRE3y4=; b=iM45dP0kzPVemJkluHj54I6Ukh2COqxRRYGH4shRcQLAVbm2A4PM0VPOkLlkezEw8K llVk+ENpgAx57d2WhdntNcKwu+aQcof7s5zMHq8ATqod/65bcWDk88KN6VsdqKnEyEy2 bzIvpnN8skkrZORRxZIDy7ECUmB/h22WeGvhs= 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=y/USopXtDt6IrT+RJnpu9PlhR1VwovWXzy00NjRE3y4=; b=lH+6/Z+HQLfKLzzlfZ+VJNGXxnH0P5nAeqFJ6QtWc8vvu8wnsRoVMTZ0nlLPz5nxlC jFt40JgmWL3WF2Lx3OwJtIObPcaPHH+1entHnmW0ESIoVVZ30nSO6MWoOznv6NCeD6bM 0nvMtQty44ifgurqmSXkrGS/iSTyA2L/Kxs4zNXrMoKCGyXx4bNZLDMc0mgQECPOvmZq a41VmfD1LksOcMNpqgUCUqzfbNQNA1OPUV2HsQJGZWu1YuHToD+u7sCfRB5NVpmjX1gW 0MI1zi8CvHNkAXXMAuui5BAfrIqzKCpMqVQmYNv6KaIRuPJlAegEqWriKqJxE+RnmHyJ v+1Q== X-Gm-Message-State: AGRZ1gLWccXs9LbzKSdT62h5A6iYr0ygVIejb0jk4ZxkW97V7lrt+/VS YGm82eN+XZeYIwmHS+kxmJDVUesRAkCDow== X-Received: by 2002:a17:902:15c5:: with SMTP id a5-v6mr12936144plh.136.1542415529406; Fri, 16 Nov 2018 16:45:29 -0800 (PST) Received: from mba13.psav.com ([64.114.255.114]) by smtp.gmail.com with ESMTPSA id f193-v6sm45674235pfc.74.2018.11.16.16.45.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 16:45:28 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 16 Nov 2018 16:45:22 -0800 Message-Id: <20181117004524.31851-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [edk2] [PATCH 0/2] ArmPlatformPkg, ArmVirtPkg: discover NOR flash banks from DTB 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: , Cc: lersek@redhat.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This series fixes an issue reported by Hongbo and Philippe, where ArmVirtQemuKernel will crash on an attempt to access flash bank #0, which is secure-only when running QEMU with support for EL3. So let's switch to discovering the NOR flash banks from the device tree instead. This requires some preparatory changes in the NOR flash driver to avoid having to invent GUIDs on the fly. Ard Biesheuvel (2): ArmPlatformPkg/NorFlashDxe: use one GUID plus index to identify flash banks ArmVirtPkg/NorFlashQemuLib: discover NOR flash banks dynamically .../Drivers/NorFlashDxe/NorFlashDxe.c | 15 ++-- .../Drivers/NorFlashDxe/NorFlashDxe.h | 3 + .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 84 ++++++++++++++----- .../NorFlashQemuLib/NorFlashQemuLib.inf | 12 +++ 4 files changed, 87 insertions(+), 27 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel