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 X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30626C33CB2 for ; Wed, 15 Jan 2020 20:09:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07D4C2465A for ; Wed, 15 Jan 2020 20:09:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IW94MIKQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729679AbgAOUJq (ORCPT ); Wed, 15 Jan 2020 15:09:46 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:35124 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729449AbgAOUJp (ORCPT ); Wed, 15 Jan 2020 15:09:45 -0500 Received: by mail-io1-f65.google.com with SMTP id h8so19219252iob.2; Wed, 15 Jan 2020 12:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NKbYYUka2OKZl4ULarL65Qmdbkm/KqJ8pMqUhGAd4ic=; b=IW94MIKQnRJuCWNAIbEg66dP4sSfY2MlwF3d4QPhaUqhcd5zsyV1TAgedJgnZSZ6H6 On4TLLoZpPPLHfJf23fZ68fTE+uLmaQZ4TgsDi9dbYKvKNe5/IkSaop2cp4G2LiO97aM M+5ai6iWxB3f2TQOp/qMFSVbZR1G4n8WFEuki7EPZBSer+aIAQf27Z0SczhjUJcGpIPY PTs/NeS2xFLDqQfu7Oz6pqgcKMPWFu1Xw7dh5N0pO2D2vDrE6S9/Ov430aZ8OO2knkyU LD0Om1fpEgccfatYeyiNPCHwVB1UO1mgSncyTKfyZSH7NozxojPJ2wsWCQziGzwJdeJK 7R7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NKbYYUka2OKZl4ULarL65Qmdbkm/KqJ8pMqUhGAd4ic=; b=Dwpj2m0pasFr8+8D5kirj1dDv4PtMLb0friENJMdvI/yjABKMpPeo+ZugGfH/yjotn u2Wso9eqC19u/bwptmLILasvgV/UHbcnqLChgQdsWxESHvjC/tb7gfZnchvpoZcq5v5U +v4+lS7rKm5nJef/R76rqTZB9AnQujow83flXf14AFV3zAIsyz/iR1IxcPujI4ByburH fE+gu9pNS4WhgbH0WNy1v/EEhTNyteVHNUtIhezOtywcQWqTVxMjbUmvLiqy61XprmQn fQOhn5ZvU2430V57Z2rfh4BnqW9Akwy6grjUbVF9nemV8wccYCABtop973EeNJ9BmNso fpFg== X-Gm-Message-State: APjAAAU9R/YTmOzQXJuYoOUNxR9p2KlKXYtPtM8+ALX0Yz1WsjzhUuXT mjvitwJqr4U4VFcpHUSyXdn3+26PTQtokMiZaf8KwGX7hd0= X-Google-Smtp-Source: APXvYqzEelNgyROBJYflB/UDF8ucW2Iqu/rx2Jz8VeF4PW5oJv5kdmaJKPWGZq1eoHVN8/OV48Fg1QBRED9VfMlAxPo= X-Received: by 2002:a02:a38a:: with SMTP id y10mr25168560jak.55.1579118984323; Wed, 15 Jan 2020 12:09:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adam Ford Date: Wed, 15 Jan 2020 14:09:32 -0600 Message-ID: Subject: Re: [PATCH v7 0/5] PM / devfreq: Add dynamic scaling for imx8m ddr controller To: Leonard Crestez Cc: Jacky Bai , Peng Fan , Stephen Boyd , Chanwoo Choi , Rob Herring , Mark Rutland , Viresh Kumar , Michael Turquette , Angus Ainslie , Alexandre Bailon , Matthias Kaehlcke , Abel Vesa , Saravana Kannan , Krzysztof Kozlowski , linux-clk , MyungJoo Ham , dl-linux-imx , devicetree , "linux-pm@vger.kernel.org" , Martin Kepplinger , Silvano Di Ninno , arm-soc , Aisheng Dong , Anson Huang , "Rafael J. Wysocki" , Kyungmin Park , Sascha Hauer , Fabio Estevam , Shawn Guo , Georgi Djakov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Mon, Jan 13, 2020 at 5:36 PM Leonard Crestez w= rote: > > On 10.01.2020 20:34, Adam Ford wrote: > > On Wed, Dec 18, 2019 at 10:42 AM Adam Ford > > wrote: > > > > U-Boot booted and Linux booted, but I still get: > > > > > > > > imx8m-ddrc-devfreq 3d400000.memory-controller: failed to i= nit > > > > firmware freq info: -19 > > > > > > Which version of u-boot is that, upstream? I'm subscribed to ubo= ot > > > mailing list and I see that imx8m support has its own separate i= ssues > > > but my familiarity is limited :( > > > > U-Boot 2020.01-rc4-00244-gf39abbbc53-dirty (Dec 18 2019 - 09:27:40 > > -0600) > > > > > > > > I've only ever tested with NXP uboot and the NXP version of mkim= age: > > > > > > > > https://source.codeaurora.org/external/imx/uboot-imx/log/?h=3Dimx_v= 2019.04_4.19.35_1.1.0 > > > > > https://source.codeaurora.org/external/imx/imx-mkimage/ > > > > > > I will try your versions and see what happens. > > > > > My bootloader prints the following BuildInfo: > > > - ATF 70fa7bc > > > > > > - U-Boot 2019.04-00019-g4d377539a119 > > > > > > > Thanks for your help. > > > > > > I wanted to try again after everything was merged into linux-next. > > > > I am using the U-Boot master (as of 10 Jan 2020), with ATF from > > 4.19.35_1.1.0 from Code Aurora. I have tried your ATF, but I don't see > > any change in behavior. I have made the DDRC a module, but I still get > > the same error message. > > > > [ 2.204554] imx8m-ddrc-devfreq 3d400000.memory-controller: failed to > > init firmware freq info: -19 > > > > Is there something else I can try? > > Yes, the NXP branch of uboot from Code Aurora (my commit hash is above). > > I understand you want to use uboot and atf master, apparently they both > need to be patched for this feature to work. It would still be > interesting to validate. I was able to get the 8MM to work with this new driver using the uboot branch from Code Aurora. Could you point me to what in U-Boot needs to be pulled forward to the mainline? I'd be willing to help if I can. Thanks for your help. adam > > -- > Regards, > Leonard