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 3068FC4332F for ; Wed, 8 Nov 2023 18:27:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231805AbjKHS10 (ORCPT ); Wed, 8 Nov 2023 13:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjKHS1Y (ORCPT ); Wed, 8 Nov 2023 13:27:24 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 667B01FF5; Wed, 8 Nov 2023 10:27:22 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A8HDAIQ028187; Wed, 8 Nov 2023 18:27:12 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=J11bmhYRRVjqzK6uKgGmil7orKC0maV5Oe7XYBl64ZA=; b=e7W3P1vKneYq6APiY9ejPY4e0uv3m1ZcEhxOzDqO0DkD79ysQ6eKarQl3Ua+6gOtELUs NlMeOXUzedElXuee+7+edeSLlwa4LQEtpnRLci9pLaM+dp0Rm1HY8U8+czWMesufcZJJ oLphID2cwPmRfoB56EvxyIXinHTnAXvRcCY/VyF7sBgP7YVTJHiOnCyaXf5vjLBlUDgs j5hNKdKzxXldw0eG0pTWvS36Fm3ACOiZarJPozGddaQ333IfTnIM1nG+bkXZ+pRynk4+ 6EP4SlALaeaxgSw51vBiFERyMEpeAFWtAarQBgUVgX8KKV7SP/P0R1QlEVOjPSbtkU+b QA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u8ehng5xj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Nov 2023 18:27:12 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A8IRBTB021862 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 Nov 2023 18:27:11 GMT Received: from [10.71.109.77] (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; Wed, 8 Nov 2023 10:27:10 -0800 Message-ID: Date: Wed, 8 Nov 2023 10:27:06 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v7 0/7] incorporate pm runtime framework and eDP clean up To: Kuogee Hsieh , Dmitry Baryshkov CC: , , , , , , , , , , , , , , , References: <1696632910-21942-1-git-send-email-quic_khsieh@quicinc.com> <55a4f98e-2772-e4fd-ae8a-132f92582c78@quicinc.com> Content-Language: en-US From: Abhinav Kumar 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-ORIG-GUID: mpsET-bXHslX7FhL8IJty3jKtGE9Erqf X-Proofpoint-GUID: mpsET-bXHslX7FhL8IJty3jKtGE9Erqf 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-08_07,2023-11-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 mlxscore=0 mlxlogscore=609 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 suspectscore=0 malwarescore=0 clxscore=1011 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311080152 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >>> 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 >>> >>> >>