From nobody Mon Dec 1 22:06:09 2025 Received: from out162-62-57-210.mail.qq.com (out162-62-57-210.mail.qq.com [162.62.57.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 709F526AC3 for ; Mon, 1 Dec 2025 01:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.57.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764553387; cv=none; b=rqMr+Rh6FFxnivshubzc4Gff7w3nbTCkg/H61GFw8UY4hoB+6HbLOugRn/yJ3uOxH5C2wLl9aCxNZ88naQZbBXhWWnXGglMSe0NFrYozozR+gl4ZUPA8RhahRiURoFGLwiYj86+ls1DYM180toQdGs2TgCMZuJyaGDtBnwUTfS0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764553387; c=relaxed/simple; bh=mTMK5GecumPLdILvdP+i7k7S1i7we9aYmp95xhdugHI=; h=Message-ID:From:To:Cc:Subject:Date:MIME-Version; b=RCI9PbDSwWJP5hLkpmhGEhLHmL1e/WqL5iRpbzW1Rsp3acZy1Lu1u+tvDZfDGpnfVMEEy8VIYfviqIqLXLnou4FB0i6/yCY96HHvFDvitlgK1AKwa4TjFmSvSwcKFCVqmDEq/fNwZa/Yl+E5sw+p+uwYbMu9bYz1bYmXBPhpOXw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=i4/EWZjO; arc=none smtp.client-ip=162.62.57.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="i4/EWZjO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1764553374; bh=EwbRVh5O8zYDm77GrSE46g/cFUM+uW2lfKH1bz4YXPw=; h=From:To:Cc:Subject:Date; b=i4/EWZjOCQghBr7+pQPX6YBOSCMHrq8KWw93KyUYwRrpUgqD70zoH4llf17wtIpGs /TKI97F2koQUCG+tGo8WdL3/KQpC4gw62SB3nqZXeIpYkDnBKYZ3BLB+PR2WRby+s3 V+EPFVlbm/Vq3nq1S+eoWJaWvyQ7CQZL6KcL4FMU= Received: from localhost.localdomain ([116.128.244.169]) by newxmesmtplogicsvrszb51-0.qq.com (NewEsmtp) with SMTP id A67B906E; Mon, 01 Dec 2025 09:41:39 +0800 X-QQ-mid: xmsmtpt1764553299t3kp9bknk Message-ID: X-QQ-XMAILINFO: MGcJvgbhPSHvqKda8qgvU1SNZR/cbDAt5KkK+IO6+GfyhUMbUSqa6orKlRlxfa jJ52ppBFBRdF+98o6pLVdwSBAo6EskvAGP+c3fqej9+sGbVwH5+oWd/cXCrIcTs0emBVICTX0lyB K6d9mQSb5YsPXORCMo9nDoTOqVm0EPpNTQfHwl6wNtRT70uFjgW94xneCyF77IgPe/FljOLVomdC ZEQYub+zudNmGPgPQICG0YiqKzg8hBn3Fwk6W6lK+LnFG/ygPTcMKD6o2iBTFIl10p1kmL2S8VQT s7qR4EH3z+0CrXhPd0x3F3Ay3v1dbt0bW3bin8yJun+DlkowwQDwefZrNoyGs6WfAHeid3xSNrPJ lA6euebWveWuHbHgix70RJLOKNDwwgyi+zPAKP7YkJ8jx2wBOUOX1gxKqUnBE/Voi9Ysx3n17U1j HYsidoLRO5xCeCbarldfDxjnOzevQHpPVGWboP8zh1jr2CmXa51YwiydZERqlEh4hr9Og4rsX6Rm 2du9JHHL8xbtTcDvtJ52OIwk1NNUEKU6HS5s+oGHQkpmuR3MFwR922oBbKNsOZtRCFqqvCzuKkb0 45NDZa17tk72cANNS0KM3C1WWlM6RtFzxdDg4LRALhQNfQXRoM5fpa/oLtcSHUlshqPAFPbBtxwg lUOriT+et/+h5k7Aw8SRGfWROvZIjhTNkgrDFSsqYAtJjzy5zOot9l7LO26ZbZpSBSsOF261ysSE GLbteQPiVCNifl3/h6EkzVzIyJj6Ig/eMtgeJ7XxizyHOb9YoOi7se7uU+LfkhUhlDeSLKp6Izs4 9BhVr8xsvz5ek9hqymsN68lfeVT9C0dimW7a54Jfl/h2E9Kz3Xyr6CWx9Iy+Ce1sTbQ2H8pqw3BL 4vPLWr2bm2MjXOnma+0ej33+6q9yQXJCZ968iHDOduhTtWT+6+xsPARKofnK5BUWSPXP++J2AEMk j1mppRY6GJoRZyqrQht6fvJ2XCf4rU X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= From: 2564278112@qq.com To: Lyude Paul , Danilo Krummrich , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, jiangwang@kylinos.cn Subject: [PATCH] drm/nouveau: Resolve the issue of VGA not detecting disconnection Date: Mon, 1 Dec 2025 09:41:36 +0800 X-OQ-MSGID: <20251201014136.38975-1-2564278112@qq.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Wang Jiang When using the GT730, I found that the VGA could recognize when it was plug= ged in, but could not detect when it was disconnected. The reason is that the polled flag for the connector is missing DRM_CONNECT= OR_POLL_DISCONNECT. Signed-off-by: Wang Jiang Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/= nouveau/nouveau_connector.c index 63621b1510f6..dfff01edf65a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -1421,7 +1421,7 @@ nouveau_connector_create(struct drm_device *dev, int = index) connector->doublescan_allowed =3D false; =20 drm_connector_helper_add(connector, &nouveau_connector_helper_funcs); - connector->polled =3D DRM_CONNECTOR_POLL_CONNECT; + connector->polled =3D DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DIS= CONNECT; =20 if (nvif_object_constructed(&nv_connector->conn.object)) { ret =3D nvif_conn_event_ctor(&nv_connector->conn, "kmsHotplug", --=20 2.25.1