From nobody Sat Feb 7 20:44:00 2026 Received: from ironport.ite.com.tw (60-251-196-230.hinet-ip.hinet.net [60.251.196.230]) (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 116F55026D for ; Tue, 6 Feb 2024 03:25:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.251.196.230 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707189950; cv=none; b=fhaOTeQ2dLEZorKN9JWgD4bjb19sJ2xXUn+lFsZArqqR9tgOolXey4vYwi4JDv9jCGs+QNbYIs/QfBIDqbXARbizNEpApj5t7S2S9sfgeC73nQneTRfWbakagsEtNE8R7pOsA7Z1oQChDcXHp7gNpI/IRns7Ni9PFLfHFlpjClM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707189950; c=relaxed/simple; bh=yRocNbYAv0o1LDOLTf19hzFWuhthm9QITxsxnExRzNU=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=L11d9J9bMGBIT4Xx9OgM7oMp6yuJCBQH9VDUkjkw5wLIZRVSteCVtx5orS20MvCzTPwh4sP30fQb13N7ZRbINmvj0hMW05Crvo9bRkQwoYk4F3rsaBgXW9LYnKyGU0Ry7JX9fYUy8glKPOu+uW79Vnx3tFmvaHPUrO70IsJ+UQo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ite.com.tw; spf=pass smtp.mailfrom=ite.com.tw; dkim=pass (2048-bit key) header.d=ite.com.tw header.i=@ite.com.tw header.b=QqhHu8qc; arc=none smtp.client-ip=60.251.196.230 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ite.com.tw Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ite.com.tw Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ite.com.tw header.i=@ite.com.tw header.b="QqhHu8qc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ite.com.tw; s=dkim; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=yRocNbYAv0o1LDOLTf19hzFWuhthm9QITxsxnExRzNU=; b=QqhHu8qc8LMv/+IQarQYRLXXTJ0n8k8S6Rhwx3Qdkoa/zOrvvWfx1MQ4 vJgrkJieqZfXAxZsjVG3KZTAKYnGNpWgelti9ptV4Otvyem6Fv3sIHumu lmVH9KfYBUeTeHVI5V9MjuAS0az1gOszlgT/o9WTDZH4gDrvaSUv7miyG tHz5YkMvS9plYcWSWUEHT1SofVNFzxaPYV9LQEJzW/tzNhox8vyf6qB+K 2fWFwmGpZH4+jrS2s2n5VJMlj/+2OrdSGCJuMMJPvT+JRiBz0xTgwQYhf c2dUo8VKRbvldE78F6lJBWzcZmObjeJlJf02s4yBdA2YHsj23RYdR7B6z Q==; Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 06 Feb 2024 11:25:46 +0800 Received: from CSBMAIL1.internal.ite.com.tw (CSBMAIL2.internal.ite.com.tw [192.168.65.41]) by mse.ite.com.tw with ESMTP id 4163Pgc8050603; Tue, 6 Feb 2024 11:25:42 +0800 (GMT-8) (envelope-from kuro.chung@ite.com.tw) Received: from CSBMAIL1.internal.ite.com.tw (192.168.65.58) by CSBMAIL2.internal.ite.com.tw (192.168.65.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 6 Feb 2024 11:25:41 +0800 Received: from CSBMAIL1.internal.ite.com.tw ([fe80::c9da:6689:2b22:a2d6]) by CSBMAIL1.internal.ite.com.tw ([fe80::c9da:6689:2b22:a2d6%3]) with mapi id 15.01.2507.035; Tue, 6 Feb 2024 11:25:41 +0800 From: To: CC: , , , , , , , , , , , Subject: RE: [PATCH] UPSTREAM: drm/bridge: it6505: fix hibernate to resume no display issue Thread-Topic: [PATCH] UPSTREAM: drm/bridge: it6505: fix hibernate to resume no display issue Thread-Index: AQHaWKmgnb6ilPbqZU+EAROdJJqexrD8pI6g Date: Tue, 6 Feb 2024 03:25:41 +0000 Message-ID: <268c752f453d4cbdbc5c05ee251af252@ite.com.tw> References: <20240206031857.113981-1-kuro.chung@ite.com.tw> In-Reply-To: <20240206031857.113981-1-kuro.chung@ite.com.tw> Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tm-snts-smtp: 4A621066F75D306F1CE949A6B21D910DF838BFF0DC51E6F19C34138F76B57E362002:8 Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MAIL: mse.ite.com.tw 4163Pgc8050603 Content-Type: text/plain; charset="utf-8" Hi Pin-yen,=20 I want to upload the patch to let the patch could be review on website, h= ttps://chromium-review.googlesource.com/dashboard/self But the message ' No Contributor Agreement on file for user Allen Chen ' = seems no longer have Permissions for this file, right? It have an issue need to update the ite-it6505.c, Could you give me some= advising? Thank you very much. BR Kuro Chung ite@ite-XPS-13-9360:~/project/it6505/google/source/cros/src/third_party/ker= nel/v5.15$ git push cros HEAD:refs/for/chromeos-5.15 remote: PERMISSION_DENIED: The caller does not have permission remote: [type.googleapis.com/google.rpc.LocalizedMessage] remote: locale: "en-US" remote: message: "No Contributor Agreement on file for user Allen Chen (id=3D1321515)" remote: remote: [type.googleapis.com/google.rpc.RequestInfo] remote: request_id: "3c171f2fe78e458ebbb2990bab93cfb3" remote: remote: [type.googleapis.com/google.rpc.RequestInfo] remote: request_id: "c5662672e00f42e1b6562149270c7864" fatal: unable to access 'https://chromium.googlesource.com/chromiumos/third= _party/kernel/': The requested URL returned error: 403 BR Kuro Chung -----Original Message----- From: Kuro Chung (=E9=90=98=E4=BB=95=E5=BB=B7) =20 Sent: Tuesday, February 6, 2024 11:19 AM Cc: Allen Chen ; Pin-yen Lin ; Kuro Chung (=E9=90=98=E4=BB=95=E5=BB=B7) ; Kennet= h Hung (=E6=B4=AA=E5=AE=B6=E5=80=AB) ; Andrzej Haj= da ; Neil Armstrong ; Robert = Foss ; Laurent Pinchart ; Jonas Karlman ; Jernej Skrabec ; David Airlie ; Daniel Vetter ; open list:DRM DRIVERS ; open list Subject: [PATCH] UPSTREAM: drm/bridge: it6505: fix hibernate to resume no d= isplay issue From: allen chen Change-Id: Iaa3cd9da92a625496f579d87d0ab74ca9c4937c4 --- drivers/gpu/drm/bridge/ite-it6505.c | 42 ++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/i= te-it6505.c index b53da9bb65a1..07883001e6ca 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -1318,6 +1318,8 @@ static void it6505_video_reset(struct it6505 *it6505) it6505_set_bits(it6505, REG_DATA_MUTE_CTRL, EN_VID_MUTE, EN_VID_MUTE); it6505_set_bits(it6505, REG_INFOFRAME_CTRL, EN_VID_CTRL_PKT, 0x00); it6505_set_bits(it6505, REG_RESET_CTRL, VIDEO_RESET, VIDEO_RESET); + it6505_set_bits(it6505, REG_VID_BUS_CTRL1, TX_FIFO_RESET, 0x02); + it6505_set_bits(it6505, REG_VID_BUS_CTRL1, TX_FIFO_RESET, 0x00); it6505_set_bits(it6505, REG_501_FIFO_CTRL, RST_501_FIFO, RST_501_FIFO); it6505_set_bits(it6505, REG_501_FIFO_CTRL, RST_501_FIFO, 0x00); it6505_set_bits(it6505, REG_RESET_CTRL, VIDEO_RESET, 0x00); @@ -2480,10 += 2482,6 @@ static void it6505_irq_video_fifo_error(struct it6505 *it6505) struct device *dev =3D &it6505->client->dev; =20 DRM_DEV_DEBUG_DRIVER(dev, "video fifo overflow interrupt"); - it6505->auto_train_retry =3D AUTO_TRAIN_RETRY; - flush_work(&it6505->link_works); - it6505_stop_hdcp(it6505); - it6505_video_reset(it6505); } =20 static void it6505_irq_io_latch_fifo_overflow(struct it6505 *it6505) @@ -2= 491,10 +2489,6 @@ static void it6505_irq_io_latch_fifo_overflow(struct it65= 05 *it6505) struct device *dev =3D &it6505->client->dev; =20 DRM_DEV_DEBUG_DRIVER(dev, "IO latch fifo overflow interrupt"); - it6505->auto_train_retry =3D AUTO_TRAIN_RETRY; - flush_work(&it6505->link_works); - it6505_stop_hdcp(it6505); - it6505_video_reset(it6505); } =20 static bool it6505_test_bit(unsigned int bit, const unsigned int *addr) @@= -2522,7 +2516,7 @@ static irqreturn_t it6505_int_threaded_handler(int unus= ed, void *data) { BIT_INT_VID_FIFO_ERROR, it6505_irq_video_fifo_error }, { BIT_INT_IO_FIFO_OVERFLOW, it6505_irq_io_latch_fifo_overflow }, }; - int int_status[3], i; + int int_status[3], i, reg_0d; =20 if (it6505->enable_drv_hold || !it6505->powered) return IRQ_HANDLED; @@ -2550,6 +2544,36 @@ static irqreturn_t it6505_int_threaded_handler(int u= nused, void *data) if (it6505_test_bit(irq_vec[i].bit, (unsigned int *)int_status)) irq_vec[i].handler(it6505); } + + if ((it6505_test_bit(irq_vec[9].bit, (unsigned int *)int_status)) || + (it6505_test_bit(irq_vec[10].bit, (unsigned int *)int_status))) { + it6505->auto_train_retry =3D AUTO_TRAIN_RETRY; + flush_work(&it6505->link_works); + it6505_stop_hdcp(it6505); + it6505_video_reset(it6505); + + DRM_DEV_DEBUG_DRIVER(dev, "Video Error reset wait video..."); + + for (i =3D 0; i < 10; i++) { + usleep_range(10000, 11000); + int_status[2] =3D it6505_read(it6505, INT_STATUS_03); + reg_0d =3D it6505_read(it6505, REG_SYSTEM_STS); + it6505_write(it6505, INT_STATUS_03, int_status[2]); + + DRM_DEV_DEBUG_DRIVER(dev, "reg08 =3D 0x%02x", int_status[2]); + DRM_DEV_DEBUG_DRIVER(dev, "reg0D =3D 0x%02x", reg_0d); + if ((reg_0d & VIDEO_STB) && (reg_0d >=3D 0)) + break; + + if ((it6505_test_bit(irq_vec[9].bit, (unsigned int *)int_status)) || (= it6505_test_bit(irq_vec[10].bit, (unsigned int *)int_status))) { + it6505_video_reset(it6505); + DRM_DEV_DEBUG_DRIVER(dev, "Video Error reset wait video (%d)", i); + } + + } + + } + } =20 pm_runtime_put_sync(dev); -- 2.25.1