Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3833248rwe; Mon, 17 Apr 2023 04:22:39 -0700 (PDT) X-Google-Smtp-Source: AKy350bHSXSXAZYQceNP0cTXpBjJC+YGSQVshg2h4hoxmwo6PKEqY4x26DzSHG6YK+16Amz7I5Ty X-Received: by 2002:a17:902:c7cd:b0:19a:a520:b203 with SMTP id r13-20020a170902c7cd00b0019aa520b203mr10210561pla.25.1681730559354; Mon, 17 Apr 2023 04:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681730559; cv=none; d=google.com; s=arc-20160816; b=CPv/6b7VfnUyENYc4ETSa1c1iqcA8ajdlNL/DSVRZyPp2QvNMBd1ssddLDz1bXpiMc 3kgqAkr9y9dBYXlmNVIThnoijA8cwlQ9IlGmmQs515FfO6uLpfFSaZaCKroy3HxXNZ2z cp/7zwpeS4Iu6AGu5cuiP0imQXRE7Mqf+hMMIB9eMDyB16zdvEBp2dPMCV6KfenpqbA1 3/MR4Wgt83rFMvFgos5tmRb6+C5YvOC+zhsjOxX+L++1cijaKwJmdHQrvIAHH8NqUUuB LKPzYa5DUxkpR5jZVo1QSMNUgzf6RYTG34TPPAos9Ckn5dL9i81gbmM7pJ6Bwct7dZKZ wibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=dVSmXgHc7Wtq5f3KTG1Nv3Jo2iMZ9ubzY2vutXfxDvU=; b=zKXll0HLkv16j/Z9ReWIRmD6sDhTF3rcBJtIp2U0GOE56qE2lg4CTTm4Cqbzl2Yvor AEq5HoanUyg578HwZZrjeVJxIadn9EyRvP9adglqn6aAhVvWMgvIlptHkUUVrrmGDPpT sBtclqkJhT06e3xSaQdmDObmJkB18F9FJOw3FNosrfncYiANG0+esWYb0Q6Vl+8NpgA1 NAWdfh90rmAFKUrQoUN/frO1+Y3YQ+YTrt4w6Adf6+Tkyy7iHLJH5DyrNNfBmswf7ejE IVgYex6n/LAq9VqazKv3/FzTWj8AGJChOS2WQF+GvZZE5eLIC4p4ngPpC0teOhmTVDX3 YZgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s7eTyOVt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a170902821600b001a6e87f4336si1223467pln.275.2023.04.17.04.22.28; Mon, 17 Apr 2023 04:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s7eTyOVt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjDQLL5 (ORCPT + 99 others); Mon, 17 Apr 2023 07:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjDQLL4 (ORCPT ); Mon, 17 Apr 2023 07:11:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D5486585 for ; Mon, 17 Apr 2023 04:11:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BB4616226B for ; Mon, 17 Apr 2023 11:02:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50123C433D2; Mon, 17 Apr 2023 11:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681729364; bh=dVSmXgHc7Wtq5f3KTG1Nv3Jo2iMZ9ubzY2vutXfxDvU=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=s7eTyOVtBebCEcitRRwiCrhz5ZYaAis5MtzW5zCo7lEaCl418rXJb3cLfzdAMtKxa i1B5/x2H0NA3QcS9YymojTsXU9rZKhmC8orr683S/wEDRRzlMuVJAG1bTRWXAvkgwL qHNfE5OduLyKch7U8X2PBBxVID1zeG05yDokzeFhCfbisdQO1C5uwL/BIsNVF4yz1N UI+5LFtlqy6CAQeW7BfR2ZtzI8p2tD5344rSZ9Qxpk5LaodUuLdBrTgVqlZuuDGnDw meNTzw/SoNRG2F0GABCFHkm3qBSBmoVoUcgUVmsfc0JQmAO4HYZOxB7k181OSFqivW k1n4MKwt4R3HQ== Message-ID: <73d0178c3b9608fae207c9f135aa1f807cb56e47.camel@kernel.org> Subject: Re: [PATCH] drm: make drm_dp_add_payload_part2 gracefully handle NULL state pointer From: Jeff Layton To: Jani Nikula , Lyude Paul , "Lin, Wayne" , Alex Deucher Cc: David Airlie , Daniel Vetter , "Deucher, Alexander" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Date: Mon, 17 Apr 2023 07:02:41 -0400 In-Reply-To: <87leiqer8g.fsf@intel.com> References: <20230413111254.22458-1-jlayton@kernel.org> <87edooarpq.fsf@intel.com> <4d8479f20ef30866fcf73f3602f1237376110764.camel@kernel.org> <878reug394.fsf@intel.com> <7a1b00f02b125bd65824b18ea09509efe3cf777d.camel@redhat.com> <874jpegao0.fsf@intel.com> <87leiqer8g.fsf@intel.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2023-04-17 at 13:29 +0300, Jani Nikula wrote: > On Mon, 17 Apr 2023, Jeff Layton wrote: > > On Mon, 2023-04-17 at 11:44 +0300, Jani Nikula wrote: > > > On Fri, 14 Apr 2023, Lyude Paul wrote: > > > > On Fri, 2023-04-14 at 13:35 +0300, Jani Nikula wrote: > > > > > On Fri, 14 Apr 2023, Jeff Layton wrote: > > > > > > On Fri, 2023-04-14 at 04:40 +0000, Lin, Wayne wrote: > > > > > > > [Public] > > > > > > >=20 > > > > > > > Hi Jeff, > > > > > > >=20 > > > > > > > Thanks. I might need more information to understand why we ca= n't retrieve > > > > > > > the drm atomic state. Also , "Failed to create MST payload fo= r port" indicates > > > > > > > error while configuring DPCD payload ID table. Could you help= to provide log > > > > > > > with KMS + ATOMIC + DP debug on please? Thanks in advance! > > > > > > >=20 > > > > > > > Regards, > > > > > > > Wayne > > > > > > >=20 > > > > > >=20 > > > > > > Possibly. I'm not that familiar with display driver debugging. = Can you > > > > > > send me some directions on how to crank up that sort of debug l= ogging? > > > > > >=20 > > > > > > Note that this problem is _very_ intermittent too: I went about= 2 weeks > > > > > > between crashes, and then I got 3 in one day. I'd rather not ru= n with a > > > > > > lot of debug logging for a long time if that's what this is goi= ng to > > > > > > require, as this is my main workstation. > > > > > >=20 > > > > > > The last time I got this log message, my proposed patch did pre= vent the > > > > > > box from oopsing, so I'd really like to see it go in unless it'= s just > > > > > > categorically wrong for the caller to pass down a NULL state po= inter to > > > > > > drm_dp_add_payload_part2. > > > > >=20 > > > > > Cc: Lyude. > > > > >=20 > > > > > Looks like the state parameter was added in commit 4d07b0bc4034 > > > > > ("drm/display/dp_mst: Move all payload info into the atomic state= ") and > > > > > its only use is to get at state->dev for debug logging. > > > > >=20 > > > > > What's the plan for the parameter? Surely something more than tha= t! :) > > > >=20 > > > > I don't think there was any plan for that, or at least I certainly = don't even > > > > remember adding that D:. It must totally have been by mistake and s= nuck by > > > > review, if that's the only thing that we're using it for I'd say it= 's > > > > definitely fine to just drop it entirely > > >=20 > > > I guess we could use two patches then, first replace state->dev with > > > mgr->dev as something that can be backported as needed, and second dr= op > > > the state parameter altogether. > > >=20 > > > Jeff, up for it? At least the first one? > > >=20 > > >=20 > > > BR, > > > Jani. > > >=20 > >=20 > > Sure. I'm happy to test patches if you send them along. >=20 > I was hoping to lure you into sending patches. ;) >=20 > Anyway, I'm not working on this. >=20 >=20 Ok. I misunderstood, I'll change the patch I've been using to use mgr- >dev instead and will send along a v2 here in a few days (after some testing). --=20 Jeff Layton