Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 1074D45107A for ; Tue, 28 Jul 2026 15:34:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785252891; cv=none; b=eI2RqyUruV5xvZ830OI/6nYwOn1r5vF2+eNreu4tOe8++BXF4DlpBmkDQ5jNf3yYxYfo937mmUxFOZ6zMN3VDrjuTWMpOgxKvCTna7OqNe4x0KdJYePIRqKGLUAHFeB21ruPz3++r2kCVS11fC3alJOpzS/rb9vC0BKK4LB+x34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785252891; c=relaxed/simple; bh=ZGfjY2n1jNqLer/cCO5wHmZNxyh8vj3Nk/lhvaCdQQE=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=TYSYIxP2v5QVpdMu/FA5s2cZC0TDEI/nT3C0ZtOs+amFeZcL/FDECHpeUqQcRBHBg677CGylFIwi8Zf7J9aMW96h5ZrwXZvtBz518GzIWzW9Ntxxx8osq8L5j5Wbr4UG4UWoTkTwF4Setp7+JB81u2pPP+/finmk7dI8RWsO0ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Ag2kGLV0; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ag2kGLV0" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-490cf322ed0so29012895e9.1 for ; Tue, 28 Jul 2026 08:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1785252888; x=1785857688; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Y5Zf7wRSskDiF2pA206nVhKZfl95/heLe/kfq7vnsjU=; b=Ag2kGLV0e/ssqm+RpR7caG+vPGZLbacOiLXWP84A0xDiPUYNx5ML0oGaEIIFnTu8Vm 5mwaGwjHgWzZO9LXwR5VHHg2+NDYZrsL9G5gfjUNCK8BUAYy1D8YRzdRXT5a3v/iVi0s p0opjNF59UizWCF8P/qj53Fw4sKeZBni05noaWtGx8DR32fWfP/dhz91hNN7QIjmHBst tdgz8KgVXtvNjMzwbLT1ZX8APO8DwDuk7MFUrMaDD42sMJpjgvOPotZPYT3N+1w+so0/ T+S7RFtEUSs/SQx61vGSk2Lsu+EgofMQwPgrbrrYzL81pxVDq8o+W0MM2dZ5sGSHGrU+ rOOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785252888; x=1785857688; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=Y5Zf7wRSskDiF2pA206nVhKZfl95/heLe/kfq7vnsjU=; b=gP/fPv3HMnkQfaCO+w/eDFKfBEFAngPmoByQvHHWY/1rz+b5uLLLds6giasOT987ed eBgBtZI6i71BOkPM3L1NERsLy6bscgRd74NHpcCicmanTXTXfPIGm55LhW2mW5v4uyt0 TycyzTzn8Bt52+LeNbXn3cH+Rez65d0vtkTTaY+MIOX7f36psb1mKUlJxhvdAE0LrJbd BHxTY+88P64d8CqMdtiURvIWkpaq1lQZ5418iHFaw3R/TLmVrtYV9xobOgXJnLtepTa2 Y0bPYYJGtN3lDh6vBpHvjxCJGRtbYMrFfBlOHetVWtgJXYXaSFv3FhROThcmzixKW9g6 3kqQ== X-Forwarded-Encrypted: i=1; AHgh+Ro81HIKHdkufAwjjl7fmPjDcViEKLiltMfS1mxcvzX8/4XddD5DFQJ81Y9j+tjZ41YRXLOFH4VUnZTx2o4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz09gY2C0Bq70zRxtuR0SH8O03TRhwZDj3ZDH0tE8MJb7bJJbXy XhzSKyfVYtmSWytVLcpySGQhn43SvZcJB1Pmxt7CHXRFKLJtqpR3lP8ZS5pIRGledvs= X-Gm-Gg: AR+sD116F3j7x+vDvoKGqdd7EEhdtM/OHGeUbecU//v0/FukI18ZpRP4v+jgROIYDm/ Gn+OTmC1Uk15eJRlrYmaUZtKE/MM56ncQaayc065JI/SNrnq/PP9/uVDTfUemTM8Uudv9nfh1YN nSjEaI0DUHGwt/NlQpkieQN+6ZSj4ivIWChiEJR5W++kJFnfcT0U4+cMjQEmXEs+WilpfNjPXyT 3SrFahw8XhZmUGNEziTHqctSkV1+l7XSTKyz4C5IAhPVHEfQ7ILT/k3D9oWDv5ZfJrYBnJQRiDd tAaOGnN86v4jUoN44AlbJuzKTt4eqVLJxBnFGu9Ndvh6p2Wj6gXMTO51GQLm6dewI1BjuwmD15J r3AJfqItLVUpAeu5i+GgYp17cYBN1OjJ0+pC3LfKbtE9/KyNkqSyoxZU4HehgcnW1t8uzZ+PFd7 bG4nnVBmXh/NU8dYMCAI2yUhoZRqYQWrcRtMLWKktfxkSRuBzFIH0jYU0pzg== X-Received: by 2002:a05:600c:c4b8:b0:495:5858:8101 with SMTP id 5b1f17b1804b1-496c642fe09mr37096115e9.15.1785252888034; Tue, 28 Jul 2026 08:34:48 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:6843:9af3:9745:9034? ([2a01:e0a:106d:1080:6843:9af3:9745:9034]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-496c45ba4b0sm88914705e9.6.2026.07.28.08.34.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jul 2026 08:34:47 -0700 (PDT) Message-ID: <97ebc5b4-0a54-42f5-a3c9-560852f19330@linaro.org> Date: Tue, 28 Jul 2026 17:34:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH] drm/panel: chipwealth-ch13726a: Fix washed out colors on 120hz mode To: Aaron Kling Cc: Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20260727-ch13726a-washout-v1-1-bf869ddfc5cf@gmail.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUV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tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/28/26 03:38, Aaron Kling wrote: > On Mon, Jul 27, 2026 at 7:44 PM Aaron Kling via B4 Relay > wrote: >> >> From: Aaron Kling >> >> The issue was determined to be two-fold: >> >> 1. The non-continuous clock dropping into LPM during blanks causes >> voltage drift at 120hz enough to affect the gamma curve. >> >> 2. The agressive horizontal blanking width did not allow enough settle >> time, further compounding the voltage drift. >> >> In addition to switching to continuous clock, burst mode is also enabled >> to further stabilize the blank intervals. >> >> Assisted-by: Gemini:2.5-Pro >> Signed-off-by: Aaron Kling >> --- >> For the initial submission, the washed out colors were expected to need >> to be fixed by a color profile. However, further investigation showed >> there was a problem with the timings. >> --- >> drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c | 10 +++++----- >> 1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c b/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c >> index 562dc573528dd..92f0c4f1587cb 100644 >> --- a/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c >> +++ b/drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c >> @@ -128,11 +128,11 @@ static int ch13726a_unprepare(struct drm_panel *panel) >> static const struct drm_display_mode thor_bottom_modes[] = { >> { >> /* 120Hz */ >> - .clock = (1080 + 28 + 4 + 36) * (1240 + 16 + 4 + 8) * 120 / 1000, >> + .clock = (1080 + 60 + 8 + 60) * (1240 + 16 + 4 + 8) * 120 / 1000, >> .hdisplay = 1080, >> - .hsync_start = 1080 + 28, >> - .hsync_end = 1080 + 28 + 4, >> - .htotal = 1080 + 28 + 4 + 36, >> + .hsync_start = 1080 + 60, >> + .hsync_end = 1080 + 28 + 8, >> + .htotal = 1080 + 28 + 4 + 60, >> .vdisplay = 1240, >> .vsync_start = 1240 + 16, >> .vsync_end = 1240 + 16 + 4, >> @@ -281,7 +281,7 @@ static int ch13726a_probe(struct mipi_dsi_device *dsi) >> dsi->lanes = 4; >> dsi->format = MIPI_DSI_FMT_RGB888; >> dsi->mode_flags = MIPI_DSI_MODE_VIDEO | >> - MIPI_DSI_CLOCK_NON_CONTINUOUS; >> + MIPI_DSI_MODE_VIDEO_BURST; >> >> ctx->panel.prepare_prev_first = true; >> >> >> --- >> base-commit: 0d33d21e47d9dc66f91e44da3fc9220c74d93df7 >> change-id: 20260727-ch13726a-washout-54ef8fa65be6 >> >> Best regards, >> -- >> Aaron Kling >> >> > The sashiko report that the timings in this change are inconsistent is > correct. Which caused the 120hz mode to be discarded entirely, so the > 60hz mode was being used which has correct colors. Fixing the timings > to be consistent restores the 120hz mode, but still with incorrect > colors. So this patch should be abandoned while further investigations > continue. Sorry for the churn. OK, please add a Fixes tag when you find a proper fix. Thanks, Neil > > Aaron