Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751439AbaKFUMD (ORCPT ); Thu, 6 Nov 2014 15:12:03 -0500 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:30056 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbaKFULz (ORCPT ); Thu, 6 Nov 2014 15:11:55 -0500 X-Greylist: delayed 452 seconds by postgrey-1.27 at vger.kernel.org; Thu, 06 Nov 2014 15:11:55 EST X-ME-Helo: beldin X-ME-Date: Thu, 06 Nov 2014 21:04:23 +0100 X-ME-IP: 109.222.82.103 From: Robert Jarzmik To: Dmitry Eremin-Solenikov Cc: Haojian Zhuang , Mike Turquette , Marek Vasut , Ian Molton , linux-arm-kernel , Daniel Mack , kernel list Subject: Re: [PATCH v1 0/3] Transition pxa25x clock to common clocks References: <1414941415-13146-1-git-send-email-robert.jarzmik@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Thu, 06 Nov 2014 21:04:21 +0100 In-Reply-To: (Dmitry Eremin-Solenikov's message of "Thu, 6 Nov 2014 12:45:02 +0400") Message-ID: <87lhnoxfi2.fsf@free.fr> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dmitry Eremin-Solenikov writes: > Hello, > > Tested in qemu (pxa25x target). Excellent. > > 0) Had to revert 23c4a3a5212701ad34bd30591fa33d7bacef9c5f to get kernel > to build for pxa25x + pxa27x. Yes, good move. > 1) I got the following backtrace early in the boot: > > Division by zero in kernel. > CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.0-rc2-00011-g7805b78 #97 > [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [] (show_stack) from [] (Ldiv0+0x8/0x10) > [] (Ldiv0) from [] (clk_pxa25x_memory_get_rate+0x28/0x30) > [] (clk_pxa25x_memory_get_rate) from [] > (clk_composite_recalc_rate+0x20/0x24) > [] (clk_composite_recalc_rate) from [] > (__clk_init+0x1d0/0x4e8) > [] (__clk_init) from [] (clk_register+0x100/0x1c4) > [] (clk_register) from [] > (clk_register_composite+0x17c/0x250) > [] (clk_register_composite) from [] > (pxa25x_clocks_init+0x194/0x240) > [] (pxa25x_clocks_init) from [] (pxa_timer_init+0x18/0x64) > [] (pxa_timer_init) from [] (time_init+0x1c/0x2c) > [] (time_init) from [] (start_kernel+0x268/0x3e8) > [] (start_kernel) from [] (0xa0008040) > > It might be due to something being not emulated properly, but I'd > suggest to add a check > anyway. You're right about that part. According to the specification, the "M" multiplier in CCCR can only be 1, 2, or 3. 0 is a reserved value which should never happen, and if it happens, hardware is already lost. I don't want to be that defensive in this code unless it blocks something for good. > 2) sa1100-rtc could not find a clock and thus failed to be probed. Ha I'll check that, thanks. > 3) Had to patch tc6393xb driver to call > clk_prepare_enable/clk_disable_unprepare - > will submit a patch shortly. Good catch. > 4) Got an issue with IrDA driver - it gets -ENODEV for UARTCLK clock I'll check that too. It's probable I either forgot a clock or mispelled a clock. Thanks for the test Dmitry. Cheers. -- Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/