All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
To: linux-media@vger.kernel.org
Subject: Re: [PATCH] Various nits, fixes and hacks for mantis CA support on SMP
Date: Sat, 3 Mar 2012 00:21:37 +0100	[thread overview]
Message-ID: <20120302232136.GB31447@uio.no> (raw)
In-Reply-To: <4F514CCB.8020502@kolumbus.fi>

On Sat, Mar 03, 2012 at 12:42:19AM +0200, Marko Ristola wrote:
> I'm not happy with I2CDONE busy looping either.
> I've tried twice lately to swith into I2C IRQ, but those patches have caused I2CDONE timeouts.

Note that there are already timeouts with the current polling code, but they
are ignored (my patch makes them at least be printed with verbose=5). I can't
immediately recall if it's on RACK, DONE or both.

> Do my following I2C logic thoughts make any sense?

Well, note first of all that I know next to nothing about I2C, and I've never
seen any hardware documentation on the Mantis card (is there any?). But
generally it makes sense to me, except that I've never heard of the demand of
radio silence for 10 ms before.

> There might be race conditions, that the driver possibly manages:
> 1. If two threads talk into DVB frontend, one could turn off the I2C gate, while the other is talking to DVB frontend.
>    This would case lack of I2CRACK: only way to recover would be to turn
>    the I2C gate on, and then redo the I2C transfer.

Note that I've tried putting mutexes around the I2C functions, and it didn't
help on the I2C timeouts; however, that was largely on a single-character
level, so it might not be enough. (You can see these mutexes being commented
out in my patch.)

/* Steinar */
-- 
Homepage: http://www.sesse.net/

  reply	other threads:[~2012-03-02 23:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28  1:03 [PATCH] Various nits, fixes and hacks for mantis CA support on SMP Steinar H. Gunderson
2012-02-28  1:45 ` Steinar H. Gunderson
2012-03-02 22:42 ` Marko Ristola
2012-03-02 23:21   ` Steinar H. Gunderson [this message]
2012-03-23 18:16     ` Marko Ristola
2012-03-19 14:05 ` Mauro Carvalho Chehab
2012-03-19 14:07   ` Steinar H. Gunderson
2012-03-19 14:19     ` Bjørn Mork
2012-03-22 12:41       ` Steinar H. Gunderson
2012-03-22 21:11 Ninja
2012-04-01 13:41 ` Steinar H. Gunderson

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=20120302232136.GB31447@uio.no \
    --to=sgunderson@bigfoot.com \
    --cc=linux-media@vger.kernel.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.