From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AC53C4332F for ; Thu, 9 Nov 2023 17:51:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344877AbjKIRvi (ORCPT ); Thu, 9 Nov 2023 12:51:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344811AbjKIRvg (ORCPT ); Thu, 9 Nov 2023 12:51:36 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A35CF3A8E; Thu, 9 Nov 2023 09:51:33 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A9CrtUk014394; Thu, 9 Nov 2023 17:51:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=VGrocBjpfB4eUDrm+j3cr9UddNm0arMjWqZFjcDlqE0=; b=Plv3zypUMJ0ik5hxoYdBeX+TqjqV0JltbInzHs9c2TxXHGt6YP+HTwxDFWiJ/4121xAT Z23GVeOiN2YbHBtZNsyxe5oo/EmbYgIgumE2vbB/vTubrbYsqFm0cxci01xCvQQrtOvX wosDkQD7wllLyPZsznr8UQwv6Bd1FDiZu8Imx44sMKxug99HFDgjm33kzlSDQWby33xv b/KONQI37Jefa7Swoc8pLfCc9EMDs8yg5q7AhAxUd/EHNdSXHa4rgh/6KQvRe7l70AGm 7MEadHYyxtChNr5rtYK0v5tHN/QrC9d/KDEqAosNOL7H4BbADmVyQY6qPnvqAUvKpI/F dA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u8w0ns54u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Nov 2023 17:51:21 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A9HpKHh023297 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 9 Nov 2023 17:51:20 GMT Received: from [10.110.84.171] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Thu, 9 Nov 2023 09:51:18 -0800 Message-ID: <748da144-af4c-5a2a-e82b-3a870995cbce@quicinc.com> Date: Thu, 9 Nov 2023 09:51:18 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v7 0/7] incorporate pm runtime framework and eDP clean up Content-Language: en-US To: Abhinav Kumar , Dmitry Baryshkov CC: , , , , , , , , , , , , , , , References: <1696632910-21942-1-git-send-email-quic_khsieh@quicinc.com> <55a4f98e-2772-e4fd-ae8a-132f92582c78@quicinc.com> From: Kuogee Hsieh In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: XsUPbI8h8-aczDOJ5vFlGcvNkQm4TTAs X-Proofpoint-ORIG-GUID: XsUPbI8h8-aczDOJ5vFlGcvNkQm4TTAs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-09_14,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 adultscore=0 impostorscore=0 mlxlogscore=674 priorityscore=1501 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311090134 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/2023 10:27 AM, Abhinav Kumar wrote: > > > On 11/8/2023 10:10 AM, Kuogee Hsieh wrote: >> >> On 11/7/2023 1:23 PM, Dmitry Baryshkov wrote: >>> On Tue, 7 Nov 2023 at 23:01, Kuogee Hsieh >>> wrote: >>>> >>>> On 11/6/2023 5:55 PM, Dmitry Baryshkov wrote: >>>>> On Sat, 7 Oct 2023 at 01:55, Kuogee Hsieh >>>>> wrote: >>>>>> The purpose of this patch series is to incorporate pm runtime >>>>>> framework >>>>>> into MSM eDP/DP driver so that eDP panel can be detected by DRM >>>>>> eDP panel >>>>>> driver during system probe time. During incorporating procedure, >>>>>> original >>>>>> customized pm realted fucntions, such as dp_pm_prepare(), >>>>>> dp_pm_suspend(), >>>>>> dp_pm_resume() and dp_pm_prepare(), are removed and replaced with >>>>>> functions >>>>>> provided by pm runtiem framework such as >>>>>> pm_runtime_force_suspend() and >>>>>> pm_runtime_force_resume(). In addition, both eDP aux-bus and irq >>>>>> handler >>>>>> are bound at system probe time too. >>>>> With this patchset in place I can crash the board using the following >>>>> sequence (SM8350-HDK): >>>>> >>>>> - plug the USBC DP dongle >>>>> - run modetest at any mode, don't press Enter yet >>>>> - unplug the dongle >>>>> - press Enter to stop modetest >>>>> >>>>> => the board resets to Sahara. >>>>> >>>>> Please ping me if you need any additional information from my side. >>>> questiosn, >>>> >>>> 1) which dongle are you used? >>> I have used several Dell and Hama USB-C dongles. >>> >>>> 2) what code branch shoud I used to duplicate this problem. >>> I have pushed my kernel tree to >>> git.codelinaro.org/dmitry.baryshkov/linux.git, branch test-dp-rpm >>> I had several UCSI patches on top, but they should not be relevant. >> git.codelinaro.org/dmitry.baryshkov/linux.git, branch test-dp-rpm <== >> I synced out his branch and it is still work at my chromebook Kodiak >> DUT. >>> > > Perhaps the gap in test results with the same tree is due to internal > hpd vs hpd pin. We need to try this on a device which does not use > internal hpd. Hi Dmitry, I have two more questions, 1) are you see test pattern shows at external DP when you run modetest? 2) is *.kcrash file created under /var/spool/crash/ when system crashed. If it is, can you share it? Thanks, > >>>> I can not duplicate  system crash problem at my setup kodiak (SM7325) >>>> chrome book with my PM runtime patch series. >>>> >>>> my code base is Linux 6.6-rc2 + pm runtime patch series (7 patches) >>>> >>>> I did: >>>> >>>> 1) plugin either apple dongle (DP-to-HDMI) + 1080p display or DP typeC >>>> cable directly to 1080p display >>>> >>>> 2)  stop ui >>>> >>>> 3) /usr/bin/modetest -M msm -s 34:1920x1080 (see test pattern show at >>>> display) >>>> >>>> 4) unplug apple dongle or DP typeC cable >>>> >>>> 5) hit enter key >>>> >>>> 6) start ui >>>> >>>> 7) display back to login page of chrome book >>>> >>>> >>>