Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp297401rdb; Fri, 5 Jan 2024 10:05:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuKLKL24652E2oHl5Loy46Mv8UdEUkQLaa+n9XL1RkfnhNaDofd5KzUmVvBmFEzTFCuf1z X-Received: by 2002:a05:6a20:4a30:b0:199:1316:df23 with SMTP id fr48-20020a056a204a3000b001991316df23mr1771558pzb.125.1704477950816; Fri, 05 Jan 2024 10:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704477950; cv=none; d=google.com; s=arc-20160816; b=IVbo/UEuiYD9KlBGW69ptBZK3ptwfESa99kFpZIcNyn02bZ5xhPvtoYnHw0LzQB5PM gUk1t52vltGFdynjldyR0M8rxAZa+ALKzvyVOIIsPhH8iO1cgztjpnngdk0VLqCuuXO1 qHYM8t4GRYoeyRIoY7i+GiBD2RFLodprFlfim+9PVJvOEKNbOakHNSofwCgiBdqR0u0C paa6rQbM9pOQnUv+eMqrHKY7gAgqOxEKSUlDIWaLscRfuxDxmwPPQDy7bpTPHPlqO37b JrxQ8TzEE6xGF21U22D316Cm9zE7HsVMasfJ0CHNFrTVa0XTHj7qVpy7oOT0S3bP5EXY HXQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=IeUT+10CQtd9Q884TvCOLV9mksjxaus3rUEQYNX7P+c=; fh=wq1gF5J8J8b6S08HC8b3EnZaQgg7sXR/xLabI2P5aTg=; b=iMAB0U4yjqGVaeZjSN1KrX/NH4hQX3eS474wxTCdTDlr3qbbhLdRfHaEm5EaXWbQB8 QP1J2KzxI3K+zmS4REFI0otWU3HhQHzcAkbXVp0UTxIwVlF3kM8p9PZXzs6/AlRzJn8I OlMatAJC/ru69SAqCVnu1Gi/UtzQwGxi+3e+UPEiskP58rlo8qEE+zKkhbWuatZpG1tk 4rUamkySnT1saztgAkb3RtMyHCuYYGPL22NbBKihk2PUSh4kRI2Ii4l4cuPVEgIe3RYQ vW9QxjtqoUs9RFo8amhwXVC7BZNLzTdktpteg5DPiskOzG4Dc+qgIbVELzZ1CYAHb6eM j0sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=efk24aoZ; spf=pass (google.com: domain of linux-kernel+bounces-18171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gx25-20020a056a001e1900b006d9e61679b9si1642807pfb.61.2024.01.05.10.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 10:05:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=efk24aoZ; spf=pass (google.com: domain of linux-kernel+bounces-18171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 773F1285BAF for ; Fri, 5 Jan 2024 18:05:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D80183529C; Fri, 5 Jan 2024 18:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="efk24aoZ" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 805EF35297 for ; Fri, 5 Jan 2024 18:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704477926; bh=uQJ5CDnGDNx+rgzY5LMY9h2PrEsHwPQjkQ2ffCXgmAc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=efk24aoZuX0xCPcK4cwYnRXhQ1ueNI5U8yQ4RGmThNO0rD5BlZQ9K5lUfb1+Q4gTo 9qF8rBOS9YPpTNiVdtJtpdbEcxhYXJ1kHTE2v0x7kY2rsKBwzbXijXbEanL53r7Lht 321uAGOuy3nraMQJDbBKzJK22PlSevGagsQovfTtmvO+u/swQtAEBnqe7CvfPixOS0 olAZ7EmESXAgpxMndisW6o5EhjlIFjMkMJY9hgB8CcYP/9Ba0xdhJPHvGit/Gi1Z4m +3i9nVERV9tnGfNhKGtkDeY30FYMBeNd6PEQVVTNR16DruSFL2SdJV7Zxun5qBNRLt tAY1G7igJ/1uw== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 81874378003D; Fri, 5 Jan 2024 18:05:25 +0000 (UTC) Message-ID: <056847ff-46f5-44d5-a038-36042a5d2174@collabora.com> Date: Fri, 5 Jan 2024 20:05:24 +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 Subject: Re: [PATCH] drm/rockchip: vop2: Drop unused if_dclk_rate variable Content-Language: en-US To: Andy Yan , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Sandy Huang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20240104143951.85219-1-cristian.ciocaltea@collabora.com> <20240104143951.85219-2-cristian.ciocaltea@collabora.com> <5867171.29KlJPOoH8@diego> <6812a957-dafd-4687-8094-074d8d2b5471@rock-chips.com> From: Cristian Ciocaltea In-Reply-To: <6812a957-dafd-4687-8094-074d8d2b5471@rock-chips.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Andy, On 1/5/24 11:13, Andy Yan wrote: > Hi Cristian: > > On 1/5/24 03:12, Cristian Ciocaltea wrote: >> Hi Heiko, >> >> On 1/4/24 17:58, Heiko Stübner wrote: >>> Hi Christian, Andy, >>> >>> Am Donnerstag, 4. Januar 2024, 15:39:50 CET schrieb Cristian Ciocaltea: >>>> Commit 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588") >>>> introduced a variable which ended up being unused.  Remove it. >>>> >>>> rockchip_drm_vop2.c:1688:23: warning: variable ‘if_dclk_rate’ set >>>> but not used [-Wunused-but-set-variable] >>>> >>>> Signed-off-by: Cristian Ciocaltea [...] >> The current implementation is not able to handle all display modes >> supported by connected displays, e.g. in my testing environment I >> encountered issues with 2560x1440-75.00Hz, 2048x1152-60.00Hz, >> 1024x768-60.00Hz.  Additionally, it doesn't seem to cope well with >> non-integer refresh rates like 59.94, 29.97, 23.98, etc. > > I think this is because the thee PLL from cru can't divide accurate > clock for these > non-integer refresh rates. >> >> My temporary workaround relies on using the HDMI PHY PLL in conjunction >> with a downstream-based hack to compute the clock rates.  I'm not sure >> that would be an upstreamable solution, so I would let Andy shed some >> light on the topic. > > Yes, use PLL from HDMI PHY can give more flexible clock rates to support > more display mode. > We also use it in our bsp kernel, but one thing should  keep in mind > that  use HDMI PHY pll > as dclk source can only work for HDMI 2.0 or bellow, if can't be used in > hdmi 2.1 mode(such as 4K120), > so we need to switch the clock source by hdmi work mode. > > The difficult thing is how to make this accepted by upstream. Thanks for the heads-up! I will try to have a look as soon as I finalize the work on HDMI phy & bridge drivers (unfortunately I had to put it temporarily on hold to focus on different tasks, but I expect to resume soon). Regards, Cristian