Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1232626pxb; Thu, 28 Jan 2021 11:02:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVI+UsFsfWmCPW5Trbf/n3AGQmRjlzViO/kxNNhmc7vuUA/+sdBUjHFsD2ISZjj/X9W0vp X-Received: by 2002:a17:906:bfcc:: with SMTP id us12mr839202ejb.163.1611860541979; Thu, 28 Jan 2021 11:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611860541; cv=none; d=google.com; s=arc-20160816; b=qqlZ7kZPmlbgHltm/TAhUVrg7z6jyIj/Md2/hyGtQ8Laz6G2F7oAONUevfzKnDmm6Z kx7NDsC5uO9aRJ2LnFhgGfFeuVmh9qjAoyIA1/0k2CSS5nnl+dlxmBe4GfwI0CwJveP2 /6riy+YHk/qyR8MrG/oPd2euL3Wok2SN+czpsKmHWEASCgnL/E444zAf0ZkjaqCwDww4 eyZf4GM/csyoKoKoVFYGuRZKoTUDugsvYPooIZ3L29hJTToAihEpcQc8yzHoIOzUr6z9 dX2eLqFgdG+bMHuHAvy/vleQKAYGMX/bz+3pKq1rmURX+o02DR0/k7h/sUH+AfOVcYPC 0u+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=fN8hDZQjlw0VNPIgk+kMxmjdJTH/6PY902zO99nw+Mk=; b=lYA3HTVABGRL2VRd0fdS3CoPirhZvbRzyV1inVK5qz5CShrTqqSKzii9otl/ScFp/Q ccKm+sIPNUP4sEpCQ2m+/0y7uurbhIsLWz6clz0s64QM4mB9jj7abpLaPHTeV3TLq0os l31vf45k3pow4GbqPlgB9QhLniEPvz8aWjNXs3QaZwpXEFO4f1KWiX3f4mCklsZ/C0KE HYpqoFbk2MG8WI11yoVGvbTXh7OGamBEhUrMR571iyiY+7Tl8VCgJpcSON9xxQXnTx4S U7ajFO0ZMJmGHeUE9hGJQgHK1aOV9A+u21xdCxPpzhkelmnbaSNmOfaFwP4dTunpUfym LbCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hh14si3082369ejb.457.2021.01.28.11.01.56; Thu, 28 Jan 2021 11:02:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbhA1SyZ (ORCPT + 99 others); Thu, 28 Jan 2021 13:54:25 -0500 Received: from mga12.intel.com ([192.55.52.136]:5650 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbhA1SwR (ORCPT ); Thu, 28 Jan 2021 13:52:17 -0500 IronPort-SDR: JEPUnOtOPZVwglaFeN9jY1RTw/TrIjKbQYejRklWPeEBCvnrUaUCMsX9dQv9V4woMf57hbvYtp GbOZngsE4Y2A== X-IronPort-AV: E=McAfee;i="6000,8403,9878"; a="159464520" X-IronPort-AV: E=Sophos;i="5.79,383,1602572400"; d="scan'208";a="159464520" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2021 10:50:05 -0800 IronPort-SDR: ZDYtK5zINq59RqmmhpdHKlSKybeGQ3sXCDCl261ndYRPxzt4QmZBKhMF0yTaDPwKM+6SXmMvHH HRWX6yLZlO8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,383,1602572400"; d="scan'208";a="357541050" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.171]) by orsmga006.jf.intel.com with SMTP; 28 Jan 2021 10:50:03 -0800 Received: by stinkbox (sSMTP sendmail emulation); Thu, 28 Jan 2021 20:50:02 +0200 Date: Thu, 28 Jan 2021 20:50:02 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Steve French Cc: LKML , Lyude Paul , Daniel Vetter Subject: Re: regression in drm_blank.c? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 28, 2021 at 11:12:50AM -0600, Steve French wrote: > For the last month my logs have been flooded many times a second with: > > "nouveau 0000:01:00.0: [drm] *ERROR* crtc 50: Can't calculate > constants, dotclock = 0!" Would indicate someone has a bogus adjusted_mode in their state struct. Assuming this is one of those atomic nouveaus of course. No idea what goes on with any of the older(?) stuff. Sadly it's an error and not a WARN so we don't get a backtrace to see who is calling it. The only related changes around the atomic helpers I remember were commit 441959ebc905 ("drm/atomic-helper: Remove the timestamping constant update from drm_atomic_helper_update_legacy_modeset_state()") commit 4b31a9c77bf8 ("drm/atomic-helper: Extract drm_atomic_helper_calc_timestamping_constants()") but those should be a nop for nouveau. So no idea really. I'd suggest changing it to a WARN to see where it's coming from and then adding more debugs to figure out why the mode is garbage. > > (see line 641 of drm_vblank.c) which is distracting for debugging all > other kernel problems (since dmesg entries on this system are 99+% > this message). > > Am running current kernel ie 5.11-rc5 (although it also was very very > noisty in 5.10), Ubuntu mainline kernel builds, Lenovo P52 Thinkpad > laptop. Could it be due to one of the more recent changes to > drivers/gpu/drm/drm_vblank.c? > > Ideas how to workaround this? > > -- > Thanks, > > Steve -- Ville Syrj?l? Intel