Bug#812540: Add ARCH_HISI for Lemaker HiKey support
On 2016-03-10, Martin Michlmayr wrote: > * Ian Campbell <i...@debian.org> [2016-01-25 09:57]: >> I suppose it will need more than just ARCH_HISI. Are you able to identify >> the full set of options (e.g. drivers and such) which are needed to make >> useful Lemaker support? If so I'd appreciate it (if not I can probably try >> and dig those out myself, but it might take me a while to around to it). Most drivers aren't even available in 4.4.x, and some aren't even in 4.5.x yet. From a breif glance, the dts files for arch/arm64/boot/dts/hisilicon/hi6220*, don't look to contain support for much more than the CPU, memory and serial... > This might be a good starting point: > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1098644.html Reading that patch, I'm guessing the following are available and possibly needed or desired, though possibly may require device-tree patches as well: available in 4.4.x: CONFIG_ARCH_HISI=y CONFIG_POWER_RESET_HISI=y CONFIG_HISI_THERMAL=m CONFIG_MMC_DW=m CONFIG_MMC_DW_K3=m CONFIG_I2C_DESIGNWARE_PLATFORM=m available in 4.5.x: CONFIG_COMMON_RESET_HI6220=m CONFIG_PHY_HI6220_USB=m linux-next tag next-20160311: CONFIG_HI6220_MBOX=m CONFIG_REGULATOR_HI655X=m Will build a few test kernels and report back... live well, vagrant signature.asc Description: PGP signature
[PATCH/sid v3.addendum] W: linux-tools source: debhelper-but-no-misc-depends libcpupower-dev
From: Mattia Dongili--- debian/templates/control.main.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/templates/control.main.in b/debian/templates/control.main.in index a64794b..3b93722 100644 --- a/debian/templates/control.main.in +++ b/debian/templates/control.main.in @@ -27,7 +27,7 @@ Description: CPU frequency and voltage scaling tools for Linux (libraries) Package: libcpupower-dev Section: libdevel Architecture: linux-any -Depends: ${shlibs:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} Provides: libcpufreq-dev Conflicts: libcpufreq-dev Replaces: libcpufreq-dev -- 2.7.0
[PATCH/sid v3] Build tools from power/cpupower
From: Mattia DongiliThey'll eventually replace cpufrequtils and libcpufreq{0,-dev} so the structure of the packages is the same. --- debian/build/tools/Makefile| 1 + debian/build/tools/power/cpupower/Makefile | 20 +++ debian/changelog | 7 +++ debian/libcpupower-dev.install | 2 + debian/libcpupower0.install| 1 + debian/libcpupower0.symbols| 44 +++ debian/linux-cpupower.install | 2 + ...power-cpupower-fix-incorrect-if-statement.patch | 21 .../patches/power-cpupower-fix-manpages-NAME.patch | 63 ++ debian/patches/series | 2 + debian/rules.real | 23 +++- debian/templates/control.main.in | 29 ++ debian/templates/control.source.in | 2 +- 13 files changed, 215 insertions(+), 2 deletions(-) create mode 100644 debian/build/tools/power/cpupower/Makefile create mode 100644 debian/libcpupower-dev.install create mode 100644 debian/libcpupower0.install create mode 100644 debian/libcpupower0.symbols create mode 100644 debian/linux-cpupower.install create mode 100644 debian/patches/power-cpupower-fix-incorrect-if-statement.patch create mode 100644 debian/patches/power-cpupower-fix-manpages-NAME.patch diff --git a/debian/build/tools/Makefile b/debian/build/tools/Makefile index a3cdd87..1ea9cf3 100644 --- a/debian/build/tools/Makefile +++ b/debian/build/tools/Makefile @@ -2,6 +2,7 @@ SUBDIRS = \ hv \ lib/lockdep \ perf \ + power/cpupower \ usb/usbip include ../Makefile.inc diff --git a/debian/build/tools/power/cpupower/Makefile b/debian/build/tools/power/cpupower/Makefile new file mode 100644 index 000..66e2c75 --- /dev/null +++ b/debian/build/tools/power/cpupower/Makefile @@ -0,0 +1,20 @@ +OUTDIR = tools/power/cpupower +prefix = /usr/sbin + +include ../../../Makefile.inc + +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + DEBUG = true +endif + +all: + mkdir out + $(shell dpkg-buildflags --export=cmdline) $(MAKE) -C $(top_srcdir)/tools/power/cpupower -f Makefile O=$(CURDIR)/out DEBUG=$(DEBUG) CPUFREQ_BENCH=false V=true + +install: + $(MAKE) -C $(top_srcdir)/tools/power/cpupower -f Makefile O=$(CURDIR)/out install mandir=/usr/share/man DESTDIR=$(DESTDIR) CPUFREQ_BENCH=false + +clean: + mkdir -p out + $(MAKE) -C $(top_srcdir)/tools/power/cpupower -f Makefile O=$(CURDIR)/out clean + rm -rf out diff --git a/debian/changelog b/debian/changelog index 3a35e50..0e23bf2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +linux-tools (4.4-5~exp1.1) experimental; urgency=medium + + * Non-maintainer upload. + * Build linux-cpupower. + + -- Mattia Dongili Sun, 21 Feb 2016 19:36:29 -0800 + linux-tools (4.4-4) unstable; urgency=medium * hyperv-daemons: Only build the progarams on x86 (fixes FTBFS) diff --git a/debian/libcpupower-dev.install b/debian/libcpupower-dev.install new file mode 100644 index 000..b341905 --- /dev/null +++ b/debian/libcpupower-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/lib*.so diff --git a/debian/libcpupower0.install b/debian/libcpupower0.install new file mode 100644 index 000..d0dbfd1 --- /dev/null +++ b/debian/libcpupower0.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/libcpupower0.symbols b/debian/libcpupower0.symbols new file mode 100644 index 000..a356760 --- /dev/null +++ b/debian/libcpupower0.symbols @@ -0,0 +1,44 @@ +libcpupower.so.0 libcpupower0 #MINVER# + cpufreq_cpu_exists@Base 4.4 + cpufreq_get_affected_cpus@Base 4.4 + cpufreq_get_available_frequencies@Base 4.4 + cpufreq_get_available_governors@Base 4.4 + cpufreq_get_driver@Base 4.4 + cpufreq_get_freq_hardware@Base 4.4 + cpufreq_get_freq_kernel@Base 4.4 + cpufreq_get_hardware_limits@Base 4.4 + cpufreq_get_policy@Base 4.4 + cpufreq_get_related_cpus@Base 4.4 + cpufreq_get_stats@Base 4.4 + cpufreq_get_transition_latency@Base 4.4 + cpufreq_get_transitions@Base 4.4 + cpufreq_modify_policy_governor@Base 4.4 + cpufreq_modify_policy_max@Base 4.4 + cpufreq_modify_policy_min@Base 4.4 + cpufreq_put_affected_cpus@Base 4.4 + cpufreq_put_available_frequencies@Base 4.4 + cpufreq_put_available_governors@Base 4.4 + cpufreq_put_driver@Base 4.4 + cpufreq_put_policy@Base 4.4 + cpufreq_put_related_cpus@Base 4.4 + cpufreq_put_stats@Base 4.4 + cpufreq_set_frequency@Base 4.4 + cpufreq_set_policy@Base 4.4 + sysfs_cpu_exists@Base 4.4 + sysfs_get_available_frequencies@Base 4.4 + sysfs_get_freq_affected_cpus@Base 4.4 + sysfs_get_freq_available_governors@Base 4.4 + sysfs_get_freq_driver@Base 4.4 + sysfs_get_freq_hardware@Base 4.4 + sysfs_get_freq_hardware_limits@Base 4.4 + sysfs_get_freq_kernel@Base 4.4 + sysfs_get_freq_policy@Base 4.4 +
Re: hey kernel info about patches
On Fri, 2016-03-11 at 05:03 +0100, Xavier REEVIL wrote: > hello everyones, > i wanted to know if the kernel Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) > have been patched like the 4.1 for the intel atom . [...] We haven't backported any such improvements from 4.1, unless they came through the stable process. If you can identify specific changes that should be backported, please open a bug report against src:linux, version as above, requesting that we do that. Ben. -- Ben Hutchings 73.46% of all statistics are made up. signature.asc Description: This is a digitally signed message part
Bug#817874: linux-image-3.16.0-4-amd64: 3.16.7-ckt25-1 freeze with radeon driver
Package: src:linux Version: 3.16.7-ckt25-1 Severity: important Dear Maintainer, the day before yesterday apt-get update && apt-get upgrade upgraded the kernel package to version 3.16.7-ckt25-1 from jessie-proposed-updates. When I booted this kernel yesterday for the first time I experienced sudden "freezes" of the system that made the machine completely unusable. After some investigating I found that apparently a newly introduced bug affecting the radeon driver caused this. The following stack trace was found in the syslog: Mar 10 11:03:09 localhost kernel: [ 109.581099] BUG: unable to handle kernel NULL pointer dereference at 0008 Mar 10 11:03:09 localhost kernel: [ 109.581180] IP: [] radeon_fence_ref+0xd/0x50 [radeon] Mar 10 11:03:09 localhost kernel: [ 109.581296] PGD 0 Mar 10 11:03:09 localhost kernel: [ 109.581312] Oops: 0002 [#1] SMP Mar 10 11:03:09 localhost kernel: [ 109.581337] Modules linked in: analog joydev binfmt_misc cpufreq_stats cpufreq_powersave cpufreq_conservative ip6table_filter ip6_tables xt_recent iptable_nat nf_nat_ipv4 xt_comment ipt_REJECT xt_addrtype xt_mark iptable_mangle xt_tcpudp xt_CT iptable_raw xt_multiport nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ipt_ULOG xt_NFLOG nfnetlink_log xt_LOG nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_nat nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_udplite nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nfnetlink nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables usblp snd_fm801 snd_mpu401_uart snd_opl3_lib snd_hwdep snd_rawmidi snd_seq_device tea575x snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd kvm soundcore videodev media ac97_bus radeon evdev serio_raw fm801_gp pcspkr gameport edac_mce_amd edac_core k10temp sp5100_tco ttm drm_kms_helper drm i2c_algo_bit shpchp i2c_piix4 wmi i2c_core button acpi_cpufreq processor thermal_sys it87 hwmon_vid cpufreq_userspace fuse parport_pc ppdev lp parport autofs4 ext4 crc16 mbcache jbd2 hid_generic usbhid hid nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp437 nls_cp850 vfat fat usb_storage loop sd_mod sg crc_t10dif crct10dif_generic crct10dif_common sr_mod cdrom ata_generic ohci_pci pata_atiixp ahci libahci libata floppy r8169 mii ohci_hcd ehci_pci scsi_mod ehci_hcd usbcore usb_common Mar 10 11:03:09 localhost kernel: [ 109.584654] CPU: 1 PID: 2289 Comm: Xorg Not tainted 3.16.0-4-amd64 #1 Debian 3.16.7-ckt25-1 Mar 10 11:03:09 localhost kernel: [ 109.587031] Hardware name: Gigabyte Technology Co., Ltd. GA-MA78LMT-S2/GA-MA78LMT-S2, BIOS F14 08/16/2011 Mar 10 11:03:09 localhost kernel: [ 109.589444] task: 8800bf728250 ti: 88012a7e4000 task.ti: 88012a7e4000 Mar 10 11:03:09 localhost kernel: [ 109.591882] RIP: 0010:[] [] radeon_fence_ref+0xd/0x50 [radeon] Mar 10 11:03:09 localhost kernel: [ 109.594355] RSP: 0018:88012a7e7b18 EFLAGS: 00010292 Mar 10 11:03:09 localhost kernel: [ 109.596795] RAX: RBX: 8800bea715f8 RCX: 8800bea70d08 Mar 10 11:03:09 localhost kernel: [ 109.599238] RDX: 0001 RSI: RDI: Mar 10 11:03:09 localhost kernel: [ 109.601672] RBP: 8800bea71550 R08: 8800bea7 R09: Mar 10 11:03:09 localhost kernel: [ 109.604091] R10: 000e R11: ffe8 R12: 0020 Mar 10 11:03:09 localhost kernel: [ 109.606497] R13: 88012a7e7be0 R14: 88012a7e7bb0 R15: 8800bea715f8 Mar 10 11:03:09 localhost kernel: [ 109.608913] FS: 7f2cfa138980() GS:88012fc4() knlGS: Mar 10 11:03:09 localhost kernel: [ 109.611334] CS: 0010 DS: ES: CR0: 80050033 Mar 10 11:03:09 localhost kernel: [ 109.613760] CR2: 0008 CR3: 000129cdb000 CR4: 07e0 Mar 10 11:03:09 localhost kernel: [ 109.616194] Stack: Mar 10 11:03:09 localhost kernel: [ 109.618626] a041b0bc 002c8060 ef600100 88012a7e7cd0 Mar 10 11:03:09 localhost kernel: [ 109.621116] 8800bea7 8800bf728250 8800bf728250 0220 Mar 10 11:03:09 localhost kernel: [ 109.623630] Mar 10 11:03:09 localhost kernel: [ 109.626150] Call Trace: Mar 10 11:03:09 localhost kernel: [ 109.628658] [] ? radeon_sa_bo_new+0x25c/0x460 [radeon] Mar 10 11:03:09 localhost kernel: [ 109.631193] [] ? radeon_ib_get+0x2e/0xd0 [radeon] Mar 10 11:03:09 localhost kernel: [ 109.633754] [] ? radeon_cs_ioctl+0x13c/0x730 [radeon] Mar 10 11:03:09 localhost kernel: [ 109.636310] [] ? drm_ioctl+0x1c7/0x5b0 [drm] Mar 10 11:03:09 localhost kernel: [ 109.638872] [] ? __do_page_fault+0x1d1/0x4f0 Mar 10 11:03:09 localhost kernel: [