Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754813AbdD0BR3 (ORCPT ); Wed, 26 Apr 2017 21:17:29 -0400 Received: from mail-eopbgr00073.outbound.protection.outlook.com ([40.107.0.73]:39616 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754695AbdD0BRT (ORCPT ); Wed, 26 Apr 2017 21:17:19 -0400 From: Peter Chen To: Leonard Crestez , Shawn Guo , Sascha Hauer , Anson Huang , Robin Gong CC: Leonard Crestez , Fabio Estevam , Anson Huang , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , "Viresh Kumar" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override Thread-Topic: [PATCH] ARM: dts: imx6sx-sdb: Remove cpufreq OPP override Thread-Index: AQHSveUjrnMRhTIAPkGw/YcL8gVU8qHYatyw Date: Thu, 27 Apr 2017 01:17:12 +0000 Message-ID: References: <89cc7192100bdc9ce546bf6000446e629457ebc1.1493138693.git.leonard.crestez@nxp.com> In-Reply-To: <89cc7192100bdc9ce546bf6000446e629457ebc1.1493138693.git.leonard.crestez@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [199.59.226.141] x-microsoft-exchange-diagnostics: 1;HE1PR04MB1321;7:na9AcXI9PNRqNqWNS6w2CGKz6LRdE0YTxFpDaOAV+tBGodGDoYTVZ/BKaiqewo6NLMj2kbldbMx7rd3Olyp8pNpHDY9XVQsiC9Gp3P10XyNy8zyzF3PN44lHifEcFKzXT77k+xiQtrm6bHRsWSeKXoO0wG62UoJmhDlXyGHzOVt3ig7h7nWuqE6ApPf7E7H5FbEaFoy/2WwPihw8uCtkKzMbhNBS3atSfgNOxRAoAUp2GHUGpe9rZFsCzQedGzJ4uNpJh4093seKrpgYcGjeAWAqeJsCKbKE/vxSAAWkMjjP6kXTrMwEeT+STjenafvuLfMUa6Nq6gP4ClFS4ZGWRw== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39850400002)(39840400002)(39860400002)(39450400003)(39410400002)(39400400002)(38730400002)(6246003)(2900100001)(53936002)(55016002)(3280700002)(6436002)(33656002)(3660700001)(86362001)(4326008)(99286003)(54906002)(25786009)(305945005)(7736002)(189998001)(122556002)(102836003)(66066001)(8936002)(76176999)(2906002)(7696004)(6116002)(74316002)(77096006)(6506006)(2950100002)(229853002)(81166006)(54356999)(8676002)(50986999)(9686003)(6636002)(5660300001)(3846002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1321;H:HE1PR04MB1450.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: 574381a3-d94a-4132-63e9-08d48d0b22a7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:HE1PR04MB1321; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:HE1PR04MB1321;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1321; x-forefront-prvs: 029097202E spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2017 01:17:13.0053 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1321 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v3R1HYgP021058 Content-Length: 2163 Lines: 70 > >The board file for imx6sx-dbg overrides cpufreq operating points to use higher >voltages. This is done because the board has a shared rail for VDD_ARM_IN and >VDD_SOC_IN and when using LDO bypass the shared voltage needs to be a value >suitable for both ARM and SOC. > >This was introduced in: > >commit 54183bd7f766 ("ARM: imx6sx-sdb: add revb board and make it default") > >This only only applies to LDO bypass mode, a feature not present in upstream. When >LDOs are enabled the effect is to use higher voltages than necesarry for no good >reason. > >Setting these higher voltages can make some boards fail to boot with ugly semi- >random crashes, reminiscent of memory corruption. These failures happen the first >time the lowest idle state is used. Remove the OPP override in order to fix those >crashes. > Add Anson and Robin This code has existed more than 2 years, it is strange why the bug has not reported both for internal user and external user. I run upstream kernel using imx6sx-sdb revB very often at recent years, but not meet this issue. How to trigger this unstable issue, anything needs to change at u-boot? Peter >Signed-off-by: Leonard Crestez > >--- >It's not clear exactly why the crashes happen. Perhaps waking up from idle draws >more power than is available? Removing this override is a correct change anyway so >maybe there is no need to investigate deeper. > > arch/arm/boot/dts/imx6sx-sdb.dts | 17 ----------------- > 1 file changed, 17 deletions(-) > >diff --git a/arch/arm/boot/dts/imx6sx-sdb.dts b/arch/arm/boot/dts/imx6sx-sdb.dts >index 5bb8fd5..d71da30 100644 >--- a/arch/arm/boot/dts/imx6sx-sdb.dts >+++ b/arch/arm/boot/dts/imx6sx-sdb.dts >@@ -12,23 +12,6 @@ > model = "Freescale i.MX6 SoloX SDB RevB Board"; }; > >-&cpu0 { >- operating-points = < >- /* kHz uV */ >- 996000 1250000 >- 792000 1175000 >- 396000 1175000 >- 198000 1175000 >- >; >- fsl,soc-operating-points = < >- /* ARM kHz SOC uV */ >- 996000 1250000 >- 792000 1175000 >- 396000 1175000 >- 198000 1175000 >- >; >-}; >- > &i2c1 { > clock-frequency = <100000>; > pinctrl-names = "default"; >-- >2.7.4