Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp681025imu; Fri, 25 Jan 2019 09:05:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ZR3xzzAn0jCm2edpFbASEA3OvJ4C+Yt7V6kWqH7VQmYbKlJS4tQ4K8Q9pbnxYyOj6e81R X-Received: by 2002:a17:902:c85:: with SMTP id 5mr11927810plt.339.1548435931228; Fri, 25 Jan 2019 09:05:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548435931; cv=none; d=google.com; s=arc-20160816; b=F2eLWXjZIZ/aBAy5j8EOe0DjGFTcBgRCrOudG8WFEd0Ihxt9S6DCEPNSwJmBDSmdmI N26oDkYU32bHs1eGi4YflV/N/EcD0fmWelcXXG5Zym+qsZ+674EZkqLCqKn1o/nRFQSC fA5vq5UubXmIKxGfKI6TP9IvwnCiRpp1lnNbYju0jkWHrccV49B81zL0Lj3+anKemBDR rIU/ekKP0PHqQYDbCqjjOi2tGDZux5bvWN2ZvkB5BQU9CErX5cSlXNbQwWVIWBAHXAnU 6xYdzyI0sa5cnjisuE9mRQTgsb51cupHouHW81TCJJmhIFHAXhJuMrl3qQILyumAvmrO HwEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=RZ59XwrYk5c3GgKBnBdYsNOPHkGSmweRQUQFHvZ+qas=; b=JqjdRSnCosy9uetPYvxC4RVC5u1Diy7zOTO6IPNVZB2oEbKAxZoZldugO1UjxucLTT w+HzzclimzOes1XpNiQOrIYuo3Jljy7M+IHTrAG/3w/47jMAvCDcOs+/LdS6W/ZmgK3Q bV1P7YGxb5txRgwJce0akJ/7RESB/fvsNn4In4ESpj0lTjVsWKa2OGv0YMrhiZNgFXBg zZ0nt/nNZHV20VCJaV8cM26BuHbC2Qi7pVfYPXnh/d1UTnvprrraq9MNOwRBh0ZfIBSp xx7aQ/hHw2IXoW4Q6gqRo037Zbl360snNF1TvxEOTuUo7Yh1BNlPC9/hRbQnkLKLivO7 35HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=bfG5KTix; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba9si25076213plb.109.2019.01.25.09.05.14; Fri, 25 Jan 2019 09:05:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=bfG5KTix; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728657AbfAYRFJ (ORCPT + 99 others); Fri, 25 Jan 2019 12:05:09 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:38942 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbfAYRFI (ORCPT ); Fri, 25 Jan 2019 12:05:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1548435905; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RZ59XwrYk5c3GgKBnBdYsNOPHkGSmweRQUQFHvZ+qas=; b=bfG5KTixtBu5/Vr7zT7aIUv1MxWIJy7x3gzXr6RQfq5yWAkCbeKdWNdcyhM6+POGzSeelh 0gZgOX8b/5kfSaFslV8lWDQ1oM0X/Z9xqjArrkXurhZPE7fGh7/ywR18ooQTdqNmi1PDSs 5r70ypMlZGqx8/XRd7xHW47Hschudy4= Date: Fri, 25 Jan 2019 14:04:50 -0300 From: Paul Cercueil Subject: Re: [PATCH v8 00/26] Ingenic TCU patchset v8 To: Mathieu Malaterre Cc: Paul Burton , James Hogan , Ezequiel Garcia , PrasannaKumar Muralidharan , LKML , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org Message-Id: <1548435890.1804.0@crapouillou.net> In-Reply-To: References: <20181212220922.18759-1-paul@crapouillou.net> <1548366095.3881.1@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jan 25, 2019 at 5:21 AM, Mathieu Malaterre =20 wrote: > Paul, >=20 > On Thu, Jan 24, 2019 at 10:41 PM Paul Cercueil > wrote: >>=20 >> Hi Mathieu, >>=20 >> Le jeu. 24 janv. 2019 =E0 18:26, Mathieu Malaterre > > a >> =E9crit : >> > Paul, >> > >> > On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil=20 >> > >> > wrote: >> >> >> >> Hi, >> >> >> >> Here's the version 8 and hopefully final version of my patchset, >> >> which >> >> adds support for the Timer/Counter Unit found in JZ47xx SoCs=20 >> from >> >> Ingenic. >> > >> > I can no longer boot my MIPS Creator CI20 with this series (merged >> > opendingux/for-upstream-timer-v8). >> > >> > Using screen+ttyUSB, I can see messages stopping at: >> > >> > ... >> > [ OK ] Started Cgroup management daemon. >> > Starting Regular background program processing daemon... >> > [ OK ] Started Regular background program processing daemon. >> > Starting System Logging Service... >> > Starting Provide limited super user privileges to=20 >> specific >> > users... >> > Starting Restore /etc/resolv.conf if the system cras...s >> > shut down.... >> > Starting WPA supplicant... >> > Starting D-Bus System Message Bus... >> > [ OK ] Started D-Bus System Message Bus. >> > >> > Nothing really stands out in the error messages. Could you suggest >> > things to try out to get into a bootable state ? >>=20 >> I'm debugging it right now on jz4740, it seems to happen when the >> clocksource >> from the ingenic-timer driver is used. Is it your case? It should=20 >> not >> happen >> if you have CONFIG_INGENIC_OST set. >=20 > Here is what I see: >=20 > $ grep CONFIG_INGENIC_OST arch/mips/configs/ci20_defconfig > CONFIG_INGENIC_OST=3Dy > $ make O=3Dci20 ARCH=3Dmips CROSS_COMPILE=3Dmipsel-linux-gnu- ci20_defcon= fig > $ grep CONFIG_INGENIC_OST ci20/.config > CONFIG_INGENIC_OST=3Dy >=20 > The setting is coming from your commit: >=20 > 8f66e6b9c98f MIPS: CI20: defconfig: enable OST driver >=20 > In an attempt to solve the symptoms I even played with the clock rates > with no success: >=20 > &tcu { > /* 3 MHz for the system timer and clocksource */ > assigned-clocks =3D <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; > assigned-clock-rates =3D <750000>, <750000>; > }; This driver didn't see any big change since v6, and we're at v9 now. I swear it worked fine before, I think even Paul Burton tested it and reported it working fine. What kernel are you testing on? Could you try on top of an older kernel, e.g. 4.18? >> >> The big change is that the timer driver has been simplified. The >> >> code to >> >> dynamically update the system timer or clocksource to a new=20 >> channel >> >> has >> >> been removed. Now, the system timer and clocksource are=20 >> provided as >> >> children nodes in the devicetree, and the TCU channel to use for >> >> these >> >> is deduced from their respective memory resource. The PWM driver >> >> will >> >> also deduce from its memory resources whether a given PWM=20 >> channel >> >> can be >> >> used, or is reserved for the system timers. >> >> >> >> Kind regards, >> >> - Paul Cercueil >> >> >>=20 =