Re: [PATCH 1/3 v2] drivers/bus: Added Freescale Management Complex APIs

2014-09-23 Thread Kim Phillips
On Fri, 19 Sep 2014 17:49:39 -0500 "J. German Rivera" wrote: > +int mc_get_version(struct fsl_mc_io *mc_io, struct mc_version *mc_ver_info) ... > + err = mc_send_command(mc_io, &cmd); > + if (err) > + return err; > + > + DPMNG_RSP_GET_VERSION(cmd, mc_ver_info); al

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Andrew Morton
On Tue, 23 Sep 2014 19:47:11 -0400 Peter Foley wrote: > On Tue, Sep 23, 2014 at 7:38 PM, Andrew Morton > wrote: > > This build error is caused by compiling mpssd prior to `make > > headers_install'. > > > > There's really no reason to check the kernel version. If someone > > transplants mpssd o

Re: [PATCH] workqueue: show the pool ID of the default pwq's pool in the pool_ids file

2014-09-23 Thread Lai Jiangshan
On 09/23/2014 10:38 PM, Tejun Heo wrote: > On Mon, Sep 22, 2014 at 04:04:37PM +0800, Lai Jiangshan wrote: >> It seems incomplete if the pool_ids file doesn't include the default >> pwq's pool. Add it and the result: >> >> # cat pool_ids >> 0:9 1:10 >> default:8 > > Hmmm? default pwq is used onl

Re: [PATCH] zsmalloc: merge size_class to reduce fragmentation

2014-09-23 Thread Joonsoo Kim
On Tue, Sep 23, 2014 at 03:25:55PM -0700, Andrew Morton wrote: > On Tue, 23 Sep 2014 17:30:11 +0900 Joonsoo Kim wrote: > > > zsmalloc has many size_classes to reduce fragmentation and they are > > in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. > > And, zsmalloc has constra

Re: [PATCH] ARM: shmobile: Remove ARCH_HAS_OPP completely

2014-09-23 Thread Simon Horman
On Tue, Sep 23, 2014 at 10:27:37AM +0200, Geert Uytterhoeven wrote: > On Tue, Sep 23, 2014 at 10:08 AM, Paul Bolle wrote: > > The Kconfig symbol ARCH_HAS_OPP became redundant in v3.16: commit > > 049d595a4db3 ("PM / OPP: Make OPP invisible to users in Kconfig") > > removed the only dependency that

Re: linux-next: build warning after merge of the net tree

2014-09-23 Thread Stephen Rothwell
Hi all, On Wed, 24 Sep 2014 07:23:06 +1000 Stephen Rothwell wrote: > > On Tue, 23 Sep 2014 16:59:59 +0200 Michal Marek wrote: > > > > On 2014-09-18 02:35, Randy Dunlap wrote: > > > On 09/17/14 17:32, Stephen Rothwell wrote: > > >> Hi all, > > >> > > >> After merging the net tree, today's linux-

[PATCH 0/4] toshiba_acpi: Return codes cleanup

2014-09-23 Thread Azael Avalos
Up for review. This series of patches are a cleanup thee Toshiba configuration interface return codes (unification), as well as changing the returned type of the HCI/SCI read/write functions from acpi_status to u32, since the "status" was never checked on most of the functions. I would like these

[PATCH 4/4] toshiba_acpi: Adapt functions to the changes made to HCI/SCI

2014-09-23 Thread Azael Avalos
The previous patch changed the return type for the HCI/SCI read/write functions. This patch adapts the code for that change, as now the "result" parameter is returned by those functions, instead of the ACPI status call. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 77 ++

[PATCH 1/4] toshiba_acpi: Rename hci_raw to tci_raw

2014-09-23 Thread Azael Avalos
The function name hci_raw was used before to reflect a raw (read/write) call to the Toshiba's Hardware Configuration Interface (HCI), however, since the introduction of the System Configuration Interface (SCI), that "name" no longer applies. This patch changes the name of that function to tci_raw

[PATCH 3/4] toshiba_acpi: Change HCI/SCI functions return code type

2014-09-23 Thread Azael Avalos
Currently the HCI/SCI read/write functions are returning the status of the ACPI call and also assigning the returned value of the HCI/SCI function. This patch changes such functions, returning the value of the HCI/SCI function instead of the ACPI call status. The next patch will change all the HC

[PATCH 2/4] toshiba_acpi: Unify return codes prefix to from HCI/SCI to TOS

2014-09-23 Thread Azael Avalos
The return codes are split in between HCI/SCI prefixes, but they are shared (used) by both interfaces, mixing hci_read/write calls with SCI_* return codes, and sci_read/write calls with HCI_* ones. This patch changes the prefix of the return codes definitions, dropping the HCI/SCI naming and inste

Re: [PATCH v12 05/12] PCI: OF: Fix the conversion of IO ranges into IO resources.

2014-09-23 Thread Bjorn Helgaas
[+cc Andrew] On Tue, Sep 23, 2014 at 08:01:07PM +0100, Liviu Dudau wrote: > The ranges property for a host bridge controller in DT describes > the mapping between the PCI bus address and the CPU physical address. > The resources framework however expects that the IO resources start > at a pseudo "

Re: [PATCH] perf tools: Fix line number in the config file error message

2014-09-23 Thread Namhyung Kim
Hi Jiri, On Tue, 23 Sep 2014 13:56:56 +0200, Jiri Olsa wrote: > On Tue, Sep 23, 2014 at 10:01:39AM +0900, Namhyung Kim wrote: >> Hello, >> >> This is patchset to add new callchain related config options so that >> users don't need to pass their preference to the cmdline everytime. >> >> Followin

[PATCH v5 2/2] iio/adc: add support for axp288 adc

2014-09-23 Thread Jacob Pan
Platform driver for X-Powers AXP288 ADC, which is a sub-device of the customized AXP288 PMIC for Intel Baytrail-CR platforms. GPADC device enumerates as one of the MFD cell devices. It uses IIO infrastructure to communicate with userspace and consumer drivers. Usages of ADC channels include batter

[PATCH v5 1/2] mfd/axp20x: extend axp20x to support axp288 pmic

2014-09-23 Thread Jacob Pan
X-Powers AXP288 is a customized PMIC for Intel Baytrail-CR platforms. Similar to AXP202/209, AXP288 comes with USB charger, more LDO and BUCK channels, and AD converters. It also provides extended status and interrupt reporting capabilities than the devices currently supported in axp20x.c. In addi

[PATCH v5 0/2] Initial support for XPowers AXP288 PMIC

2014-09-23 Thread Jacob Pan
X-Powers AXP288 is a customized PMIC found on some Intel Baytrail-CR platforms. It comes with sub-functions such as USB charging, fuel gauge, ADC, and many LDO and BUCK channels. By extending the existing AXP20x driver, this patchset adds basic support for AXP288 PMIC with ADC as one MFD cell devi

Re: [PATCH v4 1/14] input: cyapa: re-architecture driver to support multi-trackpads in one driver

2014-09-23 Thread Dmitry Torokhov
Hi Dudley, On Fri, Aug 22, 2014 at 04:41:07PM +0800, Dudley Du wrote: > Dmitry, > > Thanks for your feedback. > > Thanks, > Dudley > > > -Original Message- > > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > > Sent: Friday, August 22, 2014 2:21 AM > > To: Dudley Du > > Cc: Ra

Re: [patch] mm, slab: initialize object alignment on cache creation

2014-09-23 Thread David Rientjes
On Tue, 23 Sep 2014, Christoph Lameter wrote: > > The proper alignment defaults to BYTES_PER_WORD and can be overridden by > > SLAB_RED_ZONE or the alignment specified by the caller. > > Where does it default to BYTES_PER_WORD in __kmem_cache_create? > Previous to commit 4590685546a3 ("mm/sl[ao

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Greg Thelen
On Tue, Sep 23 2014, Johannes Weiner wrote: > On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: >> >> On Fri, Sep 19 2014, Johannes Weiner wrote: >> >> > In a memcg with even just moderate cache pressure, success rates for >> > transparent huge page allocations drop to zero, wasting

Re: [PATCH v5] x86, cpu-hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-23 Thread Wanpeng Li
于 14-9-23 下午5:37, Borislav Petkov 写道: On Wed, Sep 17, 2014 at 03:17:52PM +0800, Wanpeng Li wrote: BUG: unable to handle kernel NULL pointer dereference at 0004 IP: [..] find_busiest_group PGD 5a9d5067 PUD 13067 PMD 0 Oops: [#3] SMP [...] Call Trace: load_balance ? _raw_spin_unl

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 7:38 PM, Andrew Morton wrote: > This build error is caused by compiling mpssd prior to `make > headers_install'. > > There's really no reason to check the kernel version. If someone > transplants mpssd out of its distributed kernel and into some older > kernel then a misco

Re: [PATCH v6 1/2] regulator: st-pwm: get voltage and duty table from dts

2014-09-23 Thread Doug Anderson
Chris, On Tue, Sep 23, 2014 at 8:53 AM, Chris Zhong wrote: > Get voltage & duty table from device tree might be better, other platforms > can also use this > driver without any modify. > > Signed-off-by: Chris Zhong > Reviewed-by: Doug Anderson I finally managed to get everything setup and I'

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Andrew Morton
On Tue, 23 Sep 2014 19:23:39 -0400 Peter Foley wrote: > On Tue, Sep 23, 2014 at 6:59 PM, ashutosh dixit > wrote: > > Correct, if things in Documentation will be compiled against the headers > > in the kernel source tree then this patch is not required. However, > > Andrew had reported the follow

Re: [PATCH] Documentation: remove networking/.gitignore

2014-09-23 Thread Randy Dunlap
On 09/23/14 15:48, Peter Foley wrote: > Remove empty networking/.gitignore > > Signed-off-by: Peter Foley > Cc: rdun...@infradead.org > Cc: linux-...@vger.kernel.org > --- > Documentation/networking/.gitignore | 0 > 1 file changed, 0 insertions(+), 0 deletions(-) > delete mode 100644 Documenta

Re: [PATCH v4 5/5] drm/rockchip: Add support for Rockchip Soc EDP

2014-09-23 Thread Rob Clark
On Tue, Sep 23, 2014 at 9:56 AM, Rob Clark wrote: > On Tue, Sep 23, 2014 at 4:47 AM, cym wrote: >> >> On Tuesday, September 23, 2014 03:20 AM, Rob Clark wrote: >>> >>> On Mon, Sep 22, 2014 at 7:02 AM, Mark yao wrote: This adds support for Rockchip soc edp found on rk3288 Sign

Re: [PATCH v3] mptfusion: enable no_write_same for vmware scsi disks

2014-09-23 Thread Martin K. Petersen
> "Chris" == Chris J Arges writes: Chris> 1) Does this workaround make sense? Perhaps there is an easier Chris>way? One option is to ship a udev rule that disables write same on VMware disks. However, I don't have a fundamental problem having a workaround for this in the kernel. Chris>

Re: [patch] mm, slab: initialize object alignment on cache creation

2014-09-23 Thread Christoph Lameter
On Tue, 23 Sep 2014, David Rientjes wrote: > The proper alignment defaults to BYTES_PER_WORD and can be overridden by > SLAB_RED_ZONE or the alignment specified by the caller. Where does it default to BYTES_PER_WORD in __kmem_cache_create? -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 6:59 PM, ashutosh dixit wrote: > Correct, if things in Documentation will be compiled against the headers > in the kernel source tree then this patch is not required. However, > Andrew had reported the following compile error: > >> In file included from Documentation/mic/mp

Re: [PATCH v2 5/7] selftests/mount: change test to use ksft framework

2014-09-23 Thread Shuah Khan
On 09/23/2014 05:07 PM, Eric W. Biederman wrote: > Shuah Khan writes: > >> On 09/23/2014 04:41 PM, Eric W. Biederman wrote: >>> Shuah Khan writes: >>> Change mount test to use kselftest framework to report test results. >>> >>> Nacked-by: "Eric W. Biederman" >>> >>> I am curious did y

[RFC PATCH] pwm: Add the concept of an "active" pinctrl

2014-09-23 Thread Doug Anderson
There are cases where you really don't want a PWM's pinctrl to take effect until you know that the PWM is driving at the proper rate. A good example of this is a PWM-controlled regulator, where the boot state of the pin (maybe a pulled down input) could cause a vastly different voltage to take eff

[PATCH] driver: staging: android: binder.c: Fixed line over 80 characters warning.

2014-09-23 Thread Elshad Mustafayev
Fixed a coding style issue. Signed-off-by: Elshad Mustafayev --- drivers/staging/android/binder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index c69c40d..71424bf 100644 --- a/drivers/staging/andro

Re: [PATCHv7 13/26] vfio: amba: add the VFIO for AMBA devices module to Kconfig

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 16:46 +0200, Antonios Motakis wrote: > Enable building the VFIO AMBA driver. VFIO_AMBA depends on VFIO_PLATFORM, > since it is sharing a portion of the code, and it is essentially implemented > as a platform device whose resources are discovered via AMBA specific APIs > in the

[PATCH v2 3/3] watchdog: qcom: register a restart notifier

2014-09-23 Thread Josh Cartwright
The WDT's BITE_TIME warm-reset behavior can be leveraged as a last resort mechanism for triggering chip reset. Usually, other restart methods (such as PS_HOLD) are preferrable for issuing a more complete reset of the chip. As such, keep the priority of the watchdog notifier low. Signed-off-by: J

[PATCH v2 0/3] watchdog: add support for QCOM WDT

2014-09-23 Thread Josh Cartwright
This patchset provides support for the Watchdog Timer (WDT) found in the Krait Processor Sub-system (KPSS) of the MSM8960, APQ8064, and IPQ8064 chips. This driver is implemented ontop of WATCHDOG_CORE, and therefore its primary interface is through userspace. The implemantion is currently very ba

[PATCH v2 2/3] watchdog: qcom: document device tree bindings

2014-09-23 Thread Josh Cartwright
The Qualcomm Krait Processor Sub-system (KPSS) contains one or more instances of the WDT. Provide documentation on how to describe these in the device tree. Signed-off-by: Josh Cartwright --- .../devicetree/bindings/watchdog/qcom-wdt.txt | 22 ++ 1 file changed, 22 inse

[PATCH v2 1/3] watchdog: qcom: add support for KPSS WDT

2014-09-23 Thread Josh Cartwright
Add a driver for the watchdog timer block found in the Krait Processor Subsystem (KPSS) on the MSM8960, APQ8064, and IPQ8064. Signed-off-by: Josh Cartwright --- drivers/watchdog/Kconfig| 13 drivers/watchdog/Makefile | 1 + drivers/watchdog/qcom-wdt.c | 176

[PATCH] stagging : rtl8821ae : Fixed sparse warning

2014-09-23 Thread Jerry Stralko
Symbol was not declared. Should it be static? Signed-off-by: Jerry Stralko --- drivers/staging/rtl8821ae/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8821ae/base.c b/drivers/staging/rtl8821ae/base.c index 4a36da0..dea3c4b 100644 --- a/drivers/

Re: [PATCH v2 5/7] selftests/mount: change test to use ksft framework

2014-09-23 Thread Eric W. Biederman
Shuah Khan writes: > On 09/23/2014 04:41 PM, Eric W. Biederman wrote: >> Shuah Khan writes: >> >>> Change mount test to use kselftest framework to report >>> test results. >> >> Nacked-by: "Eric W. Biederman" >> >> I am curious did you even run these tests? I can't possibly see how >> the

[GIT PULL] qcom clocks changes for 3.18

2014-09-23 Thread Stephen Boyd
Hi Mike, A smallish pull request for 3.18. The next batch of stuff is going to require more review from your side (cpufreq, nss, etc.) The following changes since commit 52addcf9d6669fa439387610bc65c92fa0980cef: Linux 3.17-rc2 (2014-08-25 15:36:20 -0700) are available in the git repository at

Re: [PATCH v2] coredump: add %i/%I in core_pattern to report the tid of the crashed thread

2014-09-23 Thread Andrew Morton
On Mon, 22 Sep 2014 19:15:25 +0200 Oleg Nesterov wrote: > format_corename() can only pass the leader's pid to the core handler, but > there is no simple way to figure out which thread originated the coredump. > > As Jan explains, this also means that there is no simple way to create the > backtr

Boot failure caused by "mm/cma.c: free the reserved memblock when free cma pages"

2014-09-23 Thread Sasha Levin
D: 1 Comm: swapper/0 Not tainted 3.17.0-rc6-next-20140923-sasha-00037-gc40eca4 #1213 [2.438701] task: 88076d7d ti: 880048d4 task.ti: 880048d4 [2.438701] RIP: memblock_isolate_range (mm/memblock.c:624) [2.438701] RSP: :880048d43cf8 EFLAGS: 0001028

Re: [PATCHv7 10/26] vfio: platform: probe to devices on the platform bus

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 16:46 +0200, Antonios Motakis wrote: > Driver to bind to Linux platform devices, and callbacks to discover their > resources to be used by the main VFIO PLATFORM code. > > Signed-off-by: Antonios Motakis > --- > drivers/vfio/platform/vfio_platform.c | 96 >

Re: [PATCH v12 00/12] Support for creating generic PCI host bridges from DT

2014-09-23 Thread Bjorn Helgaas
On Tue, Sep 23, 2014 at 4:48 PM, Liviu Dudau wrote: > ... > While the next immediate target is converting pci-host-generic.c, pci-imx6.c > and probably pcie-designware.c to my series, I would like to ask you what > is your longer term plan. Now that I have got my head full of PCI code, > I have so

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread ashutosh dixit
On Tue, Sep 23 2014 at 02:46:10 PM, Randy Dunlap wrote: > On 09/23/14 14:55, Ashutosh Dixit wrote: >> mpssd depends on headers available in kernels >= 3.13. Therefore >> disable the build for kernels < 3.13. For kernels < 3.13, to avoid the >> appearance of a build break simply print an error mess

Re: [PATCH] gpio, bcm-kona, LLVMLinux: Remove use of __initconst

2014-09-23 Thread Behan Webster
On 09/23/14 14:29, Matt Porter wrote: On Tue, Sep 23, 2014 at 12:30:16PM -0700, beh...@converseincode.com wrote: From: Behan Webster The __initconst is in the wrong place, and when moved to the correct place it uncovers an error where the variable is used by non-init data structures. Instead

[PATCH v2 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-23 Thread Gernot Vormayr
If one adds gpio-controller; to the chip in the devicetree, then initialization fails with 'gpiochip_find_base: cannot find free range', because ngpio is 0. This patch fixes the bug. This version includes the suggestions from Linus Walleij. Tested on ml507 board. Signed-off-by: Gernot Vormayr -

Re: [PATCH v2 5/7] selftests/mount: change test to use ksft framework

2014-09-23 Thread Shuah Khan
On 09/23/2014 04:41 PM, Eric W. Biederman wrote: > Shuah Khan writes: > >> Change mount test to use kselftest framework to report >> test results. > > Nacked-by: "Eric W. Biederman" > > I am curious did you even run these tests? I can't possibly see how > the tests would have passed with thi

[PATCH v2 2/2] mmc, sdhci, bcm-kona, LLVMLinux: Remove use of __initconst

2014-09-23 Thread behanw
From: Behan Webster The __initconst is in the wrong place, and when moved to the correct place it uncovers an error where the variable is used by non-init data structures. Instead merely make them const and put the const in the right spot. Signed-off-by: Behan Webster Reviewed-by: Mark Charleb

[PATCH v2 1/2] gpio, bcm-kona, LLVMLinux: Remove use of __initconst

2014-09-23 Thread behanw
From: Behan Webster The __initconst is in the wrong place, and when moved to the correct place it uncovers an error where the variable is used by non-init data structures. Instead merely make them const and put the const in the right spot. Signed-off-by: Behan Webster Reviewed-by: Mark Charleb

Re: [PATCH v12 00/12] Support for creating generic PCI host bridges from DT

2014-09-23 Thread Liviu Dudau
On Tue, Sep 23, 2014 at 08:01:02PM +0100, Liviu Dudau wrote: > This is my version 12 of the attempt at adding support for generic PCI host > bridge controllers that make use of device tree information to > configure themselves. It contains cleanups to address comments posted for v11. > > Bjorn int

[PATCH] tools: add more endian.h macros

2014-09-23 Thread Peter Foley
Add some more macros to tools/endian.h to allow mpssd to be compiled against glibc < 2.9. Signed-off-by: Peter Foley Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d...@intel.com Cc: nikhil@intel.com Cc: ashutosh.di...@intel.com Cc: a...@linux-foundation.org Cc: gre...@lin

Re: [PATCH v12 00/12] Support for creating generic PCI host bridges from DT

2014-09-23 Thread Liviu Dudau
On Tue, Sep 23, 2014 at 03:54:35PM -0600, Bjorn Helgaas wrote: > On Tue, Sep 23, 2014 at 08:01:02PM +0100, Liviu Dudau wrote: > > This is my version 12 of the attempt at adding support for generic PCI host > > bridge controllers that make use of device tree information to > > configure themselves.

[PATCH] Documentation: remove networking/.gitignore

2014-09-23 Thread Peter Foley
Remove empty networking/.gitignore Signed-off-by: Peter Foley Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org --- Documentation/networking/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Documentation/networking/.gitignore diff --git a/Documentation/n

Re: [Regression] cifs: sanity check length of data to send before sending

2014-09-23 Thread Jeff Layton
On Tue, 23 Sep 2014 15:09:23 -0400 Joseph Salisbury wrote: > Hi Jeff, > > A kernel bug report was opened against Ubuntu [0]. It was found that > reverting the following commit resolved this bug: > > > commit a26054d184763969a411e3939fe243516715ff59 > Author: Jeff Layton > Date: Fri Feb 14

Re: [PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-23 Thread Gernot Vormayr
On Tue, Sep 23, 2014 at 5:38 PM, Linus Walleij wrote: > > The fact that the same code appears in two places tells us something > is not quite right. Can you look into consolidating this (in a separate > patch)? Well, I already thought about that, but since the second time is for the second part

Re: [PATCHv7 07/26] driver core: amba: add device binding path 'driver_override'

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 16:46 +0200, Antonios Motakis wrote: > As already demonstrated with PCI [1] and the platform bus [2], a > driver_override property in sysfs can be used to bypass the id matching > of a device to a AMBA driver. This can be used by VFIO to bind to any AMBA > device requested by

Re: [PATCH v2 5/7] selftests/mount: change test to use ksft framework

2014-09-23 Thread Eric W. Biederman
Shuah Khan writes: > Change mount test to use kselftest framework to report > test results. Nacked-by: "Eric W. Biederman" I am curious did you even run these tests? I can't possibly see how the tests would have passed with this change. At the very least you have taken this test from linear

Re: [PATCHv7 06/26] vfio/iommu_type1: implement the VFIO_DMA_MAP_FLAG_NOEXEC flag

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 16:46 +0200, Antonios Motakis wrote: > Some IOMMU drivers, such as the ARM SMMU driver, make available the > IOMMU_NOEXEC flag, to set the page tables for a device as XN (execute never). > This affects devices such as the ARM PL330 DMA Controller, which respects > this flag an

Re: [PATCH] lib: string.c: Added a funktion function strzcpy

2014-09-23 Thread Andrew Morton
On Wed, 24 Sep 2014 00:13:36 +0200 Rickard Strandqvist wrote: > +/** > + * strzcpy - Copy a length-limited, C-string > + * @dest: Where to copy the string to > + * @src: Where to copy the string from > + * @count: The maximum number of bytes to copy > + * > + * The result is %NUL-terminated, > +

Re: [patch] mm: memcontrol: lockless page counters

2014-09-23 Thread David Rientjes
On Tue, 23 Sep 2014, Michal Hocko wrote: > On Tue 23-09-14 10:05:26, Johannes Weiner wrote: > [...] > > That's one way to put it. But the way I see it is that I remove a > > generic resource counter and replace it with a pure memory counter > > which I put where we account and limit memory - with

Re: [PATCHv7 05/26] vfio: introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 16:21 -0600, Alex Williamson wrote: > On Tue, 2014-09-23 at 16:46 +0200, Antonios Motakis wrote: > > We introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag to the VFIO dma map call, > > and expose its availability via the capability VFIO_IOMMU_PROT_NOEXEC. > > This way the user can co

Re: [PATCH v2 0/3] fuse: Add support for mounts from pid/user namespaces

2014-09-23 Thread Eric W. Biederman
Seth Forshee writes: > On Wed, Sep 10, 2014 at 11:42:12AM -0500, Seth Forshee wrote: >> On Wed, Sep 10, 2014 at 06:21:55PM +0200, Serge E. Hallyn wrote: >> > Quoting Seth Forshee (seth.fors...@canonical.com): >> > > On Tue, Sep 02, 2014 at 10:44:53AM -0500, Seth Forshee wrote: >> > > > Another is

[RFC PATCH] usb: core: log more general message on malformed LANGID descriptor

2014-09-23 Thread Scot Doyle
I'd like to change this error message: [3.325837] usb 1-4: string descriptor 0 malformed (err = -61), defaulting to 0x0409 into an error message followed by a debug message: [3.324726] usb 1-4: malformed string descriptor; unknown language, defaulting to English [3.327514] usb 1-4: s

Re: [PATCH] zsmalloc: merge size_class to reduce fragmentation

2014-09-23 Thread Andrew Morton
On Tue, 23 Sep 2014 17:30:11 +0900 Joonsoo Kim wrote: > zsmalloc has many size_classes to reduce fragmentation and they are > in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. > And, zsmalloc has constraint that each zspage has 4 pages at maximum. > > In this situation, we c

Re: [PATCH] Fix the issue that lowmemkiller fell into a cycle that try to kill a task

2014-09-23 Thread David Rientjes
On Tue, 23 Sep 2014, 朱辉 wrote: > > By the way, whether we need to modify out_of_memory() which also > > try to kill task? > > I am not sure because LMK handle the memory issue early than OOM. > But I think this issue will not affect OOM because OOM has > oom_zonelist_trylock and oom_zonelist_unl

Re: [PATCHv7 05/26] vfio: introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 16:46 +0200, Antonios Motakis wrote: > We introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag to the VFIO dma map call, > and expose its availability via the capability VFIO_IOMMU_PROT_NOEXEC. > This way the user can control whether the XN flag will be set on the > requested mappings.

Re: [PATCH] mm: build error in dump_mm without CONFIG_COMPACTION

2014-09-23 Thread David Rientjes
On Mon, 22 Sep 2014, Sasha Levin wrote: > In the case of CONFIG_NUMA_BALANCING set and CONFIG_COMPACTION isn't, > we'd fail to put a "," at the end of the formatting string and cause > a build failure. > > Signed-off-by: Sasha Levin Looks like this is being addressed in http://marc.info/?t=1411

Re: [PATCHv7 01/26] iommu/arm-smmu: change IOMMU_EXEC to IOMMU_NOEXEC

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 15:58 +0100, Will Deacon wrote: > Hi Antonios, > > On Tue, Sep 23, 2014 at 03:46:00PM +0100, Antonios Motakis wrote: > > Exposing the XN flag of the SMMU driver as IOMMU_NOEXEC instead of > > IOMMU_EXEC makes it enforceable, since for IOMMUs that don't support > > the XN flag

[PATCH] lib: string.c: Added a funktion function strzcpy

2014-09-23 Thread Rickard Strandqvist
I've added a feature strzcpy to make it easier to not do wrong when you use the function strncpy. By not have to add a guaranteed trailing null character: strncpy(to, src, c); to[c - 1] = '\0'; This arose after a discussion with Dan Carpenter: https://lkml.org/lkml/2014/9/15/74 And I was th

Re: [PATCH v3] mptfusion: enable no_write_same for vmware scsi disks

2014-09-23 Thread Chris J Arges
On 09/23/2014 09:22 AM, Chris J Arges wrote: > When using a virtual SCSI disk in a VMWare VM if blkdev_issue_zeroout is used > data can be improperly zeroed out using the mptfusion driver. This patch > disables write_same for this driver and the vmware subsystem_vendor which > ensures that manual z

[PATCH] lib: string.c: Added a funktion function strzcpy

2014-09-23 Thread Rickard Strandqvist
Added a function strzcpy which works the same as strncpy, but guaranteed to produce the trailing null character. Signed-off-by: Rickard Strandqvist --- include/linux/string.h |1 + lib/string.c | 31 +++ 2 files changed, 32 insertions(+) diff --git a/

Re: [PATCH v3 3/3] cpuset: PF_SPREAD_PAGE and PF_SPREAD_SLAB should be atomic flags

2014-09-23 Thread David Rientjes
On Tue, 23 Sep 2014, Zefan Li wrote: > When we change cpuset.memory_spread_{page,slab}, cpuset will flip > PF_SPREAD_{PAGE,SLAB} bit of tsk->flags for each task in that cpuset. > This should be done using atomic bitops, but currently we don't, > which is broken. > > Tetsuo reported a hard-to-repr

Re: [PATCH 1/2] dmaengine: Add QCOM ADM DMA driver

2014-09-23 Thread Andy Gross
> > + break; > > + default: > > + achan->slave.src_maxburst = 0; > > + achan->slave.dst_maxburst = 0; > Why clear these for error cases With the return I shouldn't need to. I'll fix this. > > + ret = -EINVAL; > >

Re: [PATCH] PCI: Prevent NULL dereference during pciehp probe

2014-09-23 Thread Guenter Roeck
On Tue, Sep 23, 2014 at 04:04:42PM -0600, Bjorn Helgaas wrote: > On Tue, Sep 23, 2014 at 3:55 PM, Guenter Roeck wrote: > > On Mon, Sep 15, 2014 at 10:20:41PM +, Rajat Jain wrote: > >> Hello Bjorn, > >> > >> I think this patch needs to be applied to all -stable branches (all the > >> way back

[RFC] UBI bitrot checking

2014-09-23 Thread Richard Weinberger
This is a very initial draft for one possibility of bitrot checking in UBI. The basic idea is to have a worker function which reads a complete PEB and schedules scrubbing if bit flips are detected. Currently this check is triggered by accessing any UBI debugfs file (yes, I'm lazy!). We have to agr

[PATCH] [RFC] UBI: Implement bitrot checking

2014-09-23 Thread Richard Weinberger
This patch implements bitrot checking for UBI. ubi_wl_trigger_bitrot_check() triggers a re-read of every PEB which is currently in use. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/debug.c | 3 ++ drivers/mtd/ubi/eba.c | 2 +- drivers/mtd/ubi/ubi.h | 3 +- drivers/mtd/ubi/wl.c

Re: [PATCH] PCI: Prevent NULL dereference during pciehp probe

2014-09-23 Thread Bjorn Helgaas
On Tue, Sep 23, 2014 at 3:55 PM, Guenter Roeck wrote: > On Mon, Sep 15, 2014 at 10:20:41PM +, Rajat Jain wrote: >> Hello Bjorn, >> >> I think this patch needs to be applied to all -stable branches (all the way >> back to 3.2). >> >> I encounter this same issue on my platform that is running 3

[GIT PULL] please pull infiniband.git

2014-09-23 Thread Roland Dreier
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git tags/rdma-for-linus This is later and bigger than I would like, and the blame is all on me: I got very busy with other stuff for a few weeks during the 3.17 cycle, and didn't prepare this tree as

Re: [PATCH 0/2] Fix a division by zero

2014-09-23 Thread Greg Kroah-Hartman
On Tue, Sep 23, 2014 at 09:54:38PM +0200, Frans Klaver wrote: > Hi Greg, > > Here's a couple of patches that fix a divison by zero in omap-serial.c. One's > a > cleanup, the other the actual fix. So both would be needed to be backported to stable kernels? Why not just do the fix first, then the

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 5:55 PM, Ashutosh Dixit wrote: > mpssd depends on headers available in kernels >= 3.13. Therefore > disable the build for kernels < 3.13. For kernels < 3.13, to avoid the > appearance of a build break simply print an error message and exit. > Everything in Documentation sho

Re: [PATCH v2] pinctrl: qcom: use restart_notifier mechanism for ps_hold

2014-09-23 Thread Guenter Roeck
On Tue, Sep 23, 2014 at 03:59:53PM -0500, Josh Cartwright wrote: > By converting to the restart_notifier mechanism for restart, we allow > for other mechanisms, like the watchdog, to be used for restart in the > case where PS_HOLD has failed to reset the chip. > > Since this mechanism may be one o

Re: [PATCH v2 13/13] vfio: powerpc/spapr: Enable Dynamic DMA windows

2014-09-23 Thread Alex Williamson
On Tue, 2014-09-23 at 13:01 +1000, Alexey Kardashevskiy wrote: > This defines and implements VFIO IOMMU API which lets the userspace > create and remove DMA windows. > > This updates VFIO_IOMMU_SPAPR_TCE_GET_INFO to return the number of > available windows and page mask. > > This adds VFIO_IOMMU_

Re: [PATCH] PCI: Prevent NULL dereference during pciehp probe

2014-09-23 Thread Guenter Roeck
On Mon, Sep 15, 2014 at 10:20:41PM +, Rajat Jain wrote: > Hello Bjorn, > > I think this patch needs to be applied to all -stable branches (all the way > back to 3.2). > > I encounter this same issue on my platform that is running 3.14.y. > Bjorn, can you send this to -stable, or is it ok

[PATCH] perf, x86: Disallow flags for most Core2/Atom/Nehalem/Westmere events

2014-09-23 Thread Andi Kleen
From: Andi Kleen Disallow setting inv/cmask/etc. flags for all PEBS events on these CPUs, except for the UOPS_RETIRED.* events on Nehalem/Westmere, which are needed for cycles:p. This avoids an undefined situation strongly discouraged by the Intle SDM. The PLD_* events were already covered. This

Re: [PATCH v12 00/12] Support for creating generic PCI host bridges from DT

2014-09-23 Thread Bjorn Helgaas
On Tue, Sep 23, 2014 at 08:01:02PM +0100, Liviu Dudau wrote: > This is my version 12 of the attempt at adding support for generic PCI host > bridge controllers that make use of device tree information to > configure themselves. It contains cleanups to address comments posted for v11. > > Bjorn int

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Guenter Roeck
] undefined! > >>> ERROR: "__umoddi3" [drivers/scsi/mpt2sas/mpt2sas.ko] undefined! > >> > >> A patch has been posted for that and I believe that Christoph Hellwig has > >> merged it. > >> > >>> mips:nlm_xlp_defconfig > >>&

GPIO registration for external Ethernet PHY oscillator enable/disable

2014-09-23 Thread Michael Welling
I have some questions that span multiple subsystems including gpio/pinctrl, apm, and net subsystems. On some of our system on module designs, we use a GPIO to toggle the enable pin on external oscillators. In particular, we are using a 50Mhz oscillator to drive a clock on a RMII Ethernet PHY. Tho

[RT] Stable updates for v3.2-rt, v3.4-rt, v3.10-rt and v3.12-rt available

2014-09-23 Thread Paul Gortmaker
Given that Steve has had some unanticipated issues thrown his way recently, I thought it might be nice if one of the rest of us RT folk helped out with the the patch monkey work required to get us the latest GregKH stable content into the linux-stable-rt repo. To that end, one can find the followi

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-23 Thread Thomas Gleixner
On Tue, 23 Sep 2014, LF.Tan wrote: > On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan wrote: > > Follow m68k futex implementation for !CONFIG_SMP. Great. Follow arch/random implementation blindly and copy all the bugs in it. > > +static inline int > > +futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __

Re: [PATCH v2 0/3] fuse: Add support for mounts from pid/user namespaces

2014-09-23 Thread Eric W. Biederman
Miklos Szeredi writes: > On Tue, Sep 23, 2014 at 6:26 PM, Seth Forshee > wrote: >> On Tue, Sep 23, 2014 at 06:07:35PM +0200, Miklos Szeredi wrote: >>> On Tue, Sep 2, 2014 at 5:44 PM, Seth Forshee >>> wrote: >>> > Here's an updated set of patches for allowing fuse mounts from pid and >>> > user

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Randy Dunlap
On 09/23/14 14:55, Ashutosh Dixit wrote: > mpssd depends on headers available in kernels >= 3.13. Therefore > disable the build for kernels < 3.13. For kernels < 3.13, to avoid the > appearance of a build break simply print an error message and exit. Why is this needed? This file won't be built i

[patch] mm, slab: initialize object alignment on cache creation

2014-09-23 Thread David Rientjes
Since 4590685546a3 ("mm/sl[aou]b: Common alignment code"), the "ralign" automatic variable in __kmem_cache_create() may be used as uninitialized. The proper alignment defaults to BYTES_PER_WORD and can be overridden by SLAB_RED_ZONE or the alignment specified by the caller. This fixes https://b

[GIT PULL] sound fixes for 3.17-rc7 (or final)

2014-09-23 Thread Takashi Iwai
Linus, please pull sound fixes for 3.17 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.17-rc7 The topmost commit is e76bf634870e3c5e3a767ad575f1d404c9f1cab8 sound fixes for 3.17-rc7 (or final)

[PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Ashutosh Dixit
mpssd depends on headers available in kernels >= 3.13. Therefore disable the build for kernels < 3.13. For kernels < 3.13, to avoid the appearance of a build break simply print an error message and exit. Reported-by: Andrew Morton Cc: Randy Dunlap Cc: Greg Kroah-Hartman Cc: Peter Foley Reviewe

Re: [Linux-kernel] [PATCH v2] net/netfilter/x_tables.c: use __seq_open_private()

2014-09-23 Thread Pablo Neira Ayuso
On Tue, Sep 23, 2014 at 06:46:27PM +0100, Ben Hutchings wrote: > On Tue, 2014-09-23 at 18:05 +0100, Rob Jones wrote: > > Reduce boilerplate code by using __seq_open_private() instead of seq_open() > > in xt_match_open() and xt_target_open(). > > > > Signed-off-by: Rob Jones > > --- > > > > This

[RFC][PATCH] ftracetest: Add a couple of ftrace test cases

2014-09-23 Thread Steven Rostedt
[ Masami, I took two of my test scripts and added some basic comments to them and copied them pretty much unchanged into a ftrace directory under test.d. Is this fine, or is there more massaging I need to do to them? I know the echos don't show up, but I kept them anyway. What should

Re: mmotm 2014-09-22-16-57 uploaded

2014-09-23 Thread Randy Dunlap
ed it. >> >>> mips:nlm_xlp_defconfig >>> >>> ERROR: "scsi_is_fc_rport" [drivers/scsi/libfc/libfc.ko] undefined! >>> ERROR: "fc_get_event_number" [drivers/scsi/libfc/libfc.ko] undefined! >>> ERROR: "skb_trim" [drivers/scsi/lib

[PATCH v2 3/7] selftests/ipc: change test to use ksft framework

2014-09-23 Thread Shuah Khan
Change ipc test to use kselftest framework to report test results. With this change this test exits with EXIT_FAIL instead of -errno. Changed print errno in test fail messages to not loose that information. Signed-off-by: Shuah Khan --- tools/testing/selftests/ipc/msgque.c | 26 ++---

[PATCH v2 4/7] selftests/kcmp: change test to use ksft framework

2014-09-23 Thread Shuah Khan
Change kcmp test to use kselftest framework to report test results and test statistics. Signed-off-by: Shuah Khan --- tools/testing/selftests/kcmp/kcmp_test.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/kcmp/kcmp_test.c

[PATCH v2 6/7] selftests/ptrace: change test to use ksft framework

2014-09-23 Thread Shuah Khan
Change ptrace test to use kselftest framework to report test results. Signed-off-by: Shuah Khan --- tools/testing/selftests/ptrace/peeksiginfo.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/ptrace/peeksiginfo.c b/tools/testing/selfte

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