Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3781831rwe; Mon, 17 Apr 2023 03:34:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aPvFAEoBDi+NP8yINH723EdkgTmSNIUWo30nuDOufnDvgJcUlQ7SVMi2OLOg4P9s6kk09J X-Received: by 2002:a17:903:1106:b0:1a2:70ed:6cd9 with SMTP id n6-20020a170903110600b001a270ed6cd9mr14479368plh.22.1681727655986; Mon, 17 Apr 2023 03:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681727655; cv=none; d=google.com; s=arc-20160816; b=0Ed7wPE6C/yZFMAJwiVtGJMU4s1SyrNhhQMfChbkDuha+Tbx2g27hBdOUVRxb6fo0G T7sM+IGJsBZ7yUp0Op9U4qyAbr5FF6L/NYJF/FYy9kN+OyNmt+Ew7/u19djDYCb6IiOY iK/3XAXJdjaKeMsG0StqAqz5PxbG6jTkPHErmeV8ZkXU9juHBgbVH48KnmX+XvQdqHZl CDh7Py5ibZvyYXGq8eROmnF+1p/RZ7vC6KRE5gK8yD4LUcnb9R4zUI8D1CwCHT3+AOfW Q/bexHexM3eBDnXakCkO+IxlCk9XXDTVmPJwgOT5E7p0cKD5XPBBhSTtcuMY5ICn3n19 ct2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=l804jHVflwRviDU02RYMGMsDcBWex3TnbXIDpx5WF2k=; b=ohAVWmWDRjQOWVgdcUnCuuMPR+/m71nZj7k6/Ne5Bj0IzYj5zPnifVW8JRx/1MYdSW 41EZQh1PF8RVJrv3MnWgM48HZzK6abKiFXHuRYhgomM/lRqDG+nL/wFMDrftRIDeb45S Q9mAQEQIIL37uxFr+hoiWJPQoy5xyMJupzoyhGmELFUs+gvPSLgFO19yZO1uRUCTsb9X XTDe16rODJpAZMMh3FAU2smOXnImQOw5AfLRpUbFUlWqJ1/MAgBmEjEko2v2t4ItsITy mb8Y9ieiTCKrzJlg7E1fWUpcTxGexym/tSe2VWeQ4QlNyVZzGeAskW1r4zg259TMaavK tqMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QT7trZ10; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a17090adc0700b0023f0bda978bsi9324079pjv.49.2023.04.17.03.33.58; Mon, 17 Apr 2023 03:34:15 -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=@intel.com header.s=Intel header.b=QT7trZ10; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230413AbjDQKck (ORCPT + 99 others); Mon, 17 Apr 2023 06:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjDQKcj (ORCPT ); Mon, 17 Apr 2023 06:32:39 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1778810D for ; Mon, 17 Apr 2023 03:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681727509; x=1713263509; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=R9ZDjMQbJbktdyenH5QRHh9b8IZO5KHOnPqhpyxlJ1s=; b=QT7trZ105xLudMr204vHs0Vn7tGb9c+Jgnlgtt606eNKk7DCtSSvw8be Q8OBsvlTJnZGdtwVZ25YD/VbPQ6A0ED0D1Ariaw2BrVHx0o2nauoDOa8S Yo//3MO1o/RjRBZ4tILX4s2/SalIv0OQqXaBN/Ww51X5Tx5wJRNFS7Js6 jecFTu95+saGUPPTj2zePUSspRlaQnQWe6Z4mtZN9BkgCeJXgog65mQoL MKAKtXJt6DI6ENFXV0NOYxATnQX1BivMZU2imx0mwiugpuWCdSAPoEbiP cv0zmxi1Gc1VDk4iyOrjMgjQs6pinNDyLrRfyE0gAmvUuLS0GLVitMZV9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10682"; a="347597320" X-IronPort-AV: E=Sophos;i="5.99,203,1677571200"; d="scan'208";a="347597320" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2023 03:29:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10682"; a="802064100" X-IronPort-AV: E=Sophos;i="5.99,203,1677571200"; d="scan'208";a="802064100" Received: from habramov-mobl4.ger.corp.intel.com (HELO localhost) ([10.252.47.83]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2023 03:29:54 -0700 From: Jani Nikula To: Jeff Layton , Lyude Paul , "Lin, Wayne" , Alex Deucher Cc: David Airlie , Daniel Vetter , "Deucher, Alexander" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Subject: Re: [PATCH] drm: make drm_dp_add_payload_part2 gracefully handle NULL state pointer In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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> Date: Mon, 17 Apr 2023 13:29:51 +0300 Message-ID: <87leiqer8g.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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, 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] >> > > > > >> > > > > Hi Jeff, >> > > > > >> > > > > Thanks. I might need more information to understand why we can't retrieve >> > > > > the drm atomic state. Also , "Failed to create MST payload for 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! >> > > > > >> > > > > Regards, >> > > > > Wayne >> > > > > >> > > > >> > > > 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 logging? >> > > > >> > > > 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 run with a >> > > > lot of debug logging for a long time if that's what this is going to >> > > > require, as this is my main workstation. >> > > > >> > > > 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 just >> > > > categorically wrong for the caller to pass down a NULL state pointer to >> > > > drm_dp_add_payload_part2. >> > > >> > > Cc: Lyude. >> > > >> > > 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. >> > > >> > > What's the plan for the parameter? Surely something more than that! :) >> > >> > 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 >> >> 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. >> >> Jeff, up for it? At least the first one? >> >> >> BR, >> Jani. >> > > Sure. I'm happy to test patches if you send them along. I was hoping to lure you into sending patches. ;) Anyway, I'm not working on this. BR, Jani. > > Thanks, -- Jani Nikula, Intel Open Source Graphics Center