Re: String literals in __init functions

2015-03-26 Thread Joe Perches
On Thu, 2015-03-26 at 17:37 +0100, Mathias Krause wrote: > On 26 March 2015 at 17:13, Joe Perches wrote: > > On Thu, 2015-03-26 at 13:40 +0100, Mason wrote: > >> On 25/03/2015 19:01, Joe Perches wrote: > >> > On Wed, 2015-03-25 at 18:56 +0100, Mason wrote: > >> > > >> >> AFAIU, functions only

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Linus Torvalds
On Thu, Mar 26, 2015 at 10:24 AM, Christian Borntraeger wrote: > > Oh I just added that check back then because some guy named > Linus suggested something like that ;-) Yes, my bad. In my defense, that was when we were talking about ACCESS_ONCE() causing bugs with gcc due to the blind use of

Re: [PATCH v10 04/11] sched: Make sched entity usage tracking scale-invariant

2015-03-26 Thread Morten Rasmussen
On Thu, Mar 26, 2015 at 05:47:00PM +, Peter Zijlstra wrote: > On Thu, Mar 26, 2015 at 05:38:45PM +, Morten Rasmussen wrote: > > Another potential solution is to stay with weak functions but move the > > multiplication and shift into the arch_scale_*() functions by passing > > the value we

Re: [PATCH v10 04/11] sched: Make sched entity usage tracking scale-invariant

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 05:38:45PM +, Morten Rasmussen wrote: > Another potential solution is to stay with weak functions but move the > multiplication and shift into the arch_scale_*() functions by passing > the value we want to scale into the arch_scale_*() function. That way we > can

[PATCH 1/2] sched: Change arch_scale_*() functions to scale input factor

2015-03-26 Thread Morten Rasmussen
The arch_scale_{freq, cpu}_capacity() functions currently return a scaling factor that need to be multiplied and shifted by the caller. The default weak functions don't result in any scaling by the the multiplication and shift is still done. By moving the multiplication and shift into the

[PATCH 2/2] sched: Make sched entity usage tracking scale-invariant

2015-03-26 Thread Morten Rasmussen
Apply frequency scale-invariance correction factor to usage tracking. Each segment of the running_load_avg geometric series is now scaled by the current frequency so the utilization_avg_contrib of each entity will be invariant with frequency scaling. As a result, utilization_load_avg which is the

Re: [PATCH v10 04/11] sched: Make sched entity usage tracking scale-invariant

2015-03-26 Thread Morten Rasmussen
On Thu, Mar 26, 2015 at 05:38:45PM +, Morten Rasmussen wrote: > The only downside is that for frequency invariance we need three > arch_scale_freq_capacity() calls instead of two. It should have been instead of one... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[PATCH v4 1/2] mm: Introducing arch_remap hook

2015-03-26 Thread Laurent Dufour
Some architecture would like to be triggered when a memory area is moved through the mremap system call. This patch is introducing a new arch_remap mm hook which is placed in the path of mremap, and is called before the old area is unmapped (and the arch_unmap hook is called). The architectures

Re: [PATCH] ARM: DRA7: Enable Cortex A15 errata 798181

2015-03-26 Thread Tony Lindgren
* Nishanth Menon [150325 16:32]: > On 03/25/2015 06:25 PM, Praneeth Bajjuri wrote: > > ARM errata 798181 is applicable for OMAP5/DRA7 based devices. So enable > > the same in the build. > > > > DRA7xx is based on Cortex-A15 r2p2 revision. > > > > ARM Errata extract and workaround information is

[PATCH v4 0/2] Tracking user space vDSO remaping

2015-03-26 Thread Laurent Dufour
CRIU is recreating the process memory layout by remapping the checkpointee memory area on top of the current process (criu). This includes remapping the vDSO to the place it has at checkpoint time. However some architectures like powerpc are keeping a reference to the vDSO base address to build

Re: [PATCH] arm: mach-omap2: remove superfluous NULL pointer check

2015-03-26 Thread Tony Lindgren
* Stefan Agner [150321 17:00]: > The NULL pointer check for superset->muxnames will always evaluate > true since muxnames is an array within struct omap_mux. Remove the > superfluous check to avoid warnings when using LLVM/clang. > > Signed-off-by: Stefan Agner Applying into

[PATCH v4 2/2] powerpc/mm: Tracking vDSO remap

2015-03-26 Thread Laurent Dufour
Some processes (CRIU) are moving the vDSO area using the mremap system call. As a consequence the kernel reference to the vDSO base address is no more valid and the signal return frame built once the vDSO has been moved is not pointing to the new sigreturn address. This patch handles vDSO

Re: [PATCH v10 04/11] sched: Make sched entity usage tracking scale-invariant

2015-03-26 Thread Morten Rasmussen
On Wed, Mar 25, 2015 at 06:08:42PM +, Vincent Guittot wrote: > On 25 March 2015 at 18:33, Peter Zijlstra wrote: > > On Tue, Mar 24, 2015 at 11:00:57AM +0100, Vincent Guittot wrote: > >> On 23 March 2015 at 14:19, Peter Zijlstra wrote: > >> > On Fri, Feb 27, 2015 at 04:54:07PM +0100, Vincent

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

2015-03-26 Thread Tyler Baker
On 26 March 2015 at 09:29, John Stultz wrote: > On Thu, Mar 26, 2015 at 4:31 AM, Prarit Bhargava wrote: >> On 03/25/2015 07:44 PM, John Stultz wrote: >>> + printf("%-22s %s missing CAP_WAKE_ALARM?: >>> [UNSUPPORTED]\n", >>> +

Re: another pmem variant V2

2015-03-26 Thread Boaz Harrosh
On 03/26/2015 07:18 PM, Christoph Hellwig wrote: > On Thu, Mar 26, 2015 at 06:57:47PM +0200, Boaz Harrosh wrote: >> For one this auto discovery of yours is very (very) nice but is a bit >> inconvenience. Before I would reserve a big chuck on each NUMA range >> on Kernel's memmap= And then at pmem

Re: [PATCH] doc: completion: context, scope and language fixes

2015-03-26 Thread Jonathan Corbet
On Fri, 20 Feb 2015 12:28:48 -0500 Nicholas Mc Guire wrote: > This hopfully address all of the issues Ingo Molnar noted > in https://lkml.org/lkml/2015/2/18/690. This looks OK to me, modulo some small English quibbles. Ingo, does this satisfy your concerns? Thanks, jon -- To unsubscribe

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Christian Borntraeger
Am 26.03.2015 um 17:15 schrieb Linus Torvalds: > On Thu, Mar 26, 2015 at 7:22 AM, Peter Zijlstra wrote: >> >> So we can either just remove the READ_ONCE(), or replace it with a >> leading barrier() call just to be on the paranoid side of things. > > NOOO! > >> Any preferences? > > Not a

Re: [PATCH] SQUASHME: Streamline pmem.c

2015-03-26 Thread Christoph Hellwig
On Thu, Mar 26, 2015 at 07:02:17PM +0200, Boaz Harrosh wrote: > Christoph why did you choose the fat and ugly version of > pmem.c beats me. Anyway, here are the cleanups you need on > top of your pmem patch. > > Among other it does: > * Remove getgeo. It is not needed for modern fdisk and was

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Christian Borntraeger
Am 26.03.2015 um 18:07 schrieb Peter Zijlstra: > On Thu, Mar 26, 2015 at 09:45:07AM -0700, Linus Torvalds wrote: > >> Stop this idiocy. > > Yeah, clearly I can type faster than I can think straight :/ > > > In any case, I've the below patch; do you want to take it now or do you > want me to

Re: [PATCH v5 1/5] staging: unisys: remove redundant variable

2015-03-26 Thread Ben Romer
On 03/26/2015 09:47 AM, Ben Romer wrote: On 03/26/2015 08:01 AM, Greg Kroah-Hartman wrote: I need an ack from Benjamin and/or David before I can take these, as they are the maintainers of the driver, and have the ability to test these patches. I'll just wait to apply them until that happens.

Re: [PATCH v4 0/4] ARM: EXYNOS: cpuidle: add AFTR mode support for Exynos3250

2015-03-26 Thread Kukjin Kim
On 03/19/15 14:11, Chanwoo Choi wrote: > Hi Bartlomiej, > Hi, > I tested this patch-set for AFTR mode. > When CPU1 is offline state, I checked that CPU0 enter the AFTR mode. > > Tested-by: Chanwoo Choi > Thanks for your test. > Best Regards, > Chanwoo Choi > > On 03/19/2015 01:00 AM,

Re: another pmem variant V2

2015-03-26 Thread Christoph Hellwig
On Thu, Mar 26, 2015 at 06:57:47PM +0200, Boaz Harrosh wrote: > For one this auto discovery of yours is very (very) nice but is a bit > inconvenience. Before I would reserve a big chuck on each NUMA range > on Kernel's memmap= And then at pmem map= would slice and dice it > as I want hot style on

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Will Deacon
On Thu, Mar 26, 2015 at 05:07:48PM +, Peter Zijlstra wrote: > On Thu, Mar 26, 2015 at 09:45:07AM -0700, Linus Torvalds wrote: > > > Stop this idiocy. > > Yeah, clearly I can type faster than I can think straight :/ > > > In any case, I've the below patch; do you want to take it now or do

Re: [PATCH] Documentation:Update Documentation/zh_CN/arm64/booting.txt

2015-03-26 Thread Jonathan Corbet
On Tue, 24 Mar 2015 17:37:19 +0800 w...@redhat.com wrote: > This is a update of Chinese documentation: > Documentation/zh_CN/arm64/booting.txt > Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v3 -next 00/11] Extensible console matching & direct earlycon

2015-03-26 Thread Greg Kroah-Hartman
On Mon, Mar 09, 2015 at 04:27:11PM -0400, Peter Hurley wrote: > Changes from v2: > * remainder of unapplied series > * Changed the title and commit log for > "serial: earlycon: Allow earlycon params with name only" to > "serial: earlycon: Skip parse_options() for empty string" per Rob's >

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Paul E. McKenney
On Thu, Mar 26, 2015 at 09:37:50AM -0700, Linus Torvalds wrote: > On Mar 26, 2015 9:29 AM, "Peter Zijlstra" wrote: > > > > And the size check in READ_ONCE() helps asserting this. > > No it d does NOT. > > Even the documentation you quoted agrees with me: the shearing issue is > only for sizes

Re: [PATCH 1/9] usb:fsl:otg: Add controller version based ULPI and UTMI phy

2015-03-26 Thread Felipe Balbi
On Thu, Mar 26, 2015 at 08:47:36PM +0530, Ramneek Mehresh wrote: > Add controller version based ULPI and UTMI phy initialization for > otg driver > > Signed-off-by: Shengzhou Liu > Signed-off-by: Ramneek Mehresh > Reviewed-by: Fleming Andrew-AFLEMING > Tested-by: Fleming Andrew-AFLEMING this

Re: BUG: SCSI aic7xxx driver and AMD IOMMU

2015-03-26 Thread Mark Hounschell
On 03/26/2015 11:52 AM, Joerg Roedel wrote: Hi Mark, On Thu, Mar 26, 2015 at 10:58:15AM -0400, Mark Hounschell wrote: Sorry but CMA was still badly broken. I have a patch below that works. In which way is it broken? What happens when you try to allocate memory with dma_alloc_coherent? I

Re: [PATCH v2] stable_kernel_rules: Add clause about specification of kernel versions to patch.

2015-03-26 Thread David Daney
On 03/26/2015 10:03 AM, Geert Uytterhoeven wrote: Hi David, On Thu, Mar 26, 2015 at 5:44 PM, David Daney wrote: --- a/Documentation/stable_kernel_rules.txt +++ b/Documentation/stable_kernel_rules.txt @@ -81,6 +81,16 @@ format in the sign-off area: git cherry-pick fd21073 git

Should implementations of ->direct_access be allowed to sleep?

2015-03-26 Thread Matthew Wilcox
On Tue, Mar 24, 2015 at 11:50:47AM -0700, Matt Mullins wrote: > We're also developing a user of direct_access, and we ended up with some > questions about the sleeping guarantees of the direct_access API. That's a great question. Since DAX can always sleep when it's calling into

[PATCH v3] stable_kernel_rules: Add clause about specification of kernel versions to patch.

2015-03-26 Thread David Daney
From: David Daney Signed-off-by: David Daney --- v3: s/the the/the/ v2: Rebased, because first version no longer applied. Documentation/stable_kernel_rules.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/stable_kernel_rules.txt

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 09:45:07AM -0700, Linus Torvalds wrote: > Stop this idiocy. Yeah, clearly I can type faster than I can think straight :/ In any case, I've the below patch; do you want to take it now or do you want me to route it through tip/locking/urgent or something like that? ---

Re: [PATCH 0/1] DocBook media: fix broken EIA hyperlink

2015-03-26 Thread Jonathan Corbet
On Sun, 22 Mar 2015 11:35:55 -0700 Michael Opdenacker wrote: > This is a fix for the only broken link in kernel documentation, > at least according to the "linkchecker" tool that we are running > on the Free Electrons website once a day. > > As kernel documentation is part of our website > (on

Re: [PATCH v2] stable_kernel_rules: Add clause about specification of kernel versions to patch.

2015-03-26 Thread Geert Uytterhoeven
Hi David, On Thu, Mar 26, 2015 at 5:44 PM, David Daney wrote: > --- a/Documentation/stable_kernel_rules.txt > +++ b/Documentation/stable_kernel_rules.txt > @@ -81,6 +81,16 @@ format in the sign-off area: > git cherry-pick fd21073 > git cherry-pick > > +Also, some patches may have

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

2015-03-26 Thread Jason Low
On Thu, 2015-03-26 at 18:32 +0530, Preeti U Murthy wrote: > kernel/sched/fair.c |8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index bcfe320..8b6d0d5 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c >

[PATCH] SQUASHME: Streamline pmem.c

2015-03-26 Thread Boaz Harrosh
Christoph why did you choose the fat and ugly version of pmem.c beats me. Anyway, here are the cleanups you need on top of your pmem patch. Among other it does: * Remove getgeo. It is not needed for modern fdisk and was never needed for libgparted and cfdisk. * remove 89 lines of code to do a

Re: [PATCH 0/2 RESEND] IB/Verbs: Use helpers to refine the checking on transport and link layer

2015-03-26 Thread Michael Wang
On 03/26/2015 05:27 PM, Doug Ledford wrote: > On Thu, 2015-03-26 at 17:04 +0100, Michael Wang wrote: >> [snip] >> >> Few more questions here is: >> 1. when to setup? (maybe inside ib_register_device() before doing >> client->add() callback?) > I don't think "we" can set it up here. The driver's

Re: another pmem variant V2

2015-03-26 Thread Boaz Harrosh
On 03/26/2015 10:32 AM, Christoph Hellwig wrote: > Here is another version of the same trivial pmem driver, because two > obviously aren't enough. The first patch is the same pmem driver > that Ross posted a short time ago, just modified to use platform_devices > to find the persistant memory

Re: [PATCH v3 0/4] clk: st: New always-on clock domain

2015-03-26 Thread Geert Uytterhoeven
Hi Lee, On Thu, Mar 26, 2015 at 2:51 PM, Lee Jones wrote: > On Wed, 25 Mar 2015, Geert Uytterhoeven wrote: >> On Mon, Mar 9, 2015 at 10:28 AM, Lee Jones wrote: >> > On Fri, 06 Mar 2015, Mike Turquette wrote: >> >> This approach looks fine to me. In practice I think it is restricted to >> >>

[PATCH 5/6] pwm: samsung: Fix output race on disabling

2015-03-26 Thread Anand Moon
From: Sjoerd Simons When disabling the samsung PWM the output state remains at the level it was in the end of a pwm cycle. In other words, calling pwm_disable when at 100% duty will keep the output active, while at all other setting the output will go/stay inactive. On top of that the samsung

Build failures in -next from qcom_rpm.c

2015-03-26 Thread Mark Brown
On Thu, Mar 26, 2015 at 10:40:15AM +, Build bot for Mark Brown wrote: For the past couple of days -next has been failing to build an ARM allmodconfig due to the use of defines which don't appear anywhere in the kernel, introduced in f35ba5c9f6043 (mfd: qcom_rpm: Add support for IPQ8064): >

d63e2e1f3df breaks sparc/T5-8

2015-03-26 Thread David Ahern
Hi: Boot of an 8-socket T5 sparc system fails on top of tree. git bisect points to this commit: commit 904bf6bd150bdafb42ddbb3257ea8 Author: Yinghai Lu Date: Thu Jan 15 16:21:51 2015 -0600 sparc/PCI: Clip bridge windows to fit in upstream windows Every PCI-PCI bridge window should fit

Re: [PATCH v2 1/1] ARM: exynos_defconfig: Enable options to mount a rootfs via NFS

2015-03-26 Thread Kukjin Kim
On 03/26/15 04:08, Javier Martinez Canillas wrote: > This patch enables the options to mount a rootfs over NFS and also support > for automatic configuration of IP addresses during boot as needed by NFS. > > Signed-off-by: Javier Martinez Canillas > --- > > Changes since v1: > - Found a typo

Re: [PATCH v2] Documentation:Chinese translation of Documentation/arm64/legacy_instructions.txt

2015-03-26 Thread Amos Kong
On Thu, Mar 26, 2015 at 05:02:57PM +0800, w...@redhat.com wrote: > From: Fu Wei > > This is a Chinese translated version of > Documentation/arm64/legacy_instructions.txt > > It is based on the modifications of > Documentation/arm64/legacy_instructions.txt in submission: > "587064b6",

Re: [virtio-dev] Re: [PATCH] Add virtio gpu driver.

2015-03-26 Thread Michael S. Tsirkin
On Thu, Mar 26, 2015 at 04:07:16PM +0100, Gerd Hoffmann wrote: > Hi, > > > I don't know. This seems exactly like the kind of thing > > we had in mind when we added the virtio pci capability. > > For example, we have text in spec that requires drivers > > to skip unknown capabilities. > > > >

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 05:44:42PM +0100, Peter Zijlstra wrote: > On Thu, Mar 26, 2015 at 05:36:47PM +0100, Peter Zijlstra wrote: > > Can't we make an argument that these barrier calls are not required? The > > memcpy() call already guarantees we emit the loads and its opaque so the > > compiler

Re: [PATCH] stable_kernel_rules: Add clause about specification of kernel versions to patch.

2015-03-26 Thread David Daney
On 03/25/2015 07:05 AM, Greg Kroah-Hartman wrote: On Mon, Feb 09, 2015 at 03:39:23PM -0800, David Daney wrote: From: David Daney Signed-off-by: David Daney --- Documentation/stable_kernel_rules.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 05:36:47PM +0100, Peter Zijlstra wrote: > Can't we make an argument that these barrier calls are not required? The > memcpy() call already guarantees we emit the loads and its opaque so the > compiler cannot 'cache' the value. So I see not immediate reason for the > dual

Re: [PATCH 2/3] x86: add a is_e820_ram() helper

2015-03-26 Thread Christoph Hellwig
On Thu, Mar 26, 2015 at 05:49:38PM +0200, Boaz Harrosh wrote: > > + memmap=nn[KMG]!ss[KMG] > > + [KNL,X86] Mark specific memory as protected. > > + Region of memory to be used, from ss to ss+nn. > > + The memory region may be marked as e820

[PATCH v2] stable_kernel_rules: Add clause about specification of kernel versions to patch.

2015-03-26 Thread David Daney
From: David Daney Signed-off-by: David Daney --- v2: Rebased, because first version no longer applied. Documentation/stable_kernel_rules.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/stable_kernel_rules.txt b/Documentation/stable_kernel_rules.txt index

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

2015-03-26 Thread Kamezawa Hiroyuki
On 2015/03/27 0:18, Tejun Heo wrote: Hello, On Thu, Mar 26, 2015 at 01:04:00PM +0800, Gu Zheng wrote: wq generates the numa affinity (pool->node) for all the possible cpu's per cpu workqueue at init stage, that means the affinity of currently un-present ones' may be incorrect, so we need to

[PATCH] HID: logitech-hidpp: add a module parameter to keep firmware gestures

2015-03-26 Thread Benjamin Tissoires
The Logitech T650 used to report 3 fingers swipes to the up as a press on the Super key. When we switched the touchpad to the raw mode, we also disable such firmware gesture and some users may rely on it. Unfortunately, 3 finger swipes are still not supported in most of the Linux environments,

[PATCH 2/6] ARM: dts exynos5420 update the cooling cells for core cpu0

2015-03-26 Thread Anand Moon
update the cooling level for cpu0 to avoid following message. root@odroidxu3:~# dmesg | grep ther [0.241511] /thermal-zones/cpu-thermal/cooling-maps/map0: could not get #cooling-cells for /cpus/cpu@0 Signed-off-by: Anand Moon --- arch/arm/boot/dts/exynos5420.dtsi |

[PATCH 1/6] ARM: dts :exynos5422-odroidxu3 Add pwm-fan node to the Odroid-XU3 board.

2015-03-26 Thread Anand Moon
Add pwm-fan node to the OdroidXU3 board. Tested on OdroidXU3 board. Signed-off-by: Anand Moon --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts

[PATCH 4/6] ARM: dts: OdroidXU3: Enable TMU at Exynos5422 base.

2015-03-26 Thread Anand Moon
This commit enables TMU IP block on the Exynos5422 OdroidXU3 device. Tested on OdroidXU3 board. Signed-off-by: Anand Moon --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts

[PATCH 6/6] hwmon: pwm-fan: Update the duty cycle inorder to control the pwm-fan

2015-03-26 Thread Anand Moon
Below changes depend on following patch. https://patchwork.kernel.org/patch/5944061/ Update the pwm_config with duty then update the pwm_disable to poweroff the cpu fan. Tested on OdroidXU3 board. Signed-off-by: Anand Moon --- drivers/hwmon/pwm-fan.c | 10 -- 1 file changed, 4

[PATCH 3/6] ARM:dts exynos5422 Update the thermal sensor for tmu_cpu0

2015-03-26 Thread Anand Moon
Move the registration of thermal sensors for tmu_cpu0 from exynos5420.dtsi to exynos5-cpu-thermal.dtsi, to avoid duplicate registration of the sensors. Tested on OdroidXU3 board. Signed-off-by: Anand Moon --- arch/arm/boot/dts/exynos5-cpu-thermal.dtsi | 58 ++

Exynos5422 odroidxu3 pwm-fan control using thermal sensors

2015-03-26 Thread Anand Moon
This work depeds upon work done by Lukasz Majewski and Sjoerd Simons regarding the pwm-fan. -Anand Moon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: String literals in __init functions

2015-03-26 Thread Mathias Krause
On 26 March 2015 at 17:13, Joe Perches wrote: > On Thu, 2015-03-26 at 13:40 +0100, Mason wrote: >> On 25/03/2015 19:01, Joe Perches wrote: >> > On Wed, 2015-03-25 at 18:56 +0100, Mason wrote: >> > >> >> AFAIU, functions only used at system init are tagged __init to have >> >> the linker store

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 09:21:50AM -0700, Linus Torvalds wrote: > So the proper patch looks something like this: > > diff --git a/include/linux/compiler.h b/include/linux/compiler.h > index 1b45e4a0519b..f36e1abf56ea 100644 > --- a/include/linux/compiler.h > +++

Re: [PATCH 10/11] clocksource: flexcard: Add basic timestamp counter support

2015-03-26 Thread John Stultz
On Thu, Mar 26, 2015 at 4:01 AM, Holger Dengler wrote: > On 03/26/2015 10:41 AM, Daniel Lezcano wrote: >> >> config CLKSRC_FLEXCARD >> bool >> select CLKSRC_MMIO > > The Flexcard PMC II, which provides this clocksrc functionality, is a > PCI card. According to the PMC specs, this

Re: [PATCH 1/2] x86/cpu hotplug: make apicid <--> cpuid mapping persistent

2015-03-26 Thread Kamezawa Hiroyuki
On 2015/03/26 13:55, Gu Zheng wrote: > Hi Kame-san, > On 03/26/2015 11:19 AM, Kamezawa Hiroyuki wrote: > >> On 2015/03/26 11:17, Gu Zheng wrote: >>> Previously, we build the apicid <--> cpuid mapping when the cpu is present, >>> but >>> the relationship will be changed if the cpu/node hotplug

Re: [PATCH v8 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-26 Thread Yinghai Lu
On Mon, Mar 23, 2015 at 8:34 PM, Yijing Wang wrote: > Introduce pci_host_bridge_list to manage pci host > bridges in system, this make us have the ability > to check whether the new host would conflict with > existing one. Then we could remove bus alreay exist > check in __pci_create_root_bus().

Re: [RFC PATCH 00/11] an introduction of library operating system for Linux (LibOS)

2015-03-26 Thread Hajime Tazaki
Hi Richard, At Wed, 25 Mar 2015 23:50:23 +0100, Richard Weinberger wrote: > > Hi! > > Am 25.03.2015 um 15:48 schrieb Hajime Tazaki: > > > > At Tue, 24 Mar 2015 16:27:51 +0100, > > Richard Weinberger wrote: > >> > >> I'd say you should try hard to re-use/integrate your work in arch/um. > >>

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

2015-03-26 Thread John Stultz
On Thu, Mar 26, 2015 at 4:31 AM, Prarit Bhargava wrote: > On 03/25/2015 07:44 PM, John Stultz wrote: >> + printf("%-22s %s missing CAP_WAKE_ALARM?: >> [UNSUPPORTED]\n", >> + clockstring(clock_id), >> +

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 09:15:21AM -0700, Linus Torvalds wrote: > Notice how it is *not* about atomicitiy. The compiler can read the > value in fifteen pieces, randomly mixing one bit or five. Nobody > cares. If you read Documentation/memory-barriers.txt you'll find that it very much also is

Re: [PATCH] IIO: Adds ACPI support for ST gyroscopes

2015-03-26 Thread Octavian Purdila
On Thu, Mar 26, 2015 at 5:00 PM, Octavian Purdila wrote: > On Thu, Mar 26, 2015 at 4:47 PM, Mika Westerberg > wrote: >> On Thu, Mar 26, 2015 at 04:37:39PM +0200, Octavian Purdila wrote: >>> On Thu, Mar 26, 2015 at 4:04 PM, Mika Westerberg >>> wrote: >>> > On Thu, Mar 26, 2015 at 02:04:35PM

Re: [PATCH 0/2 RESEND] IB/Verbs: Use helpers to refine the checking on transport and link layer

2015-03-26 Thread Doug Ledford
On Thu, 2015-03-26 at 17:04 +0100, Michael Wang wrote: > Hi, Doug > > Thanks for the excellent comments :-) > > On 03/26/2015 03:09 PM, Doug Ledford wrote: > > On Wed, 2015-03-25 at 16:09 +0100, Michael Wang wrote: > >> [snip] > >> > > [snip] > > > > So, I would suggest that we fix things up

Re: [PATCH v3 3/9] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-26 Thread Srinivas Kandagatla
On 24/03/15 22:53, Mark Brown wrote: On Tue, Mar 24, 2015 at 10:30:08PM +, Srinivas Kandagatla wrote: +static ssize_t bin_attr_eeprom_write(struct file *filp, struct kobject *kobj, +struct bin_attribute *attr, +char

Re: [PATCH] Drivers: hv: hv_balloon: eliminate jumps in piecewiese linear floor function

2015-03-26 Thread Laszlo Ersek
On 03/26/15 11:26, Vitaly Kuznetsov wrote: > Commit 79208c57da53 ("Drivers: hv: hv_balloon: Make adjustments in computing > the floor") was inacurate as it introduced a jump in our piecewiese linear > 'floor' function: > > At 2048MB we have: > Left limit: > 104 + 2048/8 = 360 > Right limit: > 256

Re: [PATCH] Documentation:Chinese translation of Documentation/arm64/legacy_instructions.txt

2015-03-26 Thread Jonathan Corbet
On Thu, 26 Mar 2015 17:46:14 +0800 Fu Wei wrote: > Sorry, I didn't notice that you are the DOCUMENTATION Maintainers now. > I just checked the MAINTAINERS file. > will cc to you for all the documentation patch. The MAINTAINERS entry actually explicitly excludes the translation directories; it

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Linus Torvalds
On Thu, Mar 26, 2015 at 9:15 AM, Linus Torvalds wrote: > > Really. Just get rid of the checks - they were wrong. They were > clearly very close to *introducing* a bug, rather than fixing anything > at all. Side note: we will continue to expect the compiler to do single-word accesses as a single

Re: [PATCH 2/2] kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat

2015-03-26 Thread John Stultz
On Thu, Mar 26, 2015 at 4:32 AM, Prarit Bhargava wrote: > On 03/25/2015 07:44 PM, John Stultz wrote: >> For the default run_timers target, the timers tests takes the >> majority of kselftests runtime. >> >> So this patch reduces the default runtime for inconsistentcy-check >> and set-timer-lat,

Re: [PATCH] Drivers: hv: hv_balloon: survive ballooning request with num_pages=0

2015-03-26 Thread Laszlo Ersek
On 03/26/15 17:07, Vitaly Kuznetsov wrote: > ... and simplify alloc_balloon_pages() interface by removing redundant > alloc_error from it. > > If we happen to enter balloon_up() with balloon_wrk.num_pages = 0 we will > enter > infinite 'while (!done)' loop as alloc_balloon_pages() will be always

Re: linux-next: build warnings after merge of the access_once tree

2015-03-26 Thread Linus Torvalds
On Thu, Mar 26, 2015 at 7:22 AM, Peter Zijlstra wrote: > > So we can either just remove the READ_ONCE(), or replace it with a > leading barrier() call just to be on the paranoid side of things. NOOO! > Any preferences? Not a preference: a _requirement_. Get rid of the f*cking size checks etc

Re: String literals in __init functions

2015-03-26 Thread Joe Perches
On Thu, 2015-03-26 at 13:40 +0100, Mason wrote: > On 25/03/2015 19:01, Joe Perches wrote: > > On Wed, 2015-03-25 at 18:56 +0100, Mason wrote: > > > >> AFAIU, functions only used at system init are tagged __init to have > >> the linker store them in a separate .init.text section, so memory can > >>

Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator

2015-03-26 Thread Andrey Ryabinin
On 03/26/2015 12:55 AM, Andrew Morton wrote: > On Tue, 24 Mar 2015 16:10:01 -0700 (PDT) David Rientjes > wrote: > >> Elements backed by the slab allocator are poisoned when added to a >> mempool's reserved pool. >> >> It is also possible to poison elements backed by the page allocator >>

Re: [Linux-nvdimm] [PATCH 2/3] x86: add a is_e820_ram() helper

2015-03-26 Thread Boaz Harrosh
On 03/26/2015 06:02 PM, Dan Williams wrote: > On Thu, Mar 26, 2015 at 8:49 AM, Boaz Harrosh wrote: >> On 03/26/2015 11:34 AM, Christoph Hellwig wrote: >>> +/* >>> + * This is a non-standardized way to represent ADR or NVDIMM regions that >>> + * persist over a reboot. The kernel will ignore

[PATCH] Drivers: hv: hv_balloon: survive ballooning request with num_pages=0

2015-03-26 Thread Vitaly Kuznetsov
... and simplify alloc_balloon_pages() interface by removing redundant alloc_error from it. If we happen to enter balloon_up() with balloon_wrk.num_pages = 0 we will enter infinite 'while (!done)' loop as alloc_balloon_pages() will be always returning 0 and not setting alloc_error. We will also

Re: [patch 06/12] mm: oom_kill: simplify OOM killer locking

2015-03-26 Thread Michal Hocko
On Thu 26-03-15 11:17:46, Johannes Weiner wrote: > On Thu, Mar 26, 2015 at 02:31:11PM +0100, Michal Hocko wrote: [...] > > > @@ -795,27 +728,21 @@ bool out_of_memory(struct zonelist *zonelist, gfp_t > > > gfp_mask, > > > */ > > > void pagefault_out_of_memory(void) > > > { > > > - struct

Re: [PATCH 0/2 RESEND] IB/Verbs: Use helpers to refine the checking on transport and link layer

2015-03-26 Thread Michael Wang
Hi, Doug Thanks for the excellent comments :-) On 03/26/2015 03:09 PM, Doug Ledford wrote: > On Wed, 2015-03-25 at 16:09 +0100, Michael Wang wrote: >> [snip] >> > [snip] > > So, I would suggest that we fix things up thusly: > > enum transport { > TRANSPORT_IB=1, > TRANSPORT_IWARP=2,

Re: [PATCH] lglock: Use spinlock_t instead of arch_spinlock_t

2015-03-26 Thread Peter Zijlstra
On Thu, Mar 26, 2015 at 04:02:08PM +0100, Daniel Wagner wrote: > @@ -67,9 +67,9 @@ void lg_global_lock(struct lglock *lg) > preempt_disable(); > lock_acquire_exclusive(>lock_dep_map, 0, 0, NULL, _RET_IP_); > for_each_possible_cpu(i) { > - arch_spinlock_t *lock; > +

Re: [Linux-nvdimm] [PATCH 2/3] x86: add a is_e820_ram() helper

2015-03-26 Thread Dan Williams
On Thu, Mar 26, 2015 at 8:49 AM, Boaz Harrosh wrote: > On 03/26/2015 11:34 AM, Christoph Hellwig wrote: >> +/* >> + * This is a non-standardized way to represent ADR or NVDIMM regions that >> + * persist over a reboot. The kernel will ignore their special capabilities >> + * unless the

Re: [Linux-nvdimm] [PATCH 1/3] pmem: Initial version of persistent memory driver

2015-03-26 Thread Dan Williams
On Thu, Mar 26, 2015 at 7:52 AM, Boaz Harrosh wrote: > On 03/26/2015 04:12 PM, Dan Williams wrote: >> On Thu, Mar 26, 2015 at 1:32 AM, Christoph Hellwig wrote: >>> From: Ross Zwisler >>> > > Dan something is Broken with you mailer program it keeps dropping the > CC when sending replies. > > For

Re: [patch 08/12] mm: page_alloc: wait for OOM killer progress before retrying

2015-03-26 Thread Michal Hocko
On Wed 25-03-15 02:17:12, Johannes Weiner wrote: > There is not much point in rushing back to the freelists and burning > CPU cycles in direct reclaim when somebody else is in the process of > OOM killing, or right after issuing a kill ourselves, because it could > take some time for the OOM

[PATCH 06/13] thermal: streamline get_trend callbacks

2015-03-26 Thread Sascha Hauer
The .get_trend callback in struct thermal_zone_device_ops has the prototype: int (*get_trend) (struct thermal_zone_device *, int, enum thermal_trend *); whereas the .get_trend callback in struct thermal_zone_of_device_ops has: int (*get_trend)(void *,

[PATCH 02/13] thermal: trivial: fix typo in comment

2015-03-26 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 0e4ad7c..c735ac4c 100644 --- a/drivers/thermal/thermal_core.c +++

[PATCH 09/13] thermal: of: always set sensor related callbacks

2015-03-26 Thread Sascha Hauer
Now that the thermal core treats -ENOSYS like the callbacks were not present at all we no longer have to overwrite the ops during runtime but instead can always set them and return -ENOSYS if no sensor is registered. Signed-off-by: Sascha Hauer --- drivers/thermal/of-thermal.c | 18

[PATCH 10/13] thermal: Make struct thermal_zone_device_ops const

2015-03-26 Thread Sascha Hauer
Now that the of thermal support no longer changes the thermal_zone_device_ops it can be const again. Signed-off-by: Sascha Hauer --- drivers/thermal/thermal_core.c | 2 +- include/linux/thermal.h| 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 01/13] thermal: Make temperatures consistently unsigned long

2015-03-26 Thread Sascha Hauer
The thermal framework uses int, long and unsigned long for temperatures in millicelsius. The majority of functions uses unsigned long, so change the remaining functions to use this type aswell. Signed-off-by: Sascha Hauer --- drivers/thermal/thermal_core.c | 10 +-

[PATCH 03/13] thermal: remove useless call to thermal_zone_device_set_polling

2015-03-26 Thread Sascha Hauer
When the thermal zone has no get_temp callback then thermal_zone_device_register() calls thermal_zone_device_set_polling() with a polling delay of 0. This only cancels the poll_queue. Since the poll_queue hasn't been scheduled this is a no-op. Remove it. Signed-off-by: Sascha Hauer ---

[PATCH 12/13] thermal: Add support for hardware-tracked trip points

2015-03-26 Thread Sascha Hauer
This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points. Whenever the current temperature is updated, the trip points immediately below and above the current temperature are found. A .set_trips

[PATCH 13/13] thermal: of: implement .set_trips for device tree thermal zones

2015-03-26 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/thermal/of-thermal.c | 12 include/linux/thermal.h | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 9b63193..a3de5de 100644 --- a/drivers/thermal/of-thermal.c +++

[PATCH 08/13] thermal: Allow sensor ops to fail with -ENOSYS

2015-03-26 Thread Sascha Hauer
The thermal core uses the existence of the .get_temp, .get_trend and .set_emul_temp to detect whether this operation exists and should be used or whether it should be emulated in software. This makes problems for of-thermal which has to modify the struct thermal_zone_device_ops during runtime

Thermal: Cleanups, fixes and hardware trip points

2015-03-26 Thread Sascha Hauer
This series adds support for hardware trip points. It picks up earlier work from Mikko Perttunen. Mikko implemented hardware trip points as part of the device tree support. It was suggested back then to move the functionality to the thermal core instead of putting more code into the device tree

[PATCH 07/13] thermal: of: streamline .get_temp callbacks

2015-03-26 Thread Sascha Hauer
In the thermal framework it was decided that temperatures can't be negative, so let the .get_temp callback in struct thermal_zone_of_device_ops take an unsigned long pointer for the temperature like the .get_temp callback in struct thermal_zone_device_ops does. Signed-off-by: Sascha Hauer ---

[PATCH 04/13] thermal: Fix not emulating critical temperatures

2015-03-26 Thread Sascha Hauer
commit e6e238c38 (thermal: sysfs: Add a new sysfs node emul_temp for thermal emulation) promised not to emulate critical temperatures, but the check for critical temperatures is broken in multiple ways: - The code should only accept an emulated temperature when the emulated temperature is

[PATCH 11/13] thermal: of: make of_thermal_ops const

2015-03-26 Thread Sascha Hauer
Now that we no longer modify the ops they can be const again. Also we no longer have to duplicate them. Signed-off-by: Sascha Hauer --- drivers/thermal/of-thermal.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/thermal/of-thermal.c

[PATCH 05/13] thermal: inline only once used function

2015-03-26 Thread Sascha Hauer
Inline update_temperature into its only caller to make the code more readable. Signed-off-by: Sascha Hauer --- drivers/thermal/thermal_core.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c

Re: BUG: SCSI aic7xxx driver and AMD IOMMU

2015-03-26 Thread Joerg Roedel
Hi Mark, On Thu, Mar 26, 2015 at 10:58:15AM -0400, Mark Hounschell wrote: > Sorry but CMA was still badly broken. I have a patch below that works. In which way is it broken? What happens when you try to allocate memory with dma_alloc_coherent? > I've tested it with small (no CMA) and large

<    1   2   3   4   5   6   7   8   9   10   >