Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3623498pxv; Mon, 5 Jul 2021 01:40:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1iSXz/jjlBJovkemu4DOPMguCdZk2wRbe9hxpAIT4vZO8fMl7yOc44eia3WJcq7Jg/AJi X-Received: by 2002:a17:906:6d97:: with SMTP id h23mr12319354ejt.467.1625474454252; Mon, 05 Jul 2021 01:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625474454; cv=none; d=google.com; s=arc-20160816; b=z62YkLGaSXWjrYnHncMX/hcJ8Ng28k8yKcHeyz7SnXtbkuL9QoTVsi44JqzQChVyUL KLmv/ZqmvfTQXb26ZIcSo387jg0q9SQplG2/obZji8zctHZQg5QuHsb4LSeFNgABB1dr beI47Ux0e2lzvZ/s5RA0twFWBHrk9pCMb2FmygtH/u8bmTcQG6yYflk7ujbeH4d++tlB 3gaE9KTwi6Hhej6efMMShzI7uNRooSwLv7t7scq4ocjRy8+Ny72aMWRklBRuwyPNEj53 JcRO6WLc8Zz7TBmMUgqTUIg46H0qiulf7T3SJlikXSzuUnSlV5IYHDJBZiPVr7WO/Zyv MsRg== 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-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ak9LXPkYf1/cFqvnSLvtos9mdlfc8EfyJY+nrstneP4=; b=esGwFR0AJeGON1oxoqcvtWdoEm90oO4kWC42noGF7yCG0p8+XRms0PzWSVJvSZqsOv Tqr0KHMvy86+PBHPnagZ6ZatThhFwUq7co8PrAoqtwYmSWkN3juj+qw7TALTazyVyhDG QfWx7qNJMycS9AQJvvscH5LslAN9Nl5eO/m3Cw1RkLJliYe7EEZpOyD5GbQ0zMvrL3J9 T7Z5U1KOOlGJOvqvbqwnW7+E5jZOnKWWRabMVBBx1ra8lI0YXk1UyNcdPf4AEwtXkVI3 X9vxu05Qx3CUJm/lsgM4g3cMCpB11U24KGxkmGG8HvC+0Vx19X8oJQqpHHKBSqrXdG7W hyXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=MOgHD0Z0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di19si5072860ejc.243.2021.07.05.01.40.30; Mon, 05 Jul 2021 01:40:54 -0700 (PDT) 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; dkim=pass header.i=@ffwll.ch header.s=google header.b=MOgHD0Z0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhGEImN (ORCPT + 99 others); Mon, 5 Jul 2021 04:42:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbhGEImN (ORCPT ); Mon, 5 Jul 2021 04:42:13 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63D0FC061574 for ; Mon, 5 Jul 2021 01:39:36 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id q18-20020a1ce9120000b02901f259f3a250so10802329wmc.2 for ; Mon, 05 Jul 2021 01:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Ak9LXPkYf1/cFqvnSLvtos9mdlfc8EfyJY+nrstneP4=; b=MOgHD0Z0kUtKOhrYVsFspAOJnm+ZOqoedArM5UXhn5Sguld9nN/vqw+RcnaOfZm5D/ NBZOfZxj8/5Ejg0Wla3fK2kGw5T+HGt69gRVhjh1Na6eyeniBbmBu+yrucYQy9n6yFTN BTUc7/4IgfjLil9rmq66t5Vuwr2G0S0TBL/x0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Ak9LXPkYf1/cFqvnSLvtos9mdlfc8EfyJY+nrstneP4=; b=MHSL1fkpv6j+bszx8GdtxBiCbrQa58Zd9zc0w6Y1oWJieD3xTrza51iMG/61/P777o lQEFtIuJ1bdctF2kLzufQf6U4Ym6JvW2hQZ/nu+pWg5aGpJMA8VOGvKdtCofrq++Foa6 KDgfa4Yf8aXoFTkfiT4PRkn+RCTKBKqxXFs/082lzyTyJ7NCTrvqsWZu/Q4nOnRrc7nk E9ADwMfYGr3TZwSrAyj/L/d43O9PnzCoh5f8OB69vUKxaCpKp/lD+8XGCp+rwCsN9kEy MRnllo0MTS1A6cOVxZMMCQaZf5r4AB4F67IAQVIDoNAM/KkvcJUYQCk9WgNi1K8RSfUE BYAw== X-Gm-Message-State: AOAM531f9tbXanJg6F9d1QXmnkb9buHdmSRuwYwchvJI3+8xFi1Q+Kea 5Q0YZ8D6ORXlNgdc76Ikg8xoDA== X-Received: by 2002:a7b:cd06:: with SMTP id f6mr14114698wmj.64.1625474374972; Mon, 05 Jul 2021 01:39:34 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id k12sm1697253wms.8.2021.07.05.01.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 01:39:34 -0700 (PDT) Date: Mon, 5 Jul 2021 10:39:32 +0200 From: Daniel Vetter To: Jani Nikula Cc: Corentin Labbe , mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, maarten.lankhorst@linux.intel.com, linux-kernel@vger.kernel.org, Kees Cook , Arnd Bergmann , Daniel Vetter Subject: Re: drm: screen stuck since commit f611b1e7624c: drm: Avoid circular dependencies for CONFIG_FB Message-ID: Mail-Followup-To: Jani Nikula , Corentin Labbe , mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, dri-devel@lists.freedesktop.org, maarten.lankhorst@linux.intel.com, linux-kernel@vger.kernel.org, Kees Cook , Arnd Bergmann References: <87lf6l9nnh.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lf6l9nnh.fsf@intel.com> X-Operating-System: Linux phenom 5.10.0-7-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 05, 2021 at 11:21:22AM +0300, Jani Nikula wrote: > On Sat, 03 Jul 2021, Corentin Labbe wrote: > > Hello > > > > On next-20210701, my screen is stuck (see attached photo). > > I bisect the problem to: > > git bisect start > > # good: [62fb9874f5da54fdb243003b386128037319b219] Linux 5.13 > > git bisect good 62fb9874f5da54fdb243003b386128037319b219 > > # bad: [fb0ca446157a86b75502c1636b0d81e642fe6bf1] Add linux-next specific files for 20210701 > > git bisect bad fb0ca446157a86b75502c1636b0d81e642fe6bf1 > > # good: [f63c4fda987a19b1194cc45cb72fd5bf968d9d90] Merge remote-tracking branch 'rdma/for-next' > > git bisect good f63c4fda987a19b1194cc45cb72fd5bf968d9d90 > > # bad: [49c8769be0b910d4134eba07cae5d9c71b861c4a] Merge remote-tracking branch 'drm/drm-next' > > git bisect bad 49c8769be0b910d4134eba07cae5d9c71b861c4a > > # good: [4e3db44a242a4e2afe33b59793898ecbb61d478e] Merge tag 'wireless-drivers-next-2021-06-25' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next > > git bisect good 4e3db44a242a4e2afe33b59793898ecbb61d478e > > # good: [5745d647d5563d3e9d32013ad4e5c629acff04d7] Merge tag 'amd-drm-next-5.14-2021-06-02' of https://gitlab.freedesktop.org/agd5f/linux into drm-next > > git bisect good 5745d647d5563d3e9d32013ad4e5c629acff04d7 > > # bad: [8fe44c080a53ac0ccbe88053a2e40f9acca33091] drm/amdgpu/display: fold DRM_AMD_DC_DCN3_1 into DRM_AMD_DC_DCN > > git bisect bad 8fe44c080a53ac0ccbe88053a2e40f9acca33091 > > # good: [2c1b1ac7084edf477309d27c02d9da7f79b33cec] drm/amdgpu/vcn: drop gfxoff control for VCN2+ > > git bisect good 2c1b1ac7084edf477309d27c02d9da7f79b33cec > > # good: [2c1b1ac7084edf477309d27c02d9da7f79b33cec] drm/amdgpu/vcn: drop gfxoff control for VCN2+ > > git bisect good 2c1b1ac7084edf477309d27c02d9da7f79b33cec > > # bad: [d4c9b03ff6a9914b55e4e23fcac11339a2706cc6] drm/amd/pm: Add renoir throttler translation > > git bisect bad d4c9b03ff6a9914b55e4e23fcac11339a2706cc6 > > # bad: [691cf8cd7a531dbfcc29d09a23c509a86fd9b24f] drm/amdgpu: use correct rounding macro for 64-bit > > git bisect bad 691cf8cd7a531dbfcc29d09a23c509a86fd9b24f > > # bad: [2fdcb55dfc86835e4845e3f422180b5596d23cb4] drm/amdkfd: use resource cursor in svm_migrate_copy_to_vram v2 > > git bisect bad 2fdcb55dfc86835e4845e3f422180b5596d23cb4 > > # bad: [6c3f953381e526a1623d4575660afae8b19ffa20] drm/sti/sti_hqvdp: Fix incorrectly named function 'sti_hqvdp_vtg_cb()' > > git bisect bad 6c3f953381e526a1623d4575660afae8b19ffa20 > > # bad: [5ea4dba68305d9648b9dba30036cc36d4e877bca] drm/msm/a6xx: add CONFIG_QCOM_LLCC dependency > > git bisect bad 5ea4dba68305d9648b9dba30036cc36d4e877bca > > # good: [4a888ba03fd97d1cb0253581973533965bf348c4] drm/vgem/vgem_drv: Standard comment blocks should not use kernel-doc format > > git bisect good 4a888ba03fd97d1cb0253581973533965bf348c4 > > # good: [c5ef15ae09637fb51ae43e1d1d98329d67dd4fd6] video: fbdev: atyfb: mach64_cursor.c: deleted the repeated word > > git bisect good c5ef15ae09637fb51ae43e1d1d98329d67dd4fd6 > > # bad: [f611b1e7624ccdbd495c19e9805629e22265aa16] drm: Avoid circular dependencies for CONFIG_FB > > git bisect bad f611b1e7624ccdbd495c19e9805629e22265aa16 > > # good: [ff323d6d72e1e4971c8ba9e2f3cf8afc48f22383] video: fbdev: mb862xx: use DEVICE_ATTR_RO macro > > git bisect good ff323d6d72e1e4971c8ba9e2f3cf8afc48f22383 > > # first bad commit: [f611b1e7624ccdbd495c19e9805629e22265aa16] drm: Avoid circular dependencies for CONFIG_FB > > > > reverting ff323d6d72e1e4971c8ba9e2f3cf8afc48f22383 lead to a correct boot (I got a viewable login prompt). > > I presume that's a copy-paste error, and you mean > f611b1e7624ccdbd495c19e9805629e22265aa16, the first bad commit, i.e. > > commit f611b1e7624ccdbd495c19e9805629e22265aa16 > Author: Kees Cook > Date: Wed Jun 2 14:52:50 2021 -0700 > > drm: Avoid circular dependencies for CONFIG_FB > > > So ff323d6d72e1 cause this config change when compiling my defconfig: > > --- config.fbok 2021-07-03 21:31:08.527260693 +0200 > > +++ config.fbko 2021-07-03 21:39:51.604275703 +0200 > > -CONFIG_VT_HW_CONSOLE_BINDING=y > > +# CONFIG_VT_HW_CONSOLE_BINDING is not set > > -CONFIG_DRM_FBDEV_EMULATION=y > > -CONFIG_DRM_FBDEV_OVERALLOC=100 > > -CONFIG_FB_NOTIFY=y > > -CONFIG_FB=y > > -# CONFIG_FIRMWARE_EDID is not set > > -CONFIG_FB_CFB_FILLRECT=y > > -CONFIG_FB_CFB_COPYAREA=y > > -CONFIG_FB_CFB_IMAGEBLIT=y > > -CONFIG_FB_SYS_FILLRECT=y > > -CONFIG_FB_SYS_COPYAREA=y > > -CONFIG_FB_SYS_IMAGEBLIT=y > > -# CONFIG_FB_FOREIGN_ENDIAN is not set > > -CONFIG_FB_SYS_FOPS=y > > -CONFIG_FB_DEFERRED_IO=y > > -CONFIG_FB_MODE_HELPERS=y > > -CONFIG_FB_TILEBLITTING=y > > - > > -# > > -# Frame buffer hardware drivers > > -# > > -# CONFIG_FB_CIRRUS is not set > > -# CONFIG_FB_PM2 is not set > > -# CONFIG_FB_CYBER2000 is not set > > -# CONFIG_FB_ARC is not set > > -# CONFIG_FB_ASILIANT is not set > > -# CONFIG_FB_IMSTT is not set > > -# CONFIG_FB_VGA16 is not set > > -# CONFIG_FB_UVESA is not set > > -# CONFIG_FB_VESA is not set > > -CONFIG_FB_EFI=y > > -# CONFIG_FB_N411 is not set > > -# CONFIG_FB_HGA is not set > > -# CONFIG_FB_OPENCORES is not set > > -# CONFIG_FB_S1D13XXX is not set > > -# CONFIG_FB_NVIDIA is not set > > -# CONFIG_FB_RIVA is not set > > -# CONFIG_FB_I740 is not set > > -# CONFIG_FB_LE80578 is not set > > -# CONFIG_FB_MATROX is not set > > -# CONFIG_FB_RADEON is not set > > -# CONFIG_FB_ATY128 is not set > > -# CONFIG_FB_ATY is not set > > -# CONFIG_FB_S3 is not set > > -# CONFIG_FB_SAVAGE is not set > > -# CONFIG_FB_SIS is not set > > -# CONFIG_FB_NEOMAGIC is not set > > -# CONFIG_FB_KYRO is not set > > -# CONFIG_FB_3DFX is not set > > -# CONFIG_FB_VOODOO1 is not set > > -# CONFIG_FB_VT8623 is not set > > -# CONFIG_FB_TRIDENT is not set > > -# CONFIG_FB_ARK is not set > > -# CONFIG_FB_PM3 is not set > > -# CONFIG_FB_CARMINE is not set > > -# CONFIG_FB_SMSCUFX is not set > > -# CONFIG_FB_UDL is not set > > -# CONFIG_FB_IBM_GXT4500 is not set > > -# CONFIG_FB_VIRTUAL is not set > > -# CONFIG_FB_METRONOME is not set > > -# CONFIG_FB_MB862XX is not set > > -# CONFIG_FB_SIMPLE is not set > > -# CONFIG_FB_SM712 is not set > > +# CONFIG_FB is not set > > -CONFIG_FRAMEBUFFER_CONSOLE=y > > -CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y > > -# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set > > -# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set > > - > > -CONFIG_LOGO=y > > -# CONFIG_LOGO_LINUX_MONO is not set > > -# CONFIG_LOGO_LINUX_VGA16 is not set > > -CONFIG_LOGO_LINUX_CLUT224=y > > -# CONFIG_FB_SM750 is not set > > -# CONFIG_FONTS is not set > > -CONFIG_FONT_8x8=y > > +CONFIG_FONT_AUTOSELECT=y > > > > Adding CONFIG_FB to my defconfig fix also my boot. > > Then you should do that. It's not like kconfig is UABI. > > > But I still dont understand why the absence of CONFIG_FB led my screen stuck like this. > > That's another question, and one uncovered, not caused, by the kconfig > change. There have also been reports on old radeon that somehow the fbcon programming (just CONFIG_FB isn't enough) magically gets the gpu unstuck on boot/resume. If this is nv50+ it's less likely, because with atomic those different paths are gone. Maybe to a bug report here about this: https://gitlab.freedesktop.org/drm/nouveau/-/issues -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch