Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2475679lqb; Tue, 28 May 2024 00:25:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxJsOKhJ3Il4cDGEWnmhUgg4XX6atF19K48VYZ4d7sz+HLy5DzDnQ1HI56voHCf0AwSCWfJXfnUFMUQsrY7VQVZafhVQjKuyu/2DarPA== X-Google-Smtp-Source: AGHT+IG8uBTOiGq4CiS9jES/IsQgHnQGQRE9UoRMiDgkLfoUwbtz6AjWSk8/6XTFpkgo46o3/orS X-Received: by 2002:a17:90a:4583:b0:2b5:91d1:3ae8 with SMTP id 98e67ed59e1d1-2bf5bb0d6femr15733844a91.14.1716881151133; Tue, 28 May 2024 00:25:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716881151; cv=pass; d=google.com; s=arc-20160816; b=McU6LpMUZIH5jCZm/nraiQvnDspFkfVA46g4hPJgEa+aqgFuXoh4fiQeIx+5KUFYVC CDgeCvSifGoe40uI5ogx64EAovFMY8Y3uDgu9/Pxw8nKBBoH2hX1g8rDBvsll/C253Mp sfGEJvHUdgXR281MML9o2RqzArfMvPMUqTl3GJfeVUitcEF6VIUfWTgu+t4jU0knngxP 7VfFBaRshcTXZ83s8JB43OPtFMlR/re0wkfU7MhoEn52W7zn0vqetnew5fRqO0fS1hhL ljo6XK3dnVAVZuOg06yZDLFSSkr1ETrPmpfnT7orMYhxVrBlzpFGmasf+k06yAebpSk+ 3dgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wWGyfGGNTgIj9uc6BuKOmFnziavVZ2s5zuUhL7mLQYM=; fh=w29IkXC6mfNTazMPJEssE9X2JydxIxYfo+nG4z04jOk=; b=hLCYISnBtKeHuhaERc0CdvWnYd9tRnVo8TkDjS7JvDTyqJvpjoZm6byAu2PIsHSuSB gW9vdk0hV649uTCCXTzEThVs/N2uOZCQK53Sai2DYByRLN11caU6CPPv36SvSUFiezJQ 5acG2onaKBXuoy1uktK/KP396f1qR9BgEFzMWUztTrv6KNKS95xqjkvUFnBfSKwn5uwq 0EoKegj6I9VWSbz8HZkHgGcJLjjYtNKlVBKiZyTGmJOrJ1stmjANFthTSal7o/N3s6F3 9Ei9mApRkzfYoY4QJqLJiCU8NHKEw788EWNGTqH49uCmHOOBdUvE0rtFZukn6vVig3d5 nWVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kk8WqHsC; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-191867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c0059475bbsi981748a91.54.2024.05.28.00.25.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 00:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kk8WqHsC; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-191867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A9DEFB2322D for ; Tue, 28 May 2024 07:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E1BE74409; Tue, 28 May 2024 07:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Kk8WqHsC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6997C73164; Tue, 28 May 2024 07:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716881020; cv=none; b=IpSgT9n8T3dljXp0r1SN9GzsIyhljjvf2UbFr0XKtAqmexEsWNkTHyWfdeWeCgQNb1DlLiVxRDBHmpgjz0AvhubJJdkec42sxVoo+P2FPOPWYIB5q76S+zFq09qhxAlIXMI2XMVwO+5UwxF7+xQ3CEsVTE2j3SCc+SvLRUHiDHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716881020; c=relaxed/simple; bh=y2/xIiY0kMyywK46Mg6C+FvZjawBDRSpFbyPSwcto/U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xq8an+kU4BrmsfO75l9d6XN6p5icz1AOTWBL8qptgczZVF7i4VzcrI7osHIkuit7Qj9pd7rXm64oIX4foW2jz2RQmL/DvQtQoOyNiWunjqobdj9EYYyQ8OZjCXgAECu6bA0QOmhgoDrqElWcs7ks5mDi5oztDbknABQResAFVfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Kk8WqHsC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FC3CC3277B; Tue, 28 May 2024 07:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716881020; bh=y2/xIiY0kMyywK46Mg6C+FvZjawBDRSpFbyPSwcto/U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kk8WqHsC1b2VixVADEac+bviuAUjI2eAh6tJjog1WIuN+opFv/cjAAO0fqhowxNvw xrBaJAVXK1ZfnLw5HSHcuHjQReis/Vbnp6+nXCvwQBTY5hckY83RjRwzeG3hKjao69 RgzmW0Oqg2GWoWNvquW4zTZcJkaCs0bLST4jnAdY= Date: Tue, 28 May 2024 09:23:43 +0200 From: Greg Kroah-Hartman To: Daehwan Jung Cc: Mathias Nyman , "open list:USB XHCI DRIVER" , open list , Thinh Nguyen Subject: Re: [PATCH] usb: host: Add a quirk for writing ERST in high-low order Message-ID: <2024052814-exponent-domestic-6da2@gregkh> References: <1716875836-186791-1-git-send-email-dh10.jung@samsung.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <1716875836-186791-1-git-send-email-dh10.jung@samsung.com> On Tue, May 28, 2024 at 02:57:16PM +0900, Daehwan Jung wrote: > [Synopsys]- The host controller was design to support ERST setting > during the RUN state. But since there is a limitation in controller > in supporting separate ERSTBA_HI and ERSTBA_LO programming, > It is supported when the ERSTBA is programmed in 64bit, > or in 32 bit mode ERSTBA_HI before ERSTBA_LO > > [Synopsys]- The internal initialization of event ring fetches > the "Event Ring Segment Table Entry" based on the indication of > ERSTBA_LO written. > > Signed-off-by: Daehwan Jung > --- > drivers/usb/host/xhci-mem.c | 5 ++++- > drivers/usb/host/xhci.h | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c > index 3100219..ef768e6 100644 > --- a/drivers/usb/host/xhci-mem.c > +++ b/drivers/usb/host/xhci-mem.c > @@ -2325,7 +2325,10 @@ xhci_add_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir, > erst_base = xhci_read_64(xhci, &ir->ir_set->erst_base); > erst_base &= ERST_BASE_RSVDP; > erst_base |= ir->erst.erst_dma_addr & ~ERST_BASE_RSVDP; > - xhci_write_64(xhci, erst_base, &ir->ir_set->erst_base); > + if (xhci->quirks & XHCI_WRITE_64_HI_LO) > + hi_lo_writeq(erst_base, &ir->ir_set->erst_base); > + else > + xhci_write_64(xhci, erst_base, &ir->ir_set->erst_base); > > /* Set the event ring dequeue address of this interrupter */ > xhci_set_hc_event_deq(xhci, ir); > diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h > index 3041515..8664dd1 100644 > --- a/drivers/usb/host/xhci.h > +++ b/drivers/usb/host/xhci.h > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > > /* Code sharing between pci-quirks and xhci hcd */ > #include "xhci-ext-caps.h" > @@ -1627,6 +1628,7 @@ struct xhci_hcd { > #define XHCI_RESET_TO_DEFAULT BIT_ULL(44) > #define XHCI_ZHAOXIN_TRB_FETCH BIT_ULL(45) > #define XHCI_ZHAOXIN_HOST BIT_ULL(46) > +#define XHCI_WRITE_64_HI_LO BIT_ULL(47) > > unsigned int num_active_eps; > unsigned int limit_active_eps; > -- > 2.7.4 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot