Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2022987rwn; Fri, 16 Sep 2022 04:42:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cBQ74xOxMB7D+6bEW4vhyEUrcXnClkTF8qla8aeZ2x24v80c/maySMYuvpaRzlQV35uHz X-Received: by 2002:a17:902:f60b:b0:178:6a49:d4e3 with SMTP id n11-20020a170902f60b00b001786a49d4e3mr4424988plg.75.1663328537618; Fri, 16 Sep 2022 04:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663328537; cv=none; d=google.com; s=arc-20160816; b=BEbX7QsYAZmorMxF+k5z7EQZpTv2XuMcxbEqKWSBSRw6XgNsKgIPWkQGKnUxqocY9U uUh+3arbFIrsQTczHSeqJIXLupVcGJgc+4AvVqHMiEltO4TBUIheiGX3V6TCzHeOHAsH brbvhojNkCmBO1FHjARbe2A4nv4Sdvu6Zxt3mV97gvVrkqTzdbgHYfkjh11+Shz/QEba 0jsDz3jTXqc6ZjxNmmZ9xYnU9+pqcAjjcfYTaY9XdevmMkpF87ecrRh3h2BHFBDhVZJx mFMEfRc7HuNDFVEi7rkkiDIKO/50Ix6kaBpW17P2QMXOp+ETIK1ZbMIUJ1EuwDneJ5TA DWHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cBfhut4pSn8xOixO/Dtw9naUVch8P4tZ8hKPY3k6SIk=; b=r5o1oFzMTtb8c9Ip4FY75Ik5bcV7ikCOoCTP56pzEyCxgk/3PG9cn8rID9Exc/NyNs tXvrAM5LvhMMdtKLkvXJE273D6tiMXKE3dLj0/Tnj4Mr/7R1on4Z7JMwNuw0M+wDe5g6 6+BQg1CvGlAYEkh+eLNOGQ0L+SZoTNEpehm0CsEEls/7IQLUPQmlNtl8PwOVo4zpQ5vV BZNK5/QCNELM7VE0sKR7VUzXkuMNDU7d2xMHDItftnci+1CmVFZ88nTtxhFsHoVmw8Bn OXmu/tq/vZWCp/xQQkuRG821vlmjrwJK0VPdDTRUZDbA+dC3F8f1nHc4MkfJmjQheVTx 7cKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XKI/dxb8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f127-20020a636a85000000b0043997c73895si4571912pgc.571.2022.09.16.04.42.04; Fri, 16 Sep 2022 04:42:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XKI/dxb8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbiIPK7r (ORCPT + 99 others); Fri, 16 Sep 2022 06:59:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232197AbiIPK6z (ORCPT ); Fri, 16 Sep 2022 06:58:55 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B7D4661C; Fri, 16 Sep 2022 03:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663325213; x=1694861213; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=VMKSeL1s3oVRo2Dzgzr3C8yNq48d9P4cYGuFF06QwJ4=; b=XKI/dxb8hvi1E8X9nzTV8gKrhuGSgcHFaptuQy+gpAKI2AoOjVqiS6nP umZEqi2ZWXN8dJtNVWXvDTNjKKW75WxOTMIkYQZ5abXSwslI0Z0j0ExOL 1G4H5zdacqJxgfURjbZf7FtzvZA/XL+I7Abzvap4UebqQ8tJzcRbpyRSR G9JyDdiYepCUoVZznoSC4kJomjAefbE9R9Bdis/Ynb689SGUZWDSINsEe Z18T6qurvUyS8bBF54ayRaMJjKIDnJzWSDSnrseGCP5boSlpyaS0d+coE OhVm9jPUKyYUaWKHKOAXtSXQvC4M4UFFELXFL9llwZtlQr9a1MNswa7cI Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="385256354" X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="385256354" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2022 03:46:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="760008114" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 16 Sep 2022 03:46:48 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 16 Sep 2022 13:46:47 +0300 Date: Fri, 16 Sep 2022 13:46:47 +0300 From: Heikki Krogerus To: Bastian Rieck Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, grzegorz.alibozek@gmail.com, andrew.co@free.fr, meven29@gmail.com, pchernik@gmail.com, jorge.cep.mart@gmail.com, danielmorgan@disroot.org, bernie@codewiz.org, saipavanchitta1998@gmail.com, rubin@starset.net, maniette@gmail.com, nate@kde.org Subject: Re: [RFC PATCH 0/2] usb: typec: ucsi: Check connection on resume Message-ID: References: <20220907115626.21976-1-heikki.krogerus@linux.intel.com> <27257661.hdJqBvvX10@nimue> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bastian, On Fri, Sep 09, 2022 at 09:22:50AM +0300, Heikki Krogerus wrote: > On Thu, Sep 08, 2022 at 07:01:34AM +0200, Bastian Rieck wrote: > > Dear Heikki, > > > > > I'm sending these as an RFC first because I'm not done testing. > > > > > > I made a small modification to my original proposal (in the bug > > > report). Now also connection during suspend should be covered. > > > > > > I would appreciate if you guys could test these again. If > > > everything works, and the bug is fixed, let me know, and I'll add > > > your Tested-by tags to the patches. > > > > > > > Thanks so much for these changes—that's awesome! I have just finished > > testing this against 5.19.7 (Arch Linux) with a Lenovo X1 (Gen 9). > > > > I am very happy to see that, as far as I can tell, the issue > > disappeared completely! > > > > However, I am receiving additional warnings via `journalctl` that I > > did not receive before; I have attached this trace as an additional > > log file. Nothing in there seems critical and I can confirm that the > > system continues to operate normally. I merely wanted to provide you > > with this additional information in case it is of relevance. > > > > Please let me know if there's anything else I can do here; I really > > appreciate the time you spent on this! > > Thank you for the report. That warning certainly needs to be sorted > out before I send the final versions. I'll try to reproduce that. I'm not getting anywhere with this one. Could you provide me with the trace output from both module and ucsi events? To enable those events - assuming debugfs is mounted to /sys/kernel/debug: % echo 1 > /sys/kernel/debug/tracing/events/ucsi/enable % echo 1 > /sys/kernel/debug/tracing/events/module/enable Run the suspend resume cycle, and then dump the trace output to a file: % cat /sys/kernel/debug/tracing/trace > ucsi_trace thanks, -- heikki