From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 354CAC433EF for ; Wed, 16 Mar 2022 07:14:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9227A838F5; Wed, 16 Mar 2022 08:14:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NRSQH41R"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5BCEC836B8; Wed, 16 Mar 2022 08:14:18 +0100 (CET) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 313D4838F5 for ; Wed, 16 Mar 2022 08:14:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heiko.thiery@gmail.com Received: by mail-wm1-x335.google.com with SMTP id h16so179193wmd.0 for ; Wed, 16 Mar 2022 00:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9FlCZvKZXL6Zf+LU+yFv6wOua85LvMKgBmgj+DoT7rc=; b=NRSQH41Ryta6sr1lusYHltJ7iQDC1fxsqOqKDt5ZHJSXNYNRT8EjvV3n1Jlam07+Qw L2S85Le0xSFvJuvSMw5m27ZVq9rZc8vWqsHUhfnKKN5lkT4wPSLRJrKQRSjB95htZGio RfARRYd7dJChDPqyhBxsrWAWjXhuzwonkud2yKI5fO6O2s5guDNX+GHJvTukRHD8vOOI v4gCMQkPfDpg9YzdHL4caVnj2GIFlpMUc4LzD8dqGEAOQeICFywnJ96FbrsYVxHhLBQZ 0cvrdmwIZ13QE0E0Z+v21579E4kkmeiAJ+32Nim5VGGsYGke15hsIozYX6iaGlc2LfMm GeQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9FlCZvKZXL6Zf+LU+yFv6wOua85LvMKgBmgj+DoT7rc=; b=KWNK6bp+dcZwJRjJW01ZyGBg3onQGQ0u6zzstNo7HoH6T8KrBU5tkIMPjWCUf8So7t LWzO5VdwA6xVJoPUMbmmd2KkJ4X/vd0GF9P4PiIKOT5uO3V3TcpwMQ54vvEIAWhmUDbL oH0UdMpkncUVeLw2c11mCT+5ng0QZGLHf8MHqYc5Ic4aKv0l/EY+CStMb0T/OmczHxSE WnVcC2G6kycp4zNqvrA0ajHuhwDnUp1tiH30300kjKPv56Oe2xoxH/VF904CNouw01si dIU8+QlawKrWetYwWdm6lIDban6OIx6MSblyFjYBVLnx+pTSPECLSqIRs0RnTDhFgXfZ xa6g== X-Gm-Message-State: AOAM5331pgmGqgTbxy+RlvXvTjKdQUYADleg8LhjXVSUwunnl+mblIxI 2gDGOTSArj+9Dae5jm0WRFQ3qAknoRyj2okTqVY= X-Google-Smtp-Source: ABdhPJw9Blz76GPdBh2zV61mhdqOSekGkkXBQ97SNZK+TFEjQ6Q4+e+PdaLBBfbj50CC7LHj7svW8n/KbC4e8dF5tSk= X-Received: by 2002:a05:600c:1f15:b0:389:ab64:fe80 with SMTP id bd21-20020a05600c1f1500b00389ab64fe80mr6158305wmb.141.1647414853675; Wed, 16 Mar 2022 00:14:13 -0700 (PDT) MIME-Version: 1.0 References: <20220315130820.1054186-1-angus@akkea.ca> <20220315130820.1054186-3-angus@akkea.ca> In-Reply-To: From: Heiko Thiery Date: Wed, 16 Mar 2022 08:14:02 +0100 Message-ID: Subject: Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq To: Angus Ainslie Cc: Angus Ainslie , u-boot@lists.denx.de, Marek Vasut , lukma@denx.de, seanga2@gmail.com, sbabic@denx.de, festevam@gmail.com, kernel@puri.sm, uboot-imx@nxp.com, peng.fan@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi Angus, Am Di., 15. M=C3=A4rz 2022 um 16:46 Uhr schrieb Angus Ainslie : > > Hi Heiko, > > On 2022-03-15 08:35, Heiko Thiery wrote: > > Hi Angus and all, > > > > > Am Di., 15. M=C3=A4rz 2022 um 14:09 Uhr schrieb Angus Ainslie : >> >> This is a DM clock driver based off the imx8mm u-boot driver and the lin= ux >> kernel driver. >> >> All of the PLLs and clocks are initialized so the subsystems below are >> functional and tested. >> >> 1) USB host and peripheral >> 2) ECSPI >> 3) UART >> 4) I2C all busses >> 5) USDHC for eMMC support >> 6) USB storage >> 7) GPIO >> 8) DRAM >> >> > Snip > > > when adding this patch and enabling CLK_IMX8MQ I see the following on my = board .. Any idea what I missed here? > > --- >8 --- > U-Boot SPL 2022.04-rc4-00008-g390d9bf9a1 (Mar 15 2022 - 16:26:59 +0100) > Trying to boot from SD card > > > U-Boot 2022.04-rc4-00008-g390d9bf9a1 (Mar 15 2022 - 16:26:59 +0100) > > CPU: Freescale i.MX8MQ rev2.1 at 800 MHz > Reset cause: POR > Model: Kontron pITX-imx8m > DRAM: alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > alloc space exhausted > 4 GiB > > My guess is that there was static code that was setting up the DRAM pll t= hat isn't get executed now that there's a DM clock driver. > > I'd try enabling DEBUG in the clk-uclass and clk-composite drivers. > > Also look at what DRAM initialization code is not being run now. Our boar= d doesn't have an DRAM specific initialization so there could be a bug in t= he DRAM setup. The problem was the MALLOC_F_LEN value. Increasing that the "alloc space exhausted" is gone. But with the enabled DM_SERIAL the problem of "No serial driver found" is still there and the board reboots. You said you have DM_SERIAL enabled and it works? [snip] --=20 Heiko