From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 80ED22E6CAB for ; Fri, 19 Dec 2025 09:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766138209; cv=none; b=I0EQkYz8cgtA2sWb8jpZutzS4YxO7AzAfaZXLx1847Eka9ss2mWDCqr6gLzglJpluhAYYIceG2KAZ6373zCW2HvIuiIPYRLp3vPALQf5VyCVqKY7kxyA561qP1NKa7GojS7UXUWuE/NS3U2j3/IWcUVh2CQU8sFmjT/dobDHix0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766138209; c=relaxed/simple; bh=Ch5vWbJXT0wvLq1bmYQqIQOK+E4BgmbMDjNOWeVfoyI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lAfnDwnMkbI7MzpDJu3+rHs8TWVOv/VqjOXlXQjP/zgRqaUGFFtfydrKgjEcjUOYDu8PfiIm8ahdxOMK4mNerh6Q3aKLOm/xoVo69p6LmJyf87HSuPx7R6AnGpWGL87IMe6nvBs7S2KmwNmQxs6zt/cEWHTgN1/IBbgUYQwRAOc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=mBvM2Wno; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=hhFA+U0S; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="mBvM2Wno"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="hhFA+U0S" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BJ4d6fr3320433 for ; Fri, 19 Dec 2025 09:56:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= k2n+SE5qOjIgQy6DMMGVLWGLkjFAmY3VbtNAYsRbVQs=; b=mBvM2WnoXkzYN/kC SJGG65cEd1jX1y37nhMNwPXoYap3kWJQ87NpviuiG/9EpW6RY1R2+65CQo0TacQK sg5g261EgUkzpSZNRyIQ5Tbq94grrpgA54RJf6dw7RiPrt9VvtizQFAgaUOcEl8M GWgnCmPqSj0yr1tNRU87wP08XWkpyiLLJXDEohVRQEIe6jqZ3UEAy9xpKoaXIU/+ ForMEEIzdxlOZtKRPSjpS3PmCX2Ly5oARuhQGWCswtUnUjrxx7VjBJaXw4Eu3pbN YXSBkcSKxsz957JQmEVhedqMLHHF9ABw3MrRhNod1hp64Yv1Ut2wd6spRjrh8MHF YF2vfA== Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4b4r2et604-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 19 Dec 2025 09:56:46 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-88a31ce8214so35790646d6.2 for ; Fri, 19 Dec 2025 01:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1766138206; x=1766743006; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=k2n+SE5qOjIgQy6DMMGVLWGLkjFAmY3VbtNAYsRbVQs=; b=hhFA+U0SuI3ftnuB+j8ILI/PvwYmtp2OHIlkt9VtAPwa6p9filc5JX9wOhEnaoZT/T 2CMzxMLKa5snSMjoD/3yrO9x3k+IICfvPxRO6XzKtPAty+VzyLzm3u0jhtSxV06svzzC SAF2EudFCzIyiJqsbGlzSj/3QCIuqd/CIfYgyW0Dn5Dl7iK2ukYK/4ZhlLpiiYNa26N+ hc2KX9Y6QBRLiUYlPhzx+Wp92gHEfJS59rNRtPYYtwJMvMgQWl5Ll+aKbTBd8EN7xyjO nT3MkgP+c5AhFEcJ3x+iNT6EHAJuQYL+/p2WHs4rLAG0OfsU0CETRiZfA7YSEYYkjqc4 bxqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766138206; x=1766743006; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k2n+SE5qOjIgQy6DMMGVLWGLkjFAmY3VbtNAYsRbVQs=; b=lVzv5nOWmwTmkidwVw8zjlNnN0GufvxfeI6R//oFg4rOW082l6rsiZ/GL4xW13N1WD D9gWTPljt1caZp3V5p1jhB2NVGLsIEC99mgS8WnxwiAphtYuRXmjjcYuwCOdiPFeUW1c wPWqXxDym9FDFmZaW1oOO3fBieTdVgPYQvnU9iFLwp66gtd9O1yfieP82pt6uccq4xeo UgePgZ0awNmYSMkJFfNkwQ0ZYHw5v4RdXa4/aRFhHepRO7SFvs6OcFWa8Nfnq3lqAnJp E0HpBkZOgUTiHimlx8DAClDB6OkHWycDvHHb6O1XnVZckk7epWZtgNHXRX+ZMqWPgNb1 dtvg== X-Forwarded-Encrypted: i=1; AJvYcCXof/2aT0iFsVSMg+KjaxVVqOgMc0przL+kDDFHiNOHZaLqa7Y4vzPWMqjuG9PogjWI1mVSf3+mcijex+4=@vger.kernel.org X-Gm-Message-State: AOJu0YyqRuRW5APn5GkZaN5bh6PC1UlBAt1R0UjXMz5QGfw7Ic4WEMr0 S7S6NTAFN/jgTc+m7yw4kP0D7S+/0x9dcO0dvVeNr9DsCXoMSuUYbPQHyNp4Bkw+ltfsgWjfp4t SRa7/ZEEVszraJFq8VkWxh8LJnC44GVJ0fbk/idWpV88zXZPCZBOa+RNS1TGLiyNHJqI= X-Gm-Gg: AY/fxX5QRSAnol+u/YRaCa2Dtfa8Fjfk8B70NsGq5fLvoYKLbK0KDoGk6SS2Asc2sYf USxLcN7I5a/lla5wAmc388Emyd9gjxIZV9XEjVhRns37Pdu4jBB5w65NU04rv7V8cPedB5S/QGY lGaMsdakIt+O8fHtLC+Bjc+KwOy/woEbxr/MdHjGOjD1kV/wyvxnCLcROWVY+7wSXY15BQkm2nI HwbnfV7Hh/a4iBw1YkUpvaoxAwdg//mVL9JIsoY8vOoRFVxieC+JrfOdfArBE32TJpTh+nLyCgd gl09325IhYb8kh2TvSCp7lZqtmX5JUHMm2ttleCQIevDDYWJkxn2PIPFOxeXWdxb/lEJndd3ef/ 8OQyrq8HvkNvMJJpV1yRIedANoeZazYml822TgYy/IXK2NN9EGvCwy1ro3rZ59kjKcWV8 X-Received: by 2002:a05:6214:1c4a:b0:880:4ed1:ce32 with SMTP id 6a1803df08f44-88d833b580bmr40114876d6.45.1766138205687; Fri, 19 Dec 2025 01:56:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmL/9SGkWyvSpj/ayO4oxzYHHhXmjwsfj/l32rWMsHt4VSUg1NRyyPchBsCrruiDNCaZinHA== X-Received: by 2002:a05:6214:1c4a:b0:880:4ed1:ce32 with SMTP id 6a1803df08f44-88d833b580bmr40114456d6.45.1766138204950; Fri, 19 Dec 2025 01:56:44 -0800 (PST) Received: from [10.193.196.209] (82-128-196-119.bb.dnainternet.fi. [82.128.196.119]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59a186f957asm542852e87.28.2025.12.19.01.56.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Dec 2025 01:56:44 -0800 (PST) Message-ID: Date: Fri, 19 Dec 2025 11:56:41 +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 v3 00/11] drm/connector: hdmi: limit infoframes per driver capabilities To: Maxime Ripard Cc: Daniel Stone , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Andy Yan , Chen-Yu Tsai , Samuel Holland , Dave Stevenson , =?UTF-8?Q?Ma=C3=ADra_Canal?= , Raspberry Pi Kernel Maintenance , Liu Ying , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org References: <20250929-gregarious-worm-of-memory-c5354d@houat> <20251003-uptight-echidna-of-stamina-815305@houat> <2a5fitdzr2bz235fj6rvqzxr6ckszkjbazjfszlvnizdh2cvbt@w3ypjo7vahhs> <20251201-enlightened-zebu-from-asgard-5a20be@houat> <5dyhjur3hkhvtlwrl4h2m342byor7f3ssvkunj4cggnhbhlmnb@l2mfz7ypjj37> <20251219-honest-slim-crab-02e932@houat> Content-Language: en-US From: Dmitry Baryshkov In-Reply-To: <20251219-honest-slim-crab-02e932@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: YMyumKTExa-nHAAMH1ILLPE_vl7HD04Z X-Proofpoint-ORIG-GUID: YMyumKTExa-nHAAMH1ILLPE_vl7HD04Z X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjE5MDA4MCBTYWx0ZWRfX0dM2fUk1zyUC pV6sc6gQc8Of8J3HchTX4ALJFIQ0UBy6ild/MAPg6YhzxSoVCLQ7OgO0EviYN2AumX5Xpbfa793 qEHdIsuCYOsX+BW65EgNMl0XXsJDGX/wwE3ZONFZ2sKBNi+am4rTUCQCqvl2UBJYR2a0OL2sPdm l2+mFcudCGieQUuB2eKWU/5X6Io4mHs9lLefT4eqyRWzbzaF5iktuA9ExG4mTBCzI22MzIXvaX/ QfS2QD5J2dedNW/lbN53a5xHNlavXnNTBTeCrLDTQ2bMn7EE7heBP0wGNh3/2MLimUqWcPxzpBR cRH46dz6LTn7Zd6WE6bRWX4aoj6FD8t8N2Vw6iL+e+hBmSHwNa/sIW7BLdCfaKWTSqgN76OKZRI VTvld+Zfoqrxb1xKfRJyNhoT5sgF2yMsDsSxh0mmrGbjvG3YMhXzFzujf9k6Gg+63Jcko8duXyt fZmZ8wl9UvhkvM9QqDw== X-Authority-Analysis: v=2.4 cv=Tp7rRTXh c=1 sm=1 tr=0 ts=6945215e cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=UP4AmmvVc3sGQHJQO2VA4Q==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=wWkPZpA8QBIs0yCpxSwA:9 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-19_03,2025-12-17_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 impostorscore=0 malwarescore=0 spamscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2512190080 On 19/12/2025 11:54, Maxime Ripard wrote: > On Sat, Dec 06, 2025 at 01:28:14PM +0200, Dmitry Baryshkov wrote: >> On Mon, Dec 01, 2025 at 06:01:56PM +0100, Maxime Ripard wrote: >>> On Fri, Nov 21, 2025 at 07:09:01PM +0200, Dmitry Baryshkov wrote: >>>>> So it's not really impossible, you just need some hardware and a day's >>>>> worth of work. >>>>> >>>>> There's no reason these should get a pass, it's breaking the spec for no >>>>> reason. >>>>> >>>>>>> For SPD, It's really not clear to me why atomic_check should do that in >>>>>>> the first place. Your initial concern was about exposing infoframes in >>>>>>> debugfs that wouldn't be used by the driver. >>>>>>> >>>>>>> If the driver doesn't register a debugfs file for SPD, and ignores >>>>>>> whatever is in the atomic state, what's should we force drivers to do >>>>>>> that? >>>>>> >>>>>> I really don't think that drivers should mess up with debugfs on their >>>>>> own. Making atomic_check() disable the unsupported InfoFrames makes the >>>>>> picture perfect: the DRM no longer tries to program them to the >>>>>> hardware, DebugFS files stay empty, so the whole state becomes >>>>>> consistent. >>>>> >>>>> In the "bridge has no access to infoframes" case, there's really no >>>>> infoframe. An empty file is "the infoframe can be there but isn't used", >>>>> not "we don't have access to it and can't report them". Only drivers >>>>> have those infos. >>>>> >>>>> If we do split up write_infoframe into multiple functions though, I >>>>> guess we could create the debugfs file only if the function pointer is >>>>> set, which removes drivers' involvement if you don't like that. >>>> >>>> I'm fine with not using HDMI connector framework for lt9611uxc. >>>> Likewise, I think, it's fine to have empty files for the infoframes >>>> which are not being sent over the wire for any reason (hw not supporting >>>> it is one of the reasons). >>> >>> I can't think of any other example in the kernel where an empty file >>> means that the driver doesn't support something. >> >> Okay. So we need to sort out implementing the split write_infoframes in >> drm_bridge_connector. Any suggestions there? I'm asking, because I don't >> want to end up exploding it. > > I guess it's only really a problem if we want to make it const, but we > don't have to? We could just as well allocate the structure directly at > probe with a drmm helper and fill it as we need to. Yes, I wanted to keep it const, as we usually do for all function tables. I will use drmm_alloc for it. -- With best wishes Dmitry