Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp683987ybx; Wed, 30 Oct 2019 03:26:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqz04feF2HS5AVU875t+lqJDj4Hj8km+HJHvth6ABQyZmPvg0POfzA1Qfdf7EQHOq76QF7zO X-Received: by 2002:a05:6402:4c7:: with SMTP id n7mr28574266edw.263.1572431192973; Wed, 30 Oct 2019 03:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572431192; cv=none; d=google.com; s=arc-20160816; b=rnikfBonIrjmqLgiAeXXimwI4R5kcbqL2jIauTHFsq82y8AeDz0am+NZSruq5ng5yL 1y7u0ynWQViAc65WXaDqMFceRMIdD6WeUKoP0b67Z2C24rbsYWX2k0Hzf+quy7GM68Ln h/1j25p4H4HF4bkdiBCvQEbKuQSKPOXjJzG0JUi4R/830cbzfKmBNIvmGfwmXJjt26zw H4yXjWBL/M3K0kwKFajIYXLnz10x2Z+FH8fUxM2BDDMIjEZT+jsMQIXuwM954YqSlgCc nXftY+BYrYraQtoCMYKKCy6hJDnZBhRF9KyigUnayxrnPRk4GxBI98KJfv63XryTv+eC iSbQ== 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 :mime-version:dkim-signature; bh=9hYolxApZ/voYxD7XS53KDc3a6r4YHM/nktkVUKF4bg=; b=Uitj7Gq94eNlaBeWmq2zIxN7REOnLHS4Tj/kPP7Ggntdp8JRyWFcg1vuYktX5djyM5 c0gCuQ7MiWznfxJ3vpMr25GgH0p4IYo21sq9LcCv3gkWVxtbqEPIlw8piN5+fs/Nbqjt KpobDsk+AIYAtq5akWCxp31PnH46v/LkG0T1jcU23UH64vXtAko5ukLX9MGQvKPXJmn1 iNB1qwnaYezcYwDSNhZnE2dv81fnckxXFCe71vDzbXKcie8y/jMAjaTj4GxuCtEwj0G0 UqImLoc22YFeYG3z7AVuxo9pvxZcU8W4rCEfo7cMtMf/TFB6J4D/b8bgvO9RJ+y0UPXA 3p/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=sqZ7uuLJ; 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 h52si1113664edb.77.2019.10.30.03.26.08; Wed, 30 Oct 2019 03:26:32 -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=sqZ7uuLJ; 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 S1726411AbfJ3KZ1 (ORCPT + 99 others); Wed, 30 Oct 2019 06:25:27 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:40182 "EHLO mail-qt1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfJ3KZ1 (ORCPT ); Wed, 30 Oct 2019 06:25:27 -0400 Received: by mail-qt1-f179.google.com with SMTP id o49so2457075qta.7 for ; Wed, 30 Oct 2019 03:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=9hYolxApZ/voYxD7XS53KDc3a6r4YHM/nktkVUKF4bg=; b=sqZ7uuLJqy730ZPYSTR3LHmqWEKUT8SAed5nP4lEaiR0imK6och+z0G4ydgFDSC4R8 CNWFzVe4eXEN7/5UJawavpoFt20OD5sT6lGoWKWAzT20pqBI0EspLjYfGQ5u2cjXeyFB mVmfgG41vaTH+sG5M30eJrVnnTYMJ5BtCc7KLg2cLLeR7NaYyqI687dkc/3qWhT1JVt/ zQnIy5qKzlC4yAenkBP77ubVrnfVPZltYQ1NTzPNoClZVq9BKJpGdWdgEvtJVyHSi4lX cx2FVaZcsh9EX9lQtuwmVSZ8I6AfgdBoHUU86wXoWPV7D6z743C9IdiQyOoaqLPRqti6 lzWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=9hYolxApZ/voYxD7XS53KDc3a6r4YHM/nktkVUKF4bg=; b=aFNl+9MRRyHwtD/MvxbI4A2SWTBFMk1Zh5+fTbiW6GOFf4+Y7AT5XlTrhU19Ni9ul8 oI5CejJ5P7Fx8kpEOMM8u9nkd2+eqb0FFxVjcWKB47pZjcsZIP5l4Z7KjzUgko82u6Cm k6UM0FuKxqVIQosnvd9mTPh1NOKrrIiTtGk40uhSYN3HouPDU4nZjvPUYBnAHcCBLbO7 LCxwdAw+hDewsuc+7H9eApbA5/jgDEfsH78w6q1Rx/3pkFGFznfFC3aLLAJCZm4IARbU ZSRAzmeiCyE/M1fdHmuzIQLJmyCuN6zhgaBr4hRJfCXL+t1pJpHQjBPJF3A0cxXW2Lc2 V/hg== X-Gm-Message-State: APjAAAUSOvoAYEfe80V6dCCeIiZYJG0vKhZp2ZhdiQqSG/tQ/SQ7uFo0 dRaLPw9JRvu1cLS3IHLKhXfX4TjPXRTTe+2vk/epFw== X-Received: by 2002:a0c:b0fa:: with SMTP id p55mr28866680qvc.239.1572431126096; Wed, 30 Oct 2019 03:25:26 -0700 (PDT) MIME-Version: 1.0 From: Chris Chiu Date: Wed, 30 Oct 2019 18:25:14 +0800 Message-ID: Subject: Unexpected screen flicker during i915 initialization To: Jani Nikula , joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, David Airlie , daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, dri-devel Cc: Linux Kernel 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 Hi guys, We have 2 laptops, ASUS Z406MA and Acer TravelMate B118, both powered by the same Intel N5000 GemniLake CPU. On the Acer laptop, the panel will blink once during boot which never happens on the ASUS laptop. It caught my attention and I find the difference between them but I need help for more information, The major difference happens in bxt_sanitize_cdclk() on the following condition check. if (cdctl == expected) /* All well; nothing to sanitize */ return; On the problematic Acer laptop, the value of cdctl is 0x27a while the same cdctl is 0x278 on ASUS machine. Due to the 0x27a is not equal to the expected value 0x278 so it needs to be sanitized by assigning -1 to dev_priv->cdclk.hw.vco. Then the consequent bxt_set_cdclk() will force the full PLL disable and enable. And that's the flicker (blink) we observed during boot. Although I can't find the definition about the BIT(2) of CDCLK_CTL which cause this difference. Can anyone suggest what exactly the problem is and how should we deal with it? Thanks. Chris