From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russ Dill Subject: Re: PM branch rebased to 2.6.29 Date: Mon, 30 Mar 2009 16:01:24 -0700 Message-ID: References: <87bprz9zju.fsf@deeprootsystems.com> <1237914611.23022.124.camel@blackhole> <87zlfaztcd.fsf@deeprootsystems.com> <1237925484.23022.133.camel@blackhole> <49C940CA.9070805@deeprootsystems.com> <873acu26ms.fsf@deeprootsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from rv-out-0506.google.com ([209.85.198.226]:13526 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755120AbZC3XBZ convert rfc822-to-8bit (ORCPT ); Mon, 30 Mar 2009 19:01:25 -0400 Received: by rv-out-0506.google.com with SMTP id f9so2676742rvb.1 for ; Mon, 30 Mar 2009 16:01:24 -0700 (PDT) In-Reply-To: <873acu26ms.fsf@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Kevin Hilman Cc: "Premi, Sanjeev" , Peter Barada , "linux-omap@vger.kernel.org" On Mon, Mar 30, 2009 at 11:43 AM, Kevin Hilman wrote: > Russ Dill writes: > >> On Mon, Mar 30, 2009 at 3:08 AM, Premi, Sanjeev wrote= : > [...] >>> >>> I had found that two drivers that could prevent clocks_off are >>> USB and DSS because of the way they use clk_enable(). >>> >>> Can you try building without theses drivers just for verification? >>> >> >> Building without dss makes things worse: >> >> Powerdomain (dss_pwrdm) didn't enter target state 0 >> >> Maybe by looking at what the dss driver is doing I can get core and >> per to turn off. > > Russ, > > Can you try with the latest HEAD of PM branch. =C2=A0After suspend/re= sume, > do > > # cat /debug/pm_debug/registers/1 > > and post results to list. =C2=A0We can then see the exact state of PM > registers before going into WFI. root@beagleboard:/sys# cat /debug/pm_debug/registers/1 MOD: CM_IVA2 (48014000) 04 =3D> 00000037 20 =3D> 00000001 34 =3D> 00000001 40 =3D> 0009680= c 44 =3D> 00000001 48 =3D> 00000003 MOD: CM_OCP (48004800) 00 =3D> 00000010 10 =3D> 00000001 MOD: CM_MPU (48004900) 04 =3D> 00000037 24 =3D> 00000001 34 =3D> 00000001 40 =3D> 0011f40= c 44 =3D> 00000001 48 =3D> 00000003 4c =3D> 00000001 MOD: CM_CORE (48004a00) 10 =3D> 00000042 20 =3D> ffffffbd 24 =3D> 0000001f 28 =3D> 0000000= d 30 =3D> fffffed9 34 =3D> 0000001f 38 =3D> 0000000c 40 =3D> 0000030= a 48 =3D> 0000003f 4c =3D> 00000003 MOD: CM_SGX (48004b00) 20 =3D> 00000001 48 =3D> 00000003 MOD: CM_WKUP (48004c00) 10 =3D> 0000000e 20 =3D> 000002f1 30 =3D> 0000003f 40 =3D> 0000001= 5 MOD: CM_CCR (48004d00) 00 =3D> f8311037 04 =3D> 00000017 20 =3D> 00000201 30 =3D> 0000000= 9 34 =3D> 00000001 40 =3D> 094c0c00 44 =3D> 0001b00c 48 =3D> 0000000= 9 50 =3D> 00000001 70 =3D> 00000003 MOD: CM_DSS (48004e00) 20 =3D> 00000003 30 =3D> 00000001 40 =3D> 00001006 48 =3D> 0000000= 3 MOD: CM_CAM (48004f00) 20 =3D> 00000001 30 =3D> 00000001 40 =3D> 00000004 48 =3D> 0000000= 3 MOD: CM_PER (48005000) 10 =3D> 0003e000 20 =3D> 00001fff 30 =3D> 0003ffff 40 =3D> 000000f= f 44 =3D> 00000006 48 =3D> 00000003 4c =3D> 00000001 MOD: CM_EMU (48005100) 40 =3D> 03020a50 48 =3D> 00000002 4c =3D> 00000001 MOD: CM_NEON (48005300) 48 =3D> 00000003 MOD: CM_USB (48005400) 20 =3D> 00000003 30 =3D> 00000001 48 =3D> 00000003 MOD: PRM_IVA2 (48316000) 50 =3D> 00000007 e0 =3D> 00ff0f04 f8 =3D> 00000007 MOD: PRM_OCP (48306800) 04 =3D> 00000010 14 =3D> 00000001 1c =3D> 00000201 MOD: PRM_MPU (48306900) 58 =3D> 00000005 d4 =3D> 00000012 e0 =3D> 00030104 e4 =3D> 000000c= 7 e8 =3D> 000000c7 MOD: PRM_CORE (48306a00) 58 =3D> 00000301 a0 =3D> c33ffe18 a4 =3D> c33ffe18 a8 =3D> c33ffe1= 8 e0 =3D> 000f0304 e4 =3D> 000000f7 e8 =3D> 000000f7 f0 =3D> 0000000= 4 f4 =3D> 00000004 f8 =3D> 00000004 MOD: PRM_SGX (48306b00) e0 =3D> 00030104 MOD: PRM_WKUP (48306c00) a0 =3D> 0000010b a4 =3D> 0000010b MOD: PRM_CCR (48306d00) 40 =3D> 00000003 MOD: PRM_DSS (48306e00) 58 =3D> 00000005 a0 =3D> 00000001 e0 =3D> 00030104 MOD: PRM_CAM (48306f00) 58 =3D> 00000001 e0 =3D> 00030104 MOD: PRM_PER (48307000) 58 =3D> 00000001 a0 =3D> 0003efff a4 =3D> 0003efff a8 =3D> 0003eff= f c8 =3D> 00000007 e0 =3D> 00030104 e4 =3D> 00000007 e8 =3D> 0000000= 7 MOD: PRM_EMU (48307100) 58 =3D> 00000005 e4 =3D> 00000103 MOD: PRM_GLBL (48307200) 20 =3D> 00120012 24 =3D> 00010000 2c =3D> 301e1e30 30 =3D> 2c1e1e2= c 34 =3D> 00120000 38 =3D> 00000018 54 =3D> 00001006 58 =3D> 0000000= 1 60 =3D> 0000000e 64 =3D> 00000050 70 =3D> 00000088 90 =3D> 0fff0ff= f 94 =3D> 000000ff 98 =3D> 000000ff 9c =3D> 00000002 a0 =3D> 000000f= f c4 =3D> 00000001 e4 =3D> 00000001 MOD: PRM_NEON (48307300) 58 =3D> 00000005 c8 =3D> 00000002 e0 =3D> 00000004 e4 =3D> 0000000= 3 e8 =3D> 00000003 MOD: PRM_USB (48307400) 58 =3D> 00000001 a0 =3D> 00000001 a4 =3D> 00000001 a8 =3D> 0000000= 1 e0 =3D> 00030104 > Also, post dump of > root@beagleboard:/sys# cat /debug/pm_debug/count usbhost_pwrdm (OFF),OFF:1,RET:1,INA:0,ON:1 sgx_pwrdm (OFF),OFF:1,RET:0,INA:0,ON:1 per_pwrdm (ON),OFF:0,RET:0,INA:0,ON:1 dss_pwrdm (ON),OFF:2,RET:0,INA:0,ON:3 cam_pwrdm (OFF),OFF:1,RET:1,INA:0,ON:1 core_pwrdm (ON),OFF:0,RET:0,INA:0,ON:1 neon_pwrdm (ON),OFF:2,RET:0,INA:14100,ON:14103 mpu_pwrdm (ON),OFF:2,RET:0,INA:14100,ON:14103 iva2_pwrdm (OFF),OFF:1,RET:1,INA:0,ON:1 per_clkdm->per_pwrdm (9) usbhost_clkdm->usbhost_pwrdm (0) cam_clkdm->cam_pwrdm (0) dss_clkdm->dss_pwrdm (2) core_l4_clkdm->core_pwrdm (8) core_l3_clkdm->core_pwrdm (4) d2d_clkdm->core_pwrdm (0) sgx_clkdm->sgx_pwrdm (0) iva2_clkdm->iva2_pwrdm (0) neon_clkdm->neon_pwrdm (0) mpu_clkdm->mpu_pwrdm (0) virt_opp_clkdm->wkup_pwrdm (0) prm_clkdm->wkup_pwrdm (10) cm_clkdm->core_pwrdm (3) > Thanks, > > Kevin > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html