Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp357428lqo; Wed, 8 May 2024 01:44:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWf9qjKO9++So7mGHCeeWexoMFIf+I9C3g5M+mbfy/8bnAiDIVHJtLMT9re/n1C4WAghW0ggmVcT5aB08ptObWGVvESDQmVuss+VW4mSQ== X-Google-Smtp-Source: AGHT+IF7q8dHNBjXRf31gsqNGnD9oKwaVu/wDiIKMCs0pcYX4s75s0qi0t7+KmA1ZvsL7ewYDkCs X-Received: by 2002:a05:6808:242:b0:3c9:70bf:6824 with SMTP id 5614622812f47-3c9852ad715mr2073622b6e.7.1715157852779; Wed, 08 May 2024 01:44:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715157852; cv=pass; d=google.com; s=arc-20160816; b=yh+1Qado8+XA6ESHbJ7ZH4y4BwVGp3ul/HDmUdNXdmMBOgX8x+hJWLme2DMKW7uTBW HqeYRm9YLGUYRhCpF9UCW63foG2y8QM6STNFHz1PiJNK6KmXEwLXDDugEZKHSPXbc++k OMp1/QTH3nD3TbLMEdeDMGfpCS3+V2weKiDW0SnUbK2UtFxNEbxHonA4OqXP9bJdg4/R 7fM8c3z8FABgYobWbNfdN4/dW7P1RtgbEjQLMt2PppwWo8++xtQphlmA+5FPt8QBoJcU i1R1mBc6mQq20Ame0TkxITxRnNY4WCFZ/xIXjC/dP7q/h4k9jp/BqGp6+ROK5leeKtF0 Q0IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=HNqvgQkQiDZKiQDfQHUTDxsqO2amXrNL5aVL9MMImq4=; fh=Q7SPK6pmhnpq3EQnF5/mK3gNWLC162Eoe73RP8ZT9VY=; b=y43UgNT/yiwRE4lNDngsJiWg7jkbISCX2u2muNrIc+4dcKgWmzU2FCbY8oTlq4XLXX 1JK9sT6NqFP0Frs8sftFbQj0kieuoZbSTVHysr7oZGMeCLdVrAP/p5KJB4yVxpLfb10f +p0W2SMyfzYAch5d4WP6mVDpxOFR8TD5LpGYJElDahMZYIK9ecQ2q5oZCeF0Os32QrFe FKdJK15X7j4mexrV5npFkGOEEkhFWyOsmhfnFtSIgdStdpVETW8gKyrurv74PtQ6losP cIUI8+9EQRCOz+8IS0apT5lUM0j3BtgOWF3psshe0fTokJwbB3JT+erkFL0LvIXc2uu4 d+Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eLlvpm0q; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-172936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 l28-20020a05620a211c00b00792b3c6125fsi1287654qkl.335.2024.05.08.01.44.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:44:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172936-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=@intel.com header.s=Intel header.b=eLlvpm0q; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-172936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 7B9621C2097D for ; Wed, 8 May 2024 08:44:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7D56535D0; Wed, 8 May 2024 08:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eLlvpm0q" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 7CE8A28FF; Wed, 8 May 2024 08:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715157846; cv=none; b=LA8xNuBcwk08E9Ho+6n+jAmcoKZ1kH/CEfYjbRIeR0cMc0BhaRLWPGWwN17o4/VQstByk0HzeLUM9N5LcMdoevl0MdbG2auehV2YcdtvI7bRL+I8POrTG4GQsyzQ2IoTRkIngAuqumrEP6wEfiRHGOrgdwOrHEJO1zbKEbZjdA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715157846; c=relaxed/simple; bh=EIWAO/oS2DvpnpR2Kb+vwzKu0pOKwN71qpcxPw4cnbQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=aOdtBQGRPTlFVXaR+j8RTqTFFwh8a1Mvp0nl9smTZU4JFpYdjSRT38jFVq/R8nR7haQ1/XYdVz6KwvJZG/vMy4WQL2MF60L61rJoruMBvg3IJzNx5JacSKFnEw/EI1imWOL4GbIgpVfYEyI8f5VIVNhcPBodPLdmb9zw5NTegR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eLlvpm0q; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715157845; x=1746693845; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=EIWAO/oS2DvpnpR2Kb+vwzKu0pOKwN71qpcxPw4cnbQ=; b=eLlvpm0qUF4WC5f7Kcuh0MOBi3ZfwIAB5688XFcHKmbD4OsCU+0LMid4 VOVY3UYSP+p1bLXL1/smgeRifbUHyWv01YvyU5djml7IaRUefiBYAU+ey HYvLnc0FvuKTPL+0kku/klf+DL3IO6EP/NB28MIrvvBe6FmSQIc2CHKny 7BaDPHPZoB10bdLpWrZfS/fK82bAtqNu290dJvMCRbaYCsG17wkQmbRLi xtXt1Wl9XlbnAzmglrHHAu4jT1KdRHGcaFRdTsww5W67rv531VGOO/Jta SxDX/nJuUsdyJRzlLa7lfgXIIEIpPbest0Chmpd59whQbOWYYk8K4kuPZ g==; X-CSE-ConnectionGUID: HsuiSElYT6uGUXN2FcJCLg== X-CSE-MsgGUID: uPq76WX8TPKGSzvomrxT0Q== X-IronPort-AV: E=McAfee;i="6600,9927,11066"; a="22157077" X-IronPort-AV: E=Sophos;i="6.08,144,1712646000"; d="scan'208";a="22157077" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 01:44:04 -0700 X-CSE-ConnectionGUID: BUHs8ofaQuaFaDI+23XuYg== X-CSE-MsgGUID: lnq/6KdBSl2/VjOScGEihQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,144,1712646000"; d="scan'208";a="52025594" Received: from dhhellew-desk2.ger.corp.intel.com.ger.corp.intel.com (HELO localhost) ([10.245.246.76]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 01:43:59 -0700 From: Jani Nikula To: Abhinav Kumar , freedreno@lists.freedesktop.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, seanpaul@chromium.org, swboyd@chromium.org, quic_jesszhan@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: Re: [PATCH] drm/msm: remove python 3.9 dependency for compiling msm In-Reply-To: <20240507230440.3384949-1-quic_abhinavk@quicinc.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240507230440.3384949-1-quic_abhinavk@quicinc.com> Date: Wed, 08 May 2024 11:43:56 +0300 Message-ID: <87a5l0lmlv.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, 07 May 2024, Abhinav Kumar wrote: > Since commit 5acf49119630 ("drm/msm: import gen_header.py script from Mesa"), > compilation is broken on machines having python versions older than 3.9 > due to dependency on argparse.BooleanOptionalAction. Is it now okay to require Python for the build? Not listed in Documentation/process/changes.rst. BR, Jani. > > Switch to use simple bool for the validate flag to remove the dependency. > > Fixes: 5acf49119630 ("drm/msm: import gen_header.py script from Mesa") > Signed-off-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/registers/gen_header.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/msm/registers/gen_header.py b/drivers/gpu/drm/msm/registers/gen_header.py > index fc3bfdc991d2..3926485bb197 100644 > --- a/drivers/gpu/drm/msm/registers/gen_header.py > +++ b/drivers/gpu/drm/msm/registers/gen_header.py > @@ -538,7 +538,7 @@ class Parser(object): > self.variants.add(reg.domain) > > def do_validate(self, schemafile): > - if self.validate == False: > + if not self.validate: > return > > try: > @@ -948,7 +948,8 @@ def main(): > parser = argparse.ArgumentParser() > parser.add_argument('--rnn', type=str, required=True) > parser.add_argument('--xml', type=str, required=True) > - parser.add_argument('--validate', action=argparse.BooleanOptionalAction) > + parser.add_argument('--validate', default=False, action='store_true') > + parser.add_argument('--no-validate', dest='validate', action='store_false') > > subparsers = parser.add_subparsers() > subparsers.required = True -- Jani Nikula, Intel