public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nikolay Dimitrov <picmaster@mail.bg>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade
Date: Fri, 08 May 2015 20:35:53 +0300	[thread overview]
Message-ID: <554CF3F9.10702@mail.bg> (raw)
In-Reply-To: <CAJ+vNU2X8m6XL_aNPzDx3L1odjoL7xosG_s+Jf8Y1tMN5ysv2Q@mail.gmail.com>

Hi Tim,

On 05/08/2015 06:42 PM, Tim Harvey wrote:
> On Thu, May 7, 2015 at 11:57 PM, Markus Niebel <list-09_u-boot@tqsc.de> wrote:
>> Hello Tim,
>>
> <snip>
>>>>
>>>> IMX6Q automotive (1GHz capable) powering up at 800MHz:
>>>> - before:
>>>> CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
>>>> - after Patch 1/4:
>>>> CPU:   Freescale i.MX6Q rev1.2 996 MHz (at 792 MHz)
>>>> - after Patch 3/4 (if CONFIG_IMX6_THERMAL defined)
>>>> CPU:   Freescale i.MX6Q rev1.2 automotive (-40C to 125C) 996 MHz (at 792 MHz)
>>>>
>>>> IMX6S industrial (800MHz capable) powering up at 800MHz:
>>>> - before:
>>>> CPU:   Freescale i.MX6SOLO rev1.2 at 792 MHz
>>>> - after Patch 1/4: (max speed == cur speed)
>>>> CPU:   Freescale i.MX6SOLO rev1.2 792 MHz
>>>> - after Patch 3/4 (if CONFIG_IMX6_THERMAL defined)
>>>> CPU:   Freescale i.MX6SOLO rev1.2 industrial (-40C to 105C) 792 MHz
>>>>
> <snip>
>>
>> Where do get the speed grade ant temperature grade information from i.MX6SOLO / DL from?
>> The fusemap in the reference manual says nothing about these info for SOLO / DL and a Freescale
>> FAE stated that these information is not present in the fuses for SOLO / DL.
>>
>> Regards,
>>
>> Markus
>>
>
> Markus,
>
> Your right - There is no indication in the IMX6SDLRM that OTP
> indicates either temperature grade 'or' speed grade, however my
> testing looks like they implement the same OTP settings for this as
> the IMX6DUAL/IMX6QUAD as indicated in the IMX6DQRM.
>
> I have tested these patches with the following SoC's I have available:
> - MCIMX6S7CVM08AC (IMX6S r1.2, Industrial temp, 800MHz) - shows
> 'industrial (-40C to 105C) 792 MHz' (correct)
> - MCIMX6S5EVM10AC (IMX6S r1.2, Extended Commercial temp, 1GHz) - shows
> 'extended commercial (-20C to 105C) 996 MHz (at 792 MHz)' (correct)
> - MCIMX6U7CVM08AB (IMX6DL r1.1, Industrial temp, 800MHz) - shows
> 'industrial (-40C to 105C) 792 MHz' (correct)
> - MCIMX6Q6AVT10AC (IMX6Q r1.2. Automotive temp, 1GHz) - shows
> 'automotive (-40C to 125C) 996 MHz (at 792 MHz)' (correct)
>
> I'll send our FAE a question to verify - perhaps your FAE simply
> answered the questions based on the reference manual (which is
> notoriously lacking info and in some cases wrong).
>
> I encourage anyone with additional parts to test these patches and
> report if they show accurate information. If anyone has any IMX6SX I
> would appreciate removing the check that ignores the OTP for that and
> seeing if the results make sense.

Here are the results from riotboard (imx6s) testing with your patches
against Stefano's tree:


Before:
CPU:   Freescale i.MX6SOLO rev1.1 at 792 MHz

After patch 1:
CPU:   Freescale i.MX6SOLO rev1.1 996 MHz (at 792 MHz)

After patch 2:
CPU:   Freescale i.MX6SOLO rev1.1 996 MHz (at 792 MHz)

After patch 3:
CPU:   Freescale i.MX6SOLO rev1.1 // No idea why I lost the MHz values

After patch 4:
CPU:   Freescale i.MX6SOLO rev1.1


MHz values are missing after patch 3, and looking diagonally at the
code I don't see a reason. Next, riotboard doesn't have
CONFIG_IMX6_THERMAL by default. When added, I get this:


$ make u-boot.imx
...
   OBJCOPY examples/standalone/hello_world.bin
   LDS     u-boot.lds
   LD      u-boot
arch/arm/imx-common/built-in.o: In function `print_cpuinfo':
/home/picmaster/work/u-boot-imx/arch/arm/imx-common/cpu.c:196: undefined 
reference to `uclass_get_device'
/home/picmaster/work/u-boot-imx/arch/arm/imx-common/cpu.c:198: undefined 
reference to `thermal_get_temp'
drivers/built-in.o: In function `imx_thermal_probe':
/home/picmaster/work/u-boot-imx/drivers/thermal/imx_thermal.c:155: 
undefined reference to `dev_get_platdata'
/home/picmaster/work/u-boot-imx/drivers/thermal/imx_thermal.c:156: 
undefined reference to `dev_get_priv'
drivers/built-in.o: In function `read_cpu_temperature':
/home/picmaster/work/u-boot-imx/drivers/thermal/imx_thermal.c:46: 
undefined reference to `dev_get_platdata'
/home/picmaster/work/u-boot-imx/drivers/thermal/imx_thermal.c:48: 
undefined reference to `dev_get_priv'
drivers/built-in.o: In function `imx_thermal_get_temp':
/home/picmaster/work/u-boot-imx/drivers/thermal/imx_thermal.c:127: 
undefined reference to `dev_get_priv'
ld.bfd: BFD (GNU Binutils for Debian) 2.22 assertion fail 
../../bfd/elf32-arm.c:7498
ld.bfd: BFD (GNU Binutils for Debian) 2.22 assertion fail 
../../bfd/elf32-arm.c:7498
ld.bfd: BFD (GNU Binutils for Debian) 2.22 assertion fail 
../../bfd/elf32-arm.c:7498
ld.bfd: BFD (GNU Binutils for Debian) 2.22 assertion fail 
../../bfd/elf32-arm.c:7498
ld.bfd: BFD (GNU Binutils for Debian) 2.22 assertion fail 
../../bfd/elf32-arm.c:13830
Segmentation fault
make: *** [u-boot] Error 139


Are there additional CONFIG dependencies?

Regards,
Nikolay

  reply	other threads:[~2015-05-08 17:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28 15:44 [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade Tim Harvey
2015-04-28 15:44 ` [U-Boot] [PATCH 1/4] imx: mx6: display max cpu frequency in print_cpuinfo() Tim Harvey
2015-04-29  8:08   ` Markus Niebel
2015-04-28 15:44 ` [U-Boot] [PATCH 2/4] mx6: add OTP bank1 registers Tim Harvey
2015-04-28 15:44 ` [U-Boot] [PATCH 3/4] imx: mx6: add display of temperature grade of processor in cpu_printinfo() Tim Harvey
2015-05-10 14:54   ` Fabio Estevam
2015-05-11 19:59     ` Tim Harvey
2015-05-11 20:04       ` Fabio Estevam
2015-04-28 15:44 ` [U-Boot] [PATCH 4/4] thermal: imx_thermal: use CPU temperature grade for trip points Tim Harvey
2015-04-28 17:11 ` [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade Stefan Roese
2015-04-28 17:31   ` Tim Harvey
2015-05-07 15:55     ` Tim Harvey
2015-05-07 16:01       ` Stefan Roese
2015-05-07 16:07       ` Stefano Babic
2015-05-07 16:12       ` Christian Gmeiner
2015-05-08  6:57       ` Markus Niebel
2015-05-08 15:42         ` Tim Harvey
2015-05-08 17:35           ` Nikolay Dimitrov [this message]
2015-05-08 19:26             ` Tim Harvey
2015-05-10 13:46               ` Nikolay Dimitrov
2015-05-10 13:52                 ` Nikolay Dimitrov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554CF3F9.10702@mail.bg \
    --to=picmaster@mail.bg \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox