From patchwork Thu May 4 22:58:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1777195 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: 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=) 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=OVPSiCdY; 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 4QC8fK5jJWz1ydV for ; Fri, 5 May 2023 09:09:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B6C5985C98; Fri, 5 May 2023 01:06:39 +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="OVPSiCdY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3452D85832; Fri, 5 May 2023 01:06:38 +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-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (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 41A2A8607F for ; 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-xd2c.google.com with SMTP id ca18e2360f4ac-763c9805ff5so24647539f.3 for ; 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=6+3e4qa1fL51+0emKihs2+jlvsah1dJ9HyKIZoFYHvw=; b=OVPSiCdYSgeqyToc2pme5vXcLwDKflvJGRYOsWCi1ISP3JQRDhuJpPmAhjUTrQkAii DUGTa4uFNUiiOSbSY6Mu+DhTwLBwZm7DczMgndFPg3Ref1TNR2nAEyiTUrSJYyUrP4vH 50200LKiIAJ+7iw+97rqNtT++yu3BIhekW29w= 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=6+3e4qa1fL51+0emKihs2+jlvsah1dJ9HyKIZoFYHvw=; b=Y/T3sXbTCHwKKyqcEXdAIFc+WCUF2nBK6IvvAqFUUKIHv4S/4hushjB6fiD/TawFNg 3ZFAsXlzoNJ3Rq+R4KsDDItFiZW3fC01lwnFFOPODzlg8bxsjQmmLHIfOEC8Uf+FdXFl 9GQE3ki2AUTKEZPmxgNbNbHWfW/twLq1bmTHJlxRhrw4Lwk2ILONyZrxEqehFins733k STwweTIsP/kZY9Yf0ZXHRvIlarkJHhaQXmEqM7m6Z6J4F4pTbjZFOmzqhxG4orLVTLFb nuCNAab6PJGKUWSCYed/uTNB6M4NGmWqiJMsjbdExa/t89hous7aBo4kFZuVdMtWNmF6 /Qdw== X-Gm-Message-State: AC+VfDwP2Tnr4a93ishw7pSTSkHqhi+Y/WxLoecsGNJQ4m9FyF0Xnrro cY4VEDsNifOzoTeGTYskT3XvGJs1T3utXWW0nRs= X-Google-Smtp-Source: ACHHUZ71E6IZsev4HCGDEBaPuGWBoHIZ2LiogglPum0KdoJlMc6Fd5caIbi+MYNKns60LZEsWUBw/w== X-Received: by 2002:a5e:a90a:0:b0:760:ec3c:33ea with SMTP id c10-20020a5ea90a000000b00760ec3c33eamr276737iod.7.1683241146902; Thu, 04 May 2023 15:59:06 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 15:59:06 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Nikhil M Jain , Bin Meng , Simon Glass Subject: [PATCH v3 27/43] pci: Adjust video BIOS debugging to be SPL-friendly Date: Thu, 4 May 2023 16:58:13 -0600 Message-ID: <20230504165823.v3.27.I1836aeeacba0a24343a818c39a7e617cf9a301db@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 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean A hex value is expected for the VGA mode. Drop the 0x prefix, which is not supported in SPL. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/pci_rom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index ecb6da64c5c..62cfe60c0fb 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -319,7 +319,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), defined(CONFIG_FRAMEBUFFER_VESA_MODE) vesa_mode = CONFIG_FRAMEBUFFER_VESA_MODE; #endif - debug("Selected vesa mode %#x\n", vesa_mode); + debug("Selected vesa mode %x\n", vesa_mode); if (exec_method & PCI_ROM_USE_NATIVE) { #ifdef CONFIG_X86 @@ -370,7 +370,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), log_debug("done\n"); #endif } - debug("Final vesa mode %#x\n", mode_info.video_mode); + debug("Final vesa mode %x\n", mode_info.video_mode); ret = 0; err: