Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30984392rwd; Thu, 6 Jul 2023 13:49:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGTZ+paTgUPiwyRh6yhcmVIXA+TaiO85kpybhthn5yoL1LjcCp3bVRaUVZ2oWGF6I/N2YVL X-Received: by 2002:aca:241a:0:b0:3a2:f91a:cb08 with SMTP id n26-20020aca241a000000b003a2f91acb08mr2475171oic.42.1688676548015; Thu, 06 Jul 2023 13:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688676547; cv=none; d=google.com; s=arc-20160816; b=yFsbiH7HX8YkATp1TQfj6j1znb4A9vLGOmHK5rVF9m2N7xwVgV9ynl4C/4FthMwEC7 UKC8EsS53ci0bkpgZvnxxF10NLkaYS670JObGpb3hiEnpw8N6sXKv4UylavDbNmCtXrH PeH6H+k6P0cUMDB/fZG1jbaay1VQOSXbZ0mx3+ujrkEz5G/e5ELA4bMvmc45fUeYKsrp W3fuG38q6BpHUcM749XM3ETznXHB6AOhugqRW1V6B/c2+hBEfYn/1mjKlSVtgBS6hjVW Dyq1XqlNID3/T5eodKPstW9+A7sg0MH7YLboZcsCHEu4VEGuVsjr07GIwZb4pm9oVTTA q01g== 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=p15hj/n9Ks0fLsFKrqRNyan4d2irE1I2jec0Kpnoc1A=; fh=7FDJYXw0kf2YWYrVui8AkyYg9HdMbs30crnruk6g7mU=; b=eUq9anQ1CWIo+htdTBOn26BcVOgO6tABFfPqeBWrPQvTJyDjkKxduO94PYcvhCvFOV fT5g6MSJqPfo6ty+dh4ARrL4vyySkmcd5XaD5xi04IL300g0mNAXzzzHQ3iaZZlmmGne ZPXu0JNjYtW9HkhM5zXCm5WttgilaaORl09CmpwnbKHiQ1UdAXSxEpbn4Ie0nbXY8cxL yddVcx4806w6YCJsZTW/mpP9iuKZhw9phBlectjjdonh/8jLmW0XpRa1dBXj7hO540iX m0B3cyRTO32XsNM2HGu7lqMyq6/CQq+Qnk+DRVyrr4RHO/SllmjB6guMKlBt8wraC02k jitA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bqvJoFpW; 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 i70-20020a638749000000b00533ffeaca3dsi2289734pge.40.2023.07.06.13.48.55; Thu, 06 Jul 2023 13:49:07 -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=bqvJoFpW; 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 S232712AbjGFU2H (ORCPT + 99 others); Thu, 6 Jul 2023 16:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232380AbjGFU2A (ORCPT ); Thu, 6 Jul 2023 16:28:00 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4E51BDB; Thu, 6 Jul 2023 13:27:59 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 366JklQA031714; Thu, 6 Jul 2023 20:27:47 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=p15hj/n9Ks0fLsFKrqRNyan4d2irE1I2jec0Kpnoc1A=; b=bqvJoFpW71nCQ6u/Jktp5vq9D/iQ7xBGTmnyLwTUD8QN3jcqmpltPJou7sH0XoAv7ufX x+Wnob4M0/2FdGOq/10lrwMzN5rK+focHKlAT56W8LnxHnFxkQzY9UJ3VV2le1quidhC BBAtkUQu/k8I6W3XM+IR9ICH4Fe8aZjRYcKgxy0Y9N0Lc8ooYHY0yxvzGTRjqUKYW2xb y2O9mmiJvv0N1RLprNGBETN2I50bTWO8M5gc2RuEjyl6QhXHOCudsiek/1A0BD1pu/l4 IAuR3hn3gEabvW7DoV8NdYItjvLw3nAgX5ot3OnXhgm2KudR2acOaDffbhLEVW1wGUw8 0w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rn2cpcc6k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 20:27:47 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 366KRkFr012357 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 20:27:46 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:27:45 -0700 From: Ryan McCann Date: Thu, 6 Jul 2023 13:26:47 -0700 Subject: [PATCH v3 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-v3-1-83601b72eb67@quicinc.com> References: <20230622-devcoredump_patch-v3-0-83601b72eb67@quicinc.com> In-Reply-To: <20230622-devcoredump_patch-v3-0-83601b72eb67@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=1688675265; l=1175; i=quic_rmccann@quicinc.com; s=20230622; h=from:subject:message-id; bh=spf8P6JJVhZzx19aCNUdDvZTBd91BGOkV8kKkMp6IzA=; b=zX3H4Drt6HFFhSWpBsXufxPO6LYm5cHcxBzKq5VnKK7k59pHkJR+e2Fpz6+eQrT7kY6EM6/iM Z6Y+EFZkmHbAO5eAURa2Q25QIwsO/L5r35urXxawJSRHA/aAhVXWkPF 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: -yoH6IdhF_0_5CAOtroltiWy_xRGTT3I X-Proofpoint-ORIG-GUID: -yoH6IdhF_0_5CAOtroltiWy_xRGTT3I 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 phishscore=0 priorityscore=1501 spamscore=0 clxscore=1015 bulkscore=0 mlxlogscore=862 lowpriorityscore=0 suspectscore=0 impostorscore=0 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060179 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 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