Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp149491rdh; Wed, 22 Nov 2023 22:58:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr9WQ1vtQL2Xpr5rAny+CliB0xnKJYc+RJMuCWkozEuVy6XEu1YUXtnQkuvrPegjkW9VSq X-Received: by 2002:a9d:63d4:0:b0:6c6:4e73:f83d with SMTP id e20-20020a9d63d4000000b006c64e73f83dmr5689395otl.32.1700722696155; Wed, 22 Nov 2023 22:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700722696; cv=none; d=google.com; s=arc-20160816; b=NhIcceg51JthQYC3MNVsV5uqJpAe5bjkqxqHC9p2XpOi+qUlKMh9solsrHnkAElPag 3+pR2XtnsllUhXjSoUuS/+I4z2wXdKpNf8ijqWDNdjATIOoFAgz1RzcVHVqirOKY5CR/ kFr9sIYkMLq/8hwe5h5e1MJMTA2ljfrp0fPCRhgYFkI6ChwXsW4z5xNoj5ovTvENtQNZ FYz0ucgZgBK0eCdmb0P7IF5oHzSelFiDuGNSjKEpIvsG5CCOxnE4pdgN3hYoLzGfInth ZKBdJqhW3uVijIMSe+Bca9TVbwzXm67RtkdBFU1ScZU5oLIdDmIajjn91oJqvxoO4nZ4 nO+Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UnbjshRFMGk805dawF/fmH0HZp9KB3lFVPSzEMWSMdU=; fh=6W2tm9Wxk7h30dTl22LEHZteS17rrlfpKBFLJrtNQiI=; b=ONEYydHJInFH2xtNOGrA6ilalR+K9puku5rp3wAV9smrZDfNwfyP6lI2voYTEes53/ C1x23sFU2v4wtJbmOk7M4oHYi4n9qGBXLhFbrTHpSidLLM+3jFtCVcFjo7mmvFmpiNXN EWCX4kjHSTWtAb5Zzyx276yk96tnxsnQGLYCRoSZ+wijTC0nOJVTIRrxJ7EaCOWg/9BS 7Wv5wC7Se358deqT5tAofBOkNZfr48T2B+wdmZB6PWU7T9M+IY5nluCrnqFDCb8fh0pd k9Tcgjx18VG/u5OfKH8wm25TH1USjizf9rsCnApmnNgUJOtQTcmEj+x+25h8Z3+DczXI MD4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ajJzcNbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 24-20020a631658000000b005b9a4673310si722039pgw.326.2023.11.22.22.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 22:58:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ajJzcNbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 96F1183B3632; Wed, 22 Nov 2023 22:58:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234675AbjKWG5r (ORCPT + 99 others); Thu, 23 Nov 2023 01:57:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234118AbjKWG5m (ORCPT ); Thu, 23 Nov 2023 01:57:42 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDD76D5A; Wed, 22 Nov 2023 22:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700722669; x=1732258669; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vSSKqxFMQeGyy+U4Vp/A4nwnDKKfSQTSbRhi17Xi79c=; b=ajJzcNbj1TRGG8uF7Mu+lH7uLLYyICMA4PGgKNf9JMC9MoUmgKBKDsdw qSe3vaTPon8rHbMWpGkrzXi1frDy3RbBq48u0kRjoJDhRgi8HEHPSfq7z 1CF0kE477VzuKaKQB717PT3fnvCVX38c886dpMYGThrx6rH0lwkLn95r2 C7OlJvtPMVBIhbxtsAp1RCCb+Ux9sobEjcI/P0O8bYwIi/VUDwtJaVUfG hNoSXn1pV6LN551Xa8tsCJY7jIjq2DmZ23BEzc9Y7MJu0pgT+HC+xlDpv PV923F+Y9ROrHk+XAZ7ktOma60jqX1m0+A9vqRBJIYPaYa3PPRffM67F2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="456544969" X-IronPort-AV: E=Sophos;i="6.04,220,1695711600"; d="scan'208";a="456544969" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 22:57:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="911079181" X-IronPort-AV: E=Sophos;i="6.04,220,1695711600"; d="scan'208";a="911079181" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 22 Nov 2023 22:57:40 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id 4F8CC2A6; Thu, 23 Nov 2023 08:57:39 +0200 (EET) Date: Thu, 23 Nov 2023 08:57:39 +0200 From: Mika Westerberg To: Mario Limonciello Cc: Sanath S , Sanath S , andreas.noever@gmail.com, michael.jamet@intel.com, YehezkelShB@gmail.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [Patch v2] thunderbolt: Add quirk to reset downstream port Message-ID: <20231123065739.GC1074920@black.fi.intel.com> References: <20231122050639.19651-1-Sanath.S@amd.com> <20231122060316.GT1074920@black.fi.intel.com> <95ceae27-f88d-4915-870a-36cf9418f244@amd.com> <20231123060516.GB1074920@black.fi.intel.com> <1687d5aa-3c79-4bbf-ae4f-891208edab9b@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1687d5aa-3c79-4bbf-ae4f-891208edab9b@amd.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 22:58:09 -0800 (PST) On Thu, Nov 23, 2023 at 12:23:36AM -0600, Mario Limonciello wrote: > > It can be used to re-configure the link but also simple reset. > > > > Actually can we instead of the quirk in quirks.c add this to nhi.c and > > "host_reset". So that on these AMD controllers trigger host reset in the > > same way Windows would? > > > > That's DPR and probably host interface reset. In other words tie this to > > the host reset we are doing for USB4 v2 routers (this one adds it for > > USB4 v1 routers and enables it by default for AMD). > > Assuming this "works" how would you feel about just "aligning the behavior" > with Windows for all USB4 routers instead of just these AMD controllers and > USB4v2? I was thinking the same pretty much after I wrote the reply ;-) Yeah, I think it is worth a try. It may need some additional code from Intel side to get the host fully reset but I can do that myself on top.