Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2979713ybd; Fri, 28 Jun 2019 00:27:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIqtoeXYUTzJGGcOOuyCtb1c1MEhtKjyg5lmZkzltJntzimUWM+jdgNZqBw7MA2OaxHs4f X-Received: by 2002:a17:902:106:: with SMTP id 6mr10004421plb.64.1561706855625; Fri, 28 Jun 2019 00:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561706855; cv=none; d=google.com; s=arc-20160816; b=l4Eukn2879vu11fTyaymjpZwhI0PgaMjcvBdzsyQUcyDv1askGgobpmMA8vS262sGq /ewLoplTq7LkDgFd1T1F5gS9loKxIZlP/fxuyELXo/zXobV5EUvGCHbjFyJ8e3U5y/5N FAHb9cer9xcUKDdbgBmtGIdMJl3UUn6uOXjONvT7b4PXxJMzXnovYvgmmUgZbimthXYB vWkSFZxXipxega0dGndn7zyPhUYak7P/5nKsIKthV1Llr0jQ1zcw3wxiJ34Un+QrT4wP miPaTMAOm1WjpMUTLvyUZJ1r3wenYTVjtXsRHQpZoj567z0nHjMZpJ2v28I8N+ij8tis 7Zyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=D/QdUNDcGRTIn4Mm1UmaweKSH9RuZF0BWTBRT3JrMYA=; b=XclrhtHBoxVx8hkkFvpFyrXTgc7LKIsS3nXGz5iH2nj7t1Qn5oawvY8cHjdpm8WvHE qO/gwrxqWBrWNrWyasEn2sq6PYMlvfLfrMTXCuz8DI1deGz+mrcdNAs5NGxpV1Ov1FzM A6vYG3k/psJeQ4GCAGvchyk0xakcJ73/Ja8VBzsfASCDn4m6vwfSap9QBN5Lz5Ozjv1M yXQy1KHJ61cNsBWKJorQyj2kLsTtAdohoI/QutGHbuQvot6lRt/3aPm50RebQw2ADguh q1EbdhZVgwBQOGgzvLDrLWwtrcM9qQcGyARwNMwjF8mD1tKNdtGUfjKjSXsYn6THMf4k U8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="U2/XpaCZ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si1654036pfn.0.2019.06.28.00.27.19; Fri, 28 Jun 2019 00:27:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="U2/XpaCZ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbfF1H0U (ORCPT + 99 others); Fri, 28 Jun 2019 03:26:20 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45789 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfF1H0U (ORCPT ); Fri, 28 Jun 2019 03:26:20 -0400 Received: by mail-qt1-f196.google.com with SMTP id j19so5223618qtr.12 for ; Fri, 28 Jun 2019 00:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D/QdUNDcGRTIn4Mm1UmaweKSH9RuZF0BWTBRT3JrMYA=; b=U2/XpaCZZAGxGXBysk14pwxKFeBZknZSzVbGUajAjQnFulC4yADxymGFGlJrAhAobU Vnt4S4ERl2Hb4S/Hf40jdRkOgvVg5xThytoFkowCyZEtRFFK1J79VVfWdWPiSSi6sUe0 mtDZwYbIJP81SfRPSxT/7/ET4VQLa6U2K54eG0TFMU28U/oRd6brXSHybCLk0PE3QCDt 3ns5245/0b2D1CUtVjDMu3VFUvxDFofCaQ6S8SIj8gaoWP/br0IgAeO6zVQNYiSU4WhB RbjtLa6xAJyoHTsGBryD9Uj5vV+A27mdYYFoih+XNbo1UEO5uYb3NHLGX9pnOqY97SPH 10/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D/QdUNDcGRTIn4Mm1UmaweKSH9RuZF0BWTBRT3JrMYA=; b=e6oqTKuLi4qjo6HmmXPYR3uAyrG8AefJanEGn0DG2EyBLfB0yCqKieqq6l4oIRYnmF gI0Bi7NxoS12yTC86q/WGsnG/qdUcHMgXnsG9X4Qn0llYZt6O2LhxMWUM6ftMpghJsa/ 7Ugs6lvwp515o1NYrYFP6nSU8RWmMa5Y3qZN9ogKR+KVQqpLBSZdxSQb6bUOsKCWgv1+ bc/GFZt1D+YoInXI/rvZUtBh+d6Ga0Bl8SYXDbtmhUOy1jall/LMWOZyeW6Av8LoiXF+ cwa/nlnDjGMmSGjU/bTOCqUAHEyvgrKIgTmSG1pgXOCGbnfDNsdNa7ByVdXGRAo0Ks0n mPDQ== X-Gm-Message-State: APjAAAXJOQmWCZf9jr3OiSMEOjct/2srNuomYQ7xL/C33N5ESYXoD2Rf S4eM612RJY2tYbIRrycdKxz4NOIA4jrnaLZNOG5bze7e/gdq6g== X-Received: by 2002:a0c:895b:: with SMTP id 27mr6622552qvq.94.1561706778916; Fri, 28 Jun 2019 00:26:18 -0700 (PDT) MIME-Version: 1.0 References: <20190628072307.24678-1-drake@endlessm.com> In-Reply-To: <20190628072307.24678-1-drake@endlessm.com> From: Daniel Drake Date: Fri, 28 Jun 2019 15:26:07 +0800 Message-ID: Subject: Re: [PATCH] x86: skip PIT initialization on modern chipsets To: Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: hpa@zytor.com, x86@kernel.org, Linux Upstreaming Team , Linux Kernel , "Wysocki, Rafael J" , Hans de Goede Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oops, please also add a reference to the main thread: On Fri, Jun 28, 2019 at 3:23 PM Daniel Drake wrote: > Detect modern setups where we have no need for the PIT (e.g. where > we already know the TSC and LAPIC timer frequencies, so no need > to calibrate them against the PIT), and skip initialization PIT in > such cases. > > Skip the IO-APIC timer-checking code when we don't have a PIT > to test against (this was causing the panic). Link: https://lore.kernel.org/lkml/CAD8Lp45fedoPLnK=UmUhhtkjy5u2h04sYKrx3U+m04U6FpVZ4A@mail.gmail.com > Tested-by: Daniel Drake