Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp147910lqh; Fri, 3 May 2024 17:02:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2sns43v2bhXyR/eZMAEgmJn9DriGBoLfIUjX7PfCsaaXLiz/aF2FPm7BoE/QvGoL25m7G3VEHtfrE8S1Vtpu7HXEtr3s67O6YZR3kqQ== X-Google-Smtp-Source: AGHT+IGhUvonQ1jCEDB+vkvEQRc5WAiXPL3R1q/QB1gdnkhPxLluCtrQ7u8zkghKEEAvIyYysp+U X-Received: by 2002:a05:620a:25cd:b0:790:b205:b7b9 with SMTP id y13-20020a05620a25cd00b00790b205b7b9mr13411344qko.27.1714780972792; Fri, 03 May 2024 17:02:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714780972; cv=pass; d=google.com; s=arc-20160816; b=K4xQHu5YK/WIVIB0QTebrnISaILL8/D7wz849d10W4FnOffockZMRlYVfIUHYi7z6K NYnMt06wI0cn1ZSDvZz5o9Ayl60Med1bS3LWj1bCMcuVl65m1eAWrKGMNnDO5dMN1kna +1KWKrI8dapJ/BZ3xEoQ6rKLye6HfnRH32ttx8YPjqkPRVLYb6BPGMHwkkMX+L4B4syw VyViGZUFN//jcY0x/86m7766qrcO3ZlBDl5RizcMvYqkE/fgqD+lvD4ZhRlvBEMYB6va 6BnZ246vaGN1S/nffJOndjnMGZC/GNJyHjQtgxMsKru3uLwrQZUsXCm18VpuvEfej2kX pXFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=IWfUOzDKDaHyvvHIKdIupNeybV1v+hpH82Kvs33JOtQ=; fh=KEoC1zqJwdhHixfl0oM9HWyKdBU0qtPWcYCQYhOLDZE=; b=sRFBwVYu2SildhJjkuFuCGoPkZd8+y4bIUuq7YsDZ7dRqKhFK42gP37KmPpjERFKow nSs/eSZ9bVV+VziS97G4zlubrSbTVZO4CzNop7caM8WySYOcrWS/QQeKNrdP4r6eACrQ NijinCXMZ2EyQU5HHRd3TyDIXUCY9RgsCIQt4FOgQdg3t1hv2mXa98UIhtDD0af53xLm fWw+2P7FXpz/YLIVADt27wYCUFQzrduNxGbnkxs6VXdc+RvtOQFoUs8eVwkrjJxxMOQB yoQHl7Ku8a1yKYnp2R5/tjBDV7Kh2tV3ThxaieyAPK4SFHf1TykdfuwMNE+7sQGPYAKE gtbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kKav6bia; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-168437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kd18-20020a056214401200b006a0cd5fd8d3si4239558qvb.612.2024.05.03.17.02.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168437-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=@linaro.org header.s=google header.b=kKav6bia; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-168437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 75FC61C23277 for ; Sat, 4 May 2024 00:02:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D41FA34; Sat, 4 May 2024 00:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kKav6bia" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C277386 for ; Sat, 4 May 2024 00:02:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714780966; cv=none; b=q9klmXrbKxER57K221O2W4sjuwBwW/QlDbljptzjVJsQf2XsM2qe3HP8j5MRxm1fuKVituqHI4QIMsodK7B5+kun1/AeoCixz9l31+GqgIdExz4c3ft5Zy8kdIOvc2avHt49XnfAR3GCdHIgW0UpsDkZpzLWh2eG0vS8hr/C3Us= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714780966; c=relaxed/simple; bh=4sg/lBQu8VG3Cr09wLGU0B8qR+LX6xNYsDshh5/gdu8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=a/I+wh59vR8OAhwGSJ32ktx3UJfwrX7jPc2wp623c1HlglcKY4YU/OQAYRIMlQTpRf0V1JW80qnTI4Vc2dsXLSJc3QOqBrJGulILURKUuXoNjszEzruRwen/vabJDPS7mTyAmHdV1Ob4kFFRdatuK+mqsYpig88RHpCa9DIyHds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kKav6bia; arc=none smtp.client-ip=209.85.128.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-61e0c1ec7e2so22813277b3.0 for ; Fri, 03 May 2024 17:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714780964; x=1715385764; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IWfUOzDKDaHyvvHIKdIupNeybV1v+hpH82Kvs33JOtQ=; b=kKav6biaPFSA50efpdYKhsRCAAjrDYxAf3/RCUNDQu049c3V256gM4rOrZMmSe7MAQ YIwaZnbX9hqSyJOsiw+POToqUSoCYx67ASoTnh0DK7m1fxKYHcctbKOPGrkW0Nh7T9Z6 TNdAIUx8YqWF1Uhyu7McrvVXlz/VrE10UvVlvHpOl7/pVMEh+UL5w+FfIVfb3yFVDk43 oyxbXQo+XsMVmm9AnhcUV3AQZbsCHi76eABVgMnW0/T0nNFi4b3z11YYxA91q9OZmVk0 wY4A8ssCqZdEFTGdnaGWkRcXoXjOooJw5ysOgab9n1XEjWIs+9iVakKApfOO5tGhIgf+ lrNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714780964; x=1715385764; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IWfUOzDKDaHyvvHIKdIupNeybV1v+hpH82Kvs33JOtQ=; b=IvF28ZtpghqyfzvsuzytI0xZJCf3Y9dFZog0M4VpX3SlAwWtJCYh+kCtH6fdBL7cqc 2Ki0/Zm391XCWIdS1iNCbabd7rmKupRp4oKTkw4wJhrS+VDyocZkFnpzYh8CJGHo0cPy m0XGFzrTuM0aG7BbgxtMzPx9RvV1b13CBgqdhoQ4w6Bi7C3oF49mCGD7pNILsu8qHKWh Seu3BJmZEJwEirnfD+KL7xVaG7+4WmuCZfesjsQHl6JIsFEhrBrhtFreLFttDR8YTwYF AKA7Uys+iXctwzsno+FwlqddQ42EBR/iOgSAFmk2V76Zaonsc0HWkgXN9wNbv47Q0ygG JOtQ== X-Forwarded-Encrypted: i=1; AJvYcCWLNZHQ923m8mUFZrf1U2YO5AkbJ29ZFe0JsDm7aUNYqYEz2dr0XzM10p8w+Gjdx5Axh3vHJUC4/z91fugefr729VuRp1lOGVfwJ6Yk X-Gm-Message-State: AOJu0YzM4Nkbiv8o7WOgQxXYkGUCnrhwUzfREBRpp8fIEg4jepzh9Qd3 DLkJ471IpXS+q7wBWSFZ8iTiCLWrMI5jBjEFzyn8wu5CZvIiPg9CmNtaDzBpkX+ihXSP7bWOPCn 0cK71FuUL22oODZFyJVkCyAv5m9YnTxRDRc7BDQ== X-Received: by 2002:a0d:ea54:0:b0:618:5c6e:9291 with SMTP id t81-20020a0dea54000000b006185c6e9291mr3221458ywe.17.1714780963901; Fri, 03 May 2024 17:02:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> In-Reply-To: <24fb0b07-af03-1341-d98c-46f4f167fbbb@quicinc.com> From: Dmitry Baryshkov Date: Sat, 4 May 2024 03:02:32 +0300 Message-ID: Subject: Re: [PATCH v2 2/2] drm/ci: validate drm/msm XML register files against schema To: Abhinav Kumar Cc: Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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. 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. -- With best wishes Dmitry