From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D8B3C33CAC for ; Mon, 3 Feb 2020 13:32:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DC5F2087E for ; Mon, 3 Feb 2020 13:32:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728289AbgBCNcf (ORCPT ); Mon, 3 Feb 2020 08:32:35 -0500 Received: from mga11.intel.com ([192.55.52.93]:11503 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728280AbgBCNcf (ORCPT ); Mon, 3 Feb 2020 08:32:35 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Feb 2020 05:32:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,398,1574150400"; d="scan'208";a="337198559" Received: from kuha.fi.intel.com ([10.237.72.53]) by fmsmga001.fm.intel.com with SMTP; 03 Feb 2020 05:32:32 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 03 Feb 2020 15:32:31 +0200 Date: Mon, 3 Feb 2020 15:32:31 +0200 From: Heikki Krogerus To: "Shah, Nehal-bakulchandra" Cc: ajayg@nvidia.com, linux-usb@vger.kernel.org Subject: Re: UCSI:CCG: AMD Platform Message-ID: <20200203133231.GB29050@kuha.fi.intel.com> References: <0fa0fc36-ce51-046a-32ae-9dbb7452c1c4@amd.com> <20200203132808.GA29050@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200203132808.GA29050@kuha.fi.intel.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Mon, Feb 03, 2020 at 03:28:11PM +0200, Heikki Krogerus wrote: > Hi, > > On Mon, Feb 03, 2020 at 10:52:52AM +0530, Shah, Nehal-bakulchandra wrote: > > Currently i am working on enabling UCSI support > > for CCGx based controller on AMD GPU Cards. > > > > Now i am observing the issue reported here when > > i unplug the cable. > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1762031 > > > > Also would like to know is there any way we can > > get user level notifications for UCSI? > > If you want to see the actual UCSI notification in user space, then > that is not possible, but the driver does produce trace output, and I > would actually like to see what we got there. You need debugfs to be > mounted. Then try the following: > > # Unload all UCSI modules > modprobe -r ucsi_acpi > > # At this point you should plug-in the problematic device > > # Reload the UCSI core module > modprobe typec_ucsi > > # Enable UCSI tracing > echo 1 > /sys/kernel/debug/tracing/events/ucsi/enable > > # Now reload the ACPI glue driver > modprobe ucsi_acpi > > # Unplug the problematic device so that you see the error > > # Finally dump the trace output > cat /sys/kernel/debug/tracing/trace > > So if that works, please send the trace output to me. Actually, first things first. Please share your dmesg output. Are you using ucsi_acpi or ucsi_ccg glue driver? thanks, -- heikki