Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2847116yba; Mon, 15 Apr 2019 22:22:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYxqkHq84Jk0b72wM/5RbSLL+VDrxP6xgaQiGCqxVYzq0TUgow1zA7ozAiwrmgZKMwM/VP X-Received: by 2002:a63:6581:: with SMTP id z123mr71917648pgb.243.1555392157151; Mon, 15 Apr 2019 22:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555392157; cv=none; d=google.com; s=arc-20160816; b=OQ9T+sN/VrTjqhFd803N8tK/ZNGqTPbjrZAz4c8FCy9FAPMO7/+BA/L3fVQzXPPpzM ki5kBapT8ktgLx//YNUZRcQ7Hz4mppDvzJvGjqrdfwyBEClysBp9dypoaYZl25fv6EVF IjmZ0xgdMm9Tu2OKK6MHMrwGB12V9E4TOtvNf/VABeKIBeaYQTn/1ZOQK4wuUh6tUMao tt0SFUOGC1FvFWqPUwKU7enVWuQGsgE8ZlAm83YZhkF5ptzTK9qv5kthcucwPm5+191V 3pFANcnMh//q1uxeJOgjHBmBl653hsnbvEYglz4sIlqzbQYA/hgUbEekaIi/dzfiaVSL ZR7g== 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=lz9Hz4ZbqFyVEt168korXa9MrletdxQKUiTb4F1So3Q=; b=oN88Ag45V1BuybC1EEymgcYmo1zkN93gTgR33Vh0lkJYWwF0VO9JloqAuO+Ju7pVwU GuYOEcQsptuDf5tbeS7bdVV3T7cV3o/fWpYDysYjydeq0SzDY4AfaKmeJCjacu0E0hJT EKxY7g24EsW2vbAh/nmV5RLMj+Qg4JXiOWpE+Tdm+0SpMFAKc+FHUjYDbkUiBqOmH/Gi G1HNleiQ3xPtPl88Q5dhMOgSK9mhi/MyPq3J97QZS837s2pJbTvAvIBLUFvzhQnNBmIK UrLQ7FJV1rh8s1AGQupSsHqN+2MJg3ebpIySb9KwotbAhQ1ejGBsmikGe9ugYnfGQKPA ItWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="n7f0b46/"; 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 cb16si40320992plb.227.2019.04.15.22.22.21; Mon, 15 Apr 2019 22:22:37 -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="n7f0b46/"; 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 S1726986AbfDPFVe (ORCPT + 99 others); Tue, 16 Apr 2019 01:21:34 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:41633 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbfDPFVe (ORCPT ); Tue, 16 Apr 2019 01:21:34 -0400 Received: by mail-qt1-f196.google.com with SMTP id w30so21926617qta.8 for ; Mon, 15 Apr 2019 22:21:34 -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=lz9Hz4ZbqFyVEt168korXa9MrletdxQKUiTb4F1So3Q=; b=n7f0b46/7gqDXlhSCN5OBr87MyNrmNa264JzuzeEKP1i5OSz4QirUYpOxH7g4EE/Sb 5JKARwqNSey1eqR6xOMXvulgxxnGbyCa/kf4id31WZdqOl553TuatYGpWrUFhdC+yykF 9g6s4+cU73kmCv9db3tavoO6PvBsiuUl0Q3Z+tvxFUihTlbMX5Cr87iA7w/+jyTYZIvB Zo4OM0zK8BJDAEFM7sbJmBqChLa36pSKdScfG8WVbCf3nSzl/VrZSB6UIfkv9h6vUlM3 CI66rSvSoTbYlU9NtjEUrOvmR8yiLYGwqHqvf/FHeCVJr/WzSqL4oMN+lRhLsFFE4Ly4 J3tA== 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=lz9Hz4ZbqFyVEt168korXa9MrletdxQKUiTb4F1So3Q=; b=ohkbaaEy/lfkR5Kzcy4jfZW+NHE2Lb5aKRNQrWENsN3SW9uVSS5l3WFX7LQK2vBE9v KY4pIzeUbVLeAtF/XuqxhIKWLacIzGeIfr4XIxFVJ4+vu2prowtiNLa9o22/C7TtiDUl yQ1Q6F21txep5Hjc8Kz0dIiwX54BUKk9FNnKbIKcF7dFi+KPA3mGsCa2skZqKZGxBxAn RQ+BFjoMN6EsrV3MPL/3b6B6kEg54AM3ZX1DFMv52FhaEcie4Tt+czQlqRcqLx9RFbC8 F1ZGCN5/UTI2asWYQQMkM0K2n/0/A1LUpKZwYj9FUFfhs3A4MEwMSomdyY0fOOM/Fv20 tl6Q== X-Gm-Message-State: APjAAAU1WNESVzFSX2k9OuolEvkuiNIjp4yBrZCRW4RnujjnVkGIStdg BTr8l9syGSS/+u8P4QYWHa8R697ahYj0Ww/YlHMfHA== X-Received: by 2002:a0c:ba8b:: with SMTP id x11mr63127338qvf.196.1555392093573; Mon, 15 Apr 2019 22:21:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Drake Date: Tue, 16 Apr 2019 13:21:22 +0800 Message-ID: Subject: Re: No 8254 PIT & no HPET on new Intel N3350 platforms causes kernel panic during early boot To: Thomas Gleixner Cc: Linux Kernel , Ingo Molnar , Borislav Petkov , Hans de Goede , david.e.box@linux.intel.com, Endless Linux Upstreaming Team , "Rafael J. Wysocki" , x86@kernel.org, Len Brown 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 On Wed, Apr 10, 2019 at 8:54 PM Thomas Gleixner wrote: > On Tue, 9 Apr 2019, Daniel Drake wrote: > > On Wed, Apr 3, 2019 at 7:21 PM Thomas Gleixner wrote: > > > - Prevent the TSC calibration code from touching PIT/HPET. It > > > should do that already when the TSC frequency can be retrieved > > > via CPUID or MSR. Should work, emphasis on should ... > > > > >From above, this seems to be working acceptably already. It does touch > > the PIT, but ultimately ignores the information that it provided. > > Yes, but we might actually be smarter than that. Do you have anything specific in mind? You originally laid out this idea in the context of doing this if the PIT/HPET is not working. However, I can't immediately see how to judge that because: - According to the analysis in my last mail, the PIT is actually ticking even when it is gated in the BIOS. The BIOS setting just seems to make it tick 4 times slower and not generate any IRQ0 interrupts. - TSC calibration code runs really early during boot. To make it detect this situation we could make it check if IRQ0 is working, however setup_default_timer_irq() only happens a lot later, so I'm not sure how this could be checked at such an early stage. I think I'm now fairly clear on the other suggestions you have made so I'll see if I can come up with some patches. Thanks! Daniel