From nobody Fri Nov 29 05:41:53 2024 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E9CB288D1 for ; Tue, 24 Sep 2024 03:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727150002; cv=none; b=A5KhVxi8AgvF7ht5xwdWVaT99cn4GTzg6OOvv7hv/DsPboXFjlBUSD+ADa0tpfo4lf0OfMuRoY0ph/9BKkdBVY+tWc//y2OCZftvZnx/VjwRa/R3iktvaRcuJ9QdCPb+MK7+bHtWsP8pf3TyvjWryboY88jcJjqwMgk5NYclZsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727150002; c=relaxed/simple; bh=/3j/pCpq28nZN3hquW2t86gJEd13fvuVOsnYqEE8W14=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IZ7XdkZIIrYHbZz9u4GB75bs8doaaSNKXSgOmFBSxoHgYGaGnAU24hdaJKCbtenfc13//Ndqmz015c8yv07GKZWxtdbetYNDqRDioWRYT20wWVhtXhMLMv+JA6AXw3FFZjz/aqaSZTegLZHTBb60BYBGDQwv/FW+wT//zuay7v4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=RKou1ZkB; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RKou1ZkB" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2054e22ce3fso49892045ad.2 for ; Mon, 23 Sep 2024 20:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727150000; x=1727754800; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K4JDPhYLX8gOFX6qvDK3s7d/UNCPkxhxheW4+MaLpxU=; b=RKou1ZkBRXX6qzPUAr3Zt0mcvV/iIVD50qjivH2NITd9m3LQG5SvEldD6H1IodT23n S6wsKsIns4lL5PCzqcKE2SO96Cn+2qkizbDWz9UAZu6zifQpIhxAd7RvCaUI2weFYGrF +WMyQh9tB02p2jp7zLAJWQ5neXCiVKQyBic3Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727150000; x=1727754800; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K4JDPhYLX8gOFX6qvDK3s7d/UNCPkxhxheW4+MaLpxU=; b=dbL1bixEpCnVnT9/5EMEzjEspPvDyPfYhVI5mktuyJtsbld2Fxw4yyIAR6PWueRs73 /bWecTy5uR+oYPRgGmC3+NJlMfol4dmbmDkfGIXGTruhWYfSauKYF1mknCNonSi31w84 etAgDTFUAMQ5XRDoj1V0W5X1Ifhk2rRrGg01+RyM0YfyhIrqjnHjOTjVxanajrkzhtdJ +vK4WGQbVSSZXjXqxJoMYdIAO6THbY3HBgSChlYS0KoqrjlCN8NPLOnNxTdsmCIwgP7U qGBgxJBwpsQ9mW0+k7mACVikoWv69RXcx5pNWt4bTj041CYgAwMmBd3e0BSvQpc/DBWV UtYg== X-Gm-Message-State: AOJu0Ywn+w+jwrGQGuY6/fEKEpg70MbzwMMaHEl56HTuTet2FW0WkPXS Nuijo67D+BXK5fXOIBMgyFARzDeHsCveWVuA8kRxpdNguPuUPZ8i932/qkgVOQ== X-Google-Smtp-Source: AGHT+IFLuTTEL04yCULpYt8EVG3MEuP3tIFneXOCV6K0qCW5+TTc6vxsM21BR/5fxrk7lOFKauUFCg== X-Received: by 2002:a17:902:ec88:b0:206:91e7:ba98 with SMTP id d9443c01a7336-208d8408162mr193275135ad.50.1727149999914; Mon, 23 Sep 2024 20:53:19 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:727c:308e:bfa8:9ccb]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20af1869000sm2555335ad.307.2024.09.23.20.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 20:53:19 -0700 (PDT) From: Pin-yen Lin To: Xin Ji , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: linux-kernel@vger.kernel.org, Sam Ravnborg , dri-devel@lists.freedesktop.org, Pin-yen Lin , Douglas Anderson Subject: [PATCH 1/2] drm/bridge: anx7625: Drop EDID cache on bridge power off Date: Tue, 24 Sep 2024 11:51:46 +0800 Message-ID: <20240924035231.1163670-2-treapking@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240924035231.1163670-1-treapking@chromium.org> References: <20240924035231.1163670-1-treapking@chromium.org> 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" The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up. It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on. Drop the cache to force an EDID read after system resume to fix this. Fixes: 8bdfc5dae4e3 ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP") Signed-off-by: Pin-yen Lin Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/analogix/anx7625.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/br= idge/analogix/anx7625.c index 88e4aa5830f3..b4c1f00f1c3d 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2561,6 +2561,7 @@ static int __maybe_unused anx7625_runtime_pm_suspend(= struct device *dev) mutex_lock(&ctx->lock); =20 anx7625_stop_dp_work(ctx); + anx7625_remove_edid(ctx); anx7625_power_standby(ctx); =20 mutex_unlock(&ctx->lock); --=20 2.46.0.792.g87dc391469-goog From nobody Fri Nov 29 05:41:53 2024 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CA333EA83 for ; Tue, 24 Sep 2024 03:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727150005; cv=none; b=U8/HSuRLBLC84JsVZNLeVBTvT9ccsdp6sh7XlXpc9By6606LGWShSq7U7tyST1RcAKRzkMLNM5f33didkBNztzN0UPI73dp1CglpNFZaOlpGFnDLYaDasOcdD4CTMiH3XiozfKZWdfstzlYU4fGlZNT9r4oD0hpaL1pxhMvLvCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727150005; c=relaxed/simple; bh=iSAqQGIZodJwGsbb4FUO/Y4DNHUOBX1zdtXH4DlnWwA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jt7soi2kqco8ps30Rke1Bl4TTcKrG1GMR8HNjHKvGLbOr/dlY01R6gLeu6I6AdHWgFF1Z5/AwYQFX2t+eilhPma/bFwhD3ksqnYL9ZeLSqppkzOiu+pzSN0astik6BbgvkbDv03FZ/0WbKsnnb2EzXuMmrJQpD98zyqzYBcLyFg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=B56kVVHC; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="B56kVVHC" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-206b9455460so38305915ad.0 for ; Mon, 23 Sep 2024 20:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727150003; x=1727754803; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+zn7NLLo5vu43wPcgUUT5FAE6ycLFHPC4WAcceh7PLg=; b=B56kVVHCHGUFnCoOwG+fpz0KAvDdI76yMnM0zR6V5IN4tjoU8XUzi6d/dUKSsSPrk6 eb7bo1gc/EsLKDjBXxu/5KX7/+a/vGFkbgfJKh0uZ5rzA6uwpl/b3xw1hyEr4cukM+yS aUvPlDNlfSVRLHHeGK/5znXFGf9rV8MY50HHc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727150003; x=1727754803; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+zn7NLLo5vu43wPcgUUT5FAE6ycLFHPC4WAcceh7PLg=; b=vTcBmbe2VyKTyXJH9CKh45jU9BrY1nTHU2UYg50DwSVEyyxlPgShxM1V9klf4Dk2pQ RDwn3kRR0S78iFE8uvgld09YiFwl6H8zNxqJ3mC1e2UQkvDdczDFf78ZUsiO8bV18qS0 liJjXtbqGWnQ9ffO/gPiNvsw7AJh//xl3DIZPBb2na3uvuIqvRmRQDtixyFjb5klBX8J 3e3QMBUWED12T2WefZJ1cMeIErqeUoHE7xaz68aOeHqbCfV6FGrBnPataEdfnEEj5Uji JPm8PY5v7WG4C2JnG0xmjwBx1K53eOzkCITb66yw0zlJJklIkOiy9++fnuC2Q9ERbAw4 r35w== X-Gm-Message-State: AOJu0Yz5cL0AoQWF4XIwI/Dx8SSqOALPIPQ9hHlkwKpqUK28i/dMs7+F lUweTj3pHKk/Jddh8t/pHlMHCKv232LdL3+6Jc1bZGt+yfgXH+rlawSSz7OD6w== X-Google-Smtp-Source: AGHT+IFX6kIi8aI27QC+U0PJmuzc8q6Ze0ZE/jdApjgn9l0PmrsjgyTyMjAA5F8RaDDP42xYMp4DKA== X-Received: by 2002:a17:903:1ca:b0:205:753e:e2e6 with SMTP id d9443c01a7336-20aed0c3544mr23884325ad.16.1727150003606; Mon, 23 Sep 2024 20:53:23 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:727c:308e:bfa8:9ccb]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20af1869000sm2555335ad.307.2024.09.23.20.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 20:53:23 -0700 (PDT) From: Pin-yen Lin To: Xin Ji , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: linux-kernel@vger.kernel.org, Sam Ravnborg , dri-devel@lists.freedesktop.org, Pin-yen Lin , Douglas Anderson Subject: [PATCH 2/2] drm/bridge: it6505: Drop EDID cache on bridge power off Date: Tue, 24 Sep 2024 11:51:47 +0800 Message-ID: <20240924035231.1163670-3-treapking@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240924035231.1163670-1-treapking@chromium.org> References: <20240924035231.1163670-1-treapking@chromium.org> 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" The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up. It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on. Drop the cache to force an EDID read after system resume to fix this. Fixes: 11feaef69d0c ("drm/bridge: it6505: Add caching for EDID") Signed-off-by: Pin-yen Lin Reviewed-by: Dmitry Baryshkov Reviewed-by: Douglas Anderson --- drivers/gpu/drm/bridge/ite-it6505.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/i= te-it6505.c index 1e1c06fdf206..bb449efac2f4 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -3101,6 +3101,8 @@ static __maybe_unused int it6505_bridge_suspend(struc= t device *dev) { struct it6505 *it6505 =3D dev_get_drvdata(dev); =20 + it6505_remove_edid(it6505); + return it6505_poweroff(it6505); } =20 --=20 2.46.0.792.g87dc391469-goog