Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 B95D128A1E4 for ; Tue, 29 Jul 2025 14:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753801070; cv=none; b=ZYTAYridOa+q18p0dd2jQV+Rw297lMRLghGGz2uN9/r1bYpBvNc/mMu25dNqt/MYZEq+heXURhCJcYaGTjEvC2b0vwfG6QyTmjduB/SU4IYx2sjUW59FVLUC9ERl6rbuU+WD/BtJ4ogTCZ0mPMsV5uCm06oIZZASq2SFY2QLSZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753801070; c=relaxed/simple; bh=8EH8A9BzE7HOMEuqzDRblValFMLmOx5fGsLpG1xj7mA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JiSrHaxfV5iFUB/aB3cl/Iv7vj7LbbGVOn1+X/ACSnbueM7sugBJdihqiKzGJkqdZ52gG7T7WI686KLx9ieG+aNPgIeM59WHvKvpMiDQHyA5f3T0utk+Thx/VM5aNtTU3f3dMP3qCO71T7jjNMuElk1O3QoMl36Wluz0JQbbkjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=cwE4C6zi; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="cwE4C6zi" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56T9D3nH012543 for ; Tue, 29 Jul 2025 14:57:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=bV9napCh09s i1kGi9emra2vbNQVuKZFFrQKfXkn3mks=; b=cwE4C6zi1myTmBMi/zSeVDwYByp cSRwkxUl1oaeXRMzSaMvqhpXkRVPK7kz8kHclbNaBDupQMhj61Qp0oUo8A7W21PY 1v8lIH+9t+BoNHrFJR/vzp1RXA8Km3JIZF0uDZXWnS7jidqhfVTVp9/OCYuV3D7n 9q3Vjb3ibCyjMjyJbJUDLUFXWBoFkbM7ib1uE/+WBkRVXLPohlGS/EC/Mtz3o8iF z2UwZevKN/aF0lmno08TbILqcfBtX+mFS76YbbTK1+jjYjpP0hz7VW1ItKHQWdQF CRHhHqA74hzgTv6sA/U+9Vdj+GAOKVLS/UZPWFU+q5MzzJa/9yPAQfi0SMA== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 484qda0f66-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 29 Jul 2025 14:57:47 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-7492da755a1so5161407b3a.1 for ; Tue, 29 Jul 2025 07:57:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753801066; x=1754405866; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bV9napCh09si1kGi9emra2vbNQVuKZFFrQKfXkn3mks=; b=fhxwTu0LQHJu4EVrgTwLakAPt0gNKaJ0ItuhybOYGv4Vt6uNC4fPN8hm+KDd+/OaRd FmZScYVlPEex+vnBdLHJ/FmKEH9pYKCldKpKpy4dGadM42/gqMoEJAgn7QnKoT2EKJL2 sYOQRFlSNDLbsvsvLvRiqT/pCDDPBeWFz6R+NR1SsinYiE0lFniJxInT2yaAAqv+zj/M TMJ7eUd/6jdkRsMTYy7r7d6ND/sRWZKmQkPID24FyZ+rpfu4mZKS1RdOIWLa+s6LvkeE T1LsQCh7GNSPQyeD608ZQWC+D4GttUU5+Gna0dJKultthhkTGtgjc781iiW/ryK3YnBA rlrQ== X-Gm-Message-State: AOJu0YzYLOSs9dOfK1OafYC8rvvahuMaTcAApQeeTwy7783uLWuJBKQv ydcKInQO0WgZzcr2ginsGI0A0ZVDVPoBZe2FjWluXj/G57tc2pjd6KHOiKp65WopL4EDBtEimaY 7cRgPp4XXT0hCn73V0ZAxk869JVN3YRyL/tmoeOmH6B17dKCx/Ss56gbHMHnX1cIn3xNp X-Gm-Gg: ASbGncsLDWnb1/rOEIpufUAPkxt6tC6JsFlKbxvEzcqZxACDcz5X1K1NffuSMUkgwZD 73Yr4qwoOIIeYJTnbg4wqQUJDd+0wsJL02BrCxMguROJLSch0M1NzH/IYeXpR2D+WWdpN3UHUq5 j3GcbH4HrjoWKEIu/Nft3b/QEFo+9gSVhletIc2tGgqeCCAsxiNZE3kAC+Hl1yxA162QH2uUxrj mQmd6wkgaEkPkHvdketWbocCBihAhbEpz40jX4vjDo3ikxngegE6bl6xcstnz/+aVWVFUOQtkt8 zh56+mMV8teThdJQ1Ig7WW5rHfhOJEA1lrWDSWD/PkHMO1ArcOM= X-Received: by 2002:a05:6a20:4322:b0:21f:d0f6:13ba with SMTP id adf61e73a8af0-23d6ffe8724mr25354341637.1.1753801066121; Tue, 29 Jul 2025 07:57:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkVUdWVY1jgk5W7nGQYN/xwaTvSOwMDc1T4fWKqth8CqZfG64KwyTPkn95VrDifdcVac2c4Q== X-Received: by 2002:a05:6a20:4322:b0:21f:d0f6:13ba with SMTP id adf61e73a8af0-23d6ffe8724mr25354282637.1.1753801065484; Tue, 29 Jul 2025 07:57:45 -0700 (PDT) Received: from localhost ([2601:1c0:5000:d5c:5b3e:de60:4fda:e7b1]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b420db5d93bsm1812782a12.27.2025.07.29.07.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jul 2025 07:57:45 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Akhil P Oommen , Connor Abbott , Rob Clark , Sean Paul , Konrad Dybcio , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , David Airlie , Simona Vetter , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 6/7] drm/msm: Fix debugbus snapshot Date: Tue, 29 Jul 2025 07:57:23 -0700 Message-ID: <20250729145729.10905-7-robin.clark@oss.qualcomm.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250729145729.10905-1-robin.clark@oss.qualcomm.com> References: <20250729145729.10905-1-robin.clark@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: ciAd1uDGIA7XomyRYca9rJGUFdm5qtwy X-Authority-Analysis: v=2.4 cv=Pfv/hjhd c=1 sm=1 tr=0 ts=6888e16b cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=xqWC_Br6kY4A:10 a=Wb1JkmetP80A:10 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=Q8ed3UK4sgpFGPsrdooA:9 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-GUID: ciAd1uDGIA7XomyRYca9rJGUFdm5qtwy X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzI5MDExNCBTYWx0ZWRfX64n2T8aJ2JF0 PcowCsBxSgq2+XjsSVX+d3TmTHZdraZgtSDUJH+mRK31RD1lclf5XTPz/QWt7zt2oWhX/1ednLl 8TlcOcEfEhmm1+zSVHQ6E/s7zcsEdRTpQt8bg4Ks0LtAtaLetBT33r+exj6H/PuljgqpzI5gHUa P1VjpuvW0lVlX7A1zmJe0BEuUMOEueKjd2jGQJhlBrXXOuxRLwGsSjN+nYWPjx207QMndbFIecB PyxfgW50pNS6j19eXbgVDC8Md8Gic7OlRYlCq0SCARIWNuVXCjmiSUamGv7I+H8fbYlISjPgpCa CwYLjczDJuMUZK/Gdd8SdDe7YGb20KKlCk4Zb1KbzSOnZoBFc0AWZVsVbJQcE8kqVEIXV7/+Jw7 3eLzX7j4lOHSaanMxOB1mMg4t2A4egKeMlb8zBrLVvikWLXHfVLdAWudBgET37n4P3kV59mD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-29_03,2025-07-28_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 adultscore=0 priorityscore=1501 mlxscore=0 spamscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507290114 We weren't setting the # of captured debugbus blocks. Reported-by: Connor Abbott Suggested-by: Connor Abbott Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c index 8317e1107389..ab9b35e44778 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c @@ -430,8 +430,9 @@ static void a7xx_get_debugbus_blocks(struct msm_gpu *gpu, a6xx_state, &a7xx_debugbus_blocks[gbif_debugbus_blocks[i]], &a6xx_state->debugbus[i + debugbus_blocks_count]); } - } + a6xx_state->nr_debugbus = total_debugbus_blocks; + } } static void a6xx_get_debugbus(struct msm_gpu *gpu, -- 2.50.1