Re: [PATCH v2.1] ftracetest: Do not use usleep directly

2015-04-01 Thread Masami Hiramatsu
(2015/04/02 13:34), Namhyung Kim wrote: > The usleep is only provided on distros from Redhat so running ftracetest > on other distro resulted in failures due to the missing usleep. > > The reason of using [u]sleep in the test was to generate (scheduler) > events. It can be done various ways like

Re: [PATCH 6/7] block/partitions: use block_device name vsprintf helper

2015-04-01 Thread Sergey Senozhatsky
On (03/31/15 20:01), Dmitry Monakhov wrote: [..] > if(be32_to_cpu(magic) != SGI_LABEL_MAGIC) { > - /*printk("Dev %s SGI disklabel: bad magic %08x\n", > -bdevname(bdev, b), be32_to_cpu(magic));*/ > + /*printk("Dev %pg SGI disklabel: bad magic

[PATCH v2] clk: qcom: Add EBI2 clocks for IPQ806x

2015-04-01 Thread Archit Taneja
The NAND controller within EBI2 requires EBI2_CLK and EBI2_ALWAYS_ON_CLK clocks. Create structs for these clocks so that they can be used by the NAND controller driver. Add an entry for EBI2_AON_CLK in the gcc-ipq806x DT binding document. Signed-off-by: Archit Taneja --- v2: - removed

Re: [PATCH v5 02/10] pci: move pci_msi_init_pci_dev to probe.c

2015-04-01 Thread Eric W. Biederman
Fam Zheng writes: > On Sun, 03/29 17:04, Michael S. Tsirkin wrote: >> commit d5dea7d95c48d7bc951cee4910a7fd9c0cd26fb0 >> "PCI: msi: Disable msi interrupts when we initialize a pci device" >> fixes kexec when the booting kernel does not enable msi interupts. >> >> Unfortunately the relevant

[v3 5/5] arm: kvm: add stub implementation for kvm_cpu_reset()

2015-04-01 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- arch/arm/include/asm/kvm_asm.h |1 + arch/arm/include/asm/kvm_host.h | 12 arch/arm/include/asm/kvm_mmu.h |5 + arch/arm/kvm/init.S |6 ++ 4 files changed, 24 insertions(+) diff --git

[v3 3/5] arm64: kvm: add cpu reset hook for cpu hotplug

2015-04-01 Thread AKASHI Takahiro
This patch doesn't enable cpu hotplug under kvm, but is a prerequiste when the feature is implemented. Once kvm_arch_hardware_enable/disable() is properly implemented, arm64-specific cpu notifier hook, hyp_init_cpu_notify(), will be able to be removed and replaced by generic kvm_cpu_hotplug().

[v3 2/5] arm64: kvm: allow EL2 context to be reset on shutdown

2015-04-01 Thread AKASHI Takahiro
The current kvm implementation keeps EL2 vector table installed even when the system is shut down. This prevents kexec from putting the system with kvm back into EL2 when starting a new kernel. This patch resolves this issue by calling a cpu tear-down function via reboot notifier,

[v3 4/5] arm64: kvm: add cpu reset at module exit

2015-04-01 Thread AKASHI Takahiro
This patch doesn't enable kvm to be built as a module, but is a prerequisite when kvm is transformed to be module-capable. Signed-off-by: AKASHI Takahiro --- arch/arm/kvm/arm.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index

[v3 1/5] arm64: kvm: add a cpu tear-down function

2015-04-01 Thread AKASHI Takahiro
Cpu must be put back into its initial state, at least, in the following cases in order to shutdown the system and/or re-initialize cpus later on: 1) kexec/kdump 2) cpu hotplug (offline) 3) removing kvm as a module To address those issues in later patches, this patch adds a tear-down function,

[v3 0/5] arm64: kvm: reset hyp context for kexec

2015-04-01 Thread AKASHI Takahiro
This patch set addresses KVM issue described in Geoff's kexec patch set[1]. (The subject was changed from "arm64: kexec: fix kvm issue in kexec.") See "Changes" below. The basic approach here is to define a kvm tear-down function and add a reboot hook to gracefully shutdown the 1st kernel. This

Re: Concerns about "mpt2sas: Added Reply Descriptor Post Queue (RDPQ) Array support"

2015-04-01 Thread Benjamin Herrenschmidt
On Thu, 2015-02-19 at 21:45 -0800, James Bottomley wrote: > Ben, this is legal by design. It was specifically designed for the > aic79xx SCSI card, but can be used for a variety of other reasons. The > aic79xx hardware problem was that the DMA engine could address the whole > of memory (it had

Re: [PATCH 0/5] arm64: add kdump support

2015-04-01 Thread AKASHI Takahiro
Pratyush, On 04/02/2015 01:58 PM, Pratyush Anand wrote: On Thursday 02 April 2015 04:57 AM, AKASHI Takahiro wrote: Please try my latest kexec-tools in my linaro repo (branch name is kdump/v0.11) and let me know the result. Thanks a lot.. Just fetched your repo and found v.0.11. With this

Re: [PATCH v2 1/3] toshiba_acpi: Update and fix USB Sleep and Charge modes

2015-04-01 Thread Darren Hart
On Sun, Mar 29, 2015 at 07:25:39PM -0600, Azael Avalos wrote: > This patch fixes the USB Sleep and Charge mode on certain models > where the value returned by the BIOS is different, and thus, making > this feature not to work for those models. > > Also, the "Typical" charging mode was added as a

Re: [PATCH] perf: unwind: fix segbase for libunwind.

2015-04-01 Thread Wang Nan
On 2015/4/2 13:07, Wang Nan wrote: > On 2015/4/1 22:48, Ingo Molnar wrote: >> >> * Wang Nan wrote: >> >>> Perf passes incorrect segbase and table_data to libunwind when >>> map->pgoff != 0, causes unwind failure. This patch fixes this >>> problem. >>> >>> segbase is an absolute offset from the

Re: [PATCH 4/7] wmi: Use bool function return values of true/false not 1/0

2015-04-01 Thread Darren Hart
On Mon, Mar 30, 2015 at 10:43:20AM -0700, Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches Queued, thank you Joe. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH 59/86] x86/thinkpad_acpi: use uapi/linux/pci_ids.h directly

2015-04-01 Thread Darren Hart
On Sun, Mar 29, 2015 at 03:41:54PM +0200, Michael S. Tsirkin wrote: > Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, > use the new header directly so we can drop > the wrapper in include/linux/pci_ids.h. > > Signed-off-by: Michael S. Tsirkin This isn't in mainline yet, so I presume

Re: [PATCH] MAINTAINERS: Add me on list of Dell laptop drivers

2015-04-01 Thread Darren Hart
On Sun, Mar 29, 2015 at 03:38:50PM +0200, Pali Rohár wrote: Please include why. No empty commit messages please. For example, you've written nearly a third of the dell-wmi.c driver, and all the dell-smo8800.c driver. Dell Laptop is still pending the keyboard backlight patches though I believe

Re: [PATCH] perf: unwind: fix segbase for libunwind.

2015-04-01 Thread Wang Nan
On 2015/4/1 22:48, Ingo Molnar wrote: > > * Wang Nan wrote: > >> Perf passes incorrect segbase and table_data to libunwind when >> map->pgoff != 0, causes unwind failure. This patch fixes this >> problem. >> >> segbase is an absolute offset from the head of object file, directly >> read from

Re: [PATCH 0/5] arm64: add kdump support

2015-04-01 Thread Pratyush Anand
On Thursday 02 April 2015 04:57 AM, AKASHI Takahiro wrote: Please try my latest kexec-tools in my linaro repo (branch name is kdump/v0.11) and let me know the result. Thanks a lot.. Just fetched your repo and found v.0.11. With this crash kernel loaded successfully, if I do not use initrd.

[PATCH v2.1] ftracetest: Do not use usleep directly

2015-04-01 Thread Namhyung Kim
The usleep is only provided on distros from Redhat so running ftracetest on other distro resulted in failures due to the missing usleep. The reason of using [u]sleep in the test was to generate (scheduler) events. It can be done various ways like this: yield() { ping localhost -c 1 || sleep

Re: [PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-04-01 Thread Ohad Ben-Cohen
On Thu, Apr 2, 2015 at 12:32 AM, Tim Bird wrote: > I didn't see an Ack from Mark or Rob. But I did see a question from > Mark and response from Bjorn. > > Ohad - did you take this or are you still waiting for something? > > Who should I pester about this? :-) Sorry, I can't take this without a

Re: [PATCH 3/4] clk: Provide always-on clock support

2015-04-01 Thread Jassi Brar
On Wed, Apr 1, 2015 at 7:12 AM, Michael Turquette wrote: > Quoting Jassi Brar (2015-03-02 02:28:44) >> On 2 March 2015 at 15:48, Lee Jones wrote: >> > On Mon, 02 Mar 2015, Jassi Brar wrote: >> > >> >> On Mon, Mar 2, 2015 at 2:06 PM, Lee Jones wrote: >> >> > On Sat, 28 Feb 2015, Jassi Brar

Re: [PATCH v3] x86, earlyprintk: Fix two 'defined but not used' compile warnings

2015-04-01 Thread Borislav Petkov
On Wed, Apr 01, 2015 at 10:32:04PM +0100, Mark Einon wrote: > Two static functions are only used if CONFIG_PCI is defined,so only build them > if this is the case. Fixes the build warnings: > > arch/x86/kernel/early_printk.c:98:13: warning: ‘mem32_serial_out’ defined but > not used

[PATCH v2] ftracetest: Do not use usleep directly

2015-04-01 Thread Namhyung Kim
The usleep is only provided on distros from Redhat so running ftracetest on other distro resulted in failures due to the missing usleep. The reason of using [u]sleep in the test was to generate (scheduler) events. It can be done various ways like this: yield() { pinc localhost -c 1 || sleep

Re: [rhashtable] [ INFO: suspicious RCU usage. ]

2015-04-01 Thread Herbert Xu
On Thu, Apr 02, 2015 at 12:11:35PM +0800, Fengguang Wu wrote: > > Yes it is contained in next-20150401 which is bad: > > # extra tests on tree/branch next/master > git bisect bad e954104e2b634b42811dad8d502cbf240f206df2 # 21:22 0- > 60 Add linux-next specific

Re: [rhashtable] [ INFO: suspicious RCU usage. ]

2015-04-01 Thread Fengguang Wu
] > > [0.554400] === > > [0.555285] [ INFO: suspicious RCU usage. ] > > [0.556176] 4.0.0-rc4-01225-gccd57b1 #171 Not tainted > > [0.557156] --- > > [0.558044] lib/rhashtable.c:400 suspicious rcu_dereference_check() &

[PATCH v1.1] x86/mm/ASLR: Propagate ASLR status to kernel proper

2015-04-01 Thread Borislav Petkov
From: Borislav Petkov Date: Wed, 1 Apr 2015 12:49:52 +0200 Subject: [PATCH v1.1] x86/mm/ASLR: Propagate ASLR status to kernel proper Commit e2b32e678513 ("x86, kaslr: randomize module base load address") made module base address randomization unconditional and didn't regard disabled KASLR

Re: [rhashtable] [ INFO: suspicious RCU usage. ]

2015-04-01 Thread Herbert Xu
On Thu, Apr 02, 2015 at 08:52:11AM +0800, Fengguang Wu wrote: > Hi Herbert, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > commit ccd57b1bd32460d27bbb9c599e795628a3c66983 > Author:

Re: [PATCH v5 06/10] virtio_pci: drop msi_off on probe

2015-04-01 Thread Fam Zheng
On Sun, 03/29 17:04, Michael S. Tsirkin wrote: > pci core now disables msi on probe automatically, > drop this from device-specific code. > > Cc: Bjorn Helgaas > Cc: linux-...@vger.kernel.org > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virtio_pci_common.c | 3 --- > 1 file

Re: [PATCH v5 05/10] pci: make msi/msix shutdown functions static

2015-04-01 Thread Fam Zheng
On Sun, 03/29 17:04, Michael S. Tsirkin wrote: > pci_msi_shutdown and pci_msix_shutdown are now internal to msi.c, drop > them from header and make them static. Reviewed-by: Fam Zheng > > Signed-off-by: Michael S. Tsirkin > --- > include/linux/pci.h | 4 > drivers/pci/msi.c | 4 ++-- >

Re: [PATCH v5 04/10] pci: don't disable msi/msix at shutdown

2015-04-01 Thread Fam Zheng
On Sun, 03/29 17:04, Michael S. Tsirkin wrote: > This partially reverts commit d52877c7b1afb8c37ebe17e2005040b79cb618b0: > "pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2" > > It's un-necessary now that we disable msi at start, and it actually > turns out to cause problems:

Re: [PATCH v5 03/10] pci: drop some duplicate code

2015-04-01 Thread Fam Zheng
On Sun, 03/29 17:04, Michael S. Tsirkin wrote: > pci_msi_setup_pci_dev and pci_msi_off share a lot of code. > This used to be justified since pci_msi_setup_pci_dev > wasn't compiled in when CONFIG_PCI_MSI is off. > Now that it is, let's reuse code. > > Since pci_msi_off is used by early quirks,

Re: [PATCH] Btrfs: prevent deletion of mounted subvolumes

2015-04-01 Thread Omar Sandoval
On Wed, Apr 01, 2015 at 01:22:42PM +0200, David Sterba wrote: > On Wed, Apr 01, 2015 at 12:03:28AM -0700, Omar Sandoval wrote: > > --- a/fs/btrfs/super.c > > +++ b/fs/btrfs/super.c > > @@ -1024,6 +1024,10 @@ static int btrfs_show_options(struct seq_file *seq, > > struct dentry *dentry) > >

Re: Re: [PATCH perf/core ] perf-probe: Fix to track down unnamed union/structure members

2015-04-01 Thread Masami Hiramatsu
(2015/04/01 23:41), Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 01, 2015 at 06:08:17PM +0900, Masami Hiramatsu escreveu: >> Ping? > > > >>> With this patch, perf probe can access unnamed fields. >>> - >>> #./perf probe -nfx ./perf lock__delete ops 'locked_ops=ops->locked.ops' >>>

Re: msgrcv: use freezable blocking call

2015-04-01 Thread Maninder Singh
Hi Andrew, Both patches looks fine to us. Thank You > On Wed, Apr 01, 2015 at 05:18:46AM +, Maninder Singh wrote: > > Hi Andrew, > > Thanks for making new patch, Actually there is some problem with our mail > > editor. > > It changes tabs with spaces and corrupts the patch, we are solving

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alex Williamson
On Thu, 2015-04-02 at 14:40 +1100, Alexey Kardashevskiy wrote: > On 04/02/2015 01:50 PM, Alex Williamson wrote: > > On Thu, 2015-04-02 at 13:30 +1100, Alexey Kardashevskiy wrote: > >> On 04/02/2015 08:48 AM, Alex Williamson wrote: > >>> On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy

[PATCH v2] kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM

2015-04-01 Thread John Stultz
The set-timer-lat test fails when testing CLOCK_BOOTTIME_ALARM or CLOCK_REALTIME_ALARM when the user isn't running as root or with CAP_WAKE_ALARM. So this patch improves the error checking so we report the issue more clearly and continue rather then reporting a failure. Cc: Shuah Khan Cc:

Re: [PATCH 1/2] kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM

2015-04-01 Thread John Stultz
On Tue, Mar 31, 2015 at 8:55 AM, Shuah Khan wrote: > Hi John, > > I am seeing checkpatch warnings on this patch. See below. Sorry! > On 03/26/2015 05:31 AM, Prarit Bhargava wrote: >> >> >> On 03/25/2015 07:44 PM, John Stultz wrote: >>> The set-timer-lat test fails when testing

[PATCH 00/21] 4.1 time and rtc changes for tip/timers/core

2015-04-01 Thread John Stultz
Hey Ingo, Thomas, Peter, I wanted to send along my remaining 4.1 queue, which contains: * y2038 fixes for the timekeeping persistent- and boot-clock interfaces. (Xunlei) * y2038 fixes for RTC drivers (Xunlei) * Small suspend/resume timing fixes (Xunlei) * Minor cleanups requested by Ingo (Me)

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 01:50 PM, Alex Williamson wrote: On Thu, 2015-04-02 at 13:30 +1100, Alexey Kardashevskiy wrote: On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: This makes use of the it_page_size from the iommu_table struct as page

[PATCH 03/21] time: Add y2038 safe update_persistent_clock64()

2015-04-01 Thread John Stultz
From: Xunlei Pang As part of addressing in-kernel y2038 issues, this patch adds update_persistent_clock64() and replaces all the call sites of update_persistent_clock() with this function. This is a __weak implementation, which simply calls the existing y2038 unsafe update_persistent_clock().

[PATCH 04/21] ARM: OMAP: 32k counter: Provide y2038-safe omap_read_persistent_clock() replacement

2015-04-01 Thread John Stultz
From: Xunlei Pang As part of addressing "y2038 problem" for in-kernel uses, this patch adds the y2038-safe omap_read_persistent_clock64() using timespec64. Because we rely on some subsequent changes to convert arm multiarch support, omap_read_persistent_clock() will be removed then. Also

[PATCH 05/21] ARM: tegra: clock: Provide y2038-safe tegra_read_persistent_clock() replacement

2015-04-01 Thread John Stultz
From: Xunlei Pang As part of addressing "y2038 problem" for in-kernel uses, this patch adds the y2038-safe tegra_read_persistent_clock64() using timespec64. Because we rely on some subsequent changes to convert arm multiarch support, tegra_read_persistent_clock() will be removed then. Cc:

[PATCH 02/21] time: Add y2038 safe read_persistent_clock64()

2015-04-01 Thread John Stultz
From: Xunlei Pang As part of addressing in-kernel y2038 issues, this patch adds read_persistent_clock64() and replaces all the call sites of read_persistent_clock() with this function. This is a __weak implementation, which simply calls the existing y2038 unsafe read_persistent_clock(). This

[PATCH 09/21] rtc/ab3100: Update driver to address y2038/y2106 issues

2015-04-01 Thread John Stultz
From: Xunlei Pang This driver has a number of y2038/y2106 issues. This patch resolves them by: - Replace rtc_tm_to_time() with rtc_tm_to_time64() - Replace rtc_time_to_tm() with rtc_time64_to_tm() - Change ab3100_rtc_set_mmss() to use rtc_class_ops's set_mmss64() After this patch, the driver

Re: [PATCH v5 02/10] pci: move pci_msi_init_pci_dev to probe.c

2015-04-01 Thread Fam Zheng
On Sun, 03/29 17:04, Michael S. Tsirkin wrote: > commit d5dea7d95c48d7bc951cee4910a7fd9c0cd26fb0 > "PCI: msi: Disable msi interrupts when we initialize a pci device" > fixes kexec when the booting kernel does not enable msi interupts. > > Unfortunately the relevant functionality is in msi.c

[PATCH 06/21] ARM: time: Provide read_boot_clock64() and read_persistent_clock64()

2015-04-01 Thread John Stultz
From: Xunlei Pang As part of addressing "y2038 problem" for in-kernel uses, this patch converts read_boot_clock() to read_boot_clock64() and read_persistent_clock() to read_persistent_clock64() using timespec64 by converting clock_access_fn to use timespec64. Cc: Peter Zijlstra Cc: Thomas

[PATCH 11/21] rtc/mxc: Modify rtc_update_alarm() not to touch the alarm time

2015-04-01 Thread John Stultz
From: Xunlei Pang rtc_class_ops's set_alarm() shouldn't deal with the alarm date, as this is handled in the rtc core. See rtc_dev_ioctl()'s RTC_ALM_SET and RTC_WKALM_SET cases. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Acked-by: Alessandro Zummo Signed-off-by: Xunlei Pang

[PATCH 14/21] alpha: rtc: Change to use rtc_class_ops's set_mmss64()

2015-04-01 Thread John Stultz
From: Xunlei Pang Change alpha_rtc_set_mmss() and remote_set_mmss() to use rtc_class_ops's set_mmss64(). Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Acked-by: Alessandro Zummo Signed-off-by: Xunlei Pang Signed-off-by: John Stultz --- arch/alpha/kernel/rtc.c | 8 1

[PATCH 17/21] time: Fix a bug in timekeeping_suspend() with no persistent clock

2015-04-01 Thread John Stultz
From: Xunlei Pang When there's no persistent clock, normally timekeeping_suspend_time should always be zero, but this can break in timekeeping_suspend(). At T1, there was a system suspend, so old_delta was assigned T1. After some time, one time adjustment happened, and xtime got the value of

[PATCH 07/21] rtc: Provide y2038 safe rtc_class_ops.set_mmss() replacement

2015-04-01 Thread John Stultz
From: Xunlei Pang Currently the rtc_class_op's set_mmss() function takes a 32bit second value (on 32bit systems), which is problematic for dates past y2038. This patch provides a safe version named set_mmss64() using y2038 safe time64_t. After this patch, set_mmss() is deprecated and all its

[PATCH 21/21] time: Rework debugging variables so they aren't global

2015-04-01 Thread John Stultz
Ingo suggested that the timekeeping debugging variables recently added should not be global, and should be tied to the timekeeper's read_base. Thus this patch implements that suggestion. I'm a little hesitant here, since the tkr structure has been carefully designed to fit in a cacheline.

[PATCH 19/21] clocksource: Improve comment explaining clocks_calc_max_nsecs()'s 50% safety margin

2015-04-01 Thread John Stultz
Ingo noted that the description of clocks_calc_max_nsecs()'s 50% safety margin was somewhat circular. So this patch tries to improve the comment to better explain what we mean by the 50% safety margin and why we need it. Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Prarit

[PATCH 13/21] rtc/mxc: Update driver to address y2038/y2106 issues

2015-04-01 Thread John Stultz
From: Xunlei Pang This driver has a number of y2038/y2106 issues. This patch resolves them by: - Replace rtc_time_to_tm() with rtc_time64_to_tm() - Replace rtc_tm_to_time() with rtc_tm_to_time64() - Change mxc_rtc_set_mmss() to use rtc_class_ops's set_mmss64() After this patch, the driver

[PATCH 15/21] time: Don't build timekeeping_inject_sleeptime64() if no one uses it

2015-04-01 Thread John Stultz
From: Xunlei Pang timekeeping_inject_sleeptime64() is only used by RTC suspend/resume, so add build dependencies on the necessary RTC related macros. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Xunlei Pang [jstultz: Improve commit message clarity] Signed-off-by:

[PATCH 10/21] rtc/mc13xxx: Update driver to address y2038/y2106 issues

2015-04-01 Thread John Stultz
From: Xunlei Pang This driver has a number of y2038/y2106 issues. This patch resolves them by: - Replace rtc_time_to_tm() with rtc_time64_to_tm() - Change mc13xxx_rtc_set_mmss() to use rtc_class_ops's set_mmss64() After this patch, the driver should not have any remaining y2038/y2106 issues.

[PATCH 20/21] timekeeping: Change timekeeping_check_update() to take a tk_read_base

2015-04-01 Thread John Stultz
Ingo noted there was no reason to pass the timekeeper structure to timekeeping_check_update(), and the tk_read_base would be fine, which simplifies the amount of dereferencing to get to values we care about. So this patch simply changes the function as suggested. Cc: Ingo Molnar Cc: Thomas

[PATCH 18/21] time: rtc: Don't bother into rtc_resume() for the nonstop clocksource

2015-04-01 Thread John Stultz
From: Xunlei Pang If a system does not provide a persistent_clock(), the time will be updated on resume by rtc_resume(). With the addition of the non-stop clocksources for suspend timing, those systems set the time on resume in timekeeping_resume(), but may not provide a valid

[PATCH 12/21] rtc/mxc: Convert get_alarm_or_time()/set_alarm_or_time() to use time64_t

2015-04-01 Thread John Stultz
From: Xunlei Pang We want to convert mxc_rtc_set_mmss() to use rtc_class_ops's set_mmss64(), but it uses get_alarm_or_time()/set_alarm_or_time() internal interfaces which are y2038 unsafe. So here as a separate patch, it converts these two internal interfaces of "mxc" to use safe time64_t to

[PATCH 16/21] rtc: Remove redundant rtc_valid_tm() from rtc_resume()

2015-04-01 Thread John Stultz
From: Xunlei Pang rtc_read_time() has already judged valid tm by rtc_valid_tm(), so just remove it. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Xunlei Pang Signed-off-by: John Stultz --- drivers/rtc/class.c | 4 1 file changed, 4 deletions(-) diff --git

[PATCH 08/21] rtc/test: Update driver to address y2038/y2106 issues

2015-04-01 Thread John Stultz
From: Xunlei Pang This driver has a number of y2038/y2106 issues. This patch resolves them by: - Repalce get_seconds() with ktime_get_real_seconds() - Replace rtc_time_to_tm() with rtc_time64_to_tm() Also add test_rtc_set_mmss64() for testing rtc_class_ops's set_mmss64(), which can be

[PATCH 01/21] time: Add y2038 safe read_boot_clock64()

2015-04-01 Thread John Stultz
From: Xunlei Pang As part of addressing in-kernel y2038 issues, this patch adds read_boot_clock64() and replaces all the call sites of read_boot_clock() with this function. This is a __weak implementation, which simply calls the existing y2038 unsafe read_boot_clock(). This allows architecture

Re: kernel/timer: avoid spurious ksoftirqd wakeups

2015-04-01 Thread Hillf Danton
> --- a/kernel/time/tick-sched.c > +++ b/kernel/time/tick-sched.c > @@ -568,6 +568,7 @@ static ktime_t tick_nohz_stop_sched_tick(struct > tick_sched *ts, > unsigned long rcu_delta_jiffies; > struct clock_event_device *dev = > __this_cpu_read(tick_cpu_device.evtdev); > u64

Re: sched: Improve load balancing in the presence of idle CPUs

2015-04-01 Thread Jason Low
On Wed, 2015-04-01 at 18:04 +0100, Morten Rasmussen wrote: > On Wed, Apr 01, 2015 at 07:49:56AM +0100, Preeti U Murthy wrote: > > > > On 04/01/2015 12:24 AM, Jason Low wrote: > > > On Tue, 2015-03-31 at 14:07 +0530, Preeti U Murthy wrote: > > >> Hi Jason, > > >> > > >> On 03/31/2015 12:25 AM,

Re: [PATCH v5 01/10] pci: export functions for msi/msix ctrl

2015-04-01 Thread Fam Zheng
On Sun, 03/29 17:04, Michael S. Tsirkin wrote: > move pci_msi_set_enable and pci_msix_clear_and_set_ctrl out of msi.c, so > we can use them will be used which MSI isn't configured in kernel. if s/will be used which/when/ then Reviewed-by: Fam Zheng > > Signed-off-by: Michael S. Tsirkin >

Re: [PATCH] x86/numa: kernel stack corruption fix

2015-04-01 Thread Dave Young
Hi, Xishi [snip] > >> arch/x86/mm/numa.c |3 ++- > >> 1 file changed, 2 insertions(+), 1 deletion(-) > >> > >> --- linux.orig/arch/x86/mm/numa.c > >> +++ linux/arch/x86/mm/numa.c > >> @@ -484,7 +484,8 @@ static void __init numa_clear_kernel_nod > >> > >>/* Mark all kernel nodes. */ >

Re: [PATCH V2] sched: Improve load balancing in the presence of idle CPUs

2015-04-01 Thread Preeti U Murthy
Hi Morten, On 04/01/2015 06:33 PM, Morten Rasmussen wrote: >> Alright I see. But it is one additional wake up. And the wake up will be >> within the cluster. We will not wake up any CPU in the neighboring >> cluster unless there are tasks to be pulled. So, we can wake up a core >> out of a deep

Re: [PATCH v3 -next 11/11] serial: 8250_early: Remove setup_early_serial8250_console()

2015-04-01 Thread Peter Hurley
Hi Yinghai, On 04/01/2015 10:04 PM, Yinghai Lu wrote: > On Mon, Mar 9, 2015 at 1:27 PM, Peter Hurley wrote: >> setup_earlycon() will now match and register the desired earlycon >> from the param string (as if 'earlycon=...' had been set on the >> command line). Use setup_earlycon() from existing

Re: [PATCH drm] drm/vgem: vgem_gem_dumb_map() can be static

2015-04-01 Thread Joe Perches
On Thu, 2015-04-02 at 10:59 +0800, kbuild test robot wrote: > Signed-off-by: Fengguang Wu [] > diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c [] > @@ -195,7 +195,7 @@ static int vgem_gem_dumb_create(struct drm_file *file, > struct drm_device *dev, > return

[PATCH drm] drm/vgem: vgem_gem_dumb_map() can be static

2015-04-01 Thread kbuild test robot
Signed-off-by: Fengguang Wu --- vgem_drv.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index cb3b435..f7440e8c8 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c

[drm:drm-next 23/23] drivers/gpu/drm/vgem/vgem_drv.c:198:5: sparse: symbol 'vgem_gem_dumb_map' was not declared. Should it be static?

2015-04-01 Thread kbuild test robot
tree: git://people.freedesktop.org/~airlied/linux.git drm-next head: 502e95c6678505474f1056480310cd9382bacbac commit: 502e95c6678505474f1056480310cd9382bacbac [23/23] drm/vgem: implement virtual GEM reproduce: # apt-get install sparse git checkout 502e95c6678505474f1056480310cd9382bacbac

Re: [RFC][PATCH 09/17 v2] tracing: Show the mapped enums in enum_map file

2015-04-01 Thread Steven Rostedt
On Wed, 01 Apr 2015 21:56:57 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Add a enum_map file in the tracing directory to see what enums have been > saved to convert in the print fmt files. Hmm, I'm thinking of dropping this patch, and adding it later with a config

Re: [PATCH 0/2] workqueue: fix a bug when numa mapping is changed

2015-04-01 Thread Kamezawa Hiroyuki
On 2015/04/02 10:36, Gu Zheng wrote: Hi Kame, TJ, On 04/01/2015 04:30 PM, Kamezawa Hiroyuki wrote: On 2015/04/01 12:02, Tejun Heo wrote: On Wed, Apr 01, 2015 at 11:55:11AM +0900, Kamezawa Hiroyuki wrote: Now, hot-added cpus will have the lowest free cpu id. Because of this, in most of

Re: [PATCH kernel v7 28/31] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:55 +1100, Alexey Kardashevskiy wrote: We are adding support for DMA memory pre-registration to be used in conjunction with VFIO. The idea is that the userspace which is going to run a guest may want to pre-register a user

Re: [PATCH kernel v7 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-01 Thread Alex Williamson
On Thu, 2015-04-02 at 13:33 +1100, Alexey Kardashevskiy wrote: > On 04/02/2015 08:48 AM, Alex Williamson wrote: > > On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: > >> Modern IBM POWERPC systems support multiple (currently two) TCE tables > >> per IOMMU group (a.k.a. PE). This adds

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alex Williamson
On Thu, 2015-04-02 at 13:30 +1100, Alexey Kardashevskiy wrote: > On 04/02/2015 08:48 AM, Alex Williamson wrote: > > On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: > >> This makes use of the it_page_size from the iommu_table struct > >> as page size can differ. > >> > >> This

Re: [PATCH kernel v7 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table is

Re: [PATCH kernel v7 04/31] vfio: powerpc/spapr: Use it_page_size

2015-04-01 Thread Alexey Kardashevskiy
On 04/02/2015 08:48 AM, Alex Williamson wrote: On Sat, 2015-03-28 at 01:54 +1100, Alexey Kardashevskiy wrote: This makes use of the it_page_size from the iommu_table struct as page size can differ. This replaces missing IOMMU_PAGE_SHIFT macro in commented debug code as recently introduced

Re: [PATCH 4/5] phy: add Broadcom SATA3 PHY driver for Broadcom STB SoCs

2015-04-01 Thread Brian Norris
On Tue, Mar 31, 2015 at 11:31:40AM +0530, Kishon Vijay Abraham I wrote: > On Saturday 28 March 2015 05:58 AM, Brian Norris wrote: > >On Thu, Mar 26, 2015 at 03:29:44AM +0530, Kishon Vijay Abraham I wrote: > >>On Thursday 19 March 2015 06:53 AM, Brian Norris wrote: > >>>+static struct phy

[RFC][PATCH 04/17 v2] tracing: Give system name a pointer

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Normally the compiler will use the same pointer for a string throughout the file. But there's no guarantee of that happening. Later changes will require that all events have the same pointer to the system string. Name the system string and have all events point

[RFC][PATCH 09/17 v2] tracing: Show the mapped enums in enum_map file

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add a enum_map file in the tracing directory to see what enums have been saved to convert in the print fmt files. Signed-off-by: Steven Rostedt --- kernel/trace/trace.c | 110 +-- 1 file changed, 107

RE: [PATCH] PM / watchdog: iTCO: stop watchdog during system suspend

2015-04-01 Thread Fu, Borun
Sorry, my fault. It should work as well. -Original Message- From: Guenter Roeck [mailto:li...@roeck-us.net] Sent: Thursday, April 02, 2015 9:11 To: Fu, Borun; Rafael J. Wysocki; linux-watch...@vger.kernel.org Cc: Linux Kernel Mailing List; Linux PM list; Wim Van Sebroeck; Li, Aubrey;

[RFC][PATCH 10/17 v2] x86/tlb/trace: Export enums in used by tlb_flush tracepoint

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Have the enums used in __print_symbolic() by the trace_tlb_flush() tracepoint exported to userpace such that they can be parsed by userspace tools. Cc: Dave Hansen Signed-off-by: Steven Rostedt --- include/trace/events/tlb.h | 30

[RFC][PATCH 13/17 v2] irq/tracing: Export enums in tracepoints to user space

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The enums used by the softirq mapping is what is shown in the output of the __print_symbolic() and not their values, that are needed to map them to their strings. Export them to userspace with the TRACE_DEFINE_ENUM() macro so that user space tools can map the

[RFC][PATCH 11/17 v2] net/9p/tracing: Export enums in tracepoints to userspace

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The tracepoints in the 9p code use a lot of enums for the __print_symbolic() function. These enums are shown in the tracepoint format files, and user space tools such as trace-cmd does not have the information to parse it. Add helper macros to export the enums

[RFC][PATCH 08/17 v2] tracing/samples: Update the trace-event-sample.h with TRACE_DEFINE_ENUM()

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Document the use of TRACE_DEFINE_ENUM() by adding enums to the trace-event-sample.h and using this macro to convert them in the format files. Also update the comments and sho the use of __print_symbolic() and __print_flags() as well as adding comments abount

[RFC][PATCH 03/17 v2] tracing: Add TRACE_SYSTEM_VAR to xhci-hcd

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" New code will require TRACE_SYSTEM to be a valid C variable name, but some tracepoints have TRACE_SYSTEM with '-' and not '_', so it can not be used. Instead, add a TRACE_SYSTEM_VAR that can give the tracing infrastructure a unique name for the trace system. Cc:

[RFC][PATCH 02/17 v2] tracing: Add TRACE_SYSTEM_VAR to kvm-s390

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" New code will require TRACE_SYSTEM to be a valid C variable name, but some tracepoints have TRACE_SYSTEM with '-' and not '_', so it can not be used. Instead, add a TRACE_SYSTEM_VAR that can give the tracing infrastructure a unique name for the trace system. Cc:

[RFC][PATCH 14/17 v2] mm: tracing: Export enums in tracepoints to user space

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The enums used in tracepoints with __print_symbolic() have their names shown in the tracepoint format files and not their values. This makes it difficult for user space tools to convert the binary data to the strings as user space does not know what those enums

[RFC][PATCH 05/17 v2] tracing: Update trace-event-sample with TRACE_SYSTEM_VAR documentation

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add documentation about TRACE_SYSTEM needing to be alpha-numeric or with underscores, and that if it is not, then the use of TRACE_SYSTEM_VAR is required to make something that is. An example of this is shown in samples/trace_events/trace-events-sample.h

[RFC][PATCH 17/17 v2] writeback: Export enums used by tracepoint to user space

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The enums used in tracepoints for __print_symbolic() do not have their values shown in the tracepoint format files and this makes it difficult for user space tools to convert the binary values to the strings they are to represent. Add TRACE_DEFINE_ENUM(x) macros

[RFC][PATCH 06/17 v2] tracing: Add TRACE_DEFINE_ENUM() macro to map enums to their values

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Several tracepoints use the helper functions __print_symbolic() or __print_flags() and pass in enums that do the mapping between the binary data stored and the value to print. This works well for reading the ASCII trace files, but when the data is read via

Re: sched: Improve load balancing in the presence of idle CPUs

2015-04-01 Thread Jason Low
On Tue, 2015-03-31 at 14:07 +0530, Preeti U Murthy wrote: > On 03/31/2015 12:25 AM, Jason Low wrote: > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index fdae26e..ba8ec1a 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -7644,7 +7644,7 @@ static void

[RFC][PATCH 12/17 v2] f2fs: Export the enums in the tracepoints to userspace

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The tracepoints that use __print_symbolic() use enums as the value to convert to strings. Unfortunately, the format files for these tracepoints show the enum name and not their value. This causes some userspace tools not to know how to convert __print_symbolic()

[RFC][PATCH 07/17 v2] tracing: Allow for modules to export their trace enums as well

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Update the infrastructure such that modules that declare TRACE_DEFINE_ENUM() will have those enums shown in the enum_map files in the tracing directory. Link: http://lkml.kernel.org/r/87vbhjp74q@rustcorp.com.au Acked-by: Rusty Russell Signed-off-by: Steven

[RFC][PATCH 15/17 v2] SUNRPC: Export enums in tracepoints to user space

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The enums used in the tracepoints for __print_symbolic() have their names shown in the tracepoint format files. User space tools do not know how to convert those names into their values to be able to convert the binary data. Use TRACE_DEFINE_ENUM() to export the

[RFC][PATCH 00/17 v2] tracing: Use TRACE_DEFINE_ENUM() to show enum values

2015-04-01 Thread Steven Rostedt
As there are many tracepoints that use __print_symbolic() to translate numbers into ASCII strings, and several of these translate enums as well, it causes a problem for user space tools that read the tracepoint format files and have to translate the binary data to their associated strings. For

[RFC][PATCH 16/17 v2] v4l: Export enums used by tracepoints to user space

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Enums used by tracepoints for __print_symbolic() are shown in the tracepoint format files with just their names and not their values. This makes it difficult for user space tools to know how to convert the binary data into their string representations. By adding

[RFC][PATCH 01/17 v2] tracing: Add TRACE_SYSTEM_VAR to intel-sst

2015-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" New code will require TRACE_SYSTEM to be a valid C variable name, but some tracepoints have TRACE_SYSTEM with '-' and not '_', so it can not be used. Instead, add a TRACE_SYSTEM_VAR that can give the tracing infrastructure a unique name for the trace system. Cc:

Re: [PATCH v3 -next 11/11] serial: 8250_early: Remove setup_early_serial8250_console()

2015-04-01 Thread Yinghai Lu
On Mon, Mar 9, 2015 at 1:27 PM, Peter Hurley wrote: > setup_earlycon() will now match and register the desired earlycon > from the param string (as if 'earlycon=...' had been set on the > command line). Use setup_earlycon() from existing arch call sites > which start an earlycon directly. > Hi,

  1   2   3   4   5   6   7   8   9   10   >