Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30989572rwd; Thu, 6 Jul 2023 13:54:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlGawxA3niJAJMjV24BEFLM1LAhHNdsX8+rFrbLuL8Khg8ThweL9ULPL8sTxDL1a56TIf18U X-Received: by 2002:a17:902:dad1:b0:1b8:9017:b9b3 with SMTP id q17-20020a170902dad100b001b89017b9b3mr2966025plx.41.1688676897018; Thu, 06 Jul 2023 13:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688676897; cv=none; d=google.com; s=arc-20160816; b=podewyP0vv/uL4izsDYxbC6deGe9O2/oVig9PIXzmlfUidbcNHVdRxQgcOgVmr1fVb Hz4AcH5EP+VvSjIMMgg4VndJI7kRRbq5HOJbHXIUH1eJC5ZgUQscR+SIfwTa1mqehJnB f52JQuYo+u4RE72N+y7Gt2pyqFGv1pqttKSTJmlSr0Fwlq6CnLfHUp8wnGrgCdeJVi2i ZgTsAi58cdvbfltR/YMUpfaMgznLRBNRXuDRNVGZ1ZHiWJFd6kGeuDiPFyhDGaeQclih 8bziv1omnL3nsi6PZSx55g6IfmgpUr4z7NaZeFQGyCTQdklFupaepbQBY3PxMaDaeKz9 6/6Q== 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=r2Tj6BcfUU9gAxO+emjkYoS6dJrkoyX76TkLgIDwaWE=; fh=7FDJYXw0kf2YWYrVui8AkyYg9HdMbs30crnruk6g7mU=; b=RmBPxjzd/tKNtvynPomTMvXQGcrTkLf/1M4IETDJE46DfAJlvCt/5SYW9UOOLyLDKH LALgOphllM/IRIMvhikqzinfn5px3KUo7jLSP3ylHPdEDCKPs/+5ogsDv6AnVL8gRhmU 6i57Y4sTd2XCCqoIGCZGZof9xnt5+iCjadzCuhZI84XJih9IKCnIAj6fC6UIz0MnawJL I7nfWIakGQ+5NWo2C3QzJdbtkgFdM7VPoTFBAu60QD+pZ6y0yRdrgJ9CABSNFw/O1Q8Q +zQzlJtGKXJ/EbGjnybb73dAkEPo3VWRzR/xs49IffkqSiFGyR387fC/NKEuI3VFvPGr MxSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ifeZw4OV; 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 e16-20020a17090301d000b001b8a54a17f4si2235894plh.50.2023.07.06.13.54.44; Thu, 06 Jul 2023 13:54:56 -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=ifeZw4OV; 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 S232467AbjGFUtH (ORCPT + 99 others); Thu, 6 Jul 2023 16:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjGFUsy (ORCPT ); Thu, 6 Jul 2023 16:48:54 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A971BE1; Thu, 6 Jul 2023 13:48:53 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 366KhC8A011765; Thu, 6 Jul 2023 20:48:43 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=r2Tj6BcfUU9gAxO+emjkYoS6dJrkoyX76TkLgIDwaWE=; b=ifeZw4OVhNzCh+EJIYJ6Hv6aFMkvb3ESWpTcD8jj91tI5VU2EhDMO++sl9l06nL1a16a HF5M3ckSAwq0IZOIClnBxftn3aWXnSLnAmsb+i5X4BVLAJTmD+AE0+xawRSIYc2nR7Sz YDym2Vt6Ou14bCcoym4Up4v65wDhSLWZEYRAsWks7fKmkkZfw3dcNTsqf3z0Ig9V3Si4 pOLhb2S2iPs07UFO5/n57WiFy6tSt8wNbZAnYyBKB1DVmX+Y/7aF51/lUMzSUI8KAmgt q8xWOO6fDIxCJerAkC0acjfbCiLS6UlCn4qyjfWgGNzOsPElI5fSQftUVgRMUKaz2WsJ Nw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rnvyvh38a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 20:48:43 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 366KmgiO006907 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 20:48:42 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.1118.30; Thu, 6 Jul 2023 13:48:42 -0700 From: Ryan McCann Date: Thu, 6 Jul 2023 13:48:32 -0700 Subject: [PATCH v4 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-v4-1-e304ddbe9648@quicinc.com> References: <20230622-devcoredump_patch-v4-0-e304ddbe9648@quicinc.com> In-Reply-To: <20230622-devcoredump_patch-v4-0-e304ddbe9648@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=1688676521; l=1231; i=quic_rmccann@quicinc.com; s=20230622; h=from:subject:message-id; bh=9ZCH0KRgL2wUCDIMEq2mQZvZe83s5dNQp/i82vPu2/g=; b=iFaUwsyXKRDzljnsWfKft13c9O3kOpH+XNWZsyG8jLQ8IpAvThpzqKXXdGQpaWRH8TJNiR6tV 2I5+idTS9lLDctkXoHlHqAWbeoTlShvJFbfpFoU2HKxZY2n+mcD6tCT 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: nalasex01b.na.qualcomm.com (10.47.209.197) 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: Z2xZS5ChKkame9smW6f6FhyYsZt_g9aG X-Proofpoint-ORIG-GUID: Z2xZS5ChKkame9smW6f6FhyYsZt_g9aG 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-07-06_15,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxlogscore=862 clxscore=1015 mlxscore=0 bulkscore=0 spamscore=0 priorityscore=1501 malwarescore=0 phishscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060182 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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") Reviewed-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar 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