Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp150134lqh; Fri, 3 May 2024 17:08:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWA2C8hP6km5bWWVor9sPh53vgUBS0FvxHWP3VC4RtsRJHkBxJtEuCiGZ/ttixWM2gshlb5HM9HeW2Hhm/RYYV5XffTMHwvZYO1uwwVFQ== X-Google-Smtp-Source: AGHT+IHvhYSjh75D7Ds5XQF1fDjE54LL4tpfSwzm2tMLFKgKBQhzXdIUP7xud7oTI7jUdNXivpHs X-Received: by 2002:ae9:f20d:0:b0:78e:e9fa:548b with SMTP id m13-20020ae9f20d000000b0078ee9fa548bmr4265546qkg.30.1714781295456; Fri, 03 May 2024 17:08:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714781295; cv=pass; d=google.com; s=arc-20160816; b=IAOXsUNu7jJzTtMwdn/iJQ/J5/3pSNiws5PXahZbfAmnJ9P7K3sbUvzCI1umkEPc8m LA3T5b+w/HyJWAjxTlZXwXdvrCh5rwXN0k9gmtNARk4zMHyctyLvv5VeVf7LNKxTX/yH cDvTtRZZDUILTdPL2DxtXJQkAtQAz81A2RwUePQflBXQ7xjFYCcjoTPyf//D458UTUrb ydhklYdqmWSqDlmOvxxqGAa6RUj+1beWLUuigaaChGRScELG0fyPL5QiBAgx2Y7i0XjR uZe8G4GVNo0//lX0wv5e+9iLkqDLBkyqeUSp86JoCbF8hLH8Z01PCJ8QKm1cTTubTrT5 +y5A== 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=2gHxHWVt0EgLtC05azmjUJ9T0o3w1UNl8Tamh28ZgyU=; fh=oSUzJuHuMRmGqiFblXdEdWNwCODnELvSjMHPChsOJSA=; b=u/4eX8PLbo4ZLZEXGvxRyBFY4a3pBYVis18phsAagzt5huvcw2PJnY8GJ92hQujF8E s+eLqzIdQ2pbmT/itJSTrZxP7ndB7nlH1YKGfOUC4W3CdiZoL1pe9iU+2r2AMD6kFZiO /268OQpLsvPi+2nfAfr8/jK7LF3FBqhZYUDwq3MquG4AcSqZ4aH6jXXLwOCD2Fd2cqIx OCkq0BDekons2DfZxEbN3Yu0pMhqeJqv0tW+Db9YUJLvwOwwPRbVbGIXCDqZFXl+gRaz itkw/8OGqfktDYNMFQhsZj5+e6jmISxWS4LVNPrlHPWDOJ67P0335El5xCO2rz3aKxWp 1C7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BdfeVsGg; 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-168439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w13-20020a05620a444d00b007909479124bsi4709155qkp.4.2024.05.03.17.08.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BdfeVsGg; 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-168439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168439-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D20A91C234A2 for ; Sat, 4 May 2024 00:08:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FB6DA29; Sat, 4 May 2024 00:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="BdfeVsGg" 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 B525A36D; Sat, 4 May 2024 00:08:04 +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=1714781286; cv=none; b=RmFuQJOzrix0a3K7+WOZtNJBMd9aHYil3OZ/CzrJqBYMFaSQAKJKboiiIBKEcX3TmNJYwW90+YwbJPMoGxuAZnH/iy2DGnW52YZIInuAgZ8M5XAHZrBWros1ivu07INjnMjIXFEGagvaS9nhk9OVWlQUYcYcyy/47T3IHZkrBhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714781286; c=relaxed/simple; bh=4FRRARZaWQXthGDOxg7wzzYkWKjg1wiIOfmDSN4kUMw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=n3apzVyjuQ6201FLiqzp2hyjzzMkP/qpGnCErm5wj/YGJOJ6+5nvvCQ4MAKb66Sco7/++Fqd5UfRCkrKhvuQfFj+JsMiepNWbjygwpSkTU+bkvZZylC3r6poPzaDnRitZ9h6X4QV27ejZfwloLF6wc5nzwEJa5exru4RMUJ3NFs= 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=BdfeVsGg; 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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 443Loq3d023739; Sat, 4 May 2024 00:07:49 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=2gHxHWVt0EgLtC05azmjUJ9T0o3w1UNl8Tamh28ZgyU=; b=Bd feVsGgqnlRjitK+dOOtENrmd7kZjLnQnghdams4WsChLFdpEiBvI0WoyWre995Ar K+xqd5xfPcD2oLoj8b2RvjsPboUBTLNOM7PeTx5haFlMFbzcGfb//9aqcfSDLdCb fXKrXhqpw0heGBvE5S5eTOdcBsDPTICOLH6Em7PIH5i2c5WycRJdnr0E3v3SB4bE OqkQ7zBWWcfyInAVCFMssbLsJO2aeZy5lXaly0gNkVlI2QHxOnh+Fz5KjLUpor8m Z2ltF2ytSCszP5AhwjZCPxfwUg8T1SPtP224cXMdpCmXmgqj3zVhYtCxCxzxl5As TZ4HNqkpphwCuexx+LIg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xvrt4j86g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 04 May 2024 00:07:48 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44407l5w006552 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 4 May 2024 00:07:47 GMT Received: from [10.110.114.34] (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.1544.9; Fri, 3 May 2024 17:07:46 -0700 Message-ID: Date: Fri, 3 May 2024 17:07:45 -0700 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 2/2] drm/ci: validate drm/msm XML register files against schema Content-Language: en-US To: Dmitry Baryshkov CC: Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , , , , References: <20240503-fd-fix-lxml-v2-0-f80a60ce21a1@linaro.org> <20240503-fd-fix-lxml-v2-2-f80a60ce21a1@linaro.org> <69b593b7-109c-825f-3dbb-5e8cce63ff01@quicinc.com> <24fb0b07-af03-1341-d98c-46f4f167fbbb@quicinc.com> From: Abhinav Kumar In-Reply-To: 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-GUID: R9H9ZhyJggZ-YTD_qcyRPMIWfyJEHLkW X-Proofpoint-ORIG-GUID: R9H9ZhyJggZ-YTD_qcyRPMIWfyJEHLkW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-03_17,2024-05-03_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 phishscore=0 clxscore=1015 impostorscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405030171 On 5/3/2024 5:02 PM, Dmitry Baryshkov wrote: > On Sat, 4 May 2024 at 01:38, Abhinav Kumar wrote: >> >> >> >> On 5/3/2024 1:20 PM, Dmitry Baryshkov wrote: >>> On Fri, 3 May 2024 at 22:42, Abhinav Kumar wrote: >>>> >>>> >>>> >>>> On 5/3/2024 11:15 AM, Dmitry Baryshkov wrote: >>>>> In order to validate drm/msm register definition files against schema, >>>>> reuse the nodebugfs build step. The validation entry is guarded by >>>>> the EXPERT Kconfig option and we don't want to enable that option for >>>>> all the builds. >>>>> >>>>> Signed-off-by: Dmitry Baryshkov >>>>> --- >>>>> drivers/gpu/drm/ci/build.sh | 3 +++ >>>>> drivers/gpu/drm/ci/build.yml | 1 + >>>>> 2 files changed, 4 insertions(+) >>>>> >>>>> diff --git a/drivers/gpu/drm/ci/build.sh b/drivers/gpu/drm/ci/build.sh >>>>> index 106f2d40d222..28a495c0c39c 100644 >>>>> --- a/drivers/gpu/drm/ci/build.sh >>>>> +++ b/drivers/gpu/drm/ci/build.sh >>>>> @@ -12,6 +12,9 @@ rm -rf .git/rebase-apply >>>>> apt-get update >>>>> apt-get install -y libssl-dev >>>>> >>>>> +# for msm header validation >>>>> +apt-get install -y python3-lxml >>>>> + >>>>> if [[ "$KERNEL_ARCH" = "arm64" ]]; then >>>>> GCC_ARCH="aarch64-linux-gnu" >>>>> DEBIAN_ARCH="arm64" >>>>> diff --git a/drivers/gpu/drm/ci/build.yml b/drivers/gpu/drm/ci/build.yml >>>>> index 17ab38304885..9c198239033d 100644 >>>>> --- a/drivers/gpu/drm/ci/build.yml >>>>> +++ b/drivers/gpu/drm/ci/build.yml >>>>> @@ -106,6 +106,7 @@ build-nodebugfs:arm64: >>>>> extends: .build:arm64 >>>>> variables: >>>>> DISABLE_KCONFIGS: "DEBUG_FS" >>>>> + ENABLE_KCONFIGS: "EXPERT DRM_MSM_VALIDATE_XML" >>>>> >>>> >>>> Wouldnt this end up enabling DRM_MSM_VALIDATE_XML for any arm64 device. >>>> >>>> Cant we make this build rule msm specific? >>> >>> No need to. We just need to validate the files at least once during >>> the whole pipeline build. >>> >> >> ah okay, today the arm64 config anyway sets all arm64 vendor drm configs >> to y. >> >> A couple of more questions: >> >> 1) Why is this enabled only for no-debugfs option? >> 2) Will there be any concerns from other vendors to enable CONFIG_EXPERT >> in their CI runs as the arm64 config is shared across all arm64 vendors. > > I don't get the second question. This option is only enabled for > no-debugfs, which isn't used for execution. > Ah I see, makes sense. > I didn't want to add an extra build stage, just for the sake of > validating regs against the schema, nor did I want EXPERT to find its > way into the actual running kernels. > This answered my second question actually. That basically I didnt also want EXPERT to find its way into actual running kernels. Hence, I am fine with this change now Reviewed-by: Abhinav Kumar But, I will wait to hear from helen, vignesh about what they think of this.