Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp954799rbb; Sun, 25 Feb 2024 11:44:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXMlqO8suk76kthcjLuFvvEp1PvcbaFwYuOou4Q+hzlHx1UlSVBHm780L0S/p5adhuhOMjSztYCfN8/SKpSNtdnuMEUDlKzXDGZ2o8g5A== X-Google-Smtp-Source: AGHT+IGTEvRAXGJhGlozHB8eaTIRsFpUSu/gdrZbcq1BO767jMSe2xnF4GVIqMkgWMRk+A8xboRs X-Received: by 2002:a17:906:470e:b0:a3d:ed30:11c8 with SMTP id y14-20020a170906470e00b00a3ded3011c8mr3356981ejq.15.1708890267716; Sun, 25 Feb 2024 11:44:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708890267; cv=pass; d=google.com; s=arc-20160816; b=cGUbIAvkp30tS/8j8F7puNM+3Qnl6UyBPuft1Wcko8x570evRgYa/Ms896/XUqfAsg wLKAQ/3BscrVokM5zyPLvcCXWKzAvTdly9BVb++rNyPn/qBmIja9ZixKN73Ui6SwTvsZ 3jg3hs/jAKap2kHUym6yU8hQkDdSS31gTc/8mzt9KSspziIMKFKEX5glkXsvJs5p3Qlg mT6OOFyiAn+e/5Wm7YjF2CayduOOnX05KuHxgPYTCfgcBNBm9iOxiyFpBoR/oJFB0SqO fapCycXeLG1F/HgwF7F2nNDs6eezblVLrc588HafHHf2F65ftcxeZkrLadSxCD2pA0l7 jpBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fIuZiDVUC5BxEMNoUKW/xi6MICo1paQfVTKIDQKp2M0=; fh=cAUhcFK1RCCxerqm6qDeI0+rOAY1wM41W2h4lc+6SHM=; b=DAuG/M5xfn9/Jh4O0aNabnK/rxhyf5vyUttrnCiXTKnXq+/OcTIA9fOxn1ehFLD163 nHhuGlXK+x822YqRpKrKMSy5is3wVuWRyhLiZooztWmyHrcsclzlv227zEL5vsSK/y++ 67FeAmHTEYCHriN+G4qITM7CJNKhD2UdadMEZnsbFUKI/diseevgyInX0zgxynsuFhwR zavzw+bHydT9K5bEHekz5Tumx/3zHG3CCnvulmSviiPPwparXOCn7NEl3DcBXaqS8oJ6 ANBaUdYiuOOFOcDggubBnFWfH5rTgDYoqugXpRH1Lvc8f9HnoNd/AeRynF7r4mcVr6vC 0z3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CPJnfu4S; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-80255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gg1-20020a170906e28100b00a3ec6800c31si1468013ejb.998.2024.02.25.11.44.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 11:44:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CPJnfu4S; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-80255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 410611F21A22 for ; Sun, 25 Feb 2024 19:44:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FE4E19BCA; Sun, 25 Feb 2024 19:44:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CPJnfu4S" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52FE11864D; Sun, 25 Feb 2024 19:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708890259; cv=none; b=EyfMbOahl7kP24vxi0F4ZRAkViVG37v7bHxu5wgMSufgkFOok8eTghSjwnLOawc10x0fCDRiRg/xw7uFQziRwC+5jw2TdM9LrgW24ROr4D0YdplpanutBIPT2wwTTWdEoA9v61LgHxCvvIeznosSRN4Kv+4flVaIimAaqaxh8kw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708890259; c=relaxed/simple; bh=ciuTi7LqTCsMuTd4Gtbp53g6WN/ZJwFyYlYg8N43gSs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=fgqHVgI0C2vWBtEswJkms+cFMXuH64WW86Gy5JwggBEeRkCLd98x+q3un+7M7kcrvJ/8ov8zbR1taA2Br/zRXYlQ76VrwYXZpt5Dd5ABDcGzF6wFNiYnVoDeBku8PC+fXPb9g4GGyuxBaEQI/QiZbMefP4X6fuRxpPT4hy4Xwjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=CPJnfu4S; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41PJgIjI015512; Sun, 25 Feb 2024 19:44:00 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=fIuZiDVUC5BxEMNoUKW/xi6MICo1paQfVTKIDQKp2M0=; b=CP Jnfu4SIwT8en1/Ltz8KyjTaeD31G93lWCxafMOW7yY0/gnUlQgT+YzDQLhJ/ejAr HtvYpf8xjv3CdsI1TaEwc1gkmvCTgyT5KcGB53Mr6dJdy+mZlUMcABweGRYnwy88 CNOYHFq9ksSWalct1JUUWJUzQ1uzQ9+PWmCnxpfuVIxHZI8ROrvmhTv3ZEAZ4CRF iFjvafZ0g/KTBaejGZLlf3Oo2BFTVuK5YhXm0sSO0DcXu+IXdd3diJWXFFfQ/QSc Sv6tNJyJZLRUV4CPxwz0CmYtmRn5wEQiOJLdHXVhIIoXy4i58Y4/gh7uwvXZe7YG nskE4EiPAETwhu01aHZg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wf7dv2cwc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 25 Feb 2024 19:43:59 +0000 (GMT) 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 41PJhxPo023034 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 25 Feb 2024 19:43:59 GMT Received: from [10.110.76.211] (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.40; Sun, 25 Feb 2024 11:43:58 -0800 Message-ID: <4e6b41f4-27a6-4c65-dc03-67437a9716ed@quicinc.com> Date: Sun, 25 Feb 2024 11:43:57 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 v3 1/3] drm/msm/dpu: make "vblank timeout" more useful Content-Language: en-US To: Dmitry Baryshkov , Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter CC: Steev Klimaszewski , , , , References: <20240225-fd-dpu-debug-timeout-v3-0-252f2b21cdcc@linaro.org> <20240225-fd-dpu-debug-timeout-v3-1-252f2b21cdcc@linaro.org> From: Abhinav Kumar In-Reply-To: <20240225-fd-dpu-debug-timeout-v3-1-252f2b21cdcc@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: gXNin3qXAJOwLsvYK6UlQHd4mP-BJYoC X-Proofpoint-ORIG-GUID: gXNin3qXAJOwLsvYK6UlQHd4mP-BJYoC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-25_22,2024-02-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 bulkscore=0 mlxlogscore=949 phishscore=0 adultscore=0 suspectscore=0 clxscore=1011 lowpriorityscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402250157 On 2/25/2024 6:12 AM, Dmitry Baryshkov wrote: > We have several reports of vblank timeout messages. However after some > debugging it was found that there might be different causes to that. > To allow us to identify the DPU block that gets stuck, include the > actual CTL_FLUSH value into the timeout message. > the flush register shall also be part of the coredump in patch 3. so why is this needed? > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > index 2aa72b578764..6058706f03e4 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > @@ -480,7 +480,7 @@ static int dpu_encoder_phys_vid_wait_for_commit_done( > (hw_ctl->ops.get_flush_register(hw_ctl) == 0), > msecs_to_jiffies(50)); > if (ret <= 0) { > - DPU_ERROR("vblank timeout\n"); > + DPU_ERROR("vblank timeout: %x\n", hw_ctl->ops.get_flush_register(hw_ctl)); > return -ETIMEDOUT; > } > >