From nobody Tue Dec 2 02:29:12 2025 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 93D6836C5B3 for ; Wed, 19 Nov 2025 16:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763569109; cv=none; b=gXSqMVSjFt8bjufLVpL8F3hqojWZcw83B2ZHd0a0BF5H2NEXzyAs14KJfFloxD0ESKG809vK5V5TCkkX/APAvseaGzV9scSQmyTg4CXP6eA1Kk7q9/EWrGH0j+P2Nv7L1D1XUrjPEu6m7I69me0lCpbSrjOEH9VBevtINHxnzQ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763569109; c=relaxed/simple; bh=N+Q6R1XCPpnjYjCPIVjDvoCYHZZK5o2FhEXZTAuBfSI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jBiOqgYHUG56vvT9YjArwplWcPXDK3D8YDizVkndS15XZxXpb7NLthUESR1Nw3Z2cDhpqUX0pO6AMSqfIjUHLkf5tPaAOr9lvmuWk2tKSoYNqY6LT4uZKXVKRlKU77KBXMDTlyy+oQfIaOYRTOgg8hv04wqJYB67+RH8wvQ9KW0= 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=l1c4pYum; arc=none smtp.client-ip=209.85.128.52 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="l1c4pYum" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-477a2ab455fso38902775e9.3 for ; Wed, 19 Nov 2025 08:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763569106; x=1764173906; 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=l1c4pYumW61zGl7kO6koiKP98jNxJkmDJa9MsOcKV7hii+iJIsZGH9HwDZysYHkUmo F/TFEVwxd8Vb8v5SK1i1cAcIcYHIrtqtGcHTwntQzlEfvMHWyrZzpB7BTnVTBGthzUj4 zQll3nmPvl5v8PpWqzC/095l1CxJG7fiKdu6wkS8jtbZlUC3dqhWVK/PI5NlfFFqFJs4 iIzvOdlG2EmUwRX4sulw3puWesLiqiXDTLeBhgjldpuUuruX8J7vIeQvfgw62wuwOpkh p/8bXONWQAJPu416ZvexOcZHHkEJjGwK9+Ab0d7Be5OXgrNvR+o2OOSmctgE+UgL9qv1 PMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763569106; x=1764173906; 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=JUj5eEPZf5OuuJ8P4FPmQgjk20GpbCuNL9YcZQ/Sk0ThbEDGemphbVFX9WTpcttWXq 6bvkVGxCmnlwgWqBT3L/QQZbreLo7T19bi0NFYtaFa2YyRKoOeXnzPshngTwOEIWUUJI E4q+5j1DVg9W52y7veQ4jbykRzcl0W+/lutkSnAEnXAizI3v6onei5O8w77iUBTjT2Hq ZQsrENAbzRiFHTWhN8AXvnaYLi/5WzUjE2cGJMXD1F5wd3B6hHH+7BdesNXwKJQ+JNIK JJkk49hio5zTHVuHC9+3UQ/kolXti0z80P0vG/e+qPe6wBIm9WGEgLnjr6ENH37mHlz7 QVCg== X-Forwarded-Encrypted: i=1; AJvYcCXiOnK0wpG19GcHD9IyG2MqMJdFHABOw1UyxSy7WxaOHyfcsm+Wh5ngbhrVP2yQ+SrSAWHX8c0JHXzdoBE=@vger.kernel.org X-Gm-Message-State: AOJu0YyvvI5937FimTLvHcOCnYdGGdl+BPwFeSLto65lYzxscnoGB4NZ 2ESpZy7FIhhbURt6AKUO8G384dJCxtxFFB1kQaSphv/hpr1e2IsPWUEC/jGon23Gt20= X-Gm-Gg: ASbGncsMn9O/LxYFJiGmG9N7yc2JnZufaz9Hcb5JKGreMTP/9kXiHQ7/CGTNdjhnq5e vCHX3SWkd6iFSBKuvEv5OvqTJJm6N+ReTcT0dRVQoixEh2xLBQKFNfM4UXtkRARjdFJ6HHrkoW0 g26vdsgO7lperjwRyzqUqzN4u0Yc1sBnf2Fxp2icAZAyI8hV15W37KVeqGz5WYsSl7DeWVClIhh 8zncJvs1ZgvO9p8xovwfj2i/GsUel68dzr87DWO/HuZQdL5VywQze+X2PFBFnwT79e0y522FmAk fDFD6/rahWN869dUIGjTE6VkTk9s71b8Y60BQsrESGe5Iyb6jqYYoORnTCcBIacITRvNluHPRDz Jhhd2fm+rTwtVjQYzCPlJa/NYCeJN8spdhUGOmNJH+EGqs++w+GP8I5JJxXdty48exRxJpPC335 cOsyfak+x4OQspWy05dUrs X-Google-Smtp-Source: AGHT+IFq5cBVYvvZ+7oVK13tQ0GTA3nshqd52t9/fz8kEaZfjoRl+N1fTrpRLi6jbMCiDb9ubVJALg== X-Received: by 2002:a05:600c:35d6:b0:477:ae31:1311 with SMTP id 5b1f17b1804b1-477ae3116a6mr51188885e9.13.1763569105548; Wed, 19 Nov 2025 08:18:25 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477b10142d3sm63205425e9.5.2025.11.19.08.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 08:18:25 -0800 (PST) From: James Clark Date: Wed, 19 Nov 2025 16:18:03 +0000 Subject: [PATCH v6 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: <20251119-james-cs-syncfreq-v6-7-740d24a29e51@linaro.org> References: <20251119-james-cs-syncfreq-v6-0-740d24a29e51@linaro.org> In-Reply-To: <20251119-james-cs-syncfreq-v6-0-740d24a29e51@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 --- 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