Bug#793185: [linux-sunxi] Re: forwarding a bug: cpufreq missing in debian stable on a cuibeboard
I got lost somewhere in that long thread but I saw cpufreq on cubie* works for someone [0]. It's just a matter of loading two modules. I tried myself on my jessie install (kernel from experimental) and can confirm that: leo@cubetto:~$ sudo modprobe axp20x-regulator leo@cubetto:~$ sudo modprobe cpufreq-dt leo@cubetto:~$ ls /sys/devices/system/cpu/cpu0/cpufreq/ affected_cpus related_cpus scaling_governor cpuinfo_cur_freqscaling_available_frequencies scaling_max_freq cpuinfo_max_freqscaling_available_governorsscaling_min_freq cpuinfo_min_freqscaling_cur_freq scaling_setspeed cpuinfo_transition_latency scaling_driver stats How do I make this change persistent? Thanks, Leonardo [0] http://forum.armbian.com/index.php/topic/108-no-cpufreq-support-in-cubietruck-debian-39-wheezy-405/?p=781 2015-07-24 15:23 GMT+02:00 Hans de Goede : > Hi, > > On 24-07-15 15:16, Maxime Ripard wrote: > >> On Fri, Jul 24, 2015 at 02:58:31PM +0200, Hans de Goede wrote: >> >>> There is slightly more to it then those 5 lines, but yes we should enable >>> voltage scaling on more boards. This mostly requires someone to simply >>> just do the work. >>> >>> I've a workshop on dts this weekend at our localhacker space and the plan >>> is for the people attending to get some handson experience by them doing >>> this work (amongst other things) :) >>> >> >> While I agree with you on the fact that more board needs to have the >> regulators enabled, I really don't think that making some newbies >> doing it without any schematics (and boards I guess?) >> > > They will only be writing patches for boards which I have, and the patches > will be tested on the actual boards before submitting them upstream. > > I will be collecting and double checking all patches before sending them > to you. > > I will let you know if they blow up any boards :) But I do not really > expect that to happen. > > > is a good thing > >> when it comes to something that can permanently damage a board. >> >> I'd expect that such changes would be carefully done and tested before >> being submitted. >> > > And they will be, see above. > > Regards, > > Hans > -- Leonardo Canducci
Bug#793185: forwarding a bug: cpufreq missing in debian stable on a cuibeboard
Hi there! I've just installed Debian stable on my Cubieboard using their installer. Debian's mainline 3.16 kernel works fine but cpufreq is missing (sunxi 3.4 kernel supports it). I've submitted a bug [0] in the Debian BTS and tried kernel 4.0 and 4.1 from unstable and experimental branches with no success (cpufreq support should be there from linux 4.0 [1]). I'm forwarding that bug here as suggested. Thanks for helping! Leonardo [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793185 [1] http://linux-sunxi.org/Linux_mainlining_effort#Merged_into_4.0
Bug#793185: linux-image-3.16.0-4-armmp: missing cpufreq on cubieboard (Allwinner A10 sun4i)
I tried comparing dmesg from sunxi kernel (3.4) and experimental (4.1) but I couldn't spot anything relevant. Both are attached as I'm not skilled enough and I might have missed something. 2015-07-22 14:07 GMT+02:00 Ian Campbell : > On Wed, 2015-07-22 at 13:21 +0200, Leonardo Canducci wrote: > > > > Maybe some device-tree issue? > > Perhaps. Does anything in the dmesg from the newer kernel give a clue? > > If not then please can you take this to the upstream list. I don't see > any config options which are obviously missing. > > Ian. > > -- Leonardo Canducci [0.00] Booting Linux on physical CPU 0 [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Linux version 3.4.79-r0-s-rm2+ (r...@natsu.romanrm.net) (gcc version 4.7.2 (Debian 4.7.2-5) ) #48 Tue Feb 18 00:51:06 YEKT 2014 [0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.00] Machine: sun4i [0.00] Memory Reserved: [0.00] SYS : 0x4300 - 0x4300 ( 64 kB) [0.00] Memory policy: ECC disabled, Data cache writeback [0.00] sunxi: Allwinner A10 revision C (AW1623/sun4i) detected. [0.00] On node 0 totalpages: 262144 [0.00] free_area_init_node: node 0, pgdat c062486c, node_mem_map d000 [0.00] DMA zone: 512 pages used for memmap [0.00] DMA zone: 0 pages reserved [0.00] DMA zone: 65024 pages, LIFO batch:15 [0.00] Normal zone: 1008 pages used for memmap [0.00] Normal zone: 128016 pages, LIFO batch:31 [0.00] HighMem zone: 528 pages used for memmap [0.00] HighMem zone: 67056 pages, LIFO batch:15 [0.00] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [0.00] pcpu-alloc: [0] 0 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096 [0.00] Kernel command line: console=ttyS0,115200 root=/dev/nandb rootwait loglevel=8 panic=10 [0.00] PID hash table entries: 4096 (order: 2, 16384 bytes) [0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [0.00] allocated 2097152 bytes of page_cgroup [0.00] please try 'cgroup_disable=memory' option if you don't want memory cgroups [0.00] Memory: 1024MB = 1024MB total [0.00] Memory: 1030752k/1030752k available, 17824k reserved, 270336K highmem [0.00] Virtual kernel memory layout: [0.00] vector : 0x - 0x1000 ( 4 kB) [0.00] fixmap : 0xfff0 - 0xfffe ( 896 kB) [0.00] vmalloc : 0xf000 - 0xff00 ( 240 MB) [0.00] lowmem : 0xc000 - 0xef80 ( 760 MB) [0.00] pkmap : 0xbfe0 - 0xc000 ( 2 MB) [0.00] modules : 0xbf00 - 0xbfe0 ( 14 MB) [0.00] .text : 0xc0008000 - 0xc05c1000 (5860 kB) [0.00] .init : 0xc05c1000 - 0xc05ed000 ( 176 kB) [0.00] .data : 0xc05ee000 - 0xc06257c0 ( 222 kB) [0.00].bss : 0xc06257e4 - 0xc0684554 ( 380 kB) [0.00] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [0.00] NR_IRQS:128 [0.00] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms [0.00] Console: colour dummy device 80x30 [0.006001] Calibrating delay loop... 1001.88 BogoMIPS (lpj=5009408) [0.050264] pid_max: default: 32768 minimum: 301 [0.053858] Mount-cache hash table entries: 512 [0.057673] Initializing cgroup subsys cpuacct [0.060987] Initializing cgroup subsys memory [0.064401] Initializing cgroup subsys devices [0.067818] Initializing cgroup subsys freezer [0.071355] CPU: Testing write buffer coherency: ok [0.078898] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available [0.084442] Setting up static identity map for 0x4042e138 - 0x4042e190 [0.087247] devtmpfs: initialized [0.091831] xor: measuring software checksum speed [0.136790]arm4regs : 1258.800 MB/sec [0.186793]8regs : 1124.000 MB/sec [0.236795]32regs: 828.000 MB/sec [0.241318] xor: using function: arm4regs (1258.800 MB/sec) [0.242526] dummy: [0.246067] NET: Registered protocol family 16 [0.252317] DMA: preallocated 256 KiB pool for atomic coherent allocations [0.257451] hw-breakpoint: debug architecture 0x4 unsupported. [0.260914] Init eGon pin module V2.0 [0.266322] SOFTWINNER DMA Driver, (c) 2003-2004,2006 Simtec Electronics [0.268400] Initialize DMAC OK [0.273893] bio: create slab at 0 [0.446298] raid6: int32x1194 MB/s [0.616232] raid6: int32x2241 MB/s [0.7862
Bug#793185: linux-image-3.16.0-4-armmp: missing cpufreq on cubieboard (Allwinner A10 sun4i)
Just tested with 4.0 from sid and 4.1 (trunk) from experimental. Same output: leo@cubetto:~$ uname -a Linux cubetto 4.1.0-trunk-armmp #1 SMP Debian 4.1.2-1~exp1 (2015-07-11) armv7l GNU/Linux leo@cubetto:~$ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 2 (v7l) BogoMIPS: 1001.47 Features: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x3 CPU part: 0xc08 CPU revision: 2 Hardware: Allwinner A1X (Device Tree) Revision: Serial : leo@cubetto:~$ ls /sys/devices/system/cpu/cpu0/ crash_notes of_node power topology crash_notes_size online subsystem uevent Maybe some device-tree issue? 2015-07-22 12:45 GMT+02:00 Ian Campbell : > On Wed, 2015-07-22 at 09:41 +0200, Leonardo Canducci wrote: > > Package: src:linux > > Version: 3.16.7-ckt11-1 > > > i just installed jessie on my cubieboard as described on the debian > > wiki page. All is fine but I can't see CPU freq: > > It seems that cpufreq from sunxi was added to mainline in 4.0. I expect > this should work with the 4.0 kernel in sid or the 4.1 kernel from > experimental. > > Please could you try those and report back. > > Ian. > > -- Leonardo Canducci
Bug#793185: linux-image-3.16.0-4-armmp: missing cpufreq on cubieboard (Allwinner A10 sun4i)
Package: src:linux Version: 3.16.7-ckt11-1 Severity: normal Dear Maintainer, i just installed jessie on my cubieboard as described on the debian wiki page. All is fine but I can't see CPU freq: leo@cubetto:~$ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 2 (v7l) BogoMIPS: 1001.47 Features: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x3 CPU part: 0xc08 CPU revision: 2 Hardware: Allwinner A1X (Device Tree) Revision: Serial : and cpufreq is missing: leo@cubetto:~$ ls /sys/devices/system/cpu/cpu0/ crash_notes crash_notes_size online power subsystem topology uevent i've been running wheezy with a 3.4 sunxi kernel for about a year and both CPU speed and cpufreq were there. The kernel config file shows that cpufreq is enabled: leo@cubetto:~$ grep CPU_FREQ /boot/config-3.16.0-4-armmp CONFIG_CPU_FREQ=y Am I missing something? Should I try a more recent kernel? Thanks for supporting such a boad number of ARM boards! -- Package-specific info: ** Version: Linux version 3.16.0-4-armmp (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) ** Command line: console=ttyS0,115200 quiet ** Not tainted ** Kernel log: [1.098504] vcc3v3: disabling [1.098510] vcc3v0: disabling [1.099738] Freeing unused kernel memory: 684K (c0872000 - c091d000) [1.164263] systemd-udevd[55]: starting version 215 [1.166032] random: systemd-udevd urandom read with 1 bits of entropy available [1.238177] sun4i-emac 1c0b000.ethernet: eth0: at f00a8000, IRQ 17 MAC: 02:97:0a:01:3c:b2 [1.259907] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found [1.263990] sunxi-mmc 1c0f000.mmc: Got CD GPIO #225. [1.278915] SCSI subsystem initialized [1.302910] sunxi-mmc 1c0f000.mmc: base:0xf0102000 irq:18 [1.330761] libata version 3.00 loaded. [1.352014] mmc0: host does not support reading read-only switch. assuming write-enable. [1.354031] mmc0: new high speed SDHC card at address b368 [1.361425] mmcblk0: mmc0:b368 MSD 7.36 GiB [1.364017] mmcblk0: p1 p2 p3 < p5 > [1.375526] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP [1.375546] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1 [1.375604] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode [1.375619] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum part ccc [1.385319] scsi0 : ahci_platform [1.385771] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 21 [1.703443] ata1: SATA link down (SStatus 0 SControl 300) [1.743247] PM: Starting manual resume from disk [1.743273] PM: Hibernation image partition 179:5 present [1.743280] PM: Looking for hibernation image. [1.744318] PM: Image not found (code -22) [1.744331] PM: Hibernation image not present or could not be loaded. [2.096229] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [2.948522] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. [3.186035] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro [3.423695] systemd-udevd[142]: starting version 215 [3.834606] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [3.847743] ehci-platform: EHCI generic platform driver [3.848032] ehci-platform 1c14000.usb: EHCI Host Controller [3.848390] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1 [3.848529] ehci-platform 1c14000.usb: irq 19, io mem 0x01c14000 [3.861876] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00 [3.862180] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [3.862193] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [3.862203] usb usb1: Product: EHCI Host Controller [3.862212] usb usb1: Manufacturer: Linux 3.16.0-4-armmp ehci_hcd [3.862220] usb usb1: SerialNumber: 1c14000.usb [3.863186] hub 1-0:1.0: USB hub found [3.863236] hub 1-0:1.0: 1 port detected [3.868687] ehci-platform 1c1c000.usb: EHCI Host Controller [3.871857] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2 [3.872028] ehci-platform 1c1c000.usb: irq 22, io mem 0x01c1c000 [3.881509] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [3.885245] ohci-platform: OHCI generic platform driver [3.885612] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00 [3.885905] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [3.885918] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [3.885928] usb usb2: Product: EHCI Host Controller [3.885937] usb usb2: Manufacturer: Linux