SAMA5D2 Xplained Ultra - power consumption

Moderator: nferre

engin
Posts: 3
Joined: Tue Nov 07, 2017 8:18 am

SAMA5D2 Xplained Ultra - power consumption

Tue Nov 07, 2017 8:54 am

Hi,

We are evaluating SAMA5D2 solution for our new project, and it is really excited to get so much resource & document on the web site. You guys did a great job!
Power saving is the key point in the new project, so I am focusing on power consumption of SAMA5D2.
With SAMA5D2 Xplained Ultra (Rev. B) board, we can easily measure the total current at VDD_5V_IN (JP8), the meter shows 118mA in active mode and 38mA in ultra low power mode. Is that correct behavior?
I am using the latest SD card image (linux4sam-poky-sama5d2_xplained-5.7.img.bz2) and suspend to memory by "echo mem >/sys/power/state".
I have attached the whole complete messages from debug port. Is there any method to save more power and reach 0.5mW in low power mode?

Thanks,

-Engin

----------------------------------

Code: Select all

AT91Bootstrap 3.8.9 (Tue Oct  3 11:17:32 CEST 2017)

EEPROM: Loading AT24xx information ...
EEPROM: BoardName | [Revid] | VendorName
  #0  SAMA5D2-XULT [AB1]      ATMEL-RF0

EEPROM: Board sn: 0xd300000 revision: 0x400000

SD/MMC: Image: Read file u-boot.bin to 0x26f00000
SD: Card Capacity: High or Extended
SD: Specification Version 3.0X
SD/MMC: Done to load image
<debug_uart>

U-Boot 2017.03-linux4sam_5.7 (Oct 03 2017 - 11:17:33 +0200)

CPU: SAMA5D27-CU
Crystal frequency:       12 MHz
CPU clock        :      498 MHz
Master clock     :      166 MHz
DRAM:  512 MiB
MMC:   sdio-host@a0000000: 0, sdio-host@b0000000: 1
reading uboot.env
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@f8008000
Hit any key to stop autoboot:  0
reading at91-sama5d2_xplained.dtb
33480 bytes read in 26 ms (1.2 MiB/s)
reading zImage
3624816 bytes read in 251 ms (13.8 MiB/s)
## Flattened Device Tree blob at 21000000
   Booting using the fdt blob at 0x21000000
   Loading Device Tree to 3fb57000, end 3fb622c7 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.52-linux4sam_5.7 (nferre@tenerife) (gcc version 6.2.0 (GCC) ) #1 Tue Oct 3 11:19:01 CEST 2017
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Atmel SAMA5D2 Xplained
cma: Reserved 16 MiB at 0x3e800000
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
Kernel command line: console=ttyS0,115200 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 493028K/524288K available (6144K kernel code, 197K rwdata, 976K rodata, 1024K init, 195K bss, 14876K reserved, 16384K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a31600   ( 198 kB)
       .bss : 0xc0a31600 - 0xc0a623f8   ( 196 kB)
NR_IRQS:16 nr_irqs:16 16
L2C-310 ID prefetch enabled, offset 2 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x36020000
clocksource: pit: mask: 0x7ffffff max_cycles: 0x7ffffff, max_idle_ns: 11513617062 ns
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
Calibrating delay loop... 329.31 BogoMIPS (lpj=1646592)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20100000 - 0x20100058
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
AT91: PM: standby: standby, suspend: ulp1
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 184217874325 ns
at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xe0841000
at_xdmac f0004000.dma-controller: 16 channels, mapped at 0xe0843000
AT91: Detected SoC family: sama5d2
AT91: Detected SoC: sama5d27, revision 1
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c f8028000.i2c: could not find pctldev for node /ahb/apb/pinctrl@fc038000/i2c0_default, deferring probe
at91_i2c fc028000.i2c: could not find pctldev for node /ahb/apb/pinctrl@fc038000/i2c1_default, deferring probe
media: Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=14 max_order=17 bucket_order=3
io scheduler noop registered (default)
pinctrl-at91-pio4 fc038000.pinctrl: atmel pinctrl initialized
f8020000.serial: ttyS0 at MMIO 0xf8020000 (irq = 35, base_baud = 5187500) is a ATMEL_SERIAL
console [ttyS0] enabled
[drm] Initialized
brd: module loaded
loop: module loaded
at91_i2c fc018600.i2c: can't get DMA channel, continue without DMA support
at91_i2c fc018600.i2c: Using FIFO (16 data)
at91_i2c fc018600.i2c: AT91 i2c bus driver (hw version: 0x704).
atmel_spi f8000000.spi: DMA TX channel not available, SPI unable to use DMA
atmel_spi f8000000.spi: Atmel SPI Controller using PIO only
atmel_spi f8000000.spi: Using FIFO (16 data)
m25p80 spi32766.0: at25df321a (4096 Kbytes)
atmel_spi f8000000.spi: Atmel SPI Controller version 0x311 at 0xf8000000 (irq 29)
libphy: Fixed MDIO Bus: probed
CAN device driver interface
m_can f8054000.can: m_can device registered (irq=38, version=31)
m_can fc050000.can: m_can device registered (irq=49, version=31)
libphy: MACB_mii_bus: probed
Micrel KSZ8081 or KSZ8091 f8008000.etherne:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f8008000.etherne:01, irq=124)
macb f8008000.ethernet eth0: Cadence GEM rev 0x00020203 at 0xf8008000 irq 30 (fc:c2:3d:11:c1:2c)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 500000.ehci: EHCI Host Controller
atmel-ehci 500000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 500000.ehci: irq 19, io mem 0x00500000
atmel-ehci 500000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.9.52-linux4sam_5.7 ehci_hcd
usb usb1: SerialNumber: 500000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 400000.ohci: USB Host Controller
at91_ohci 400000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 400000.ohci: irq 19, io mem 0x00400000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.9.52-linux4sam_5.7 ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver usb-storage
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc f80480b0.rtc: rtc core: registered f80480b0.rtc as rtc0
at91_rtc f80480b0.rtc: AT91 Real Time Clock driver.
i2c /dev entries driver
AT91: Starting after wakeup
sama5d4_wdt f8048040.watchdog: initialized (timeout = 16 sec, nowayout = 0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-at91 a0000000.sdio-host: update clk mul to 39 as gck rate is 480000000 Hz
mmc0: SDHCI controller on a0000000.sdio-host [a0000000.sdio-host] using ADMA
sdhci-at91 b0000000.sdio-host: update clk mul to 39 as gck rate is 480000000 Hz
mmc1: SDHCI controller on b0000000.sdio-host [b0000000.sdio-host] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
atmel_aes f002c000.aes: version: 0x500
atmel_aes f002c000.aes: Atmel AES - Using dma0chan0, dma0chan1 for DMA transfers
atmel_sha f0028000.sha: version: 0x510
atmel_sha f0028000.sha: using dma0chan2 for DMA transfers
atmel_sha f0028000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
atmel_tdes fc044000.tdes: version: 0x703
atmel_tdes fc044000.tdes: using dma0chan3, dma0chan4 for DMA transfers
atmel_tdes fc044000.tdes: Atmel DES/TDES
atmel-classd fc048000.classd: PWM modulation type is Differential, non-overlapping is enabled
atmel-classd fc048000.classd: atmel-classd-hifi <-> fc048000.classd mapping ok
NET: Registered protocol family 10
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
at91_i2c f8028000.i2c: can't get DMA channel, continue without DMA support
at91_i2c f8028000.i2c: Using FIFO (16 data)
random: fast init done
mmc1: new high speed SDHC card at address aaaa
mmcblk1: mmc1:aaaa SU04G 3.69 GiB
 mmcblk1: p1 p2
VDD_LED: Bringing 2500000uV into 3300000-3300000uV
act8945a-charger act8945a-charger: have been suspended
at91_i2c f8028000.i2c: AT91 i2c bus driver (hw version: 0x704).
at91_i2c fc028000.i2c: can't get DMA channel, continue without DMA support
at91_i2c fc028000.i2c: Using FIFO (16 data)
at24 2-0054: 256 byte 24c02 EEPROM, writable, 16 bytes/write
at91_i2c fc028000.i2c: AT91 i2c bus driver (hw version: 0x704).
at91-sama5d2_adc fc030000.adc: setting up trigger as external_rising
at91-sama5d2_adc fc030000.adc: version: 800
input: gpio_keys as /devices/platform/gpio_keys/input/input0
at91_rtc f80480b0.rtc: setting system clock to 2016-04-17 10:35:52 UTC (1460889352)
ALSA device list:
  #0: CLASSD
atmel_usart f8020000.serial: using dma0chan6 for rx DMA transfers
atmel_usart f8020000.serial: using dma0chan7 for tx DMA transfers
EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
mmc0: new DDR MMC card at address 0001
mmcblk0: mmc0:0001 MMC04G 3.66 GiB
mmcblk0boot0: mmc0:0001 MMC04G partition 1 1.00 MiB
mmcblk0boot1: mmc0:0001 MMC04G partition 2 1.00 MiB
mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB
 mmcblk0: p1 p2
INIT: version 2.88 booting
Starting udev
/etc/rcS.d/S03systemd-udevd: line 76: /proc/sys/kernel/hotplug: No such file or directory
starting version 230
atmel_usba_udc 300000.gadget: MMIO registers at 0xfc02c000 mapped at e08fe000
atmel_usba_udc 300000.gadget: FIFO at 0x00300000 mapped at e0d00000
ov7670: probe of 2-0021 failed with error -121
g_serial gadget: Gadget Serial v2.4
g_serial gadget: g_serial ready
EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
Tue Oct  3 09:20:09 UTC 2017
INIT: Entering runlevel: 5
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.24.1) started
Sending discover...
macb f8008000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending discover...
Sending select for 192.168.0.117...
Lease of 192.168.0.117 obtained, lease time 604800
/etc/udhcpc.d/50default: Adding DNS 10.1.1.1
/etc/udhcpc.d/50default: Adding DNS 10.1.1.2
done.
Starting system message bus: dbus.
Starting OpenBSD Secure Shell server: sshd
  generating ssh RSA key...
  generating ssh ECDSA key...
  generating ssh DSA key...
  generating ssh ED25519 key...
done.
Starting rpcbind daemon...done.
starting statd: done
Starting atd: OK
Starting bluetooth
bluetoothd
exportfs: can't open /etc/exports for reading
NFS daemon support not enabled in kernel
Starting syslogd/klogd: done
Starting crond: OK

Poky (Yocto Project Reference Distro) 2.2.2 sama5d2-xplained-sd /dev/ttyS0

sama5d2-xplained-sd login: root
root@sama5d2-xplained-sd:~# random: crng init done

root@sama5d2-xplained-sd:~#
root@sama5d2-xplained-sd:~#
root@sama5d2-xplained-sd:~# top

top - 09:23:20 up 3 min,  1 user,  load average: 0.03, 0.07, 0.03
Tasks:  71 total,   1 running,  70 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.7 us,  1.0 sy,  0.0 ni, 98.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :   510436 total,   477872 free,    10576 used,    21988 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   490968 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
  721 root      20   0    3024   1744   1452 R  1.6  0.3   0:00.26 top
    1 root      20   0    1716   1108   1040 S  0.0  0.2   0:01.04 init
    2 root      20   0       0      0      0 S  0.0  0.0   0:00.02 kthreadd
    3 root      20   0       0      0      0 S  0.0  0.0   0:00.12 ksoftirqd/0
    4 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0
    5 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0H
    6 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kworker/u2:0
    7 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 lru-add-dra+
    8 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kdevtmpfs
    9 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 netns
   10 root      20   0       0      0      0 S  0.0  0.0   0:00.00 oom_reaper
   11 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 writeback
   12 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kcompactd0
   13 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 crypto
   14 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 bioset
   15 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kblockd
   16 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 cfg80211
root@sama5d2-xplained-sd:~# echo mem > /sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.001 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PM: suspend of devices complete after 141.447 msecs
PM: late suspend of devices complete after 1.020 msecs
PM: noirq suspend of devices complete after 0.931 msecs
PM: noirq resume of devices complete after 0.673 msecs
PM: early resume of devices complete after 0.698 msecs
atmel_usart f8020000.serial: using dma0chan6 for rx DMA transfers
atmel_usart f8020000.serial: using dma0chan7 for tx DMA transfers
Suspended for 9.430 seconds
PM: resume of devices complete after 156.149 msecs
Restarting tasks ... done.
root@sama5d2-xplained-sd:~# macb f8008000.ethernet eth0: link up (100/Full)

root@sama5d2-xplained-sd:~#
root@sama5d2-xplained-sd:~#
root@sama5d2-xplained-sd:~# echo mem > /sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.001 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
PM: suspend of devices complete after 125.141 msecs
PM: late suspend of devices complete after 1.015 msecs
PM: noirq suspend of devices complete after 0.923 msecs
PM: noirq resume of devices complete after 0.671 msecs
PM: early resume of devices complete after 0.694 msecs
atmel_usart f8020000.serial: using dma0chan6 for rx DMA transfers
atmel_usart f8020000.serial: using dma0chan7 for tx DMA transfers
Suspended for 4.539 seconds
PM: resume of devices complete after 156.133 msecs
Restarting tasks ... done.
root@sama5d2-xplained-sd:~# macb f8008000.ethernet eth0: link up (100/Full)
blue_z
Location: USA
Posts: 1745
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D2 Xplained Ultra - power consumption

Tue Nov 07, 2017 9:43 pm

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 3 guests