linux-next: manual merge of the vfs tree with the powerpc tree

2013-04-28 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in arch/powerpc/kernel/rtas_flash.c between commit ad18a364f186 (powerpc/rtas_flash: Free kmem upon module exit), from the powerpc tree and commit 5c0333c00ff6 (ppc: Clean up rtas_flash driver somewhat) from the vfs tree. I fixed it

linux-next: manual merge of the vfs tree with Linus' tree

2013-04-28 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in drivers/firmware/efivars.c between commit 0635eb8a54cf (Move utf16 functions to kernel core and rename) from Linus' tree and commit a2162ae42bc4 (Include missing linux/magic.h inclusions) from the vfs tree. I fixed it up (see

Re: linux-next: build failure after merge of the xfs tree

2013-04-28 Thread Dave Chinner
On Mon, Apr 29, 2013 at 11:29:43AM +1000, Stephen Rothwell wrote: Hi all, After merging the xfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: ERROR: xfs_dquot_buf_ops [fs/xfs/xfs.ko] undefined! Probably caused by commit 3fe58f30b4fc (xfs: add CRC checks for

Re: [patch] net, ipv4: fix link error when CONFIG_IPV6 is a module

2013-04-28 Thread Cong Wang
On Mon, Apr 29, 2013 at 5:08 AM, David Rientjes rient...@google.com wrote: -#if IS_ENABLED(CONFIG_IPV6) +#if IS_BUILTIN(CONFIG_IPV6) This is not a right fix. We had a right one: [PATCH net-next v3] ipv6: Kill ipv6 dependency of icmpv6_send() http://marc.info/?l=linux-netdevm=136692412322576w=2

Multiple Linux setuid output redirection vulnerabilities

2013-04-28 Thread Andy Lutomirski
Some of the recent -stable patches are (surprise!) security fixes. These were disclosed on the distros list last week. CVE-2013-1959: /proc/pid/uid_map has multiple incorrect privilege checks Linux 3.8 and various 3.9 rcs are affected, depending on configuration. This gives a root shell.

Re: [linux-next-20130422] Bug in SLAB?

2013-04-28 Thread Tetsuo Handa
Tetsuo Handa wrote: Also, kmalloc_index() in include/linux/slab.h can return 0 to 26. If (MAX_ORDER + PAGE_SHIFT - 1) 25 is true and kmalloc_index(64 * 1024 * 1024) is requested (I don't know whether such case happens), kmalloc_caches[26] is beyond the array, for kmalloc_caches[26] allows

Re: [PATCH 1/2] f2fs: reorganize f2fs_vm_page_mkwrite

2013-04-28 Thread Jaegeuk Kim
Hi, 2013-04-28 (일), 09:04 +0900, Namjae Jeon: From: Namjae Jeon namjae.j...@samsung.com Few things can be changed in the default mkwrite function 1) Make file_update_time at the start before acquiring any lock 2) the condition page_offset(page) = i_size_read(inode) should be changed to

[GIT] Security subsystem updates for 3.10

2013-04-28 Thread James Morris
Just some minor updates across the subsystem. Note: I can't figure out why the patch from Lai Jiangshan shows up twice in the shortlog. Everything checks out otherwise. The following changes since commit c1be5a5b1b355d40e6cf79cc979eb66dafa24ad1: Linux 3.9 (2013-04-28 17:36:01 -0700) are

[PATCH] cpu: rid cpu_hotplug_disabled check for cpu_down()

2013-04-28 Thread liguang
in cpu_down(), _cpu_down() will do if (num_online_cpus() == 1) return -EBUSY; when cpu_hotplug_disabled was set, num_online_cpus will return 1 for there's only 1 boot cpu. so, it's unnecessary to check cpu_hotplug_disabled here. Signed-off-by: liguang

Re: [linux-next-20130422] Bug in SLAB?

2013-04-28 Thread Zhan Jianyu
On Thu, Apr 25, 2013 at 8:20 PM, Tetsuo Handa penguin-ker...@i-love.sakura.ne.jp wrote: Bisection (with a build fix from commit db845067 slab: Fixup CONFIG_PAGE_ALLOC/DEBUG_SLAB_LEAK sections) reached commit e3366016 slab: Use common kmalloc_index/kmalloc_size functions. Would you have a look

[PATCH] tools/include: use stdint types for user-space byteshift headers

2013-04-28 Thread Yaakov (Cygwin/X)
From: Yaakov Selkowitz yselkow...@users.sourceforge.net Commit a07f7672d7cf0ff0d6e548a9feb6e0bd016d9c6c added user-space copies of the byteshift headers to be used by hostprogs, changing e.g. u8 to __u8. However, in order to cross-compile the kernel from a non-Linux system, stdint.h types need to

Re: [PATCH v2] modpost: fix unwanted VMLINUX_SYMBOL_STR expansion

2013-04-28 Thread Rusty Russell
James Hogan james.ho...@imgtec.com writes: Commit a4b6a77b77ba4f526392612c2365797fab956014 (module: fix symbol versioning with symbol prefixes) broke the MODVERSIONS loading of any module using memcmp (e.g. ipv6) on x86_32, as it's defined to __builtin_memcmp which is expanded by

Re: [PATCH 0/2] Early printk support for virtio console devices.

2013-04-28 Thread Rusty Russell
Alexander Graf ag...@suse.de writes: On 26.04.2013, at 13:04, Pranavkumar Sawargaonkar wrote: This patch-set implements early printk support for virtio console devices without using any hypercalls. The current virtio early printk code in kernel expects that hypervisor will provide some

Re: [PATCH 1/2] virtio: console: Add early writeonly register to config space

2013-04-28 Thread Rusty Russell
Pranavkumar Sawargaonkar pranavku...@linaro.org writes: This patch adds a early_wr register (writeonly) in config space of virtio console device which can be used for debugging. The patch also updates virtio-spec in Documentation to reflect this feature addition in virtio console. Perhaps

Re: [PATCH] modpost.c: Add .text.unlikely to TEXT_SECTIONS

2013-04-28 Thread Rusty Russell
Tom Rini tr...@ti.com writes: Recent gcc's may place functions into the .text.unlikely section and we need to check this section as well for section mismatches now otherwise we may have false negatives for this test. Hmm, I don't think it's all that recent, is it? I can find it back to gcc

Re: linux-next: manual merge of the vfs tree with the powerpc tree

2013-04-28 Thread Benjamin Herrenschmidt
On Mon, 2013-04-29 at 11:35 +1000, Stephen Rothwell wrote: Today's linux-next merge of the vfs tree got a conflict in arch/powerpc/kernel/rtas_flash.c between commit ad18a364f186 (powerpc/rtas_flash: Free kmem upon module exit), from the powerpc tree and commit 5c0333c00ff6 (ppc: Clean up

linux-next: build failure after merge of the cgroup tree

2013-04-28 Thread Stephen Rothwell
Hi Tejun, After merging the cgroup tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/mm/numa.c: In function 'arch_update_cpu_topology': arch/powerpc/mm/numa.c:1465:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]

electric hoist

2013-04-28 Thread Slrcm
Dear Purchasing manager: Nice time! It is my big pleasure to hear you need hoist we are the leading supplier from China we have electric hoist, chain hoist and so on If you still need it pls inform me Pls reply me let us contact details Best wishes Ida Sales manager EAST SIWEITE INDUSTRY CO.,

[PATCH] HID: Add PID for Japanese version of NE4K keyboard

2013-04-28 Thread Adam Jiang
This patche adds PID of Japanese Natual Ergonomic Keyboard 4000. HID NE4K driver depends on this PID for determining its quirks. F14-F18 keys would not work without the patch. Signed-off-by: Adam Jiang jiang.a...@gmail.com --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 +

[PATCH -tip/apic 0/2] PCI/MSI: Allocate as many multiple-MSIs as requested

2013-04-28 Thread Alexander Gordeev
Hi Gentleman, This update will allow to conserve interrupt resources when PCI device uses multiple-MSI mode and sends lesser power-of-two MSIs. I have held this off for some time, since there were no such usages (at least known to me). But recently PLX Technology confirmed they do have, i.e.

[PATCH -tip/apic 1/2] PCI/MSI: Allocate as many multiple-MSIs as requested

2013-04-28 Thread Alexander Gordeev
When multiple MSIs are enabled with pci_enable_msi_block(), the requested number of interrupts 'nvec' is rounded up to the nearest power-of-two value. The result is then used for setting up the number of MSI messages in the PCI device and allocation of interrupt resources in the operating system

[PATCH -tip/apic 2/2] x86/MSI: Allocate as many multiple-MSIs as requested

2013-04-28 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev agord...@redhat.com --- drivers/iommu/irq_remapping.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index d56f8c1..315c563 100644 --- a/drivers/iommu/irq_remapping.c +++

Re: [PATCH] cpu: rid cpu_hotplug_disabled check for cpu_down()

2013-04-28 Thread Srivatsa S. Bhat
On 04/29/2013 08:19 AM, liguang wrote: in cpu_down(), _cpu_down() will do if (num_online_cpus() == 1) return -EBUSY; when cpu_hotplug_disabled was set, num_online_cpus will return 1 for there's only 1 boot cpu. so, it's unnecessary to check cpu_hotplug_disabled

[PATCH] powerpc/rtas_flash: Fix bad memory access

2013-04-28 Thread Vasant Hegde
We use kmem_cache_alloc() to allocate memory to hold the new firmware which will be flashed. kmem_cache_alloc() calls rtas_block_ctor() to set memory to NULL. But these constructor is called only for newly allocated slabs. If we run below command multiple time without rebooting, allocator may

Re: [PATCH] cpu: rid cpu_hotplug_disabled check for cpu_down()

2013-04-28 Thread li guang
在 2013-04-29一的 10:00 +0530,Srivatsa S. Bhat写道: On 04/29/2013 08:19 AM, liguang wrote: in cpu_down(), _cpu_down() will do if (num_online_cpus() == 1) return -EBUSY; when cpu_hotplug_disabled was set, num_online_cpus will return 1 for there's only 1 boot

Re: [PATCH] cpu: rid cpu_hotplug_disabled check for cpu_down()

2013-04-28 Thread Srivatsa S. Bhat
On 04/29/2013 10:12 AM, li guang wrote: 在 2013-04-29一的 10:00 +0530,Srivatsa S. Bhat写道: On 04/29/2013 08:19 AM, liguang wrote: in cpu_down(), _cpu_down() will do if (num_online_cpus() == 1) return -EBUSY; when cpu_hotplug_disabled was set, num_online_cpus will

Re: [PATCH v2 1/3] process cputimer is moving faster than its corresponding clock

2013-04-28 Thread KOSAKI Motohiro
(4/27/13 12:40 AM), Olivier Langlois wrote: Forbids the cputimer to drift ahead of its process clock by blocking its update when a tick occurs while a autoreaping task is currently in do_exit() between the call to release_task() and its final call to schedule(). Any task stats update

linux-next: manual merge of the tip tree with Linus' and the vfs tree

2013-04-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in drivers/firmware/efivars.c between commits f464246d85d5 (efivars: only check for duplicates on the registered list) from Linus' tree and a2162ae42bc4 (Include missing linux/magic.h inclusions) from the vfs tree and commits

[PATCH] module: fix mutiple defined issue

2013-04-28 Thread Inki Dae
This patch fixes mutiple defined issue to MODULE_DEVICE_TABLE The issue could be induced when some framework which includes two more sub drivers, is built as one moudle because those sub drivers could have their own MODULE_DEVICE_TABLE. And 'struct of_device_id' isn't needed to be determined by

[PATCH] lib: add weak __clzsi2()/__clzdi2() functions

2013-04-28 Thread Chanho Min
Some architectures need __clzsi2() or __clzdi2() for __builtin_clz and It causes build failure. They can be implemented using the fls() and overridden by linking arch-specific versions may not be implemented yet. Reference: https://lkml.org/lkml/2013/4/18/603 Reported-by: Geert Uytterhoeven

Re: [PATCH] PM: Add pm_ops_ptr() macro

2013-04-28 Thread Jingoo Han
On Saturday, April 27, 2013 11:41 PM, Rafael J. Wysocki: On Saturday, April 27, 2013 11:54:50 AM Jingoo Han wrote: Add pm_ops_ptr() macro that allows the .pm entry in the driver structures to be assigned without having an #define xxx NULL for the case that PM is not enabled.

linux-next: build failure after merge of the tip tree

2013-04-28 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/firmware/efi/efivars.c: In function 'efivar_release': drivers/firmware/efi/efivars.c:300:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]

[PATCH 3/3] perf tools: add hardware breakpoint bp_len test cases

2013-04-28 Thread Jacob Shin
Signed-off-by: Jacob Shin jacob.s...@amd.com --- tools/perf/tests/parse-events.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 88e2f44..4fd0f96 100644 ---

Re: [PATCH 1/3] perf/x86/amd: AMD support for bp_len HW_BREAKPOINT_LEN_8

2013-04-28 Thread Jacob Shin
On Sat, Apr 27, 2013 at 06:10:28PM +0200, Oleg Nesterov wrote: On 04/27, Jacob Shin wrote: On Sat, Apr 27, 2013 at 05:05:10PM +0200, Oleg Nesterov wrote: ... + if (info-mask) + set_dr_addr_mask(0, i); I agree we should clear addr_mask anyway. But I

[PATCH 1/3] perf/x86/amd: AMD support for bp_len HW_BREAKPOINT_LEN_8

2013-04-28 Thread Jacob Shin
Implement hardware breakpoint address mask for AMD Family 16h and above processors. CPUID feature bit indicates hardware support for DRn_ADDR_MASK MSRs. These masks further qualify DRn/DR7 hardware breakpoint addresses to allow matching of larger addresses ranges. Valuable advice and pseudo code

[PATCH V4 0/3] perf/x86/amd: AMD Family 16h Data Breakpoint Extensions

2013-04-28 Thread Jacob Shin
Oleg, Ingo, this is my final push for 3.10. I understand that it might be too late for that .. if so I'll try again later for 3.11. The following patchset enables hardware breakpoint bp_len greater than HW_BREAKPOINT_LEN_8 on AMD Family 16h and later. $ perf stat -e mem:0x1000/16:w a.out

[PATCH 2/3] perf tools: allow user to specify hardware breakpoint bp_len

2013-04-28 Thread Jacob Shin
Currently bp_len is given a default value of 4. Allow user to override it: $ perf stat -e mem:0x1000/8 ^ bp_len If no value is given, it will default to 4 as it did before. Signed-off-by: Jacob Shin jacob.s...@amd.com ---

Re: [PATCH v3 03/27] PCI: pci resource iterator

2013-04-28 Thread Ram Pai
On Thu, Apr 25, 2013 at 11:22:59AM -0600, Bjorn Helgaas wrote: On Wed, Apr 24, 2013 at 9:55 PM, Ram Pai linux...@us.ibm.com wrote: On Wed, Apr 10, 2013 at 09:22:48AM -0600, Bjorn Helgaas wrote: On Mon, Apr 8, 2013 at 10:51 PM, Ram Pai linux...@us.ibm.com wrote: On Thu, Apr 04, 2013 at

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-28 Thread Will Huck
Hi Peter, On 04/28/2013 12:00 PM, H. Peter Anvin wrote: Not reserved page, reserved bits in the page tables (which includes all bits beyond the maximum physical address.) Thanks for your clarify. When these reserved bits are set? Another question, if configure UMA to fake numa can get

Re: [PATCH 10/14] sched: update the buddy CPU

2013-04-28 Thread Francesco Lavra
Hi, On 04/25/2013 07:23 PM, Vincent Guittot wrote: Periodically updates the buddy of a CPU according to the current activity of the system. A CPU is its own buddy if it participates to the packing effort. Otherwise, it points to a CPU that participates to the packing effort. Signed-off-by:

Re: [PATCH 1/2] clk: si5351: Fix clkout rate computation.

2013-04-28 Thread Sebastian Hesselbarth
On 04/23/2013 08:22 AM, Marek Belisko wrote: Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Beliskomarek.beli...@streamunlimited.com Marek, sorry for the late reply and very good catch! Acked-by: Sebastian Hesselbarth

Re: [PATCH 2/2] clk: si5351: Apply rate when clock-frequency is defined in devicetree.

2013-04-28 Thread Sebastian Hesselbarth
On 04/23/2013 08:22 AM, Marek Belisko wrote: clock-frequency property from devicetree was read but never used. Apply defined rate when clock is registered. Signed-off-by: Marek Beliskomarek.beli...@streamunlimited.com --- drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10

Re: [PATCH 1/4] net: velocity: Alphabetize #includes

2013-04-28 Thread Tony Prisk
On 28/04/13 17:21, David Miller wrote: From: Tony Prisk li...@prisktech.co.nz Date: Sun, 28 Apr 2013 15:16:43 +1200 Due to number of #includes, alphabetize them to help avoid duplicates. Signed-off-by: Tony Prisk li...@prisktech.co.nz Needless churn, I refuse to apply this. No problem -

Re: hybrid raid1 with trim support [REGRESSION]

2013-04-28 Thread Markus
Hi! Thanks for your work. The patch seems to work for me on a vanilla 3.8.10, at least the hdds are no longer dropped from the raid. The code now ignores some request? What was the reason the disks fell off the raid? The discards are still passed to the ssd? Thanks, Markus Shaohua Li

Re: [PATCH] kvm, svm: Fix typo in printk message

2013-04-28 Thread Gleb Natapov
On Fri, Apr 26, 2013 at 12:22:01AM +0200, Borislav Petkov wrote: From: Borislav Petkov b...@suse.de It is exit_int_info. It is actually EXITINTINFO in the official docs but we don't like screaming docs. Signed-off-by: Borislav Petkov b...@suse.de Applied, thanks. --- arch/x86/kvm/svm.c

Re: [PATCH v2 12/15] powerpc/85xx: add time base sync support for e6500

2013-04-28 Thread Zhao Chenhui
On Thu, Apr 25, 2013 at 07:07:24PM -0500, Scott Wood wrote: On 04/24/2013 07:28:18 PM, Zhao Chenhui wrote: On Wed, Apr 24, 2013 at 05:38:16PM -0500, Scott Wood wrote: On 04/24/2013 06:29:29 AM, Zhao Chenhui wrote: On Tue, Apr 23, 2013 at 07:04:06PM -0500, Scott Wood wrote: On 04/19/2013

Re: hybrid raid1 with trim support [REGRESSION]

2013-04-28 Thread Shaohua Li
On Sun, Apr 28, 2013 at 11:40:42AM +0200, Markus wrote: Hi! Thanks for your work. The patch seems to work for me on a vanilla 3.8.10, at least the hdds are no longer dropped from the raid. The code now ignores some request? What was the reason the disks fell off the raid? The discards are

Re: [PATCH] kvm: Allow build-time configuration of KVM device assignment

2013-04-28 Thread Gleb Natapov
On Tue, Apr 16, 2013 at 01:49:18PM -0600, Alex Williamson wrote: We hope to at some point deprecate KVM legacy device assignment in favor of VFIO-based assignment. Towards that end, allow legacy device assignment to be deconfigured. Signed-off-by: Alex Williamson alex.william...@redhat.com

Re: [PATCH] KVM: x86: Increase the hard max VCPU limit

2013-04-28 Thread Gleb Natapov
On Sat, Apr 27, 2013 at 06:31:04PM -0700, Chegu Vinod wrote: KVM guests today use 8bit APIC ids allowing for 256 ID's. Reserving one ID for Broadcast interrupts should leave 255 ID's. In case of KVM there is no need for reserving another ID for IO-APIC so the hard max limit for VCPUS can be

Re: [PATCH v2 02/15] powerpc/85xx: add sleep and deep sleep support

2013-04-28 Thread Zhao Chenhui
On Tue, Apr 23, 2013 at 06:53:20PM -0500, Scott Wood wrote: On 04/19/2013 05:47:35 AM, Zhao Chenhui wrote: static int pmc_suspend_enter(suspend_state_t state) { -int ret; +int ret = 0; + +switch (state) { +#ifdef CONFIG_PPC_85xx +case PM_SUSPEND_MEM: +#ifdef CONFIG_SPE

Re: [PATCH -next] ia64, metag: Do not export min_low_pfn in arch-specific code

2013-04-28 Thread James Hogan
On 27 April 2013 19:20, Geert Uytterhoeven ge...@linux-m68k.org wrote: As of commit 787dcbe6984b3638e94f60d807dcb51bb8a07211 (MIPS: Export symbols used by KVM/MIPS module), min_low_pfn is already exported by the generic mm/bootmem.c, causing: WARNING: vmlinux: 'min_low_pfn' exported twice.

[PATCH] clk: si5351: Allow to build without CONFIG_OF

2013-04-28 Thread Sebastian Hesselbarth
In clk-si5351 there was some dependency to CONFIG_OF that permitted the use of the driver on !CONFIG_OF platforms. This patch adds proper #ifdef around of_clk_add_provider and removes the dependency on CONFIG_OF. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: This

[PATCH 1/2] f2fs: fix inconsistent using of NM_WOUT_THRESHOLD

2013-04-28 Thread Haicheng Li
try_to_free_nats() is usually called with parameter nr_shrink as nm_i-nat_cnt - NM_WOUT_THRESHOLD by flush_nat_entries() during checkpointing process. However, this is inconsistent with the actual threshold check as if (nm_i-nat_cnt 2 * NM_WOUT_THRESHOLD) , which will ignore the

[PATCH 2/2] f2fs: remove useless #include linux/proc_fs.h as we're now using sysfs as debug entry.

2013-04-28 Thread Haicheng Li
Signed-off-by: Haicheng Li haicheng...@linux.intel.com --- fs/f2fs/debug.c |1 - fs/f2fs/gc.c|1 - fs/f2fs/super.c |1 - 3 files changed, 3 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 025b9e2..08c9ce3 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@

[PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-28 Thread Zhao Hongjiang
Without the patch, edp-urilen is increased before krealloc(). If krealloc() fails, edp-urilen is too high. Fix that by only updating edp-urilen if krealloc() is successful. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/exofs/sys.c |4 ++-- 1 files changed, 2 insertions(+),

Re: [PATCH v2] firewire: Fix 'failed to read phy reg' on FW643 rev8

2013-04-28 Thread Stefan Richter
On Mar 26 Peter Hurley wrote: --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c @@ -2268,8 +2268,8 @@ static int ohci_enable(struct fw_card *card, OHCI1394_HCControl_postedWriteEnable); flush_writes(ohci); - for (lps = 0, i = 0; !lps i 3; i++) { -

[PATCH usb-next] USB: Improve documentation for usbmon

2013-04-28 Thread Sedat Dilek
This is a give-back to USB folks who helped me in a USB debug issue. Signed-off-by: Sedat Dilek sedat.di...@gmail.com --- Documentation/usb/usbmon.txt | 87 1 file changed, 55 insertions(+), 32 deletions(-) diff --git a/Documentation/usb/usbmon.txt

Re: Bug#700333: Stack trace

2013-04-28 Thread vitalif
When you do a suspend/resume cycle. OK, yes, I've found it there. The bug says The photo shows a BUG in hrtimer_interrupt() after making the hibernation image and while resuming the non-boot CPUs. so I'm guessing with Thomas' patch it suspends fine now? Yeah, now I'm using a patched kernel

RE: [PATCH 1/2] pinctrl: tegra: add suspend-resume support

2013-04-28 Thread Bibek Basu
-Original Message- From: Thierry Reding [mailto:thierry.red...@avionic-design.de] Sent: Wednesday, April 24, 2013 12:14 AM To: Bibek Basu Cc: linus.wall...@linaro.org; swar...@wwwdotorg.org; linux- te...@vger.kernel.org; linux-kernel@vger.kernel.org; Pritesh Raithatha Subject: Re:

RE: [PATCH 2/2] ARM: DT: tegra: pinctrl suspend resume hook

2013-04-28 Thread Bibek Basu
-Original Message- From: Thierry Reding [mailto:thierry.red...@avionic-design.de] Sent: Saturday, April 27, 2013 1:19 AM To: Bibek Basu Cc: Rafael J. Wysocki; linus.wall...@linaro.org; swar...@wwwdotorg.org; linux-te...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-

[PATCH 0/2 v9] arm: introduce psci_smp_ops

2013-04-28 Thread Stefano Stabellini
Hi all, this is the nineth version of the patch series to move virt_smp_ops out of mach-virt and make it a generic set of reusable PSCI based smp_ops. psci_smp_ops are preferred over the platform smp_ops. The last patch introduces smp_init. Only one change in this last iteration: the PSCI

Re: linux-next: manual merge of the net-next tree with the net tree

2013-04-28 Thread Yuval Mintz
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c between commit ecf01c22be03 (bnx2x: Prevent NULL pointer dereference in kdump) from the net tree and commit 5b0752c863d7 (bnx2x: Fix VF statistics) from the net-next

[PATCH v9 2/2] ARM: Enable selection of SMP operations at boot time

2013-04-28 Thread Stefano Stabellini
From: Jon Medhurst t...@linaro.org Add a new 'smp_init' hook to machine_desc so platforms can specify a function to be used to setup smp ops instead of having a statically defined value. The hook must return true when smp_ops are initialized. If false the static mdesc-smp_ops will be used by

[PATCH v9 1/2] arm: introduce psci_smp_ops

2013-04-28 Thread Stefano Stabellini
Rename virt_smp_ops to psci_smp_ops and move them to arch/arm/kernel/psci_smp.c. Remove mach-virt/platsmp.c, now unused. Compile psci_smp if CONFIG_ARM_PSCI and CONFIG_SMP. Add a cpu_die smp_op based on psci_ops.cpu_off. Initialize PSCI before setting smp_ops in setup_arch. If PSCI is available

Re: [PATCH 2/3] random: Allow fractional bits to be tracked

2013-04-28 Thread Jiri Kosina
On Sat, 27 Apr 2013, H. Peter Anvin wrote: From: H. Peter Anvin h...@zytor.com Allow fractional bits of entropy to be tracked by scaling the entropy counter (fixed point). This will be used in a subsequent patch that accounts for entropy lost due to overwrites. Signed-off-by: H. Peter

Re: [PATCH 2/3] perf tools: allow user to specify hardware breakpoint bp_len

2013-04-28 Thread Oleg Nesterov
On 04/27, H. Peter Anvin wrote: On 04/27/2013 09:58 AM, Oleg Nesterov wrote: Stupid question... So X86_FEATURE_BPEXT only works for r/w? I mean, it doesn't allow to specify the mask for an execute breakpoint? x86 execute breakpoints in general are only a single byte, which has to be the

Re: [PATCH V4 0/3] perf/x86/amd: AMD Family 16h Data Breakpoint Extensions

2013-04-28 Thread Oleg Nesterov
On 04/28, Jacob Shin wrote: The following patchset enables hardware breakpoint bp_len greater than HW_BREAKPOINT_LEN_8 on AMD Family 16h and later. $ perf stat -e mem:0x1000/16:w a.out ^^ bp_len Will count writes to [0x1000 ~

Modifying an existing mount namespace where user_ns != mnt_ns-user_ns

2013-04-28 Thread richard -rw- weinberger
Hi! If I create a process with CLONE_NEWNS|CLONE_NEWUSER set, how can I modify the mount namespace later? I thought I simply can run setns(/proc/child/ns/mnt) within my privileged process which resists in the initial userns and then mount whatever I want into the child's mount namespace. But

Re: [PATCH v2] x86: make DR*_RESERVED unsigned long

2013-04-28 Thread Oleg Nesterov
On 04/28, Frederic Weisbecker wrote: On Sat, Apr 27, 2013 at 04:45:37PM +0200, Oleg Nesterov wrote: -/* Define reserved bits in DR6 which are always set to 1 */ -#define DR6_RESERVED (0x0FF0) +#define DR6_MASK (0xF00FU) /* Everything else is reserved */ I'm personally

Re: [PATCH v2] x86: make DR*_RESERVED unsigned long

2013-04-28 Thread H. Peter Anvin
On 04/28/2013 10:27 AM, Oleg Nesterov wrote: On 04/28, Frederic Weisbecker wrote: On Sat, Apr 27, 2013 at 04:45:37PM +0200, Oleg Nesterov wrote: -/* Define reserved bits in DR6 which are always set to 1 */ -#define DR6_RESERVED (0x0FF0) +#define DR6_MASK (0xF00FU) /*

Re: [PATCH v2] x86: make DR*_RESERVED unsigned long

2013-04-28 Thread Oleg Nesterov
On 04/28, H. Peter Anvin wrote: On 04/28/2013 10:27 AM, Oleg Nesterov wrote: Looks good. However, given the timing, I would think this is 3.11 material unless we have a manifest bug at this point. Yes, yes, this is only cleanup. I have several bits like this that I'm going to queue up in

Re: [PATCH v2] x86: make DR*_RESERVED unsigned long

2013-04-28 Thread H. Peter Anvin
On 04/28/2013 10:39 AM, Oleg Nesterov wrote: On 04/28, H. Peter Anvin wrote: On 04/28/2013 10:27 AM, Oleg Nesterov wrote: Looks good. However, given the timing, I would think this is 3.11 material unless we have a manifest bug at this point. Yes, yes, this is only cleanup. Thanks for

[PATCH v3 3/3] mutex: Add ww tests to lib/locking-selftest.c. v3

2013-04-28 Thread Maarten Lankhorst
This stresses the lockdep code in some ways specifically useful to ww_mutexes. It adds checks for most of the common locking errors. Changes since v1: - Add tests to verify reservation_id is untouched. - Use L() and U() macros where possible. Changes since v2: - Use the ww_mutex api directly.

[PATCH v3 0/3] Wait/wound mutex implementation, v3

2013-04-28 Thread Maarten Lankhorst
The following series implements the updated api for wait/wound mutex locks. The documentation and api should be complete, the implementation may not be final. There is no support for -rt yet, and TASK_DEADLOCK handling is missing too. However I believe that this is an implementation detail, and

[PATCH v3 1/3] arch: make __mutex_fastpath_lock_retval return whether fastpath succeeded or not.

2013-04-28 Thread Maarten Lankhorst
This will allow me to call functions that have multiple arguments if fastpath fails. This is required to support ticket mutexes, because they need to be able to pass an extra argument to the fail function. Originally I duplicated the functions, by adding __mutex_fastpath_lock_retval_arg. This

[PATCH v3 2/3] mutex: add support for wound/wait style locks, v3

2013-04-28 Thread Maarten Lankhorst
Changes since RFC patch v1: - Updated to use atomic_long instead of atomic, since the reservation_id was a long. - added mutex_reserve_lock_slow and mutex_reserve_lock_intr_slow - removed mutex_locked_set_reservation_id (or w/e it was called) Changes since RFC patch v2: - remove use of

Re: [PATCH] clk: si5351: Allow to build without CONFIG_OF

2013-04-28 Thread Arnd Bergmann
On Sunday 28 April 2013, Sebastian Hesselbarth wrote: diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index 8323c31..91c0f01 100644 --- a/drivers/clk/clk-si5351.c +++ b/drivers/clk/clk-si5351.c @@ -1489,12 +1489,14 @@ static int si5351_i2c_probe(struct i2c_client *client,

Re: [PATCH 1/1] driver,usb: Fix a warning in uhci-hcd driver

2013-04-28 Thread Alan Stern
On Sun, 28 Apr 2013, ZhenHua wrote: In fact, the patch is so easy that I am including it below. Please test this (without either of your patches) to see if it works. Alan Stern Index: usb-3.9/drivers/usb/host/uhci-hub.c

Re: Bug#700333: Stack trace

2013-04-28 Thread Borislav Petkov
On Sun, Apr 28, 2013 at 05:26:07PM +0400, vita...@yourcmc.ru wrote: When you do a suspend/resume cycle. OK, yes, I've found it there. The bug says The photo shows a BUG in hrtimer_interrupt() after making the hibernation image and while resuming the non-boot CPUs. so I'm guessing with

Re: Bug#700333: Stack trace

2013-04-28 Thread Thomas Gleixner
On Sun, 28 Apr 2013, Borislav Petkov wrote: On Sun, Apr 28, 2013 at 05:26:07PM +0400, vita...@yourcmc.ru wrote: When you do a suspend/resume cycle. OK, yes, I've found it there. The bug says The photo shows a BUG in hrtimer_interrupt() after making the hibernation image and while

Re: [PATCH v2] firewire: Fix 'failed to read phy reg' on FW643 rev8

2013-04-28 Thread Stefan Richter
On Mar 26 Peter Hurley wrote: --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c @@ -2268,8 +2268,8 @@ static int ohci_enable(struct fw_card *card, OHCI1394_HCControl_postedWriteEnable); flush_writes(ohci); - for (lps = 0, i = 0; !lps i 3; i++) { -

[patch] net, ipv4: fix link error when CONFIG_IPV6 is a module

2013-04-28 Thread David Rientjes
net/built-in.o: In function `ip_tunnel_xmit': (.text+0x11ec70): undefined reference to `icmpv6_send' Signed-off-by: David Rientjes rient...@google.com --- net/ipv4/ip_tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c ---

[patch] drivers, drm: fix qxl build error when debugfs is disabled

2013-04-28 Thread David Rientjes
Fix build error when CONFIG_DEBUG_FS is disabled: drivers/gpu/drm/qxl/qxl_debugfs.c: In function 'qxl_debugfs_init': drivers/gpu/drm/qxl/qxl_debugfs.c:76:2: error: implicit declaration of function 'drm_debugfs_create_files' drivers/gpu/drm/qxl/qxl_debugfs.c: In function 'qxl_debugfs_takedown':

Re: [ANNOUNCE] Git v1.8.3-rc0

2013-04-28 Thread Junio C Hamano
Michael Haggerty mhag...@alum.mit.edu writes: On 04/27/2013 04:24 AM, shawn wilson wrote: On Fri, Apr 26, 2013 at 8:22 PM, Junio C Hamano gits...@pobox.com wrote: * There was no good way to ask I have a random string that came from outside world. I want to turn it into a 40-hex object

[PATCH v2 RESEND] pnp: restore automatic resolution of DMA conflicts

2013-04-28 Thread David Flater
From: David Flater d...@flaterco.com To fix a 5-year-old regression, reverse the changes made in the following commit: commit 7ef36390fabe2168fe31f245e49eb4e5f3762622 Author: Jan Beulich jbeul...@novell.com Date: Tue Oct 16 23:31:07 2007 -0700 PNP: don't fail device init if no DMA channel

[PATCH v3] firewire: Fix 'failed to read phy reg' on FW643 rev8

2013-04-28 Thread Stefan Richter
From: Peter Hurley pe...@hurleysoftware.com With the LSI FW643 rev 8 [1], the first commanded bus reset at the conclusion of ohci_enable() has been observed to fail with the following messages: [4.884015] firewire_ohci :01:00.0: failed to read phy reg [5.684012] firewire_ohci

Re: [PATCH] UBI: fix memory leak when use fastmap

2013-04-28 Thread richard -rw- weinberger
Hi! On Tue, Apr 16, 2013 at 10:53 AM, wang.bo...@zte.com.cn wrote: Hello, Sorry, there is still something wrong with the previous patch's format, try to submit it again. When use ubi fastmap, there is a memory leak which will make destroy_ai() fail to free the slab alloced in

Re: [PATCH linux-next v8] cpufreq: convert the cpufreq_driver to use the rcu

2013-04-28 Thread Rafael J. Wysocki
On Thursday, April 04, 2013 09:57:19 PM Viresh Kumar wrote: On 4 April 2013 20:23, Nathan Zimmer nzim...@sgi.com wrote: We eventually would like to remove the rwlock cpufreq_driver_lock or convert it back to a spinlock and protect the read sections with RCU. The first step in that is

[PATCH] firewire: core: typecast from gfp_t to bool more safely

2013-04-28 Thread Stefan Richter
An idr related patch introduced the following sparse warning: drivers/firewire/core-cdev.c:488:33: warning: incorrect type in initializer (different base types) drivers/firewire/core-cdev.c:488:33:expected bool [unsigned] [usertype] preload drivers/firewire/core-cdev.c:488:33:got

Re: [PATCH] linux-next:usb-stor:realtek_cr:Fix compile error

2013-04-28 Thread Randy Dunlap
On 04/26/13 19:49, wei_w...@realsil.com.cn wrote: From: Wei WANG wei_w...@realsil.com.cn To fix the compile error when CONFIG_PM_RUNTIME is not enabled, move the declaration of us out of CONFIG_REALTEK_AUTOPM macro in rts51x_chip. drivers/usb/storage/realtek_cr.c: In function

Re: linux-next: Tree for Apr 26

2013-04-28 Thread Stephen Rothwell
Hi all, On Sat, 27 Apr 2013 19:06:53 +0200 Geert Uytterhoeven ge...@linux-m68k.org wrote: ia64-defconfig: (.text+0x3956a2): undefined reference to `ucs2_strsize' (.text+0x395f82): undefined reference to `ucs2_strsize' (.text+0x395fa2): undefined reference to `ucs2_strsize'

Re: linux-next: manual merge of the net-next tree with the net tree

2013-04-28 Thread Stephen Rothwell
Hi, On Sun, 28 Apr 2013 16:49:33 +0300 Yuval Mintz yuval...@broadcom.com wrote: Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c between commit ecf01c22be03 (bnx2x: Prevent NULL pointer dereference in kdump) from the net

Re: [PATCH v2 1/3] process cputimer is moving faster than its corresponding clock

2013-04-28 Thread Frederic Weisbecker
2013/4/27 Olivier Langlois oliv...@trillion01.com: Forbids the cputimer to drift ahead of its process clock by blocking its update when a tick occurs while a autoreaping task is currently in do_exit() between the call to release_task() and its final call to schedule(). Any task stats

Re: [PATCH] lguest: improve code readability in lg_cpu_start.

2013-04-28 Thread Rusty Russell
Cosmin Paraschiv csmnprs...@gmail.com writes: Make the container_of call friendlier and fix some comment slip-ups. Signed-off-by: Cosmin Paraschiv csmnprs...@gmail.com Cc: Daniel Baluta dbal...@ixiacom.com Applied. Thanks! Rusty. -- To unsubscribe from this list: send the line unsubscribe

Linux 3.9 released

2013-04-28 Thread Linus Torvalds
So the last week was much quieter than the preceding ones, which makes me suspect that one reason -rc7 was bigger than I liked was that people were gaming the system and had timed some of their pull requests for just before the release, explaining why -rc7 was big enough that I didn't actually

linux-next: build failure after merge of the nfsd tree

2013-04-28 Thread Stephen Rothwell
Hi J., After merging the nfsd tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: net/sunrpc/auth_gss/svcauth_gss.c: In function 'gss_proxy_save_rsc': net/sunrpc/auth_gss/svcauth_gss.c:1182:3: error: implicit declaration of function 'gss_mech_get_by_OID'

Re: [kernel-hardening] Re: [PATCH 3/6] x86: kaslr: return location from decompress_kernel

2013-04-28 Thread James Morris
On Fri, 26 Apr 2013, H. Peter Anvin wrote: + noaslr [X86] + Disable kernel base offset ASLR (Address Space + Layout Randomization) if built into the kernel. + noautogroup Disable scheduler automatic task group creation.

linux-next: build failure after merge of the xfs tree

2013-04-28 Thread Stephen Rothwell
Hi all, After merging the xfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: ERROR: xfs_dquot_buf_ops [fs/xfs/xfs.ko] undefined! Probably caused by commit 3fe58f30b4fc (xfs: add CRC checks for quota blocks). I have used the xfs tree from next-20130426 for today. --

[PATCH] Staging: rtl8187se: fixed coding style issues

2013-04-28 Thread Matt Kilgore
From: Matt Kilgore mattkilgor...@gmail.com Fixed coding style issues with comments, braces, and spacing. Signed-off-by: Matt Kilgore mattkilgor...@gmail.com --- drivers/staging/rtl8187se/r8180.h | 657 +++--- 1 file changed, 325 insertions(+), 332 deletions(-)

[PATCH 3/3] perf tools: add hardware breakpoint bp_len test cases

2013-04-28 Thread Jacob Shin
Signed-off-by: Jacob Shin --- tools/perf/tests/parse-events.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 88e2f44..4fd0f96 100644 --- a/tools/perf/tests/parse-events.c +++

  1   2   >