Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp158268pxb; Fri, 17 Sep 2021 22:17:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAmso4zhD8hB5gaduTXzpr0HoW0RnqymexKQHIeAzGlxA2aBuVW9EUNogdPETx2t9ZyFOs X-Received: by 2002:a05:6638:3046:: with SMTP id u6mr11616836jak.35.1631942237268; Fri, 17 Sep 2021 22:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631942237; cv=none; d=google.com; s=arc-20160816; b=dNnKXcLSfHFfs0UPDkeGkQvh6lQDHGTtwpuN4WJlnqhs20ZfYlP1fWI67parJ0OEjj wuzb3gJbgcapsYODUph2PhE+dbk77vSNdmAwYMYo7MI9uW6RjIrxo9czoRysWPoNryPb bc0CCiNhOWhjU8b72U/ZNmaJ6h8StxEfzKiGlyjJY25WkiPZclCXPe6oIMUUf/6Idwft NjVNLptAAcr/LXALOMhjkEtVtI7Y+bCxWJkJu6Hli8onKU7L1Zv/7EsIcfRASJ70FkfU dR2BMnOxdwItW9RD78kRh65WVNgCdySlR7NYB2DaAd7ytLaj09JAa62YgZctTqQF27iA 8UvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6g71uES4QmO39jn0r69snEdA94XIq8rmYu4L/p5MU+Q=; b=kx/4OwUu+fQJjwQMAuxXg0Su/qMjkYwheI/KwtOj15WdL00T3ukQtcr/4rJwkpGeD9 CK3UuUVkggGFyqkENMX/e0ZkY/4mj56NaWdREEFfxJ2OGma6EuH0F5tbBeKhQznAAa5x J9zPh5AiZVBpgIhWbZnTTbi7tssWA7RfgjUmhWdOR8RQo4DYFwdy9wr4mTonkfwujgCH WAnsPT+vfD3ouQUur/JFBhd9pFRUZl2TwaE3alsUwf1EP79ertgzoLRrzg4gfcE1Zr+c WVL+frHZZwexg6jU92s1JHG6vQHA8QeFqdz6ByMWstSP2ZG+uU7i67OIusNR3JMwJmLx 3pYg== 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 w18si7308373ilc.63.2021.09.17.22.17.05; Fri, 17 Sep 2021 22:17:17 -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; 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 S234992AbhIQXff (ORCPT + 99 others); Fri, 17 Sep 2021 19:35:35 -0400 Received: from mga18.intel.com ([134.134.136.126]:63695 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238967AbhIQXf0 (ORCPT ); Fri, 17 Sep 2021 19:35:26 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="209979910" X-IronPort-AV: E=Sophos;i="5.85,302,1624345200"; d="scan'208";a="209979910" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 16:34:03 -0700 X-IronPort-AV: E=Sophos;i="5.85,302,1624345200"; d="scan'208";a="546671329" Received: from jons-linux-dev-box.fm.intel.com (HELO jons-linux-dev-box) ([10.1.27.20]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 16:34:03 -0700 Date: Fri, 17 Sep 2021 16:29:06 -0700 From: Matthew Brost To: Jani Nikula Cc: Hugh Dickins , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org, Joonas Lahtinen , Rodrigo Vivi , Vinay Belgaumkar , Michal Wajdeczko , Sujaritha Sundaresan , John Harrison , Daniele Ceraolo Spurio , Matt Roper , Lucas De Marchi , Dave Airlie , Daniel Vetter , Pavel Machek , linux-kernel@vger.kernel.org Subject: Re: 5.15-rc1 i915 blank screen booting on ThinkPads Message-ID: <20210917232906.GA5729@jons-linux-dev-box> References: <9e1a6f3b-5e64-be91-ba54-9b5d135ef638@google.com> <9e4c1c68-8d1e-ee2c-99bf-320046130775@linux.intel.com> <87mtocx1rm.fsf@intel.com> <1f955bff-fd9e-d2ee-132a-f758add9e9cb@google.com> <20210917213032.GA34270@jons-linux-dev-box> <87k0jevmpr.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0jevmpr.fsf@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 18, 2021 at 01:52:48AM +0300, Jani Nikula wrote: > On Fri, 17 Sep 2021, Matthew Brost wrote: > > On Fri, Sep 17, 2021 at 02:26:48PM -0700, Hugh Dickins wrote: > >> On Thu, 16 Sep 2021, Jani Nikula wrote: > >> > On Thu, 16 Sep 2021, Tvrtko Ursulin wrote: > >> > > On 16/09/2021 05:37, Hugh Dickins wrote: > >> > >> Two Lenovo ThinkPads, old T420s (2011), newer X1 Carbon 5th gen (2017): > >> > >> i915 working fine on both up to 5.14, but blank screens booting 5.15-rc1, > >> > >> kernel crashed in some way. > >> ... > >> > > Kernel logs with drm.debug=0xe, with the broken black screen state, > >> > > would probably answer a lot of questions if you could gather it from > >> > > both machines? > >> > > >> > And for that, I think it's best to file separate bugs at [1] and attach > >> > the logs there. It helps keep the info in one place. Thanks. > >> > > >> > BR, > >> > Jani. > >> > > >> > [1] https://gitlab.freedesktop.org/drm/intel/issues/new > >> > >> Thanks for the quick replies: but of course, getting kernel logs was > >> the difficult part, this being bootup, with just a blank screen, and > >> no logging to disk at this stage. I've never needed it before, but > >> netconsole to the rescue. > >> > >> Problem then obvious, both machines now working, > >> please let me skip the bug reports, here's a patch: > >> > > > > Thanks for finding / fixing this Hugh. I will post this patch in a way > > our CI system can understand. > > Thanks indeed! > > Matt, please get rid of the BUG_ON while at it, and make it a > WARN. Oopsing doesn't do anyone any good. > Sure. Will do. Long term we should just look to rip out crap this (i.e. stealing bits from aligned addresses for flags). Matt > BR, > Jani. > > > > > Matt > > > >> [PATCH] drm/i915: fix blank screen booting crashes > >> > >> 5.15-rc1 crashes with blank screen when booting up on two ThinkPads > >> using i915. Bisections converge convincingly, but arrive at different > >> and surprising "culprits", none of them the actual culprit. > >> > >> netconsole (with init_netconsole() hacked to call i915_init() when > >> logging has started, instead of by module_init()) tells the story: > >> > >> kernel BUG at drivers/gpu/drm/i915/i915_sw_fence.c:245! > >> with RSI: ffffffff814d408b pointing to sw_fence_dummy_notify(). > >> I've been building with CONFIG_CC_OPTIMIZE_FOR_SIZE=y, and that > >> function needs to be 4-byte aligned. > >> > >> Fixes: 62eaf0ae217d ("drm/i915/guc: Support request cancellation") > >> Signed-off-by: Hugh Dickins > >> --- > >> > >> drivers/gpu/drm/i915/gt/intel_context.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> --- a/drivers/gpu/drm/i915/gt/intel_context.c > >> +++ b/drivers/gpu/drm/i915/gt/intel_context.c > >> @@ -362,6 +362,7 @@ static int __intel_context_active(struct > >> return 0; > >> } > >> > >> +__aligned(4) /* Respect the I915_SW_FENCE_MASK */ > >> static int sw_fence_dummy_notify(struct i915_sw_fence *sf, > >> enum i915_sw_fence_notify state) > >> { > > -- > Jani Nikula, Intel Open Source Graphics Center