Message ID | 20230504165823.v3.28.I5d4da5b2cfd954fe701b870764873f8beee29328@changeid |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=d00c1X2Z; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QC8Yq151vz1ydV for <incoming@patchwork.ozlabs.org>; Fri, 5 May 2023 09:05:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5260986131; Fri, 5 May 2023 00:59:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="d00c1X2Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 918F786029; Fri, 5 May 2023 00:59:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2A15686076 for <u-boot@lists.denx.de>; Fri, 5 May 2023 00:59:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-760f29073b4so26520539f.2 for <u-boot@lists.denx.de>; Thu, 04 May 2023 15:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683241147; x=1685833147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r8RvHJuJ/Qa6+4m7eLyvNiS7RRxTJw6rnQ63cwsgq6E=; b=d00c1X2ZxP+de9/zomHMehKKAokpoKMLHsijkN3sDW0NDW9T6DvLntPWP3/BroUjaL ySgN9y7oNJiLv7tRJBRIOYPQks5CkH5Ke4/Qau/1S/De1cUCnMWk0FNvhqh7z4Uj8Zow lg2TcGJW072Yku6zgqlIFvFovFQ/t6/H26tGs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683241147; x=1685833147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r8RvHJuJ/Qa6+4m7eLyvNiS7RRxTJw6rnQ63cwsgq6E=; b=TNSp80TYlKEplF+uc7YtGcqClJ8NnPepYGvWH6jRCsm+qEiXUXoIcosCPeUwvucxV7 DwRdq1ase0Mt7lTE0Bo5/VhjT5mU3JVV7IiBLL8I0dVYj+BunlhEW6J8KLO7+1oMWPM2 YTzL6iYxt23ayjj2iGuJi8gQb3PWMSxiiyT/DmZFNg35DZVsFmQxCx+kCTpbvIoT1oJP t/YT8zARmGRcjOm5nT2fFoPivhAZXNtqS937fbkYuZhmtUrAESi382YjFQkgJhR33wbd 1TQ8ve0yqA8Pi740fMdU3Ynm5TGbGE1IAJpm2+GGXEPfdWbOkBxJMUbCtY0mUb5nrRww lN4g== X-Gm-Message-State: AC+VfDyBywXwaUZgC2Wg3wMZ+8VzT+2VQ5JeSVu4pVSKGCJFRpYWxJwj u9InbL9ymO/73sog1ind4Hf+0EbSpY4jYpOG7vA= X-Google-Smtp-Source: ACHHUZ4as07na1JmM0aMJo6mxG56xHaXuGIoeywNoYtdt4CL2n2f6QLmtZsDF61IahJE0JrSv8NVUg== X-Received: by 2002:a5d:804b:0:b0:758:917b:c313 with SMTP id b11-20020a5d804b000000b00758917bc313mr214180ior.13.1683241147583; Thu, 04 May 2023 15:59:07 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:b5a:9fa0:3da:54ec]) by smtp.gmail.com with ESMTPSA id e11-20020a5ede0b000000b007608af6dfb4sm39506iok.31.2023.05.04.15.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 15:59:07 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Nikhil M Jain <n-jain1@ti.com>, Bin Meng <bmeng.cn@gmail.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 28/43] pci: Mask the ROM address in case it is already enabled Date: Thu, 4 May 2023 16:58:14 -0600 Message-ID: <20230504165823.v3.28.I5d4da5b2cfd954fe701b870764873f8beee29328@changeid> X-Mailer: git-send-email 2.40.1.521.gf1e218fcd8-goog In-Reply-To: <20230504225829.2537050-1-sjg@chromium.org> References: <20230504225829.2537050-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Use qemu-x86_64 to boot EFI installers
|
expand
|
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 62cfe60c0fb..ba2cf18d53e 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -93,6 +93,7 @@ static int pci_rom_probe(struct udevice *dev, struct pci_rom_header **hdrp) debug("%s: rom_address=%x\n", __func__, rom_address); return -ENOENT; } + rom_address &= PCI_ROM_ADDRESS_MASK; /* Enable expansion ROM address decoding. */ dm_pci_write_config32(dev, PCI_ROM_ADDRESS,
In some cases the video ROM may have been enabled previously, such as by a previous firmware stage. Use the correct address in that case. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) drivers/pci/pci_rom.c | 1 + 1 file changed, 1 insertion(+)