All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Barada <peterb@logicpd.com>
To: linux-omap <linux-omap@vger.kernel.org>
Subject: linux-2.6.28-rc8 wedges in twl_mmc_set_voltage()...
Date: Thu, 03 Dec 2009 12:57:47 -0500	[thread overview]
Message-ID: <1259863067.2066.38.camel@thunk> (raw)

I've run across a semi-consistent (~15%) hang on Logic's omap3530 LV SOM
running a 2.6.28-rc8 omap kernel where it dies in twl_mmc_set_voltage().
Adding in printk's perturbs the frequency of failure, but it
consistently dies on the same call. I've added the following
printk's(and others) in twl_mmc_set_voltage() to straddle the failure:

 	printk("%s: dev_grp_val 0x%x vmmc_dev_grp 0x%x\n", __FUNCTION__, dev_grp_val, c->twl_vmmc_dev_grp);

	ret = twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
					dev_grp_val, c->twl_vmmc_dev_grp);
	printk("%s:%d ret %d\n", __FUNCTION__, __LINE__, ret);
	if (ret)
		return ret;

When it dies, I consistently see the first printk, but not the 2nd after
returning from twl4030_i2c_write_u8().  The log (when it dies) looks
like:

cpuidle: using governor ladder                                                  
cpuidle: using governor menu                                                    
mmci-omap-hs mmci-omap-hs.0: mmc_fclk: enabled                                  
mmci-omap-hs mmci-omap-hs.0: Failed to get debounce clock                       
omap_mmc_probe:1180                                                             
twl_mmc1_set_power: slot 0 power_on 0 vdd 0                                     
twl_mmc1_set_power:294                                                          
twl_mmc_set_voltage: vdd 0                                                      
twl_mmc_set_voltage: dev_grp_val 0x0 vmmc_dev_grp 0x27                          


What's really weird is that Sysrq won't tell me anything after its died.
As a result I'm really stumped on trying to figure out what's gone
wrong.

Has anyone stumbled across this before or have any ideas on how I can
debug this further?  I'm currently using the CodeSourcery 2009q1-203
compiler.

Thanks in advance!

-- 
Peter Barada <peterb@logicpd.com>
Logic Product Development, Inc.

                 reply	other threads:[~2009-12-03 17:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1259863067.2066.38.camel@thunk \
    --to=peterb@logicpd.com \
    --cc=linux-omap@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.