Message ID | 20230225222303.2232331-6-sjg@chromium.org |
---|---|
State | Superseded, archived |
Delegated to: | Heinrich Schuchardt |
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=GAUHIYzw; 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 4PPLs62hcpz2466 for <incoming@patchwork.ozlabs.org>; Sun, 26 Feb 2023 09:24:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD6C785B93; Sat, 25 Feb 2023 23:23:52 +0100 (CET) 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="GAUHIYzw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 52D2D84227; Sat, 25 Feb 2023 23:23:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (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 D2D9F85B9A for <u-boot@lists.denx.de>; Sat, 25 Feb 2023 23:23:34 +0100 (CET) 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-xd2b.google.com with SMTP id g6so1070737iov.13 for <u-boot@lists.denx.de>; Sat, 25 Feb 2023 14:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=SNx0U5Mvxa2vIPG5FaoH6YJlgerNdVOZ2R6j2Yr27/g=; b=GAUHIYzwKlCxHu9EkmOj/D4Npa3EIl0deki6EMlDXerf1i1sX9fgLxHYD5/uMW0jvo f5Dus5Ko6sjCfJJfY52r0HHF+6Wy56NRB7PYX9EkWCJD+8dKBb96VyhJE1IECPQdkq6+ KXClovJ0700HbQpbwcnJPf3q7pEWei733BjYk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=SNx0U5Mvxa2vIPG5FaoH6YJlgerNdVOZ2R6j2Yr27/g=; b=lQwhAatycQKKbELnsR9SyWy46TAq3RViWlXfi9NwSq8fMnNwVcjYa4IKlHAZTTpFgg EwmXGF9vtbNyDhYP9aQTfVOVxhUelOdOg1PQTft4mm/HNogk0XF5Z6l07X9Yx5K5dUQK 7EBMb4CLJs72x/EFUvFx+D/eI/wCWOSDnlcqnBQArnQI6T1YVjPS2HPTVS1E2FDhLL8o 4NyNfYea+NZk8Y+NfBFw33s4LmrkV24Co7I4mdRza8JAiUplVjlJlNSYBMd6b8ALYafJ rcnU5JYNWmKVYz4pbZMwr+eTfqwagBv0o7xRfXbl6gq5nsL6sTV5j8U5+Xe24nFutzOP iujw== X-Gm-Message-State: AO0yUKXvF1wdHuArcbezN3vZ1e4Giw4q7NN0KWmtBwJ3VsDM0wYPzCcw bA3j3oEd1wrS4QhO9OlqAF/2rCoacYRG0jgF X-Google-Smtp-Source: AK7set9mc60/xd8nT2ItLrDRy8PVp1sFmsGHJgMrK+gP+TUDlCxqOjzEV+pI7jJPFVSELeCcS6s7WQ== X-Received: by 2002:a5e:aa04:0:b0:74c:bf8f:4c88 with SMTP id s4-20020a5eaa04000000b0074cbf8f4c88mr3598975ioe.14.1677363814340; Sat, 25 Feb 2023 14:23:34 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t12-20020a5edd0c000000b0074c8295db0csm921187iop.6.2023.02.25.14.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 14:23:34 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Anatolij Gustschin <agust@denx.de>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 05/13] efi: Use a fixed value for the timer clock Date: Sat, 25 Feb 2023 15:22:55 -0700 Message-Id: <20230225222303.2232331-6-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230225222303.2232331-1-sjg@chromium.org> References: <20230225222303.2232331-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.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
video: efi: Improve the EFI-app video console
|
expand
|
diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 192c7b71a5a..f86a0b86921 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -404,6 +404,15 @@ static void tsc_timer_ensure_setup(bool early) if (!gd->arch.clock_rate) { unsigned long fast_calibrate; + /** + * There is no obvious way to obtain this information from EFI + * boot services. This value was measured on a Framework Laptop + * which has a 12th Gen Intel Core + */ + if (IS_ENABLED(CONFIG_EFI_APP)) { + fast_calibrate = 2750; + goto done; + } fast_calibrate = native_calibrate_tsc(); if (fast_calibrate) goto done;
It is not yet clear how to read the timer via EFI. The current value seems much too high on a Framework laptop I tried. Adjust it to a lower hard-coded value for now. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v3: - Add a comment about the value drivers/timer/tsc_timer.c | 9 +++++++++ 1 file changed, 9 insertions(+)