From nobody Tue Dec 2 02:42:38 2025 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 BDA3F3A1CE5 for ; Tue, 18 Nov 2025 16:28:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763483303; cv=none; b=D6bJ7m5o47VDhRYnZerlc6FGPMONOcNXg9/bSLVbMQNEejpEhfqZlNt9YaF+wpEnHl56jq/VV8PetI2ylbPChnYxH0Mps28DI6ORRcKgL77oLlvRgnu7+LKF/2n5JZ8WdSJx9CdPCZ3G7baNZ4LN3rQUwLR058CwuiNUGBuDv3k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763483303; c=relaxed/simple; bh=N+Q6R1XCPpnjYjCPIVjDvoCYHZZK5o2FhEXZTAuBfSI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wy6GUajnF7KFW0A6IbW61gHVZCsKfw6lSuYiMFc+rxpe74ztNrpcOXBPKptzSnrrWlp7PRsKxv0YByAVu7rEqb2hapyhsTW9/YuVnW+W7GD1yck/wlm2IO+Wiv/veVjGGCiHrWdJzvMV49MSKdixnuG1pj6dTDdE7CdrgcOf0gs= 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=DkR4k6Df; arc=none smtp.client-ip=209.85.128.46 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="DkR4k6Df" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-47775fb6cb4so41174485e9.0 for ; Tue, 18 Nov 2025 08:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763483300; x=1764088100; 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=s7Cp0IQzkfAKXAya/Lg64jqfJ1j/YiOKK8shdTQX7JE=; b=DkR4k6DfQXEX41hXJ+VFjkJgiwaGWgeb4zcRDr+BaXJl4y5e2WeVgzRqpG41cTKgZj Ei4HX0Gg9iyLLfhsxBXHbkMC0weWxDYn8NALvZIDmlAzMe0AO1vipxzhJPXzoxaEKJFt r6XBipsFcsepkGSyznV4rDRHZFqnijjRJAkL7MUR+LPHzUxgwrgHYtJs31wfDbLMdIbI FwoXpcAp3L2LHdvwS4yTMKpylYorpuga+okLTeDiBOK0nS+sJ0retiYWocgHKtU0nkeV S08P+Y0KFd4UAzHmp/Rp4OPwnbvxXTiGL8WU1ATxOJkOQLsyx+tQkBlhGYaaCyY8pr9L JCKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763483300; x=1764088100; 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=s7Cp0IQzkfAKXAya/Lg64jqfJ1j/YiOKK8shdTQX7JE=; b=oCVMRbRo+jwHrKRAZtCsdAeWQybp3qStD7UP60Iw4O6GJSaaxIb3d+CcOU8FPOzo7B P0s43wNpCRspC5JIfOQ072Je9deASN5R2QBSpiG4GZqohgN6N3qTPtvhJuCW4z/mGMZm Sx/68WDTbYwRWXqo8VsDXvrUwIQxaGrGJG5uEAHjJDM36ARcNxjitYvBI8BDzyJBDbtz MBySFsCksj3gzr1aQdaAXeE11rb5wBV8ns2CiTNb5b+5Cy/6CFeGzmWjwuuVZ7vSpggR euQt/poWkBFpM465L5UB2VrzQkX99SvQRfdzI78ZUXlvlccun8HM/5oPTVFs4lwIS5ox eulg== X-Forwarded-Encrypted: i=1; AJvYcCU20G2EkI3sJmmKs4gZ5USvVpTtQbgjdI+DI7HiKrNH4QlI87yCUEY6MYShQOXb1UyRjDxrhTp8/f/QvAM=@vger.kernel.org X-Gm-Message-State: AOJu0YwPa0ICLefC9HQFkAsOMx8AFc8IittAotYDH8rUPKXb1PYIXTG3 eurh+9T/o+msQCs5+i7XT9+Z+d+945pI4l3GtAa44APJyv5GmEFobCCvwLqnScgL393Ir/dVg03 RQlZGHQ8= X-Gm-Gg: ASbGnctS0Z8YiZqH367g6HzFC/0siyATznbp0GZWcDxb4mPTUWNqEDEEMhOLfri7SoL 2gHIij5vs2NJtOOr8LV74AxXAA2RXyHaA1ewReE93ubzRmFEoTSg1cYLcdjVSdN7nDFi+kimLU3 OAeK+g/4e4eF0FxpYQ0KpYf1RMDyw4q5xpQL7q6KFed3QX/5ou5gXPUjsSz35NPdhaQu9aw1EZG MJIKzKLceu5lwSPYkvc4bOkfHk2U2UEUETrEzu2qGSwxwSEFqmiv/EnNVbKMgSFZF010lZwcGxs Fac/Pd2pZenTuLfGs5AJxthUbLJFWKKA9NiYqQV/6wowODhuXxL7SElWH32ZDxq56/DyrNoGEAf RNdYsQbqixV5J5MjMWEpobLbbLy2/sNC9RXiEzS1YdF6JLTdTQ6O0w9Rp35nqoEXfYEQEDRWUBV JYa/g8GLuMdX6+2txQmHHb X-Google-Smtp-Source: AGHT+IGvkVieQt1G4+tUhXjqKDIAxEgYuGjCa+t00ADvjlhFJ4APSPCkFPkbv/kD5N1u2T3cDsB68w== X-Received: by 2002:a05:600c:a49:b0:475:e007:baf1 with SMTP id 5b1f17b1804b1-4778feadb6dmr146870515e9.34.1763483299512; Tue, 18 Nov 2025 08:28:19 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477a9dea7fcsm20369125e9.8.2025.11.18.08.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Nov 2025 08:28:19 -0800 (PST) From: James Clark Date: Tue, 18 Nov 2025 16:27:57 +0000 Subject: [PATCH v5 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: <20251118-james-cs-syncfreq-v5-7-82efd7b1a751@linaro.org> References: <20251118-james-cs-syncfreq-v5-0-82efd7b1a751@linaro.org> In-Reply-To: <20251118-james-cs-syncfreq-v5-0-82efd7b1a751@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 Signed-off-by: James Clark Reviewed-by: Mike Leach --- 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