Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1949224rdb; Tue, 20 Feb 2024 11:49:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJQgTdtPfr0lIrfARIc+kseoBoGRzElv6LulwZY7DyXmX/Qc3huTldI4ny6o0LqPtKF9R9zyffoWUWw3stkEIR6EJ9y0xP3mFFtAYb3g== X-Google-Smtp-Source: AGHT+IHHUoWO1Hm/n3WimHIg/IAOPcJlO2gGi8purqRxkBxeM1pP6gzwnoi06TbXgf7kK7kn5X6f X-Received: by 2002:a17:907:20e2:b0:a3e:9df3:b2e7 with SMTP id rh2-20020a17090720e200b00a3e9df3b2e7mr5433003ejb.35.1708458570465; Tue, 20 Feb 2024 11:49:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708458570; cv=pass; d=google.com; s=arc-20160816; b=x0IYnQGVZoS5NcRq5wR2YwYFWeB3zTEgLEM/MLplagNCg/Is82SNcHB28JSJJguVPM FLlcofc7NPELtSOPOkaEM1YqDi//YbSADabwfXL8nFp3X7bDFTsNgcuG70XaLdPXxkKU gxTveXjoa6RSnveOz/EkBNjFxX+YM1OwurJlwK/n82wKwVTjTa6A5Djq6q9pFLvl/ky9 ar21xmzD/nrba9v8QT7PgLSXlFioKAC6YNAvaWlsjlfay71cT+XElHQZPJXwrxaATTxT WCa5TI6Ecrv7E5Jo/14tjg3JiKyZxuts4/7x6Y3XulbfvJT8+5phtNcawOS34fpljEOl d9Gw== ARC-Message-Signature: i=2; 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=wHY6PYvLQf215IOV3qlVWkbLXtnGBZFaxRHgDZ5ic08=; fh=jZy+XnVv4M8Bs0TFRpGzITngCxzXqj2gYT4DlJoq2dA=; b=r0B8EqWlh/d+Qm3oDWSqlt1c+6gBlVaeyAel5Z4XJM+Qykb/SoTFGvCbDTyUD44tLz R+m6XPUCRTDFzoYhIGo26qsCRUdF4lwV24NaCOioo3s5IWvuipG7ppdKktua3A6LSlj2 Y5Qtz3DcJ0aHRdA60EGd22aj3H7oWVfKYC9m1sp11RwOjo929XfGupypgL3GiSWlIuT/ pFrzesw50rnB+oP+VnYS55cZP4y0zovROUt3ZHQlZPTjWuRM2oelVoTTTkoGXSCCSEEk gsa+QEGdir60x2Kt6wpVbk6FKfXGe4R6qcH/AJwJrzNcnj2gR+CYkde8vwlXQassm7UE wGGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DV4QxXmi; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-73615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lh23-20020a170906f8d700b00a3e5952b308si2946681ejb.646.2024.02.20.11.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DV4QxXmi; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-73615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 03ECA1F26319 for ; Tue, 20 Feb 2024 19:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8C7E14A4C0; Tue, 20 Feb 2024 19:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="DV4QxXmi" 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 438D276914 for ; Tue, 20 Feb 2024 19:49:19 +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=1708458561; cv=none; b=I/8tqcJUqgVzcOzE9Syqoz6QAOZBHSKPemBS2WiRri3bEgp/wwABkot4nqxGa0f2VdCzRBxnDjRi2zXBK8p/8741EUHWaWE5toEoXA8NMsgdb5YVIQQobwyEWClp7QdGoch9yHJ38ZF1G6YJi9fY7qkOe2tvQ6i9xwTwVkTabAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458561; c=relaxed/simple; bh=jVC3xfEDq6NhI2l5cGVmvz4iET2s5ClyIxFiDmPRXPo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=kwNA3r2hv8fHUt4MslbN3hMa//XrwecUf5iU3WuyfNel7S7d2KxpmDoItt7XgFo0USq22yTdK1218Qqv10rlK9drofOa78aDE8bxQkZngEm91sHQqZF24MjpKkbPoOCYW03wEkcOhIIL8lcYtgv1VgjLuHwOTuVGeyYc9q0ctHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=DV4QxXmi; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41KJHC7V026576; Tue, 20 Feb 2024 19:49:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=wHY6PYvLQf215IOV3qlVWkbLXtnGBZFaxRHgDZ5ic08=; b=DV 4QxXmif7PlAWsVMsdp3+uBVY6++WXxQBVxRz+8mqJMUvXSYQ6Rzcm2vXbVBilH4O yoRXY2p0fn0SK2V1fynO6piaI1UJ5lsekDe/8+XsZUJFeBcedNpgev3K5kJikk9g iGQ92qJs3BNAJa3g3SVazZDyrpE+rqdLM5g1RtDQjMaY40FofH7vJ/6kNgsuYz48 R9KzjrIOdCmlo60roSGdXZhw2zoUzFhD3DVZGfjRVYndJiAg80L6b4QqXmD37dRL ivRgu1zlN29HlU7R1PX2i6NDxoWK7Z3yw3IiHkmDoOeUxFlG3KxP1YYKneLlBJCJ 1CQxOjAGiDreFPsj2uPg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wd2360294-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Feb 2024 19:49:08 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41KJn7XD002416 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Feb 2024 19:49:07 GMT Received: from [10.110.62.85] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 20 Feb 2024 11:49:06 -0800 Message-ID: <16a720e8-f3bb-2059-3b7a-65311c3aaa64@quicinc.com> Date: Tue, 20 Feb 2024 11:49:06 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2] drm/dp: move intel_dp_vsc_sdp_pack() to generic helper Content-Language: en-US To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= CC: Dmitry Baryshkov , , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , , , , , , References: <20240215190834.3222812-1-quic_abhinavk@quicinc.com> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: jrreOZvRVsFXGxE3Iy84fNvoQ2Rx1lER X-Proofpoint-ORIG-GUID: jrreOZvRVsFXGxE3Iy84fNvoQ2Rx1lER X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-20_06,2024-02-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 suspectscore=0 mlxscore=0 bulkscore=0 mlxlogscore=518 impostorscore=0 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402200142 On 2/20/2024 11:41 AM, Ville Syrjälä wrote: > On Tue, Feb 20, 2024 at 11:27:18AM -0800, Abhinav Kumar wrote: >> >> >> On 2/20/2024 11:20 AM, Dmitry Baryshkov wrote: >>> On Tue, 20 Feb 2024 at 21:05, Dmitry Baryshkov >>> wrote: >>>> >>>> On Tue, 20 Feb 2024 at 20:53, Abhinav Kumar wrote: >>>>> >>>>> >>>>> >>>>> On 2/20/2024 10:49 AM, Dmitry Baryshkov wrote: >>>>>> On Thu, 15 Feb 2024 at 21:08, Abhinav Kumar wrote: >>>>>>> >>>>>>> intel_dp_vsc_sdp_pack() can be re-used by other DRM drivers as well. >>>>>>> Lets move this to drm_dp_helper to achieve this. >>>>>>> >>>>>>> changes in v2: >>>>>>> - rebased on top of drm-tip >>>>>>> >>>>>>> Acked-by: Dmitry Baryshkov >>>>>> >>>>>> v1 had an explicit comment before the ack: >>>>>> >>>>> >>>>> Yes, I remember the comment. I did not make any changes to v2 other than >>>>> just rebasing it on drm-tip to get the ack from i915 folks. >>>>> >>>>>>> From my side, with the promise of the size fixup. >>>>>> >>>>>> However I observe neither a second patch removing the size argument >>>>>> nor it being dropped as a part of this patch. >>>>>> >>>>> >>>>> Yes, now that in v2 we got the ack for this patch, I can spin a v3 with >>>>> the addition of the next patch to remove the size OR as another series >>>>> so as to not block the main series which needs this patch. >>>>> >>>>> I would prefer the latter. >>>> >>>> It doesn't work this way. The comment should have been fixed for v2. >>> >>> This probably deserves some explanation. Currently there is only one >>> user of this function. So it is easy to fix it. Once there are several >>> users, you have to fix all of them at the same time, patching >>> different drm subtrees. That complicates the life of maintainers. >>> >> >> Yes, understood. Its easier to fix it now if its really needed. >> >> Actually, I think the reason the size was passed was to make sure >> a valid struct dp_sdp *sdp was being passed. > > The size is supposed to be the size of *hardware* buffer where this > gets written into. But looks like this wasn't done correctly when > the code was copy-pasted from the HDMI inforframe code. > Alright, in that case, let me post a patch to drop this and let me know if that works for you.