From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 15D77200100; Wed, 5 Mar 2025 09:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741165485; cv=pass; b=lo3wkWET7nN2aiUFmcbLzB14JwnsIXKeT1Unb30fkXugk9ZRtnuQd50WkCPPX0DD1VMjt8vGFZ62e+8qLvLdxuec8IqZAr74lAEQR2hiTvcmpnWDnMMnAMJVFhy/yhE64xfE3Ycr3T2eNZYKjhSvu9zdgd9M9hWGvpXdsN27ztc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741165485; c=relaxed/simple; bh=S991R8nHQ4KUci924RH3qwTCx89uQStWo80Kg/17WnU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JLLTT8w+286Q0MV6EBE12mum1Suyo3bOFpYwdUuiWLxEEFwg8sTUUt27ZMk9F/ofxz8tH+3h/T+zmbt7NgnhJ7zWAblE7cvpkutb2xayCe6Op+d1dZx0ypzmWDuoc9L0Tx2cdXViWD528aqXY3NKHkNEqX56mWSJrID+iEeBCqU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=dmitry.osipenko@collabora.com header.b=bLjhNTZX; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=dmitry.osipenko@collabora.com header.b="bLjhNTZX" ARC-Seal: i=1; a=rsa-sha256; t=1741165421; cv=none; d=zohomail.com; s=zohoarc; b=aML6y84URqQeEpfaGBbocAOoCx9shK7lRLeSoL7zs5SX1eAi6LRKAG6UI4Di7Arvi4hBDCRvQNQY2QzEonJ9e8ueAyxRozm/BByW/Mwp7JxLk7NWxqlqzlZG6Hgs4UyJd8bKOeErF7BkfGaex0X2Cwg2a4hG/P8wZWpMAKQgYmE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741165421; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=fyOnL4r76M4sHB9HhMIqMpDlTkHpMyvnwL+qPFwOmHY=; b=oDbow1UE+BO/cf067TxihaoptsAymW8fmn0K/GWMOsQcewdMgSnRY8WL/r6MzQK2jEORnLKABs/+d2dpVsB6sKOrGVcbb5GoMfvadhoVxOjP0rkp9WEmQrfSAX3BkhCQzklrHMQPJU29lgzhUSNRt+RgiQBUFIcawqpO/s56AuM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=dmitry.osipenko@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1741165421; s=zohomail; d=collabora.com; i=dmitry.osipenko@collabora.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=fyOnL4r76M4sHB9HhMIqMpDlTkHpMyvnwL+qPFwOmHY=; b=bLjhNTZXN88/2j7YByNhNOVK6VW1ivb+lAa2CKiF/l1zS2F9ScBlygN+utrENZI5 GepaEGfOUzYlfgTyLOgoyKqD6unUF8OQcNEs2XeSQHrv7W7b60GFHPcvLYVPwmyPI6l j11vOC6LEwLoY3gl5lo7lnSQrYsVA+P44FEhQPgI= Received: by mx.zohomail.com with SMTPS id 1741165419515412.81218800288195; Wed, 5 Mar 2025 01:03:39 -0800 (PST) Message-ID: <88054acf-3051-414c-aef7-4c0f085d5182@collabora.com> Date: Wed, 5 Mar 2025 12:03:33 +0300 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 v13 0/6] Add Synopsys DesignWare HDMI RX Controller To: Hans Verkuil , Tim Surber , Shreeya Patel , Heiko Stuebner , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , jose.abreu@synopsys.com, nelson.costa@synopsys.com, shawn.wen@rock-chips.com, nicolas.dufresne@collabora.com, Sebastian Reichel Cc: kernel@collabora.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Christophe JAILLET , Diederik de Haas References: <20250304085819.108067-1-dmitry.osipenko@collabora.com> <78ff36f6-01a7-4df4-b653-c4509fb93af4@timsurber.de> <1039aca7-89b9-44ef-9775-e7852e956362@timsurber.de> <9b4b1e65-127d-422b-a359-a1d8e25652f9@xs4all.nl> From: Dmitry Osipenko Content-Language: en-US In-Reply-To: <9b4b1e65-127d-422b-a359-a1d8e25652f9@xs4all.nl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ZohoMailClient: External On 3/5/25 11:10, Hans Verkuil wrote: > On 05/03/2025 01:59, Tim Surber wrote: >> Hi Dmitry, >> >> I did some more testing. That the Apple TV did not work was a bit >> misleading. >> >> It was just, that the Apple TV defaulted to 4:4:4 Chroma which does not >> work at all for me. (The same happens using the vendor driver). >> >> When I changed the EDID to match the vendor driver the HDMI handshake >> happened with 4:2:0 chroma, where I could verify even 4k60fps using your >> driver, nice! >> >> So the remaining problems I see are: >> - 4:4:4 chroma not working in any resolution >> - 4:2:2 and RGB not working in 4k60fps (is this a hardware limitation?) >> >> A possible workaround could be to disable these non supported formats in >> the default EDID. > I would like to merge this driver this week, since otherwise it will likely > slip to v6.16. So if there is a working EDID, perhaps it can be used for now, > and later on it can be patched if there is a better EDID. > > Would this EDID work? Tim, can you try this? > > v4l2-ctl --set-edid type=hdmi-4k-600mhz,ycbcr444,ycbcr422 > > Alternatively, if there is indeed a HW limitation that prevents 4kp60 to work, > try this: > > v4l2-ctl --set-edid type=hdmi-4k-300mhz,ycbcr444,ycbcr422 > > Whichever of the two works is what we can use as default EDID. Disabling 444 and 422 is an option. Though, they work on my setup at 4k@60p. In general, it often a challenge to get 4k@60p properly with any of these small board devices. 4k@60p works only using a short HDMI cable for me. Also, not everyone aware that the micro HDMI adapter needs to be compliant with HDMI 2.0 for 4k@60, that's why 300MHz is the default. Will be nice to have the good EDID enabled by default in the defconfig. Dealing with problems like that will be a headache for majority of people, IMO. -- Best regards, Dmitry