Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2915317rdb; Wed, 15 Nov 2023 14:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGFXYly9ZO1qiiJeHTiOaX2LDfKvzIPa4EuE6BhtU7sFSCB9i7nxRadCs2PPO8iMQSCcxHk X-Received: by 2002:a05:6a20:a111:b0:187:7a49:82a3 with SMTP id q17-20020a056a20a11100b001877a4982a3mr2771955pzk.36.1700088277213; Wed, 15 Nov 2023 14:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700088277; cv=none; d=google.com; s=arc-20160816; b=mHkr7GmES74C/R48AUxZtXMAh9Kvmd5GHXWdUgnoZC8b4fpC7RTujQvlbIIHMUGfQK I0B8fUgzPDAcXRAMJMxEQ+qdprYkwkVHpaTZjaQmNCiG/D361P0iNGKHvOsEOmvVswjT URrbDHUp/2ly/CXtYdEkVwvkV7QBwQXW3TVWYUKIplcPCZJFcpGTYJ4K4ntErIqPF4X1 FXO0ul9QCX85tCtePqhEux6pDivn36vOOaHoaKYdY2XGOaBFIWM1fKAoIrOHjRX1c0Z6 YnAZp4I9vq7eJH87EYA6ktKYAN6isGN8UKFporS8gJGYBeev7/lJALWcNORw0PJQgpgd Iotw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x+9rvLvdX2lnfyBf2vZqm86qvEOYTf/3b77ELh1X624=; fh=9atKuf829lAg0tkIKo07XINzPVtuPagGNz81nd3QBps=; b=Pwm5oLWl1Jj/W4g7o0DDnDB/4xzsMj/IUrMJ2d/PY3d7QhKgXAKO4oPkepx+TRfVZu 2Kj6tWLipD6vLvym+lFTgPb9vdhn74GdyrizkYQNs9f0awih4LL+KO9i7RYm3rMFufuz 93ky2HgvTD7hKKGMMHPBLHAxJDXSIZHr5eNY4Vt6Nx+lr8/pJ84uI++AyUyBxwxPSl9Y X5XRusqNzOaC1vKXVjYPwiMwiPvTUOHmFo+KevgAkTkotaoVHdNJfKfRlBFUzuXNR4kD 9zAu54Nrx98GdJ0+vnWTn7YucfTvJwAtDsH9S6pNs/csPVxB75qwivGdmIV3RIExj+WH fvWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bvr6X1ZY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b1-20020a056a000a8100b0068fa8499af1si11272588pfl.11.2023.11.15.14.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bvr6X1ZY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BDC1A80DF259; Wed, 15 Nov 2023 14:44:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344417AbjKOWo1 (ORCPT + 99 others); Wed, 15 Nov 2023 17:44:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235621AbjKOWoX (ORCPT ); Wed, 15 Nov 2023 17:44:23 -0500 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DF01B1; Wed, 15 Nov 2023 14:44:19 -0800 (PST) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1eb7a8e9dd0so71178fac.3; Wed, 15 Nov 2023 14:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700088258; x=1700693058; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x+9rvLvdX2lnfyBf2vZqm86qvEOYTf/3b77ELh1X624=; b=bvr6X1ZYQtDjBvoOu7MgKyONeMF6dWAxg3AJaO0jTNF6GPTJV1ff+k82O9u3jXIOqk 6bI/7q94cHJwqICOtxIMAoHHr5JJ7ea1jPRDEIjZh6pMM2Pta6q6nzZLSNgcJDrqV3n4 nMs2iEWM7EPIwexaZG9tv7Tk5aq6fTx2RErH3N52Et9WnohImnj8X0eCrMMohQjGqez4 qFDOQbYBAHQlUi7MQf75c490SYYgdKwEwbNf8uLjNbl3TVrtXUPfFmfs1zDnPwQEM/nw SvHyeDLZ9UMJW9b7rdSu2ULkmsauvbtNVDfNIGlgnMuOgCy5taKoQxVcBy1EdYA6A57n eRKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700088258; x=1700693058; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x+9rvLvdX2lnfyBf2vZqm86qvEOYTf/3b77ELh1X624=; b=s4kJUBi4wiwIBamx8ZVI8a7gPjm/r0oD8iItTAXSrquWOSJK+49FG7FolSgA/7O5mD 4wi5+qSKnH0PXy7MTVRqHNZoRktpVrWASbhl4QUyCdJde6/KjYwptcv676DgquchIP/K CJPLEvMvo8whLcvDq0TqAkSBLSXdvHWhw964jz4UwKleuNKB6yWDjhjGbanW9pJ0tWem EN6U7pH8fovh5iLcrHcGXsJw4HOWO+iy15Q8aX2u2c1Hl1M02M5n9CTaztnGBO1xCz81 d0PT1qPf7pwzlcMW2M1McbAu6/mgJJ10lvvw0YPXtutzfBxKOg+MtRqAI6SSuV6qfO+Y tsdA== X-Gm-Message-State: AOJu0Yz1GGsS7KG5MuWiYxV0cniO7XFSikxXNZ147+75o/A4Sn0fiZy2 IkoMDDEsH8QmS2M4+W4dvlk= X-Received: by 2002:a05:6870:b48e:b0:1e9:8182:a29d with SMTP id y14-20020a056870b48e00b001e98182a29dmr18474426oap.41.1700088258174; Wed, 15 Nov 2023 14:44:18 -0800 (PST) Received: from localhost ([2a00:79e1:2e00:1301:e1c5:6354:b45d:8ffc]) by smtp.gmail.com with ESMTPSA id r4-20020aa78b84000000b006870ed427b2sm3358092pfd.94.2023.11.15.14.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:44:17 -0800 (PST) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Rob Clark , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] drm/msm/gpu: Move gpu devcore's to gpu device Date: Wed, 15 Nov 2023 14:44:09 -0800 Message-ID: <20231115224409.240935-1-robdclark@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 14:44:35 -0800 (PST) From: Rob Clark The dpu devcore's are already associated with the dpu device. So we should associate the gpu devcore's with the gpu device, for easier classification. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index cfcb4317afdb..3fad5d58262f 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -292,8 +292,7 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, /* Set the active crash state to be dumped on failure */ gpu->crashstate = state; - /* FIXME: Release the crashstate if this errors out? */ - dev_coredumpm(gpu->dev->dev, THIS_MODULE, gpu, 0, GFP_KERNEL, + dev_coredumpm(&gpu->pdev->dev, THIS_MODULE, gpu, 0, GFP_KERNEL, msm_gpu_devcoredump_read, msm_gpu_devcoredump_free); } #else -- 2.41.0