All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
To: tony@atomide.com
Cc: x0095840@ti.com, linux-omap@vger.kernel.org
Subject: Re: [PATCH 5/6] Mailbox: sleeping function called from invalid context fix
Date: Thu, 18 Feb 2010 07:11:27 +0200 (EET)	[thread overview]
Message-ID: <20100218.071127.133417907.Hiroshi.DOYU@nokia.com> (raw)
In-Reply-To: <20100218010509.GK21755@atomide.com>

From: ext Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 5/6] Mailbox: sleeping function called from invalid context fix
Date: Thu, 18 Feb 2010 02:05:10 +0100

> * Guzman Lugo, Fernando <x0095840@ti.com> [100215 23:22]:
>> 
>> Hi,
>> 
>> >-----Original Message-----
>> >From: Hiroshi DOYU [mailto:Hiroshi.DOYU@nokia.com]
>> >Sent: Monday, February 15, 2010 7:49 AM
>> >To: Guzman Lugo, Fernando
>> >Cc: linux-omap@vger.kernel.org
>> >Subject: Re: [PATCH 5/6] Mailbox: sleeping function called from invalid
>> >context fix
>> >
>> >Hi Fernando,
>> >
>> >From: "ext Guzman Lugo, Fernando" <x0095840@ti.com>
>> >Subject: [PATCH 5/6] Mailbox: sleeping function called from invalid context
>> >fix
>> >Date: Sat, 13 Feb 2010 02:42:16 +0100
>> >
>> >> From e06b2716824f225747c4dc83ed2623d0160ae132 Mon Sep 17 00:00:00 2001
>> >> From: Fernando Guzman Lugo <x0095840@ti.com>
>> >> Date: Fri, 29 Jan 2010 17:12:24 -0600
>> >> Subject: [PATCH] Mailbox: sleeping function called from invalid context
>> >fix
>> >>
>> >> This patch fixes this bug:
>> >> BUG: sleeping function called from invalid context
>> >> Inside omap2_mbox_startup is called clk_get_sys that can sleep,
>> >> therefore omap2_mbox_startup can sleep but it is call in an atomic
>> >> context . So the spinlock is change for a semaphore.
>> >
>> >"mboxes_lock" is used to maintain the global list of mailbox
>> >instances, which belong to a single mailbox H/W module, but they are
>> >logical channels from S/W perspective. Both "->ops->startup()" and
>> >"->ops->shutdown()" are being executed against the above single H/W
>> >module, and a mailbox H/W module is totally __independent__ of the
>> >registration of logical mailboxes, which are (un)registered with
>> 
>> Yes, they are independent of each other, and can be executed at the same time. I am agreed with your patch; that should be the right solution, so you can drop my patch.
> 
> Hiroshi & Fernando, if you want me to merge this series, please post
> it one more time with right patches and ack's from Hiroshi. Please
> Cc also linux-arm-kernel so it gets reviewed there. The merge window
> is about to open, so we're running out of time..

Ok, I'll take care of them.

  reply	other threads:[~2010-02-18  5:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-13  1:42 [PATCH 5/6] Mailbox: sleeping function called from invalid context fix Guzman Lugo, Fernando
2010-02-15 13:48 ` Hiroshi DOYU
2010-02-16  7:25   ` Guzman Lugo, Fernando
2010-02-18  1:05     ` Tony Lindgren
2010-02-18  5:11       ` Hiroshi DOYU [this message]
2010-02-18  6:16         ` Guzman Lugo, Fernando

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=20100218.071127.133417907.Hiroshi.DOYU@nokia.com \
    --to=hiroshi.doyu@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    --cc=x0095840@ti.com \
    /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.