patrickhwood/linux-sunxi — pull request #1 by jnerin (2014-01-27 08:55:41+00:00)
Title: Just a couple of patches

One is cherry-picked from cubieboard git tree, is the code to enable the internal thermal monitoring support of AXP20X chips:

# sensors
axp20_mfd-i2c-0-34
Adapter: sunxi-i2c.0
temp1: +31.4°C (low = -144.7°C, high = +264.8°C)

The other one is a patch to allow compiling the kernel with gcc 4.6. If I compile the kernel with gcc 4.7.3 I get an Oops as soon as I start ntpd or even try to do a ping. I have to compile the kernel with gcc 4.6.4.

The Oops:

Unable to handle kernel paging request at virtual address c03ecf70
pgd = ee3c4000
[c03ecf70] *pgd=6f7fe801, *pte=403ec4df, *ppte=403ec65e
Internal error: Oops: 80f [#1] PREEMPT SMP ARM
Modules linked in: cpufreq_stats sunxi_gmac joydev ftdi_sio usbserial hid_logitech_dj
CPU: 0 Not tainted (3.4.75-cubieboard-lubuntu-default-02070-gf52b664 #3)
PC is at patch_text+0x10/0x24
LR is at __jump_label_update+0x64/0x6c
pc : [] lr : [] psr: 80000013
sp : ed819f18 ip : 00000980 fp : ed818000
r10: bed23200 r9 : eecb56c0 r8 : 00000001
r7 : 00000001 r6 : c0726504 r5 : c07739dc r4 : c0773478
r3 : c07254ec r2 : c03ecf70 r1 : ea000004 r0 : c03ecf70
Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 6e3c406a DAC: 00000015
[...]
[] (patch_text+0x10/0x24) from [] (__jump_label_update+0x64/0x6c)
[] (__jump_label_update+0x64/0x6c) from [] (static_key_slow_inc+0x9c/0xa0)
[] (static_key_slow_inc+0x9c/0xa0) from [] (sock_setsockopt+0x590/0x818)
[] (sock_setsockopt+0x590/0x818) from [] (sys_setsockopt+0x9c/0xac)
[] (sys_setsockopt+0x9c/0xac) from [] (ret_fast_syscall+0x0/0x30)
Code: e92d4008 e30534ec e34c3072 e1a02000 (e4821004)