[#4638] change cpufreq doesn't take effect on bf537 now

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4638] change cpufreq doesn't take effect on bf537 now

Submitted By: Mingquan Pan

Open Date

2008-11-12 05:43:25     Close Date

2008-11-19 05:57:48

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

Oct 10

App binary format:

N/A     

Summary: change cpufreq doesn't take effect on bf537 now

Details:

 

change cpufreq doesn't take effect on bf537 from about Nov 7 on bf537.

 

Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5608 (test@uclinux52-ad73311-lcd) (gcc version 4.1.2 (ADI svn)) #25 Mon Nov 10 14:07:24 CST 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0010dca0

  rodata    = 0x0010dca0-0x0015f27c

  bss       = 0x0015f280-0x0016f2fc

  data      = 0x0016f2fc-0x00180000

    stack   = 0x0017e000-0x00180000

  init      = 0x00180000-0x004b4000

  available = 0x004b4000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Reset caused by Software reset

Blackfin support (C) 2004-2008 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

boot memmap: 00000000004b4000 - 00000000037ff000 (usable)

On node 0 totalpages: 14335

free_area_init_node: node 0, pgdat 0017bc24, node_mem_map 004b9000

  DMA zone: 112 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 14223 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-through)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:BF537:eth0:off

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Kernel managed physical pages: 14335

Memory available: 51944k/65536k RAM, (3280k init code, 1075k kernel code, 457k data, 1024k dma, 7756k reserved)

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

PDA for CPU0 reserved at 00160608

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

Setting up Blackfin MMR debugfs

msgmni has been set to 101

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 02:22:15 UTC (8535)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=BF537, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 3280k freed

dma_alloc_init: dma_page @ 0x004b0000 - 256 pages at 0x03f00000

PHY: 0:01 - Link is Up - 100/Full

root:/>

Case 1 ...PASS

 

Case 1 ...PASS

cd /usr/bin

root:/usr/bin> cpufreq-info

cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: bfin cpufreq

  CPUs which need to switch frequency at the same time: 0

  hardware limits: 250 MHz - 500 MHz

  available frequency steps: 500 MHz, 250 MHz

  available cpufreq governors: userspace

  current policy: frequency should be within 250 MHz and 500 MHz.

                  The governor "userspace" may decide which speed to use

                  within this range.

  current CPU frequency is 500 MHz (asserted by call to hardware).

  cpufreq stats: 500 MHz:100.00%, 250 MHz:0.00%

root:/usr/bin>

Case 2 ...PASS

 

Case 2 ...PASS

cat /proc/cpuinfo

processor       : 0

vendor_id       : Analog Devices

cpu family      : 0x27c8

model name      : ADSP-BF537 500(MHz CCLK) 100(MHz SCLK) (mpu off)

stepping        : 2

cpu MHz         : 500.000/100.000

bogomips        : 995.32

Calibration     : 497664000 loops

cache size      : 16 KB(L1 icache) 32 KB(L1 dcache-wt) 0 KB(L2 cache)

dbank-A/B       : cache/cache

icache setup    : 4 Sub-banks/4 Ways, 32 Lines/Way

dcache setup    : 2 Super-banks/4 Sub-banks/2 Ways, 64 Lines/Way

board name      : ADDS-BF537-STAMP

board memory    : 65536 kB (0x00000000 -> 0x04000000)

kernel memory   : 57336 kB (0x00001000 -> 0x037ff000)

 

root:/usr/bin>

Case 3 ...PASS

 

Case 3 ...PASS

cpufreq-set -f 250000

root:/usr/bin>

Case 4 ...PASS

 

Case 4 ...PASS

cat /proc/cpuinfo

processor       : 0

vendor_id       : Analog Devices

cpu family      : 0x27c8

model name      : ADSP-BF537 500(MHz CCLK) 100(MHz SCLK) (mpu off)

stepping        : 2

cpu MHz         : 500.000/100.000

bogomips        : 995.32

Calibration     : 497664000 loops

cache size      : 16 KB(L1 icache) 32 KB(L1 dcache-wt) 0 KB(L2 cache)

dbank-A/B       : cache/cache

icache setup    : 4 Sub-banks/4 Ways, 32 Lines/Way

dcache setup    : 2 Super-banks/4 Sub-banks/2 Ways, 64 Lines/Way

board name      : ADDS-BF537-STAMP

board memory    : 65536 kB (0x00000000 -> 0x04000000)

kernel memory   : 57336 kB (0x00001000 -> 0x037ff000)

 

root:/usr/bin>

Case 5 ...FAIL

 

config file for kernel is attached.

 

 

Follow-ups

 

--- Michael Hennerich                                        2008-11-18 04:08:23

CPU frequency worked however /proc/cpuinfo didn't.

Fixed on trunk.

 

-Michael

 

--- Mingquan Pan                                             2008-11-19 05:57:48

Yes, it fixed on bf537.Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.cpufreq    application/octet-stream    33171    Mingquan Pan

Attachments

Outcomes