Forum

Full Version: Turbo overclock
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
About six weeks ago a change in xbian stopped turbo overclock from working.

I recently tried setting it on the xbmc menu to see if this had been fixed, and the result was an overclock similar to 'xbian' but with 6 overvolt-very strange! After a reboot Xbian read this as 'custom' on the menus, and the system booted and ran fine.

Earlier today I went through the xbmc menu again to see if I could successfully set it to 'turbo' overclock, the result was a system freeze on boot, just before the message 'mounted /'.

Is there any fix for turbo overclock settings in the pipeline?
I wasn't aware of a problem with Turbo OC.

I'll need to know what release you are on, output form dmesg and /boot/config.txt

Turbo OC is set as Arm 1000 Core 500 SDram 500 OV +6v

Have you tried setting those values in /boot/config.txt?

Is there any reason you need Turbo? I'm running RC1 on no OC with no problems, even with DTS 6.1 movies.
There's a few posts about it in the beta 2 thread, and mk01 mentioned it was something to do with a firmware change. I don't know exactly how the firmware is affecting it.

I want to use Turbo because I can..or could! It really does make a difference, and when running from USB the stability is great; who wouldn't want their pi to be sensibly controlling it's cpu for the most power possible?

Setting the values you mentioned in the config.txt results in the same issue - I assumed that to set turbo is more than just setting the overclock and overvolt, since it's a firmware feature of the pi itself, with temperature management etc.

I'm running rc1, without any packages from dev or staging.



Here's a dmesg from a successful boot - I don't know how to get a dmesg from the unsuccessful boot, there's no ssh access.

Code:
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000613] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=1000)
[    0.000632] pid_max: default: 32768 minimum: 301
[    0.000795] Mount-cache hash table entries: 512
[    0.001550] Initializing cgroup subsys memory
[    0.001642] Initializing cgroup subsys blkio
[    0.001691] CPU: Testing write buffer coherency: ok
[    0.002065] Setting up static identity map for 0xc047d550 - 0xc047d588
[    0.004842] devtmpfs: initialized
[    0.016937] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.017248] xor: measuring software checksum speed
[    0.026401]    arm4regs  :   972.000 MB/sec
[    0.036442]    8regs     :   472.000 MB/sec
[    0.046475]    32regs    :   460.000 MB/sec
[    0.046488] xor: using function: arm4regs (972.000 MB/sec)
[    0.046786] NET: Registered protocol family 16
[    0.052163] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.053659] bcm2708.uart_clock = 0
[    0.055182] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.055199] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.055210] mailbox: Broadcom VideoCore Mailbox driver
[    0.055281] bcm2708_vcio: mailbox at f200b880
[    0.055361] bcm_power: Broadcom power driver
[    0.055377] bcm_power_open() -> 0
[    0.055385] bcm_power_request(0, 8)
[    0.556073] bcm_mailbox_read -> 00000080, 0
[    0.556088] bcm_power_request -> 0
[    0.556286] Serial: AMBA PL011 UART driver
[    0.556401] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.577206] bio: create slab <bio-0> at 0
[    0.594491] raid6: int32x1     46 MB/s
[    0.612075] raid6: int32x2     74 MB/s
[    0.628596] raid6: int32x4     93 MB/s
[    0.646029] raid6: int32x8    101 MB/s
[    0.646044] raid6: using algorithm int32x8 (101 MB/s)
[    0.646053] raid6: using intx1 recovery algorithm
[    0.646829] SCSI subsystem initialized
[    0.647145] usbcore: registered new interface driver usbfs
[    0.647241] usbcore: registered new interface driver hub
[    0.647457] usbcore: registered new device driver usb
[    0.649456] Switched to clocksource stc
[    0.649750] FS-Cache: Loaded
[    0.660136] NET: Registered protocol family 2
[    0.661276] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.661358] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.661414] TCP: Hash tables configured (established 2048 bind 2048)
[    0.661541] TCP: reno registered
[    0.661565] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.661594] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.661942] NET: Registered protocol family 1
[    0.662400] RPC: Registered named UNIX socket transport module.
[    0.662421] RPC: Registered udp transport module.
[    0.662430] RPC: Registered tcp transport module.
[    0.662438] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662741] Unpacking initramfs...
[    1.454925] Freeing initrd memory: 6000K (c0a00000 - c0fdc000)
[    1.466547] bcm2708_dma: DMA manager at f2007000
[    1.466653] bcm2708_gpio: bcm2708_gpio_probe c057d960
[    1.467030] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.468085] audit: initializing netlink socket (disabled)
[    1.468158] type=2000 audit(1.464:1): initialized
[    1.469215] zbud: loaded
[    1.469557] VFS: Disk quotas dquot_6.5.2
[    1.469637] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.470075] FS-Cache: Netfs 'nfs' registered for caching
[    1.470497] NFS: Registering the id_resolver key type
[    1.470595] Key type id_resolver registered
[    1.470610] Key type id_legacy registered
[    1.470975] bio: create slab <bio-1> at 1
[    1.471424] Btrfs loaded
[    1.471635] msgmni has been set to 494
[    1.473508] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.473533] io scheduler noop registered
[    1.473544] io scheduler deadline registered
[    1.473570] io scheduler cfq registered (default)
[    1.477440] crc32: CRC_LE_BITS = 32, CRC_BE BITS = 32
[    1.477475] crc32: self tests passed, processed 225944 bytes in 1849000 nsec
[    1.479421] crc32c: CRC_LE_BITS = 32
[    1.479433] crc32c: self tests passed, processed 225944 bytes in 943000 nsec
[    1.479850] BCM2708FB: allocated DMA memory 4e740000
[    1.479871] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.493661] Console: switching to colour frame buffer device 160x48
[    1.502055] uart-pl011 dev:f1: no DMA platform data
[    1.502370] Loading iSCSI transport class v2.0-870.
[    1.504992] libphy: Fixed MDIO Bus: probed
[    1.505115] usbcore: registered new interface driver smsc95xx
[    1.505176] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.705340] Core Release: 2.80a
[    1.705364] Setting default values for core params
[    1.705407] Finished setting default values for core params
[    1.905527] Using Buffer DMA mode
[    1.905546] Periodic Transfer Interrupt Enhancement - disabled
[    1.905556] Multiprocessor Interrupt Enhancement - disabled
[    1.905567] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.905633] Dedicated Tx FIFOs mode
[    1.905813] dwc_otg: Microframe scheduler enabled
[    1.905863] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.905914] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.905965] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.906002] Init: Port Power? op_state=1
[    1.906012] Init: Power Port (0)
[    1.906247] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.906269] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.906283] usb usb1: Product: DWC OTG Controller
[    1.906296] usb usb1: Manufacturer: Linux 3.12.7+ dwc_otg_hcd
[    1.906309] usb usb1: SerialNumber: bcm2708_usb
[    1.907110] hub 1-0:1.0: USB hub found
[    1.907181] hub 1-0:1.0: 1 port detected
[    1.907647] dwc_otg: FIQ enabled
[    1.907663] dwc_otg: NAK holdoff enabled
[    1.907671] dwc_otg: FIQ split fix enabled
[    1.907689] Module dwc_common_port init
[    1.908064] usbcore: registered new interface driver usb-storage
[    1.908359] mousedev: PS/2 mouse device common for all mice
[    1.909168] bcm2835-cpufreq: min=700000 max=840000 cur=700000
[    1.909274] bcm2835-cpufreq: switching to governor performance
[    1.909288] bcm2835-cpufreq: switching to governor performance
[    1.910432] sdhci: Secure Digital Host Controller Interface driver
[    1.910475] sdhci: Copyright(c) Pierre Ossman
[    1.910565] sdhci: Enable low-latency mode
[    1.939474] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    1.939579] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    1.939668] ledtrig-cpu: registered to indicate activity on CPUs
[    1.939804] hidraw: raw HID events driver (C) Jiri Kosina
[    1.942160] usbcore: registered new interface driver usbhid
[    1.942176] usbhid: USB HID core driver
[    1.945783] NET: Registered protocol family 17
[    1.945938] Key type dns_resolver registered
[    1.947284] zswap: loading zswap
[    1.947327] zswap: using lz4 compressor
[    1.948613] Freeing unused kernel memory: 132K (c0551000 - c0572000)
[    1.998711] mmc0: new high speed SDHC card at address 1234
[    2.002543] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[    2.006020]  mmcblk0: p1 p2 p3
[    2.106898] Indeed it is in host mode hprt0 = 00021501
[    2.216158] udevd[56]: starting version 175
[    2.328612] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.328790] Indeed it is in host mode hprt0 = 00001101
[    3.110146] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    3.110173] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.111187] hub 1-1:1.0: USB hub found
[    3.111322] hub 1-1:1.0: 3 ports detected
[    3.384784] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.469164] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.469191] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.472197] smsc95xx v1.0.4
[    3.517878] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:f1:fd:af
[    3.562650] btrfs: device label xbian-beta2 devid 1 transid 91 /dev/mmcblk0p2
[    3.591672] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.676839] usb 1-1.2: New USB device found, idVendor=152d, idProduct=2329
[    3.676866] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[    3.676879] usb 1-1.2: Product: USB to ATA/ATAPI bridge
[    3.676889] usb 1-1.2: Manufacturer: JMicron
[    3.676900] usb 1-1.2: SerialNumber: 7D577A0A5325
[    3.680258] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    3.684629] usb-storage 1-1.2:1.0: Quirks match for vid 152d pid 2329: 8020
[    3.684799] scsi0 : usb-storage 1-1.2:1.0
[    4.712824] scsi 0:0:0:0: Direct-Access     WDC WD20 EARX-00PASB0     51.0 PQ: 0 ANSI: 2 CCS
[    4.717887] sd 0:0:0:0: [sda] 3907027055 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    4.718703] sd 0:0:0:0: [sda] Write Protect is off
[    4.718734] sd 0:0:0:0: [sda] Mode Sense: 28 00 00 00
[    4.719658] sd 0:0:0:0: [sda] No Caching mode page found
[    4.719686] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    4.722628] sd 0:0:0:0: [sda] No Caching mode page found
[    4.722658] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    4.752114] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.139196]  sda: sda1 sda2
[    5.146274] sd 0:0:0:0: [sda] No Caching mode page found
[    5.146305] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.146324] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.564749] btrfs: device label xbian-copy devid 1 transid 127273 /dev/sda1
[    6.735586] btrfs: device label xbian-copy devid 1 transid 127273 /dev/sda1
[    6.891546] btrfs: device label xbian-copy devid 1 transid 127273 /dev/sda1
[    6.897625] btrfs: device label xbian-beta2 devid 1 transid 91 /dev/mmcblk0p2
[    6.914993] btrfs: device label xbian-beta2 devid 1 transid 91 /dev/mmcblk0p2
[    7.060090] btrfs: device label xbian-copy devid 1 transid 127273 /dev/sda1
[    7.081068] btrfs: device label xbian-copy devid 1 transid 127273 /dev/sda1
[    7.086425] btrfs: enabling auto defrag
[    7.086505] btrfs: use lzo compression
[    7.086532] btrfs: disk space caching is enabled
[   11.978721] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   12.273416] btrfs: device label xbian-copy devid 1 transid 127273 /dev/sda1
[   12.618551] btrfs: device label xbian-copy devid 1 transid 127274 /dev/sda1
[   13.038110] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   13.808306] vchiq: vchiq_init_state: slot_zero = 0xd0804000, is_master = 0
[   13.817222] bcm2835-cpufreq: switching to governor powersave
[   13.817252] bcm2835-cpufreq: switching to governor powersave
[   13.825843] bcm2835-cpufreq: switching to governor performance
[   13.825875] bcm2835-cpufreq: switching to governor performance
[   14.668584] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   15.280440] udevd[728]: starting version 175
[   17.563387] init: failsafe main process (299) killed by TERM signal
[   20.401654] btrfs: disk space caching is enabled
[   22.878523] btrfs: device label xbian-beta2 devid 1 transid 91 /dev/mmcblk0p2
[   23.205632] btrfs: device label xbian-copy devid 1 transid 127276 /dev/sda1
[   45.334617] init: wait-for-state (xbmcxbmc-loaded) main process (861) killed by TERM signal
[   46.213189] init: xbian-failaccess main process (317) killed by TERM signal
[   46.227055] init: wait-for-state (usbmount/dev/sda2openbsd-inetd) main process (1059) killed by TERM signal
[   51.953369] EXT4-fs (sda2): recovery complete
[   51.967521] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts:
[   52.880221] init: wait-for-state (zram-swapxbmc-done) main process (378) killed by TERM signal
[   52.964434] init: xbmc-failed-start main process (597) killed by TERM signal
[   55.426258] Adding 250876k swap on /dev/mmcblk0p3.  Priority:0 extents:1 across:250876k SSFS
[   56.843092] btrfs: device label xbian-copy devid 1 transid 127278 /dev/sda1
[   59.015026] btrfs: device label xbian-copy devid 1 transid 127279 /dev/sda1
(END)


This is what currently works:

Terminal
root@xbian:~# cat /boot/config.txt
initramfs initramfs.gz 0x00a00000
gpu_mem_512=256
gpu_mem_256=100
initial_turbo=0
decode_MPG2=0x********
decode_WVC1=0x********
hdmi_ignore_cec_init=1
hdmi_ignore_cec=1
emmc_pll_core=0
arm_freq=840
core_freq=450
sdram_freq=450
over_voltage=0

This config & cmdline example does not boot:

Terminal
root@xbian:~# cat /boot/config.txt
initramfs initramfs.gz 0x00a00000
gpu_mem_512=256
gpu_mem_256=100
initial_turbo=0
decode_MPG2=0x********
decode_WVC1=0x********
hdmi_ignore_cec_init=1
hdmi_ignore_cec=1
emmc_pll_core=0
arm_freq=1000
core_freq=500
sdram_freq=500
over_voltage=6

root@xbian:~# cat /boot/cmdline.txt
telnet zswap.enabled=1
zswap.compressor=lz4
sdhci-bcm2708.sync_after_dma=0
dwc_otg.lpm_enable=0
console=tty1
root=/dev/sda1
rootflags=subvol=root/@,thread_pool=2,autodefrag,compress=lzo,commit=5
rootfstype=btrfs
rootwait
smsc95xx.turbo_mode=Y
elevator=cfq logo.nologo
quiet
noswap
loglevel=0
mod_scsi.scan=sync
partswap
startevent=mountall
nosplash nohdparm --startup-event mountall
overvolt=6 is normal voltage +(6 * 0,125v) and not overclocking to 6v. Then the 5v power supply wouldn't be sufficient as well Smile
Good point, made edit!
@min

emmc_pll_core=0 is good in /boot/config.txt,
xbian-package-firmware 1.4.13-1
and
latest kernel package 1.3-6.10

should restore the internal workings back as it was for months before RPI's Octobers updates to kernel & firmware.

for myself it is "true" as I can run again my top 950,450,500,2 . (I was never able to run turbo). If it doesn't work for you now, ... unfortunately I don't have other solution to try as above - or downgrade xbian-package-firmware below 1.4.7 and remove emmc_pll_core from config.txt. this would make your XBian the same as two/three months ago when 1.4.8 or higher of FW was posted to stable and we got reports about overclock affected.

this is one dimension of the story. second one is different approach on how XBian and Raspbian handles the clocks.

Raspbian turbo (1000,500,500) means you get 1000,500 (cpu/core) if system is topped to max going down to base (700,250) . Normally this sounds logically. But going to details it introduces quite significant lags & latencies for clk transitions. There we speak of microseconds what is quite significant impact. I will demonstrate:

Raspbian official test on Turbo calculate 78497 prime numbers in 3m29s. my Xbian with 950,450,500 in 0:03:20.846995. For user interactive apps & actions the steppings are even with worse impact.

running 1000/500 has even bad implications on clock syncs between busses. if busses are not running the same or whole number multiplication of base clock, the faster clock needs to put wait cycles. imagine two busses running 100 and 150mhz. they can speak to each other only each third cycle for 100mhz and each second for 150mhz bus.

and compare this to 100 / 160 setup. it will take 4 waste cycles on 160mhz bus to speak to 100mhz bus. and if those busses are transferring data between cpu / memory / mmc ? 100/150 will be faster than 100/160 with one cycle out of four. so 25% faster.

I don't remember now exactly the ratios for 1000/500 (they can be found on RPI forums) but I was always wondering why this setup. Probably the real-world use is running it at 700/250 anyhow so the drawbacks are not so visible Wink

I know that this info will not make your RPI be running Turbo again. And yes, I know that running core at 250 and 500(or mine 450) is hell a difference ! RPI actually start working Smile


You can keep us in loop in case you will manage some other testing.
thanks for the detailed explanation mk01, I actually didn't realise that the lower overclocks were also 'intelligent' in their temp & cpu scaling..oops Tongue

I've set it to High now and there's a definite improvement!
@min

I was experimenting a bit and forgot to put "emmc_pll_core=0" back. to my surprise RPI running OC without issues for maybe longer than 2 weeks (don't remember exactly when I was experimenting)
(just for info refresh - we put emmc=0 stuff into config.txt to revert FW&Kernel upstream changes causing troubles (back in Oct/Nov last year)).

So maybe you could try commenting it out together with your old Turbo setting (just please be sure you run xbian-package-kernel at least 1.3-6.11 and xbian-package-firmware 1.4.14).
Reference URL's