From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 E75BA241695 for ; Mon, 3 Nov 2025 05:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762147496; cv=none; b=lG/vdzf2depujZFHebI1yNxdY8LGiER2yaymtc4kIL5tFCxMERWeYtd9g0awIEG1PSjAqybqGGGAlYoxNgd4HRdpLrusgNWBE9Ap6Yz3HveQG+VDEngs9aWmqq7qXXqpyYg4ZalsrXpTdbs+YHjfLkRlfXjq6qFKMUafULRVtN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762147496; c=relaxed/simple; bh=uilIMW8H9xyz5+Zkt1AKDQxeML2GO3cuH76cUPnpI6k=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=NhJ5XWIb/Trzmleyr40e9xJJaIJT3/ciCnBWXTVW9ZhXMfjj0V8sRB25iOdjV3vzx3SxozvofM9nePcTYN6JAkJTHzE0mHxBn26H9ZmwVB4627oOPKLL0HROG2qk1UlaPFrlDn9K9U0Za0lJNMcNCv3P/+XZqCOvsN7Plv8hTi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--badhri.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=G4VD1FwC; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--badhri.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="G4VD1FwC" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-27c62320f16so46619005ad.1 for ; Sun, 02 Nov 2025 21:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1762147494; x=1762752294; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=YCP+d3HGNTVLSyaVEuAKYg438nXFEAHL1ebhNeuJAzg=; b=G4VD1FwCEZ4N72jGjY3t89dSUESe3PM0zX/3scLxw1ZTpTN3xwYIiSyvx+DXdbFV0X 7nZPlApk26xDPrPHr2LI5nxF2dkFW3sc3Zfo1mzbJdJYpaOP1GH4pMYuei9If9Hgshxz SlOtPJ5zZHK2uIL2xJ+A4yy6AaLuAWaXLKDjO2232JtnWwIWqSHa11qQ+WsCnYdX8HDU k0L+oYHLHI9lJtJt/UQG2LS56Qtn1/6nYrRhoRvrJxpfI+VE7T+iZmegAjUDki1SGrBI GA5M9zXF8DWNLEtsRIEOfxvO5WKb8m9WJbmpdmfWQvih5wTfrNtq5Q3XA8dhDDxT3jgz pO1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762147494; x=1762752294; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YCP+d3HGNTVLSyaVEuAKYg438nXFEAHL1ebhNeuJAzg=; b=lqMf6WsE4kIbsMaYgVuclPQTDUb8RpL/wDxWNYFKsMHEGfT2FmE+YHU3KkFHe4n88V VYo1ioWE+h+Dc2xbEt5M/WcCK9KccfTQPlu1BrCg3SJlR7e30pSPuMmkJmEl1G+KGCU+ D+otb2GfRaxGG0AvPXtB9S8QQw2TpnHXq3f+qdRm7n/TfMk8h7ClTKdrD2OycNj57Vew bSJhjdfqTw2bg9M2l8+LeG2XLEEnp/iGV/+XM4EeQ66l7aNv6NybLaVh+csFDuZTA5fQ /ZTRr3g1sLjkAKAh6/DoASGAU3VjBm+7fVVu+KV+J8m/YHyUW76D5fQ4/QZhD9xy39Fz AfPw== X-Forwarded-Encrypted: i=1; AJvYcCWqGlrNKw5hFbbNrSuPPxDXudnAv6d7Jr0agcTZugS0BLeca/7NMaWg9yqn6STjsms5xvuOcQMlxfs=@vger.kernel.org X-Gm-Message-State: AOJu0YxCpeh6WSLo4+KUBqHQhbabNGTbqhxM0i4+dMBJo0N38l2LSvS8 amOfHsoQrbBvv+uOz1OSphdqsWlHPztBv6qQAhSDX9N8bYsitm6DZSPlefOT55bC5YsukenaEm/ z4mDzsg== X-Google-Smtp-Source: AGHT+IF7/Pn1hgg2i1g93sjcOH5bk7bVbGcbG0UO5+dnz2j8grS5JSSlFQ2hgGTC6kNaDPYXt9QbE67Lqy8= X-Received: from plsl2.prod.google.com ([2002:a17:903:2442:b0:268:c82:4230]) (user=badhri job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2348:b0:272:c95c:866 with SMTP id d9443c01a7336-2951a3b6b8amr164269915ad.20.1762147494261; Sun, 02 Nov 2025 21:24:54 -0800 (PST) Date: Mon, 3 Nov 2025 05:24:49 +0000 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.51.1.930.gacf6e81ea2-goog Message-ID: <20251103052450.1028813-1-badhri@google.com> Subject: [PATCH v2 0/1] TCPM logbuffer wraparound From: Badhri Jagan Sridharan To: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, badhri@google.com Cc: amitsd@google.com, kyletso@google.com, rdbabiera@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This is a follow up on a previous discussion: https://lore.kernel.org/lkml/20230410073134.488762-1-badhri@google.com/. With this change, TCPM log buffer will now wrap around when full and will not self-clear upon being read (dumped). A Kconfig option and a corresponding debugfs file node are introduced to allow opt-in back to the previous, non-wrapping, self-clearing behavior if required. This is an interim step while TCPM logging infrastructure is migrated to the standard event trace system. Badhri Jagan Sridharan (1): tcpm: Wraparound tcpm log and dont clear them when read drivers/usb/typec/tcpm/Kconfig | 8 ++++++ drivers/usb/typec/tcpm/tcpm.c | 51 ++++++++++++++++++++++++++++++++-- 2 files changed, 57 insertions(+), 2 deletions(-) base-commit: 18514fd70ea4ca9de137bb3bceeac1bac4bcad75 -- 2.51.1.930.gacf6e81ea2-goog