Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3756156rwe; Mon, 17 Apr 2023 03:08:33 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKMmTvCMAbiLiAETxmznJ23IopwjevYuliQb5KTHJpNAd1dNjkZmrbqTVD5tO6mZwijkEb X-Received: by 2002:a05:6a20:4ca1:b0:ec:26ee:db3f with SMTP id fq33-20020a056a204ca100b000ec26eedb3fmr13637775pzb.32.1681726113416; Mon, 17 Apr 2023 03:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681726113; cv=none; d=google.com; s=arc-20160816; b=zhWqJTtuqYqejqbKa0p/ye0poBon3sOUyHJEVgPiBRXSCm8VE368jZNND4YNJu4T+v /a+0gNTZ0+1v22QPuu5IaSAFHKOM2sSfFIMnqdZXiR6H9UuQ2yMp7T4AK0fAY+2fx0iW vxa67XvAvaWwbtTH1QTaFAGFCiwbTVnHrmpCE+N65KxAQNaZ3+hduDp4YIqRAkgY1iy5 e00k/7sJ3klyfpHOvbOldlMdHc/Os9zwmttp/uh+5WwRCOAbRvUtW2nVKxkAxVBTv8Uk 6gMC4EJtH4ffc0VyUmAdKvzwP6VhCIaNnKB20+7sPDtqe9Lzpjt8MOIc7nHPaa0ojdSY rqcg== 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=0UxBgWduU60jsaUm8r63BWFQT7ncWMhFp8WEWJOslAo=; b=Z4uzlihL9UcWn9L25tszfIT4hfTLjvUAzGiZ+dxInzpPtNSACgPpcsxmWTGEYNjjiv EJgyo/vYD/jepAD0bBFgZVOWI5mLMwUgl6gREmVWbKyXPs9UDD8Bp9vItbs+MAca7WQD 9WXLZnl5eQFbhzmtejFHtV7BEiIv1TToy3Hf9zpRfIPbggPbdh8/Ieji0GQMcv6JxVEm +T31tB7CG666evZ5kgIyCzQgOz3agNsFdeQtiUMtPAHgk30zU1NBOvdH6uggVVEHteuw 4NL8d8Vji1keRZQ+nccBed7PbCtBuGFQx2nS3LURqlkWPbxvrh87cfnD7Y3u9d+v2CVE 8qbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dw7Vd3/Q"; 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 y12-20020a63e24c000000b00517ba74c173si11485096pgj.506.2023.04.17.03.08.21; Mon, 17 Apr 2023 03:08:33 -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="dw7Vd3/Q"; 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 S231134AbjDQKHa (ORCPT + 99 others); Mon, 17 Apr 2023 06:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbjDQKHM (ORCPT ); Mon, 17 Apr 2023 06:07:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18836580 for ; Mon, 17 Apr 2023 03:06:40 -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 A1FFC61172 for ; Mon, 17 Apr 2023 10:06:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A09CC433D2; Mon, 17 Apr 2023 10:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681726000; bh=0UxBgWduU60jsaUm8r63BWFQT7ncWMhFp8WEWJOslAo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=dw7Vd3/QhWCca/5kuM9Ki5142rSavzqkKujRpBRQtEseB393LlT6Y9io5nWcfOcyc LMoCls9zCErdC8Qd8X8ALLphh8xsiWDqNp6O943c7jn9FtOB6NDpqnK40fTE3HQng9 /Yz30wm599cwMyPo7uUgOzvUsxzzKenCk+uPF/MKS8rkcf8sSm99pSfWJzdUOxXlxQ Juyk9cpfcrmhaydVL7jxQ6DQKaR3TtMdX6oPOYkbADoNO1d5yP0tbV6Nc+9DY4Ngu/ lZIezj80tv9nAkvUD2HQowSOpGJ+XWXjRo2Oul1pzoRKLcwl+FdBCYBy273oCz6V/D 1TdvU6/9871jA== Message-ID: 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 06:06:37 -0400 In-Reply-To: <874jpegao0.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> 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 can't = retrieve > > > > > the drm atomic state. Also , "Failed to create MST payload for po= rt" 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 loggi= ng? > > > >=20 > > > > Note that this problem is _very_ intermittent too: I went about 2 w= eeks > > > > between crashes, and then I got 3 in one day. I'd rather not run wi= th a > > > > lot of debug logging for a long time if that's what this is going t= o > > > > require, as this is my main workstation. > > > >=20 > > > > The last time I got this log message, my proposed patch did prevent= the > > > > box from oopsing, so I'd really like to see it go in unless it's ju= st > > > > categorically wrong for the caller to pass down a NULL state pointe= r 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") a= nd > > > its only use is to get at state->dev for debug logging. > > >=20 > > > What's the plan for the parameter? Surely something more than that! := ) > >=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 snuck= 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 drop > the state parameter altogether. >=20 > Jeff, up for it? At least the first one? >=20 >=20 > BR, > Jani. >=20 Sure. I'm happy to test patches if you send them along. Thanks, --=20 Jeff Layton