From nobody Mon Dec 1 23:02:18 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 2177831BC96 for ; Wed, 26 Nov 2025 10:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764154672; cv=none; b=KMp1Hr0zhIdgs3iQxpqjLYYsEZ9inmAwq/bPhMzfMg2HqUOIZa7dwr4stMS2KEJ/VjktHuGaXv3Wekq3dTHZsOE/YT9aozaCwkJAHmVQy+G2cMBIOxrzPvnY8GjaMvRSeuoLcScN0k9/l2jSMXJt4sLUWDr8Pf2gTe7SFYFo4Qo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764154672; c=relaxed/simple; bh=yKxlaA0VFabZYUg02x6IGTfX6s+yKxOXOrwNzywmdiU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dmETOXwaFWYNOXcImvANaylAkKm44X3E4NftIVNpgU24hteEl89RAgeR7qSdgZehM/UBfNhuTjsrvUSgquQsakHx5aIClFtVaxORbsTmlDzsWd0GaUZHwIrl3a1NGuZiMRXuhriRqPPTfIqT+OwrdCqvtgeCiCa/TgJvdyDYZA0= 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=IX4DZFP6; arc=none smtp.client-ip=209.85.128.47 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="IX4DZFP6" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-477b1cc8fb4so37551335e9.1 for ; Wed, 26 Nov 2025 02:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764154668; x=1764759468; 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=HUVV/T8T4EDM+0Q4tOFA1c2x/rxW95efuxR6QK7Q7kM=; b=IX4DZFP6GgL6OQMuA1cT04e3F1y/lQlEgcCg/vlA9ZQx/AFPxSfywOPG5APf6RuLsJ +9Jwigd4EiU8GdhAFcaTcW/UPTMZGzGqLFBiyLCftwKbuxtOjCwLSNQW4Wx4tP496JEW jls3cOff3l8I+gfTv6o3E/rhixq2FaPc4O//+XvLVEQUmtuYX9sIOrefBLN0OErlzCj0 qGEHTkcxZnfnYD9+9AwODhiPCF52dxJeLKbQFx10lNRwVku4PfOkHVStQ49QWMsw1yA/ B8mwbi2sHHWkqz2EtvVyjHWOBTNGzk1N+b1NdUgs0En3FNt2kguUOxsBL+oZxmxfeoZq hloQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764154668; x=1764759468; 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=HUVV/T8T4EDM+0Q4tOFA1c2x/rxW95efuxR6QK7Q7kM=; b=ftTkwPV2aBOk0EKBxDDweP0tNvu5gXAWv3322ZyJcwbmkB6UHvCuTNcaIFnETalqt9 xfh0cBEvhsuR0dqLepL3BWMZNV4Bw+CD8G4gfgRTPstMV4dXwNkODUQEs+Hcwm7nt4vO i1aSax4LLZZ5/W5ODfomkL0kK7q4HH+NEvYYxi56KJ+BusQ4+/obPfMRk65O3W4aKaLn L8GOfrqLq04UhDJ7OmRr3Y10hDMASqI6T8UXEyfrQIzByc5wqUxneVGSSuYPTYd1jQ3K VajCED7sbnH4FbCzS0jBlHqVBgo0jhkbIC6+W6egH+9baVFzC8u1nowvXY71ebtU2Des PQ2g== X-Forwarded-Encrypted: i=1; AJvYcCUGz+o3AuTxcEnTyM0hfD0hEUIDzmKsiod37cDiJhsoXydf1b1qQ8Kchr70fgGRHSI7MCfgzQOd0sce/os=@vger.kernel.org X-Gm-Message-State: AOJu0YwGBzc8ilZfrbSMSfYactbqqYPqgTln85+oge29FSiunKM7GrJY SEB7UhN8UxhXmA/qXIh8E43TcIguKkUvmvyNOldCXNn1MSBs0nEYn4NF6eNBb7+iKixlYNac6Dc /E2Jt1x4= X-Gm-Gg: ASbGncsqTpiZQLcBoFPXRGMEZD+aEzZmmBqr+dYz4H5LuLAEPF6FuYBxReuYEBQS9bY 9P3GCx6AfjPI1Fg62UGVtcxPLbVBp/CRZ3dxjFqyEIXiBfDhRaur318s/+vv32DbPOeBrZLwVDW aFay+LdXh/Oayt3tHAi4/wYNcIkmWMVy1WTwk2/LTW9Yov7j1fKj9NKogjI0D2VsGwUy602Hyw7 3lQ9/4JbFhcbWOFEBo8U1Vtaj/DollDVlQiqZPjC3qLNtSm7+WiCg0pIuZOxKh2p7PWtnOFT4wX p6iTU4gJ3BwEPOKmoHQ9QqvE8uI1uD4chMqcGAixwQbeQRJwQgC+IncyF82vRJkJGr7QjgQv/3o aTcqZnDa5VEMlRT1OMP4Fbu9pQ0DW2PY1Jh6k3yyFbdmd5tqjc8NYVDG6N/VY4Rv5GWJmHQ8Vgh uuvk8Q+5KpPlyCiIwAeHWo4nj4hL67pv8= X-Google-Smtp-Source: AGHT+IHr9OD/bYa7kCE9wYLO/nvBpjL2TDJwlh9xxTIxpSRsCk2PvkdlXc82doB+y4Iey6KXw6usdw== X-Received: by 2002:a05:600c:3b11:b0:477:8ba7:fe17 with SMTP id 5b1f17b1804b1-47904ac464bmr56206475e9.7.1764154668436; Wed, 26 Nov 2025 02:57:48 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4790ade13ddsm36991765e9.8.2025.11.26.02.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Nov 2025 02:57:48 -0800 (PST) From: James Clark Date: Wed, 26 Nov 2025 10:54:36 +0000 Subject: [PATCH v7 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: <20251126-james-cs-syncfreq-v7-7-7fae5e0e5e16@linaro.org> References: <20251126-james-cs-syncfreq-v7-0-7fae5e0e5e16@linaro.org> In-Reply-To: <20251126-james-cs-syncfreq-v7-0-7fae5e0e5e16@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 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