From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 24ABD199EB2 for ; Fri, 29 Nov 2024 11:23:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732879393; cv=none; b=j66E0hSrcduPU0DbLLU+NyZCsjz5mdjkP5F4YmCHuFdK5oh2o9JyW/IIwAp2qX5QoSDlzm3/ABGDi/+bx5NMRk4dJ2io9gfqvkPkOp2V19V3zlMF6uMN7NuUSmHaalfI6v6uUeM142yJ1eDE8oEWA/T/n0f5H0eIAExblrgEntU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732879393; c=relaxed/simple; bh=kxYvfRmPACkEiOJLMZma1C8CbrSwYduSmM1VO1dOWfQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rk9gKBO09/ueYJWbK1wjXtdoA2vRp/RN7dS0eVolusuCzhrLrEwmiLBrWvqEEtzdYgDsfX+m1pLiJ7ghRkl0mFG1G9t1mKbkDXJPmIqHmfPQIvOcekzwplc290E001k+M16+8ugZSAuukvb1PWRpbywxcawKT1jInb5/Q/jiT4g= 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=YboWul5J; arc=none smtp.client-ip=205.220.168.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="YboWul5J" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AT844fG004573 for ; Fri, 29 Nov 2024 11:23:11 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= COD58vfhUoNzxrjubALRwDQBlk97eD5+jvvFfNHqFSQ=; b=YboWul5JfPgsTH3o avAv+0R/yQ7z5updWAASlDuh63WPni2XZqfRfk1t4HyFCBFCVz1PSy5ZTgNaygOH /jjl3dGjohoUirJd39ucpBUIZ1thwlMaQj1EI6oROXSwWxmcRVGNPW0Z7/TdOIdP t8A/sTKMVtvPb2m6iAcTvOXpk09FgiHmx7F4qRkJI7NLs/YtpVKUBTndbfi0ISjD o3DIzhBhILfxulkT+r8oOR6SPbDGVmjiLCrRI2rARdJ9LwrCAR7+2GQZQst6MlEx wHgdIRNSOmdeNKNgLwQo/fNhLFBvkkQnSzblpXRxSC9tlRcIWS7VsngNPERMkhJF BHwOjA== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4379s6rgkr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 29 Nov 2024 11:23:11 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4669114c62dso1392591cf.3 for ; Fri, 29 Nov 2024 03:23:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732879390; x=1733484190; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=COD58vfhUoNzxrjubALRwDQBlk97eD5+jvvFfNHqFSQ=; b=TChfAzJRywXla2+iSzrs/chlFB0PfkbV0Oms7V+ezoJy+UF8LcL5PuLeUf8RD6P9by vODqVJdQKlz2IwzzhO5UXPL6nyq6laVDeV6jHvfSrsVcX9Obk+uG+NDkta31zeUDhPD4 aAHZgaYCXcM6aVuVt1DTXCthrwrOubrrQ3fJiCCSbGEIfHgxIbss0BD28gjF7mQcV+6S Ma9QXQMSiq65x0XhjWYMH1MLOzR/4Fh91mCoLQLH8d/1a7nAq90SEABmVFsUTWtUVnxb fJHgerIIjhE43vRH8fEwcbXVbzeyR06xW2XcMoxV27/ds9xpoCZN1l9NF+t5xTIAonTO ug+A== X-Forwarded-Encrypted: i=1; AJvYcCVuoYrRpzh26uijI4XHOLw+FwW+TdM7lsAHdwEC3r6efTl9A6TttIwD/C+Mq4GZ1R+gceOEfAZseLTF@vger.kernel.org X-Gm-Message-State: AOJu0Ywwkl5UlZgqahThUUBK/4Am93TLbt9WgogX/D94BbeFgbZ55rnm zlbZlKCq/9flQQzrQhtBihQZndL+u3C6W2RtjN4iNJJ3/jCTwKXulsrOVoogBpmXxiy6w5kmAy/ 4uDH8Z42fzXE65ULTyrBpVNhNFFhEo94GEkKR+zJdyUyCVEn3k/QyCqhCv5o7 X-Gm-Gg: ASbGnctunGFEEwGo7TEcG8uicZgib5vb1Q7e/eg19I+GKKPSYHW4Fb0TwGaAq7Ta3++ dlFS0imfsgsfTjaGIshEKs9Krhf8pgNLf1s1hQ9O/GgjwK0eMPHyWPVmEOEqdkwLYP/W1zFMynM 9cdK5y5t8rys9dmxGZAekSNmzneMAfOMN1EjpKncACdWHhEAETWqUz7Ej+KPS4KVtZPPU3Nfjgi VGjXvYz2GrcS7ATXdyqv1Q4AUvV2jGMGXxCD+TVvfk3hHPXvM9zoKtqLPCXCupN2WywytR2xecc YQUsXMFcwufHUR1+HwV5LJcjGgdnU/g= X-Received: by 2002:a05:620a:4004:b0:7af:cb6d:69ec with SMTP id af79cd13be357-7b67c43f8b4mr574064185a.11.1732879389790; Fri, 29 Nov 2024 03:23:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKFmXt4qof8cYsrWxQRv6H7IkzWg2Ack7Bv35WGHlgYSb5RCm1o3cSqggRuL45q2ptmfbmCg== X-Received: by 2002:a05:620a:4004:b0:7af:cb6d:69ec with SMTP id af79cd13be357-7b67c43f8b4mr574062185a.11.1732879389372; Fri, 29 Nov 2024 03:23:09 -0800 (PST) Received: from [192.168.212.120] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d0bb296379sm392360a12.40.2024.11.29.03.23.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Nov 2024 03:23:07 -0800 (PST) Message-ID: <6d3ed1e8-7294-4927-9aac-daffe6ffef37@oss.qualcomm.com> Date: Fri, 29 Nov 2024 12:23:05 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] media: venus: Add support for static video encoder/decoder declarations To: Bryan O'Donoghue , Konrad Dybcio , Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: quic_renjiang@quicinc.com, quic_vnagar@quicinc.com, quic_dikshita@quicinc.com, konradybcio@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stanimir Varbanov , devicetree@vger.kernel.org References: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v1-0-99c16f266b46@linaro.org> <20241127-media-staging-24-11-25-rb3-hw-compat-string-v1-1-99c16f266b46@linaro.org> <7d344377-f1cf-400e-a9c4-442123dcf4ab@oss.qualcomm.com> <95ec73c9-da38-4888-9e00-4458b5a7661c@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 4fjEmAFvluw4L3MAK2d6gh6A_bEsN5gc X-Proofpoint-GUID: 4fjEmAFvluw4L3MAK2d6gh6A_bEsN5gc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2411290093 On 28.11.2024 11:34 PM, Bryan O'Donoghue wrote: > On 28/11/2024 22:14, Bryan O'Donoghue wrote: >> On 28/11/2024 20:02, Konrad Dybcio wrote: >>> Bryan, >>> >>> I'm still not sure if keeping the logic behind this makes sense at all. >>> >>> Could we not just call platform_device_register_data() with a static >>> configuration of 1 core being enc and the other dec? >> >> That's another way to do this. One reason I wrote this series to continue to rely on the existing compat= method though is it stuck in my mind that we have some dependency ordering logic in at the moment. >> >> For example: >> >> commit 08b1cf474b7f72750adebe0f0a35f8e9a3eb75f6 >> Author: Bryan O'Donoghue >> Date:   Fri Feb 5 19:11:49 2021 +0100 >> >> And the other reason is the prototype platform_device_register_* looks like more surgery and ultimately more validation / potential for bugs. >> >> Since this driver is supposed to be moving to maintenance mode, I didn't want to do a more major rewrite of the probe() and remove() paths. >> >> --- >> bod >> > > and.. I wanted to continue support sdm630/sdm660/msm8996/msm8998 without any additional effort to go finding power-domains and clocks which in those cases the existing compat= method actually does something useful. > > Also potentially other/new additions to venus which have xcoder specific PDs and clocks would logically want to specify those as we do for the above listed SoCs. We can just keep a small function to grab these and assign as if they were specified under the root node (check if video-encoder/video-decoder both exist, grab the clocks for respective cores and continue normally). My old series [1] should make it easier to tackle that, feel free to take it over. Konrad [1] https://github.com/somainline/linux/commits/topic/mars