linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Jiri Kosina <jikos@kernel.org>, Even Xu <even.xu@intel.com>,
	Zhang Lixu <lixu.zhang@intel.com>,
	Benjamin Tissoires <benjamin.tissoires@redhat.com>,
	linux-input@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Dell.Client.Kernel@dell.com
Subject: Re: hid-sensor-hub 001F:8087:0AC2.0002: timeout waiting for response from ISHTP device
Date: Wed, 18 May 2022 08:39:21 -0700	[thread overview]
Message-ID: <8fc40ebb2fbcecb1ab2f5ea156bf9ec10aff06bf.camel@linux.intel.com> (raw)
In-Reply-To: <dff3d94c-93be-2b31-35c6-35a7886f3680@molgen.mpg.de>

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

Hi Paul,

Attached a diff. Please use git apply and build kernel. And attach
dmesg. I want to see where did it fail.

Thanks,
Srinivas

On Wed, 2022-05-18 at 06:07 +0200, Paul Menzel wrote:
> Dear Srinivas,
> 
> 
> Thank you for your reply.
> 
> Am 13.05.22 um 01:07 schrieb srinivas pandruvada:
> 
> > On Thu, 2022-05-12 at 17:01 +0200, Paul Menzel wrote:
> 
> > > On the Dell XPS 13 9310, firmware 2.2.0 04/06/2021, with Debian
> > > sid/unstable, Linux 5.17.3 logs a lot of the messages below:
> > > 
> > >       timeout waiting for response from ISHTP device
> > > 
> > > Please find the output of `dmesg` attached.
> > > 
> > It seems that sensor FW is not responding after resume.
> > 
> > What is
> > # cat /sys/power/mem_sleep
> 
>      $ cat /sys/power/mem_sleep
>      [s2idle]
> 
> 
> Kind regards,
> 
> Paul
> 
> 
> PS: I think, Intel should have a Dell XPS 13 9310 available in some
> test 
> labs. If not, Dell (Cc) should be able to provide access to one.


[-- Attachment #2: ish_debug_1.diff --]
[-- Type: text/x-patch, Size: 2217 bytes --]

diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
index 8e9d9450cb83..5b811fa8f15b 100644
--- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
+++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
@@ -263,6 +263,9 @@ static void __maybe_unused ish_resume_handler(struct work_struct *work)
 	struct pci_dev *pdev = to_pci_dev(ish_resume_device);
 	struct ishtp_device *dev = pci_get_drvdata(pdev);
 	uint32_t fwsts = dev->ops->get_fw_status(dev);
+	struct device *device = &pdev->dev;
+
+	dev_info(device, "%s suspend_flag:%d fw_status:%x\n", __func__, dev->suspend_flag, IPC_IS_ISH_ILUP(fwsts));
 
 	if (ish_should_leave_d0i3(pdev) && !dev->suspend_flag
 			&& IPC_IS_ISH_ILUP(fwsts)) {
@@ -283,8 +286,10 @@ static void __maybe_unused ish_resume_handler(struct work_struct *work)
 		 * If the flag is not cleared, something is wrong with ISH FW.
 		 * So on resume, need to go through init sequence again.
 		 */
-		if (dev->resume_flag)
+		if (dev->resume_flag) {
+			dev_info(device, "%s resume_flag:%d will call ish_init\n", __func__, dev->resume_flag);
 			ish_init(dev);
+		}
 	} else {
 		/*
 		 * Resume from the D3, full reboot of ISH processor will happen,
@@ -307,7 +312,9 @@ static int __maybe_unused ish_suspend(struct device *device)
 	struct pci_dev *pdev = to_pci_dev(device);
 	struct ishtp_device *dev = pci_get_drvdata(pdev);
 
+	dev_info(device, "%s\n", __func__);
 	if (ish_should_enter_d0i3(pdev)) {
+		dev_info(device, "%s suspend_flag:%d\n", __func__, dev->suspend_flag);
 		/*
 		 * If previous suspend hasn't been asnwered then ISH is likely
 		 * dead, don't attempt nested notification
@@ -326,12 +333,14 @@ static int __maybe_unused ish_suspend(struct device *device)
 					msecs_to_jiffies(25));
 
 		if (dev->suspend_flag) {
+			dev_info(device, "%s suspend_flag:%d FW halted\n", __func__, dev->suspend_flag);
 			/*
 			 * It looks like FW halt, clear the DMA bit, and put
 			 * ISH into D3, and FW would reset on resume.
 			 */
 			ish_disable_dma(dev);
 		} else {
+			dev_info(device, "%s suspend_flag:%d S0ix suspended\n", __func__, dev->suspend_flag);
 			/*
 			 * Save state so PCI core will keep the device at D0,
 			 * the ISH would enter D0i3

  reply	other threads:[~2022-05-18 15:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <289be79b-8fbb-d171-a1e5-5d8218dff39d@molgen.mpg.de>
     [not found] ` <8833ba2600208a05940943636a3bd8b6af6a9fe4.camel@linux.intel.com>
2022-05-18  4:07   ` hid-sensor-hub 001F:8087:0AC2.0002: timeout waiting for response from ISHTP device Paul Menzel
2022-05-18 15:39     ` srinivas pandruvada [this message]
2022-05-18 18:06       ` Paul Menzel
2022-05-18 18:48         ` srinivas pandruvada
2022-05-18 19:55         ` srinivas pandruvada
2022-06-09 16:43           ` Paul Menzel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8fc40ebb2fbcecb1ab2f5ea156bf9ec10aff06bf.camel@linux.intel.com \
    --to=srinivas.pandruvada@linux.intel.com \
    --cc=Dell.Client.Kernel@dell.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=even.xu@intel.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lixu.zhang@intel.com \
    --cc=pmenzel@molgen.mpg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).