Received: by 10.223.185.116 with SMTP id b49csp679783wrg; Wed, 21 Feb 2018 05:17:21 -0800 (PST) X-Google-Smtp-Source: AH8x227n/yCnjfiWId6ovxL1N9XM7k2kJVCPvdBkTNKf/GqC9ig5zG9Hbfq/JtEUxlvVPSZIkKUB X-Received: by 2002:a17:902:22f:: with SMTP id 44-v6mr3118513plc.418.1519219041328; Wed, 21 Feb 2018 05:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519219041; cv=none; d=google.com; s=arc-20160816; b=CfYJH1Wi0/ltBN8l3xQUBC+bECgw7lCvBDU+PdVK2leK7Hp91aEPpjuq1wwateAi4k xx5qJ3Vjv5C21kLo6998JMT7W/i5zRFsmynM6wc4WSl22ZTmM/Djvcc6D2JOTWUsurrw cy6VJcpCgofMqJRABbJp560OzZ8bwy3y8tl8EjPOvtbsZR65X4mIHLFTdb8GlayvTrr2 j8usMxW77UlDgP5g59DP9Cx1YtXVWFetCfpLZ0BclOUwC+rvEUC8SRodFoHHFjoEZnvo umoHmCPXo/0WeWvyBkKOyeKauoxeyT59+z4XNbfrykr5p9ha7P+2FzLJr+uK2f1W7OUn 45PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=EgMLsroj87cZPOV9LItQvNSTZkKbW2UyWvW1VFNgHKo=; b=RJrGXZST2g+WTpx3BgWMYbs9lEnrsGVitKG422O//JvdiZEEUOoW7rSckxTZsUws3W leLkx+6h8AfPxe0OiZtC3kcAnVrckpo+4AA2Bs4EOJdnBR3C5s7lNz1euUHMV/plLmfp NOx2620oudjS/mjCRz1YadOw87Eo0RpMEtykmqm9PIeL8GpZ8qOaxbtyUMR2XPzx4Epd 4aMVOTHc2QiA42FGRwA3tOtaCNmujCBL9tkCYzsv0eIXtI3BDqfiSFIYCz//Rw09Lqu5 oW1MObBtPuvauPzpIypi/lxeSUQgJV8vX/eTqbwBxf+bOlkm6CkdyQEvihE5EkTcuSKR CUdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=dmpI2du9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p125si1796353pga.97.2018.02.21.05.17.06; Wed, 21 Feb 2018 05:17:21 -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=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=dmpI2du9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753934AbeBUMBy (ORCPT + 99 others); Wed, 21 Feb 2018 07:01:54 -0500 Received: from mail-ot0-f176.google.com ([74.125.82.176]:41072 "EHLO mail-ot0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751580AbeBUMBp (ORCPT ); Wed, 21 Feb 2018 07:01:45 -0500 Received: by mail-ot0-f176.google.com with SMTP id w38so1161414ota.8 for ; Wed, 21 Feb 2018 04:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EgMLsroj87cZPOV9LItQvNSTZkKbW2UyWvW1VFNgHKo=; b=dmpI2du9pyz7Db72JhWAw/qvddVSigdN0vHqetcVQVNFtP1+JFMlLzAAuCIPKzrLGB yJhWCpic2gcXztQ9BxaRU4bTAxsChYZ99QFruXVMgqf/WKMWpt/mshaU8sHZlb9UDCnj 6t+cdQmLZoAB/MCXiEhtT10r6gZXJTNyjToW3pB1gIA42Rra1+LP0jWWA84ld3iDXEuA 5QoapDmnWhbzDjMgy6o4tW3gDuPJrasSmKw6erSPjSr6xolrg98NuGcyBnxqWmlS2hGM 6MnSOiXyl9C0VkEUuZLaG0QphxgePViEHKPMCTPFvsuV0bcjinKvK7Qhh4iS+tIE9lyz T1pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EgMLsroj87cZPOV9LItQvNSTZkKbW2UyWvW1VFNgHKo=; b=fqOk7BAr61YwQ45dJwix8X29Imm/3fiwgkl3uV+cAmraAmceQ8ZSBqQE2pg9tvmijD blELjTSX6GjTn6dWUFWY9yoM7/El2coEsmcttjmtfHvb/lY+MMY1JS6BJTvThDiVJ9BU 5AH6pTca8F5F1K+84ZAKWyFSdNBp11LAhVasQfpU/jGGVz5edgrIouKz66dMfv/Axwip ZKLLvmHpmZNdMphb+lV+uXbZuQ314MoZvoXrSL0JclBvDitVX/a9Cy+oxuyb5THGtrBt qFtrW/ZuZYLcBruJWE1/7y1Vg4a587/b63yanAkBbMKMy9meNlGe5aliMdICv+zyNLhP bJOw== X-Gm-Message-State: APf1xPBl7o/QfTbc63vnzMsYbmnJ7ocIWnqsJPerIA6A2GY4qhkqQtEp GBe6NKo+wAQNs49fOEm69bE3zCTbZOzWJTONc2M7Tg== X-Received: by 10.157.91.47 with SMTP id x44mr2190729oth.187.1519214504725; Wed, 21 Feb 2018 04:01:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.45.2 with HTTP; Wed, 21 Feb 2018 04:01:44 -0800 (PST) In-Reply-To: <6142ab0d-85b1-84da-3a35-bdd8733bebd9@lechnology.com> References: <1519071723-31790-1-git-send-email-david@lechnology.com> <6142ab0d-85b1-84da-3a35-bdd8733bebd9@lechnology.com> From: Bartosz Golaszewski Date: Wed, 21 Feb 2018 13:01:44 +0100 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5BPATCH_v7_00=2F42=5D_ARM=3A_davinci=3A_convert_to_common?= =?UTF-8?Q?_clock_framework=E2=80=8B?= To: David Lechner Cc: linux-clk@vger.kernel.org, devicetree , Linux ARM , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-20 19:39 GMT+01:00 David Lechner : > On 02/20/2018 07:33 AM, Bartosz Golaszewski wrote: >> >> 2018-02-19 21:21 GMT+01:00 David Lechner : >>> >>> This series converts mach-davinci to use the common clock framework. >>> >>> >> >> Hi David, >> >> just some quick results from today's playing with v7. >> >> I started out with da850-lcdk with my standard rootfs over NFS. I was >> not able to boot to console so far. The first problem is that mdio >> fails to probe: >> >> libphy: Fixed MDIO Bus: probed >> davinci_mdio 1e24000.mdio: davinci mdio revision 1.5, bus freq 2200000 >> davinci_mdio 1e24000.mdio: no live phy, scanning all >> davinci_mdio: probe of 1e24000.mdio failed with error -5> After some >> digging I noticed that the supplied clock rate differs >> between mainline (114000000Hz) vs common-clock-v7 (18000000). Since >> we're not setting the rate in mdio, using LPSC_SET_RATE_PARENT would >> not help like with lcdc. > > > Can you post the output of this command so that I can see how your > clocks are setup: > > cat /sys/kernel/debug/clk/clk_summary > > >> >> After that, the boot just hangs without ever getting to emac's probe. > > > Using your workaround, can you run: > > cat /sys/kernel/debug/pm_genpd/pm_genpd_summary > > If you see: > 1e27000.clock-controller: emac off-0 > > then genpd is not working like it is supposed to. You should see something > like this for device that are working: > 1e27000.clock-controller: uart2 on > /devices/platform/soc@1c00000/1d0d000.serial active > > >> >> Once I set the emac clock to always enabled (a workaround that was >> necessary with v6, but could be dropped with my first >> genpd-in-a-separate-driver attempt), I'm getting a rather strange NULL >> pointer dereference: > > > I noticed this too when adding the power-domains property to some device > tree nodes. This is part of the reason why I didn't add it everywhere. > I wasn't able to figure out the cause of this yet. As a work around > though, please try removing the power-domains property from the emac > and mdio nodes and use your previous workaround of having an always > enabled clock. > > When I use any of the workarounds I just keep getting more problems (e.g. [1] from blk and pinctrl). I only had a couple hours today to play with it but it seems to me we have some memory corruption somewhere. I'll check the initialization order of all the frameworks involved tomorrow. Best regards, Bartosz [1] https://pastebin.com/75mkkuJL