Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11692010rwd; Thu, 22 Jun 2023 17:34:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Gm1XdqK+mkxYqIB8uw4mgQtqcoewfMG6iLCB4XroBc62U7YNKk3blJQM/zUWal69y3gCH X-Received: by 2002:a05:6808:1827:b0:3a0:5993:be86 with SMTP id bh39-20020a056808182700b003a05993be86mr5597987oib.3.1687480440052; Thu, 22 Jun 2023 17:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687480440; cv=none; d=google.com; s=arc-20160816; b=iiq48WZEUadD0sY46mO5gDHjsXJeiSkkUm8hza8hmyuUS6i2+Nkfnwx2uNApqVGUSy 25tvO3vrvXW47zCz189vef2GkowXXjGTukIDjFnp1lzulveLeXgwJeYPJqjKdBqpryof 40QexX6KcZnRxLkWe0UdZC8LwTbbp4+A5b/jRQpUUUL/q3JxKVwMn19Ok3rXhkfvCiby TK3YF4W2MOaaN7USYL8W43brI3FL4hUM05r1VmqiCNH0Cs/rciZOridrPvLKLrKBqBD+ s0A+oCi6b7Ep7rZj8J9Nq3mOSGsiM9ISkd19SyV4FISwVQ4Gcm3lP0Ag3rxbYcAJPooE A8fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=lIhoZGAhJ7XsQZAtBGo4LFt5rsbPEq2Ckf9pnUGIVn0=; fh=9j78DhbDETeXcXIJFa7yDsey5nxAjy+o1QKPwFrCzeU=; b=kumZjMzxVfCwH+JEAATVzldacqRxB1a5IFf+ef8j4USVkuMzsionCtQQP5SabYYQQ2 zwvwwbDAqEfmKOzm1TgtH51hHEdUNX4hW+sTGcg7hVAzdtJ1b2O8wFiXAvDykXDOx7vh mc1fatCMboNpCmMIa+v7/4cCkMfFI8W0x5BOPdeKt9/TdeAt8yn/1trmDTPKY+CsJWkT 70yKJEqv6hLQVh+Fm1IU/zpCIWdEj8tVAPossMO9JKqM5zRx8XM0Bim2ne6yp9HhMnKD PZcY/XC6UbkIAXlyVgVmvHOgJMtG2xOvC+xo//eKCE4eORBTjlDbFY5bv18IdjTSwbjH dY0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hmGSo1Q7; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k10-20020a17090a9d8a00b00260a6621b4bsi702013pjp.117.2023.06.22.17.33.45; Thu, 22 Jun 2023 17:34:00 -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=@quicinc.com header.s=qcppdkim1 header.b=hmGSo1Q7; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231806AbjFVXuk (ORCPT + 99 others); Thu, 22 Jun 2023 19:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231791AbjFVXui (ORCPT ); Thu, 22 Jun 2023 19:50:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7BBD2134; Thu, 22 Jun 2023 16:50:33 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35MNkVIK020414; Thu, 22 Jun 2023 23:50:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=lIhoZGAhJ7XsQZAtBGo4LFt5rsbPEq2Ckf9pnUGIVn0=; b=hmGSo1Q76srNJEnSNy8eQLigLfv8NeD5gPW371yihMNWbbwTw3GndtnpU3g8oLnDjqUo KkK2icLnCFz0+oi9w7Uf938Hex3lUgUvvF6LaThhXRJrtVPT+6ImmmQbcPO8jzI0cqbh QCo7YsnqlbYJ5Fvsw26JHzmAngTH4EHiyqE2H/qbuMjM87qE1g0uRR5xW1HGM6ltGtFp KyBHGt9gLbXin6lcfXsDby4wqrPgL77Bf02rMmWimLtwVsSOlMGpwUHQ1MhwsJM8UfKe 5XJ5lgv1HYGMtcia+UrW9UA3uLOXtmsMdGHn0tpfwNMkxYxHSs/jC0MEwMMUhFqZQ4DI qQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rbvr1n213-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 23:50:26 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35MNoPIS024820 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 23:50:25 GMT Received: from hu-rmccann-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 22 Jun 2023 16:50:25 -0700 From: Ryan McCann Date: Thu, 22 Jun 2023 16:48:53 -0700 Subject: [PATCH 1/6] drm/msm: Update dev core dump to not print backwards MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230622-devcoredump_patch-v1-1-3b2cdcc6a576@quicinc.com> References: <20230622-devcoredump_patch-v1-0-3b2cdcc6a576@quicinc.com> In-Reply-To: <20230622-devcoredump_patch-v1-0-3b2cdcc6a576@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter CC: Rob Clark , , , , , , Ryan McCann X-Mailer: b4 0.13-dev-8a804 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687477824; l=1114; i=quic_rmccann@quicinc.com; s=20230622; h=from:subject:message-id; bh=tjR+HLDFmB85BQB6KVcriTx2yw4Rbgv0sxiN8pqj+Ig=; b=rFrMJIcJWApV7dquRySW1oVwlR+R+25u+XFOxmgbwkpil9sgq9tfzaICbeoNJUGAJ5HB+hFfM rtjI3irH2x5DMFmDqnD3X19jEtAo1vRGAfsxdMEK/bW//c4DzD59zwJ X-Developer-Key: i=quic_rmccann@quicinc.com; a=ed25519; pk=d/uP3OwPGpj/bTtiHvV1RBZ2S6q4AL6j1+A5y+dmbTI= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: qDoNvMzwhSG9Q0TIo_nuawxdfphYTvVE X-Proofpoint-ORIG-GUID: qDoNvMzwhSG9Q0TIo_nuawxdfphYTvVE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-22_17,2023-06-22_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 mlxlogscore=851 lowpriorityscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 phishscore=0 mlxscore=0 bulkscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306220205 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 Device core dump add block method adds hardware blocks to dumping queue with stack behavior which causes the hardware blocks to be printed in reverse order. Change the addition to dumping queue data structure from "list_add" to "list_add_tail" for FIFO queue behavior. Fixes: 98659487b845 ("drm/msm: add support to take dpu snapshot") Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c b/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c index acfe1b31e079..add72bbc28b1 100644 --- a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +++ b/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c @@ -192,5 +192,5 @@ void msm_disp_snapshot_add_block(struct msm_disp_state *disp_state, u32 len, new_blk->base_addr = base_addr; msm_disp_state_dump_regs(&new_blk->state, new_blk->size, base_addr); - list_add(&new_blk->node, &disp_state->blocks); + list_add_tail(&new_blk->node, &disp_state->blocks); } -- 2.25.1