From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2C5C331578E for ; Tue, 7 Jul 2026 12:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783427452; cv=none; b=YCCtoxelCwzwoV4+JA1BE1QmcN6f0aZfv2aYbiO2loInVyH7nPpEFNCK28uvCDWXdS74nt5Y+KvpraDHbzZ1eEH6UD6kvq/vbxw7RdF07wXpLdHhYuhiV1PnVjk/FWZ6ylj8fJJemgH7PDJrINfXAyoxszasKEAdlFW/z6dS6Xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783427452; c=relaxed/simple; bh=EYopdY21n/0u3uMH/IXkcEtUx11bwz/r0zM1dHBmtA0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Swie8oRRRVETchctdLygx0yqFPlHthEC7C/bkMwd7iy9QoOBfboCrWYvBBhXnHKQLdO2H2cSUPn93mYXJEGlTLvyaqPX0t6Qc7aXcnaSa+FwwB5veHOTT9UbTtj3q1M2uK3wHBHvvwXbFUrn3OkpMn5CjNyS8TTktCojsbAEfnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mz07CscP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mz07CscP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BBFD1F000E9; Tue, 7 Jul 2026 12:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783427450; bh=wuj6q/qR8Vtu8XNH10SeX8kJHc/CvibnWDhOQpyb6fo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Mz07CscPi3n2etIOnR9W4lYqeVtJ3THn5tFlD/K24ioHk2HaIdHO7ZvKeB8zX26mZ Gis2d697HvCsp2capKLwsHTBGBavdmOhI4DPQcm5M0T/TvVOmGAclWec9BQTyhGX3M Qjqi20Eafd3aY1URV6BS8dgyX5hFZP8u+IgGOnBlwj7rJiVCwDy8ScWWbYwFcROBuv rXSrLjVtIb3roE/FMM41strF9A3o3Fg/oc9UnuJ+1FLuG2ueTXOpCpGinYl3yLZ7tf Jo3EuCilYnANfnanMdQ0M/IuSPPqLzhIc8sI8sjx3HxQzEPPgHawMRhlfWXFCzl38y 1pniiVRkhak4A== Date: Tue, 7 Jul 2026 14:30:48 +0200 From: Maxime Ripard To: Cristian Ciocaltea Cc: Dmitry Baryshkov , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Andy Yan , Daniel Stone , Dave Stevenson , =?utf-8?B?TWHDrXJh?= Canal , Raspberry Pi Kernel Maintenance , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v8 04/39] drm/connector: Add HDMI 2.0 scrambler infrastructure Message-ID: <20260707-tested-alpaca-of-patience-e38d7c@penduick> References: <20260702-dw-hdmi-qp-scramb-v8-0-d79890d00b6a@collabora.com> <20260702-dw-hdmi-qp-scramb-v8-4-d79890d00b6a@collabora.com> <17753a1c-824a-4835-ac2d-8b2796bba1eb@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="33bj253ieh44czfg" Content-Disposition: inline In-Reply-To: <17753a1c-824a-4835-ac2d-8b2796bba1eb@collabora.com> --33bj253ieh44czfg Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v8 04/39] drm/connector: Add HDMI 2.0 scrambler infrastructure MIME-Version: 1.0 On Fri, Jul 03, 2026 at 11:54:33PM +0300, Cristian Ciocaltea wrote: >> >> - if (caps->supported_hdmi_ver >=3D HDMI_VERSION_2_0) > >> + if (caps->supported_hdmi_ver >=3D HDMI_VERSION_2_0) { > >> + if (!hdmi_funcs->scrambler_enable || > >> + !hdmi_funcs->scrambler_disable) > >> + return -EINVAL; > >> + > >> + connector->hdmi.scrambler_supported =3D true; > >> connector->hdmi.max_tmds_char_rate =3D HDMI_2_0_TMDS_CHAR_RATE_MAX_= HZ; > >> - else if (caps->supported_hdmi_ver >=3D HDMI_VERSION_1_3) > >> + } else if (caps->supported_hdmi_ver >=3D HDMI_VERSION_1_3) { > >> connector->hdmi.max_tmds_char_rate =3D HDMI_1_3_TMDS_CHAR_RATE_MAX_= HZ; > >> - else if (caps->supported_hdmi_ver >=3D HDMI_VERSION_1_0) > >> + } else if (caps->supported_hdmi_ver >=3D HDMI_VERSION_1_0) { > >> connector->hdmi.max_tmds_char_rate =3D HDMI_1_0_TMDS_CHAR_RATE_MAX_= HZ; > >> + } > >> =20 > >> if (caps->max_tmds_char_rate) { > >> if (caps->max_tmds_char_rate > connector->hdmi.max_tmds_char_rate) > >> + > >> + /** @scdc_cb: Callback to be invoked as part of @scdc_work. > >> + * > >> + * Currently used to monitor sink-side scrambling status and retry > >> + * setup if the sink resets it. > >> + * > >> + * This is assigned by the framework when making use of > >> + * drm_connector_hdmi_enable_scrambling() helper. > >=20 > > No such helper.=20 >=20 > Right, I'll drop the reference to the helper name, as that's added later = in the > series. >=20 > > Also, please explain in the commit message, why do we > > need to keep it configurable. Why the default is not enough? >=20 > We will need a separate callback to support HDMI 2.1, i.e. for link train= ing > management. I=E2=80=99ll update the commit message accordingly. I think I'm equally confused as Dmitry here. If scdc_cb is only called if we're sending scrambled pixels but the monitor doesn't acknowledge it initially, then the only thing we need to do is "if the scrambler's enabled, call drm_scdc_set_scrambling()", then we don't need to set a callback. And even if we ever need to deal with HDMI link training, then we can still have the same function but with a couple of branches more. Maxime --33bj253ieh44czfg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCakzxdwAKCRAnX84Zoj2+ dkLVAYDSNsdoe2xL0wTBgSQsEHtvgGUzAd9WwUpIf8wZd2IR1reV3VwM2TxiAj9p 6+5GT88BgIF1H1Gt9lywepKbAfBimGIA6pv7db3n49pZW3Z6eF96hs7hxRsDGWhZ EWGkVsYUsQ== =YXvO -----END PGP SIGNATURE----- --33bj253ieh44czfg--