Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1134716rdb; Fri, 9 Feb 2024 11:15:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX1ijv5wx28sdPWG5TNYQ40Bn2fxBZTxOHwcoO5Rvhtay5GNCj85wOCghKpEib3PgSXWGBrQ6SN2ckG6viccmjzQ+L+UXk+vEItdOyUIw== X-Google-Smtp-Source: AGHT+IEJERhqbtxPFtcJV2OClJJ1huRFYPCOB7+5G3Uv3YF/t76HNcxIbAPqIxCPdL58G7uk+WKk X-Received: by 2002:a17:902:d512:b0:1d9:cc68:19c6 with SMTP id b18-20020a170902d51200b001d9cc6819c6mr189524plg.43.1707506121793; Fri, 09 Feb 2024 11:15:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707506121; cv=pass; d=google.com; s=arc-20160816; b=WivuZ4wYb5N4V9xKbZiM7w6HB8xRJfBSGV7qWMnf9Hl+M0mxJX/Uqo8h8Ue1VGApNH kTzHN//qEQxNHpl5mNa9nuuhti9DNpbC5R9/qanDcaDW8e/hNbVrBSh9mojJcQT0g+yJ 16w9cmzGC8FF4zc2D81eNI3Qx4xm2SWx+rFnPQmszEWy2VqcPZI5vfZeFfswB4Ot+DzU syFrPuouoVbkQcpDvupnaLy1aAKGsJSXprLT0oT8CxL5zBuLR17HtXX74miJWHz0V/tb hYMOu4u0mR92TuW6wxTKw5eiAdgjxM6U651bwyY9uruPIvLpZz27VHIKP5Zwuql13kIO QQVA== 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=Ptq0mdQo2JC1pdhBefgIsGtp+NxaP5L/NgjnxnY71oI=; fh=1q52NweeXAZau3d3YFrrQLk9VEHMftaVHTS5n+Xbn4g=; b=n2G2izFEpQonjTrYknE+G3ZLAp+YCcmkiSP7TZ8Nk61dyd4/V1X+GL0/GD320Th+W3 /LbU9FMbrc/UohbVaYnVcyHqqs3bu7ExsfX1mh2MuR4RKJVHr2kEAkY1rCOoxCNvGs9l CCEzO9LkS6ky/UTdDUmCQ6mLbLB4dBz+vfZ13A6Aw37DPKCfZxvch8zvyn06xUPWlRjh amHQGw/MYNyYGOnuFv4GIvYUGmLY0dQn7r5Q3qXU2E8E2R6RLKw2EPUiU2c4CySi/AUu vQb0T8sYGc6hl3xqb9YJ9LWtEEnSiKYmlNudSTl/PrFjDWUncWTfCV/bcSGkpyOpx4zl ThOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HgyOu6xk; 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-59820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCVURYQkuzf76GFpD7UqPFhikZGy+MV9x3eGb+e/ai3xAOscH1vHwn3k6FBUyTuP1N5YYdC0kwe45huJJ8LBsRwgs5lB/fYooogwIwEhag== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lx4-20020a17090b4b0400b0029315abe561si2150332pjb.127.2024.02.09.11.15.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 11:15:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HgyOu6xk; 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-59820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59820-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F0E1DB2E6E8 for ; Fri, 9 Feb 2024 18:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0A6C83CB7; Fri, 9 Feb 2024 18:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="HgyOu6xk" 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 7428F80C0D; Fri, 9 Feb 2024 18:40:10 +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=1707504011; cv=none; b=S2UQ+FfBmA18yrlqno+POofFU8gd+KUSQzgOTPoCyQEdI0nzVA1yYndZeMqoHd8/yd45rCpvE8Ia6uPImDSv1wbY9fvZegiJBy37tiDbPnEbiwXvel6IUG++pEQJdyfFDGxVojULrjdja4zTK+bmZO/0YAl4PxIo5xV1DGSbcDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707504011; c=relaxed/simple; bh=aoZwOAjhJv2e0VPfEl248OKmWhWqgSqIuwMXsOsdxYg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=jR/HyC19XPk4jUHtADx/lp3vC+TIkBNdfz8FjKXt/AElnECfN3WLG8EKlU2odwUe7WG325kuBV71InpCYJbJWXmsIHu1LbxIZ5HAAoBMbaf2+uz7SPAzuMbDL8INTf4K7//hWitiMKlFcAHMsu14kAsILAdxPKJVkY/hzrrFt7I= 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=HgyOu6xk; 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 419I27OM024258; Fri, 9 Feb 2024 18:40:00 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=Ptq0mdQo2JC1pdhBefgIsGtp+NxaP5L/NgjnxnY71oI=; b=Hg yOu6xk9Pr20uW556xeQ9SvGud8vvIw3o4P4KN11fBflLGBFAEPRKBmfeOLv3O3OR v7qcKRpbhu5k7cuuEPHwUQm0GMyJJS3UZiwjKXCzoIfVA7fq64SgYuQ7dDm4jJUx A72I68A7AKF7IansQrGrh1uIaxfuW/MTdA2WnaD3L8ZkdpohJKKXwlFxo33qVrHt OseqReh6Jl4UdYmDXjxiw8DqpsC7seZzl+jP3HTNEdS6KsTTE30QVTLkDshM/OdU aFydZgQ1lB3GCHJXJ9KzDz4khjmPTUd0vIw53G2xyb3Jou+QcPLlW5V6oZhl7YAw jagAc0cyXc0eH69OlvVQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w5ann1wvk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Feb 2024 18:39:59 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 419IdwHG002677 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Feb 2024 18:39:58 GMT Received: from [10.110.104.98] (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; Fri, 9 Feb 2024 10:39:57 -0800 Message-ID: <3bbcf1e5-e105-e7b0-ed8f-904d25f8040f@quicinc.com> Date: Fri, 9 Feb 2024 10:39:56 -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 v4 1/4] drm/msm/mdss: generate MDSS data for MDP5 platforms Content-Language: en-US To: Dmitry Baryshkov , Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter CC: , , , References: <20240208-fd-migrate-mdp5-v4-0-945d08ef3fa8@linaro.org> <20240208-fd-migrate-mdp5-v4-1-945d08ef3fa8@linaro.org> From: Abhinav Kumar In-Reply-To: <20240208-fd-migrate-mdp5-v4-1-945d08ef3fa8@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: P7YhO0CRkzE_VZIjetNl3eCZrRXWMoaI X-Proofpoint-GUID: P7YhO0CRkzE_VZIjetNl3eCZrRXWMoaI 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-09_16,2024-02-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=954 priorityscore=1501 phishscore=0 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402090136 On 2/8/2024 7:01 AM, Dmitry Baryshkov wrote: > Older (mdp5) platforms do not use per-SoC compatible strings. Instead > they use a single compat entry 'qcom,mdss'. To facilitate migrating > these platforms to the DPU driver provide a way to generate the MDSS / > UBWC data at runtime, when the DPU driver asks for it. > > It is not possible to generate this data structure at the probe time, > since some platforms might not have MDP_CLK enabled, which makes reading > HW_REV register useless and prone to possible crashes. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/msm_mdss.c | 51 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > Reviewed-by: Abhinav Kumar