From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 8E8A12236FD for ; Tue, 6 Jan 2026 17:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767718945; cv=none; b=T+QK7cyHuPNoWOcB4PiSHi6cf8MO8gEg/H0wnoylgZIjCwTCXdcdHerQ2Jh0cIXHLtOCGZbnPdyYVjxphGQGq2MIPEYyE5vZQPkGAtNAKJV2P9umVJRzvNqjQ7b1ySiZR18aLgYjdB03lctTRkee9w34j29FsXuzS/3xynmK+3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767718945; c=relaxed/simple; bh=ST6g16ExXzrlcCYLJQHIoyHXGlxhocbIjK5JiRX/XBY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=u41CoREdPittRNQl3U24XZ1oRx3pUtiVXSSnZUGMwc8UaBSCVO3VdFwDtBWBiNui7giwFk18Ars/4hH92uVHtGtQWOMO/rfHrUF68c3lw7mw2sAL39ChI9L0VFKrVstN/Pmb32nqITbj57QybjRB7rRCQWb0TwtTZgb5uFpmmkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=cYt+Tup1; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="cYt+Tup1" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1767718940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KVhYOWjOy3s4cGB075nLpbGOnPZxOTkqrtEVdZbAptM=; b=cYt+Tup1fmcLdyyugNm+KjfWOvO3FcdwmwmhqhoaYPuKYRvYdyEkbgUCvfJOaxPA3A4mJa ir/Eg7puwOWIPyaO2ma+bTWYAQfsTMVfsHYU/XUJClyGEGaq+JnepqMBgljFAEWxc1fo3Q n/bDPv4cLbhcWFT54oRVKdyVXe5Px4o= From: Sean Anderson To: Laurent Pinchart , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Cc: David Airlie , Michal Simek , Simona Vetter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH v3 0/3] drm: zynqmp_dp: Retrain link after HPD if necessary Date: Tue, 6 Jan 2026 12:01:33 -0500 Message-Id: <20260106170136.501044-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT I noticed that after reconnecting a mini-displayport cable, the sink would not display an image. But if I forced the link to re-train, the image would come back. Some digging revealed that the DP spec requires retraining after a HPD event if the sink syas the link has gone down. So implement that since it fixes my problem and it's required by spec. Changes in v3: - Simplify HPD retrain condition Changes in v2: - needs_retain -> needs_retrain - Actually retrain the loop (accidentally removed while rebasing) Sean Anderson (3): drm: zynqmp_dp: Update connector state before AUX transfers drm: zynqmp_dp: Use smp_load/store for status drm: zynqmp_dp: Retrain link after HPD if necessary drivers/gpu/drm/xlnx/zynqmp_dp.c | 42 +++++++++++++++++++------------- 1 file changed, 25 insertions(+), 17 deletions(-) -- 2.35.1.1320.gc452695387.dirty