Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1341363rwb; Sun, 18 Sep 2022 05:41:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6FVdVpmBlIWJgCL59EE4ZBCBQ5++efTpAPZc040x4KBHBgLuJ0bYHGpWuNXbTNWjConv2P X-Received: by 2002:a63:1d25:0:b0:437:ec38:bd0e with SMTP id d37-20020a631d25000000b00437ec38bd0emr12096470pgd.478.1663504887847; Sun, 18 Sep 2022 05:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663504887; cv=none; d=google.com; s=arc-20160816; b=jJTnozn1QYHi/mZl7ItZdu/i86mwaS4Ee6xVeErevdtjqYyhxgMluXaNzZSR0iEt1l SbQucxxO0X14GCYIIxZw7YmeTgKz6eaaAKPLVNbmWA7aREjFWAYm+wIxmvjQ4onXBTuM T3JJ0AxlsWbO52iz/GG0POhwR3uJM33KYwQ+AzcdHMX0jvjxx3LWLHwzeiVtmlwSFq2i GFZLQI7qHu48PNwnaeHDt+D0JrQNfmUjGdGHAWqVGBlDEXgYqIEvqyVmSRKv75HMQDUE kB+K4DFK1hPxZucCtHfyaZnZ3AlDREpA8a7ky/jwk3eo+Z0JdwhcCzX363xpsKQnFlFI rynw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-hdrordr:ironport-data; bh=whF3PNGr5ZrUsVUdLoHMWhHbi6NhuPJSRl+2QykyDRE=; b=bRBtfqoPklPFLDJoiUNRXOhkr8249+I9G9RUoO2/kQujnzGydQgKPT2vG9nJ3+dSpL Af4gm6igPC7AhpSxWpV4SmQ0tKakAgNFqrtIxGi2bUBjMPCZoqhwAbrZYQ2GTkK6nE8n fMOTGKGHVgu6T/JsNPZfJlCvR9jc+RFlI+DqSJv0kNYczuxxF/yaFhLlEg57RnfL2rCY FsPmuyXmmAtSkyViQJDLILwi74EPF/lKIUmNIZRVkUwzBKPf6RDxCsgrmFKFxpq6zxJ/ xO60YFfsLWwM6CEJtyxmFzQ2GjXphfZIkzSFTSvRokkNCa2b4zUMj6ZuLE2NZhDRMKQV 3b4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170902d51200b00177e6909e3asi26938685plg.135.2022.09.18.05.41.16; Sun, 18 Sep 2022 05:41:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbiIRMOl (ORCPT + 99 others); Sun, 18 Sep 2022 08:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiIRMOi (ORCPT ); Sun, 18 Sep 2022 08:14:38 -0400 X-Greylist: delayed 303 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 18 Sep 2022 05:14:32 PDT Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [150.101.137.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CEE8D2BFB for ; Sun, 18 Sep 2022 05:14:32 -0700 (PDT) X-SMTP-MATCH: 1 IronPort-Data: =?us-ascii?q?A9a23=3AuKLA8qgoXK87KF///wa5pX0TX161/xEKZh0uj?= =?us-ascii?q?C45NGQN5FlHY01jehtvDGyOaKvb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CczqEPHSctdUZJ99eUmA+mdoaFL44owkq2B0+YlXBHtRWZ/E4?= =?us-ascii?q?a4mNJla?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AyEbpqq56YMMnSnOngAPXwN/XdLJyesId70?= =?us-ascii?q?hD6qm+c3Bom6uj5qSTdZsguyMc5Ax6ZJhko6HiBEDiewK4yXcK2+gs1N6ZNW?= =?us-ascii?q?GMhILrFvAB0WKI+VLd8kPFm9K1rZ0BT5RD?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AVBAClCSdjZPxyAg5agRKBRoR9lBc?= =?us-ascii?q?BAQEGgUWdEBSBaAsBUwQBAYUFAoRrJjQJDgECBBUBAQYBAQEBAQcEBWoBLIV?= =?us-ascii?q?1hkMCAQMyAUYQCxQyVxmCfYMhq0OBAYoCgT2KcoUygUCBEIQ/PoQrZoVvBJk?= =?us-ascii?q?2AwkEBwUPAjhBAwsfDRY0GAMUAwUkBwMZDyMNDQQWBwwDAwUlAwICGwcCAgM?= =?us-ascii?q?CBhMFAgI1GDgIBAgEKyQPBQIHLwUELwIeBAUGEQgCFgIGBAQEBBUCEAgCCCY?= =?us-ascii?q?XBxMzGQEFWRAJIRwOGg0FBhMDChZvBQc+DygyaysdGwqBDCooFQMEBAMCBhM?= =?us-ascii?q?DAyICECoxFAQpExItBytzCQIDIgRjBQMDBCosAwkhHwcoJjwHWDoBBAMDECI?= =?us-ascii?q?9BgMJAwIkW3g4FBQFAw0ZJggFIxYdBAg8AgUGmzqBPpQnCpBhnl0Hg1mDSAG?= =?us-ascii?q?cUEwRqHOUNIJWhAOfEoYxghV7gyxRKJ0AZTsCBgsBAQMJiwMBAQ?= Received: from ppp14-2-114-252.adl-apt-pir-bras32.tpg.internode.on.net (HELO localhost) ([14.2.114.252]) by ipmail03.adl2.internode.on.net with ESMTP; 18 Sep 2022 21:39:29 +0930 Received: from root by localhost with local (Exim 4.96) (envelope-from ) id 1oZt70-0002gc-1o; Sun, 18 Sep 2022 21:39:26 +0930 From: root To: alexdeucher@gmail.com Cc: Xinhui.Pan@amd.com, airlied@linux.ie, alexander.deucher@amd.com, amd-gfx@lists.freedesktop.org, aurabindo.pillai@amd.com, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, greenfoo@u92.eu, guchun.chen@amd.com, hamza.mahfooz@amd.com, linux-kernel@vger.kernel.org, seanpaul@chromium.org Subject: Re: [PATCH] drm/amdgpu: use dirty framebuffer helper Date: Sun, 18 Sep 2022 21:39:26 +0930 Message-Id: <20220918120926.10322-1-user@am64> X-Mailer: git-send-email 2.37.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 Hi, I recently experienced lock-ups that only responded to magic sysreq reboots when the amdgpu module was loading on my pc (Athlon II X4 640 CPU, with Radeon R7 250 - Cape Verde). .config has: CONFIG_DRM_AMDGPU=m CONFIG_DRM_AMDGPU_SI=y # CONFIG_DRM_AMDGPU_CIK is not set # CONFIG_DRM_AMDGPU_USERPTR is not set kernel command line has: amdgpu.audio=1 amdgpu.si_support=1 radeon.si_support=0 page_owner=on \ amdgpu.gpu_recovery=1 Bisecting lead to: commit 66f99628eb24409cb8feb5061f78283c8b65f820 Author: Hamza Mahfooz Date: Tue Sep 6 15:01:49 2022 -0400 drm/amdgpu: use dirty framebuffer helper Currently, we aren't handling DRM_IOCTL_MODE_DIRTYFB. So, use drm_atomic_helper_dirtyfb() as the dirty callback in the amdgpu_fb_funcs struct. Signed-off-by: Hamza Mahfooz Acked-by: Alex Deucher Signed-off-by: Alex Deucher diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index c20922a5af9f..5b09c8f4fe95 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -496,6 +497,7 @@ bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector, static const struct drm_framebuffer_funcs amdgpu_fb_funcs = { .destroy = drm_gem_fb_destroy, .create_handle = drm_gem_fb_create_handle, + .dirty = drm_atomic_helper_dirtyfb, }; uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev, After doing a git bisect reset, git pull and reverting the patch above, I rebuilt the kernel and am successfully running with the amdgpu module loaded and using the Radeon R7 250 GPU. I am happy to supply any further configuration details. Arthur Marsh.