All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare-l3A5Bk7waGM@public.gmane.org>
To: dwalker-zu3NM2574RrQT0dZR+AlfA@public.gmane.org
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: i2c-i801: Enable interrupts on ICH5/7/8/9/10
Date: Mon, 4 Aug 2014 20:36:04 +0200	[thread overview]
Message-ID: <20140804203604.02c74b22@endymion.delvare> (raw)
In-Reply-To: <20140804175632.GA5288-zu3NM2574RrQT0dZR+AlfA@public.gmane.org>

Hi Daniel,

Please note my new e-mail address.

On Mon, 4 Aug 2014 17:56:32 +0000, dwalker-zu3NM2574RrQT0dZR+AlfA@public.gmane.org wrote:
> I had an issue with the i2c dev-interface. The executable runs i2c_smbus_write_word_data() and it hangs at
> that point. The issues wasn't present in earlier kernels , so I was able to bisect this to ,
> 
> commit 29b608540b030d38a978c972cbe99d40efdb7267
> Author: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
> Date:   Tue Jul 24 14:13:59 2012 +0200
>  
>     i2c-i801: Enable interrupts on ICH5/7/8/9/10
> 
> 
> The system I'm testing on is an ICH9 from and Intel BearLake.

I have had a few reports of problems with interrupts so far but could
never find the time to track it down. Maybe now is the time.

Please provide the output of:
# lspci -s 00:1f.3 -vvv
# grep i801_smbus /proc/interrupts

Does the problem only happen when writing words, or does it also happen
for other transfer types? Does it happen with the first transfer or
randomly after some time?

Please enable CONFIG_I2C_DEBUG_BUS and check if the driver complains
about anything suspicious before the hang occurs.

It would also be great if you could figure out where the driver code
hangs. It might be in wait_event(), I suppose it would be safer to use
wait_event_timeout() as other I2C bus drivers do. I'll prepare a patch.

-- 
Jean Delvare
SUSE L3 Support

  parent reply	other threads:[~2014-08-04 18:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-04 17:56 i2c-i801: Enable interrupts on ICH5/7/8/9/10 dwalker-zu3NM2574RrQT0dZR+AlfA
     [not found] ` <20140804175632.GA5288-zu3NM2574RrQT0dZR+AlfA@public.gmane.org>
2014-08-04 18:36   ` Jean Delvare [this message]
     [not found]     ` <20140804203604.02c74b22-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2014-08-05 17:14       ` dwalker-zu3NM2574RrQT0dZR+AlfA
     [not found]         ` <20140805171433.GA9589-zu3NM2574RrQT0dZR+AlfA@public.gmane.org>
2014-08-06 17:05           ` Jean Delvare

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=20140804203604.02c74b22@endymion.delvare \
    --to=jdelvare-l3a5bk7wagm@public.gmane.org \
    --cc=dwalker-zu3NM2574RrQT0dZR+AlfA@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.