From nobody Mon Dec 1 22:35:07 2025 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 BD98A328272 for ; Fri, 28 Nov 2025 11:55:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764330959; cv=none; b=mfEdyZ5IDY6YdWLZDWNt4eaOS1gdgZQosbh4tWa/Q8qkALbF/GA64RGnhLAzVS4KwxHmIDrly+/uEPuE7tOHYuIALMR/BxzeVtigQQV1yPeEumnM7qzRYM0Z65dC2LmJ2iFSNO2PrE2boN6AA/SgpVs9y1UjuJRuKpALbPlDnyE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764330959; c=relaxed/simple; bh=qqoEOyHFgkQ+/d+FmDiZIMG2BecOO8j1vwceae6L9yw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZIhb7NacoPZC9QCojTNRVqzMnQlf4AfIb53NZMNkIiyYBlJJkXUvlrS+zb2sblqYka2sDgznN3nFBxMbuxbMbEMpm5/CTG6T6KQ5n3+N6IvD3jsNFkae6Wyw3fxh21rg0QNbeR32jJJqBDxPvH635iQn1vq5VIpp9kFHfi9IqCs= 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=DHgMhcaa; arc=none smtp.client-ip=209.85.128.42 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DHgMhcaa" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-477a219dbcaso15029225e9.3 for ; Fri, 28 Nov 2025 03:55:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764330956; x=1764935756; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CMHK8eau4h9JU7tjhkGUHgs7VKxsV93yd4KGWWLggZo=; b=DHgMhcaaS3l9oufysKqZMpehm878tS6uaJGkjsBaAKAvx4lPRwGpnnNza/uLY/aMxs YevtwTnkewD02BavV88pcOS8PjWIzfq2PE6Zj6A/lG9W5AtmMVoe8KpfTX8dK0ch+HAy SbnoMRCrlR26bnvFFIJvrQq2LKak4UXJSIkKvD0LCTgUE60cO4z8NuBeccuOgFXtHLJw ronpzkugF++3FJDIqxgd+2o1lMezB98pT9/1PE+E/pblmmzabwLCXOLHEZ3nUqMzDZu4 t84zTscUfsr2YpnqMnSyTGk5jSdk5yc3iAXFjsimzypezROOlFZxc16J+sE9q1rFut0M wKXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764330956; x=1764935756; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=CMHK8eau4h9JU7tjhkGUHgs7VKxsV93yd4KGWWLggZo=; b=Z3Rbe6kCRK452L+EIewr1H1ApQEXL8TBOPo5Mncm9UvGwF3m3pLn49FwUdXzu3s8AR KkZ4KeYFGOCgX8N3SEwjycXYXDd7LtI15FMj/4LArafHUHI5par3UgGJYzQDZiSpqckl 9jexHFAIC2eNqBiuvgZssgt/G/yqVwhWJ3NH+oucdupaz7DmsYTNfCipV3HTbELZHXfL rL9VjgNu0jEyqIME7IG657I22PZN36Em4vYdSPsc9LE3cWemF0E/p2BycnD+MHowNGM6 JAiGgxcV2Mhn+85qgnz3bRK7R2/pT5uZ0y0LEu56BiA+357DFRV3e3ThEhV+OmyQwuQo LuwQ== X-Forwarded-Encrypted: i=1; AJvYcCUtN0LnlAjOY1Bnh1BVBiaOlbufhdycXIppLhmWHQsP7NMJfL0gRDNseFEV3I9gDDeFxRA00VPABkzzNmY=@vger.kernel.org X-Gm-Message-State: AOJu0YzThc0zsFtSJ4/VsvE3+P7m9KEgWz66CtIw0+u6g78Tt/W3mCtK Im1eDcTWRmOmunRFso9YfgK8YtPfVNKxvIgRrKT6U1EgW1GHfKF6Kzcu2m4Ezh+sfNo= X-Gm-Gg: ASbGnctOFKV7b0pWYmb6pGKYPPX09yfovyMbltHlGZSXKFun3tv3VR/xzdOz5AhIbtg +Yt5Qdax6G7ti84Dw0o6O8MIoX9964B5DplzGuelAd8bqB/5ooHGlLHjeUvJZXp9CDpLqLmig5B L/IM4kRuYf+otEWZMNyooTmqVGILgOB0drlBSDmD9xny7eVSgaWkQm8EnFTV6sDtSCgpipyIHNU 0yxmnamyJ2gRoAUiTbglcBdDevbIJZctbNBkPIoPNTZLDR8va9W8XzkKs9jHfvk3wnVSyx0RyQQ EQEHDNk2iDwvoxBeeRgWynHDBUXOpiNPKrf2luDVppmJMVm4uAhw8iIsiJamWtOx1maNFij7XfO 2pEgnYLR97e0q27NYWokfRzOHiSHQgyA2wlmisJgyUnXriRpGhzuGGPZTApfsDnhN0TOcKD0paS +7oz9GrWxxflLotdLQhu5v X-Google-Smtp-Source: AGHT+IGeMULI7kQJcckUl8PhFqbeqzvrMMwqX3WFQrSju3KHYudqhjgjNPWItcVO3ZzItgHnZsRjuw== X-Received: by 2002:a05:600c:4e88:b0:46e:7247:cbc0 with SMTP id 5b1f17b1804b1-477c01d4af2mr277966615e9.18.1764330956063; Fri, 28 Nov 2025 03:55:56 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4790adc8bc7sm158974465e9.1.2025.11.28.03.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Nov 2025 03:55:55 -0800 (PST) From: James Clark Date: Fri, 28 Nov 2025 11:55:19 +0000 Subject: [PATCH v8 07/13] coresight: Don't reject unrecognized ETMv3 format attributes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251128-james-cs-syncfreq-v8-7-4d319764cc58@linaro.org> References: <20251128-james-cs-syncfreq-v8-0-4d319764cc58@linaro.org> In-Reply-To: <20251128-james-cs-syncfreq-v8-0-4d319764cc58@linaro.org> To: Suzuki K Poulose , Mike Leach , Alexander Shishkin , Jonathan Corbet , Leo Yan , Randy Dunlap Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 config isn't the only field, there are also config1, config2, etc. Rejecting unrecognized attributes is therefore inconsistent as it wasn't done for all fields. It was only necessary when we were directly programming attr->config into ETMCR and didn't hide the unsupported fields, but now it's not needed so remove it. Reviewed-by: Leo Yan Reviewed-by: Mike Leach Tested-by: Leo Yan Signed-off-by: James Clark --- drivers/hwtracing/coresight/coresight-etm3x-core.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x-core.c b/drivers/h= wtracing/coresight/coresight-etm3x-core.c index 4511fc2f8d72..584d653eda81 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm3x-core.c @@ -333,13 +333,6 @@ static int etm_parse_event_config(struct etm_drvdata *= drvdata, if (config->mode) etm_config_trace_mode(config); =20 - /* - * At this time only cycle accurate, return stack and timestamp - * options are available. - */ - if (attr->config & ~ETM3X_SUPPORTED_OPTIONS) - return -EINVAL; - config->ctrl =3D 0; =20 if (ATTR_CFG_GET_FLD(attr, cycacc)) --=20 2.34.1