Re: [PATCH] spi: mediatek: fix wrong error return value on probe

2015-09-15 Thread Mark Brown
t;) > >> added a new sel_clk but introduced bugs in the error paths since > >> the wrong struct clk pointers are passed to PTR_ERR(). > > This doesn't apply against current code, please check and resend. > Which branch should I use as a baseline then? The patch applies cleanl

Re: [PATCH v2] clk: samsung: fix cpu clock's flags checking

2015-09-15 Thread Bartlomiej Zolnierkiewicz
[ + Stephen on cc: ] On Friday, August 28, 2015 01:49:35 PM Bartlomiej Zolnierkiewicz wrote: > CLK_CPU_HAS_DIV1 and CLK_CPU_NEEDS_DEBUG_ALT_DIV masks were > incorrectly used as a bit numbers. Fix it. > > Tested on Exynos4210 based Origen board and on Exynos5250 based > Arndale board. > > Cc:

Re: [PATCH-v2 0/3] mmc: sdhci-pxav3: Fix tabbing issue

2015-09-15 Thread Ulf Hansson
On 7 September 2015 at 13:31, Vaibhav Hiremath wrote: > Trivial patch-series, which fixes the tabbing issue in the driver, > uses the BIT macro for bit fields and prints notice on -EPROBE_DEFER > in sdhci_add_host() function on regulator unavailability. > > V1 => V2 > > - Fixed all

Re: [PATCH v3 2/8] genirq: irqdomain: Remove irqdomain dependency on struct device_node

2015-09-15 Thread Marc Zyngier
On 15/09/15 11:58, Tomasz Nowicki wrote: > On 14.09.2015 18:44, Marc Zyngier wrote: >> struct device_node is very much DT specific, and the original authors >> of the irqdomain subsystem recognized that tie, and went as far as >> mentionning that this could be replaced by some "void *token", >>

Re: [PATCH v3 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-09-15 Thread Andy Shevchenko
On Tue, 2015-09-15 at 14:10 +0200, Vitaly Kuznetsov wrote: > Andy Shevchenko writes: > > > I prefer to put '\0' at the position after we expected have an > > actual > > '\0'. In this case we always be NULL terminated. I did this for > > hexdump > > test cases. > > Just to check I got your

[PATCH] drm/i915: fix kernel-doc warnings in intel_lrc.c

2015-09-15 Thread Geliang Tang
Fix the following 'make htmldocs' warnings: .//drivers/gpu/drm/i915/intel_lrc.c:780: warning: No description found for parameter 'req' .//drivers/gpu/drm/i915/intel_lrc.c:780: warning: Excess function parameter 'request' description in 'intel_logical_ring_begin'

Re: 32-bit bio regression with 4.3 [was: Re: cgroup/loop Bad page state oops in Linux v4.2-rc3-136-g45b4b782e848]

2015-09-15 Thread Josh Boyer
On Sat, Sep 12, 2015 at 9:19 AM, Ming Lei wrote: > On Fri, 11 Sep 2015 17:43:15 -0400 > Mike Snitzer wrote: > >> Ming, Jens, others: >> >> Please see this BZ comment that speaks to a 4.3 regression due to the >> late bio splitting changes: >>

Re: LTP regressions due to 6dc296e7df4c ("mm: make sure all file VMAs have ->vm_ops set")

2015-09-15 Thread Oleg Nesterov
On 09/14, Kirill A. Shutemov wrote: > > On Mon, Sep 14, 2015 at 07:05:47PM +0200, Oleg Nesterov wrote: > > On 09/14, Kirill A. Shutemov wrote: > > > > > > Fix is below. I don't really like it, but I cannot find any better > > > solution. > > > > Me too... > > > > But this change "documents" the

Re: [PATCH v3 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-09-15 Thread Vitaly Kuznetsov
Andy Shevchenko writes: > On Tue, 2015-09-15 at 00:00 +0200, Rasmus Villemoes wrote: >> On Mon, Sep 14 2015, Vitaly Kuznetsov wrote: >> > > Vitaly, thanks for the test cases. My comments below. > >> > +static __init void test_string_get_size_one(u64 size, u64 >> > blk_size, >> > +

[PATCH RFC] pidns: introduce syscall getvpid

2015-09-15 Thread Konstantin Khlebnikov
pid_t getvpid(pid_t pid, pid_t source, pid_t target); This syscall converts pid from one pid-ns into pid in another pid-ns: it takes @pid in namespace of @source task (zero for current) and returns related pid in namespace of @target task (zero for current too). If pid is unreachable from target

Re: [Gta04-owner] [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-09-15 Thread Christ van Willegen
Hi all, On Tue, Sep 15, 2015 at 1:28 PM, Pavel Machek wrote: > On Thu 2015-07-30 10:11:24, NeilBrown wrote: >> >> Add a 'continuous' option for usb charging which enables >> the "linear" charging mode of the twl4030. >> >> Linear charging does a good job with not-so-reliable power sources. >>

Re: [PATCH v3 2/8] genirq: irqdomain: Remove irqdomain dependency on struct device_node

2015-09-15 Thread Tomasz Nowicki
On 15.09.2015 14:04, Thomas Gleixner wrote: On Tue, 15 Sep 2015, Tomasz Nowicki wrote: Can you folks please do proper quoting on reply? It's annoying to scroll down 250+ lines to find TWO lines of reply and then have another 250+ lines for nothing. Yeah, good point! Sorry. Tomasz -- To

Re: [PATCH 2.6.32 00/62] 2.6.32.68-longterm review

2015-09-15 Thread Ben Hutchings
On Sun, 2015-09-13 at 00:56 +0200, Willy Tarreau wrote: > This is the start of the longterm review cycle for the 2.6.32.68 release. > All patches will be posted as a response to this one. If anyone has any > issue with these being applied, please let me know. If anyone is a > maintainer of the

[PATCH] mm: memcontrol: fix order calculation in try_charge()

2015-09-15 Thread Jerome Marchand
Since commit <6539cc05386> (mm: memcontrol: fold mem_cgroup_do_charge()), the order to pass to mem_cgroup_oom() is calculated by passing the number of pages to get_order() instead of the expected size in bytes. AFAICT, it only affects the value displayed in the oom warning message. This patch fix

[4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Christian Borntraeger
Tejun, commit d59cfc09c32a2ae31f1c3bc2983a0cd79afb3f14 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes some noticably hickups when starting several kvm guests (which libvirt will move into cgroups - each vcpu thread and each i/o thread) When you now start

Re: [PATCH v3 2/8] genirq: irqdomain: Remove irqdomain dependency on struct device_node

2015-09-15 Thread Thomas Gleixner
On Tue, 15 Sep 2015, Tomasz Nowicki wrote: Can you folks please do proper quoting on reply? It's annoying to scroll down 250+ lines to find TWO lines of reply and then have another 250+ lines for nothing. Here is the real gist of your reply: > On 14.09.2015 18:44, Marc Zyngier wrote: > >

Re: [PATCH v2 3/4] perf/x86/intel/pt: Add Intel PT logger

2015-09-15 Thread Alexander Shishkin
Takao Indoh writes: > On 2015/09/08 18:48, Alexander Shishkin wrote: >> Takao Indoh writes: >> >>> +/* intel_pt */ >>> +static struct perf_event_attr pt_attr_pt = { >>> + .config = 0x400, /* bit10: TSCEn */ >> >> Doesn't it make sense to make these things configurable via sysfs or

Re: [PATCH v2 2/4] perf: Add function to enable perf events in kernel with ring buffer

2015-09-15 Thread Alexander Shishkin
Takao Indoh writes: > On 2015/09/08 18:32, Alexander Shishkin wrote: >> Takao Indoh writes: >> >>> perf_event_create_kernel_counter is used to enable perf events in kernel >>> without buffer for logging its events. This patch add new fucntion which >>> enable perf events with ring buffer.

[PATCH] spi: fix kernel-doc warnings in spi.h

2015-09-15 Thread Geliang Tang
Fix the following 'make htmldocs' warnings: .//include/linux/spi/spi.h:71: warning: No description found for parameter 'lock' .//include/linux/spi/spi.h:71: warning: Excess struct/union/enum/typedef member 'clock' description in 'spi_statistics' Signed-off-by: Geliang Tang ---

Re: [PATCH 2/2] mmc: sdhci-pxav3: Print ret value on error from sdhci_add_host() fn

2015-09-15 Thread Ulf Hansson
On 2 September 2015 at 17:16, Vaibhav Hiremath wrote: > > > On Wednesday 02 September 2015 08:37 PM, Joe Perches wrote: >> >> On Wed, 2015-09-02 at 18:37 +0530, Vaibhav Hiremath wrote: >>> >>> On Wednesday 02 September 2015 02:07 AM, Joe Perches wrote: On Wed, 2015-09-02 at 00:54 +0530,

[PATCH] staging: rtl8192e: fix memory leak

2015-09-15 Thread Sudip Mukherjee
If the size of the firmware is not as expected then we are jumping to the error path but we missed releasing the firmware. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] spi: mediatek: fix wrong error return value on probe

2015-09-15 Thread Javier Martinez Canillas
e >> the wrong struct clk pointers are passed to PTR_ERR(). > > This doesn't apply against current code, please check and resend. > Which branch should I use as a baseline then? The patch applies cleanly on both today's linux-next (next-20150915) and your for-linus branch: https://git.

[PATCH] [media] c8sectpfe: fix ininitialized error return on firmware load failure

2015-09-15 Thread Colin King
From: Colin Ian King static analysis with cppcheck detected the following error: [drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:1210]: (error) Uninitialized variable: ret ret is never initialised, so garbage is being returned. Instead return the error return from the call of

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Jon Medhurst (Tixy)
On Tue, 2015-09-15 at 12:03 +0100, Mark Rutland wrote: > On Tue, Sep 15, 2015 at 11:46:02AM +0100, Jon Medhurst (Tixy) wrote: > > On Tue, 2015-09-15 at 10:37 +0100, Punit Agrawal wrote: > > > "Jon Medhurst (Tixy)" writes: > > > > > > > On Mon, 2015-09-14 at 15:38 +0100, Punit Agrawal wrote: > >

Re: [PATCH 2.6.32 36/62] MIPS: Octeon: Delete override of cpu_has_mips_r2_exec_hazard.

2015-09-15 Thread Ben Hutchings
On Sun, 2015-09-13 at 00:56 +0200, Willy Tarreau wrote: > 2.6.32-longterm review patch. If anyone has any objections, please let me > know. > > -- > > From: Ralf Baechle > > commit f05ff43355e6997c18f82ddcee370a6e5f8643ce upstream. > > This is no longer needed with the

Re: [PATCH v2 1/2] input: Add Qualcomm PM8941 power key driver

2015-09-15 Thread Ivan T. Ivanov
On Fri, 2015-01-23 at 16:19 -0800, Bjorn Andersson wrote: > From: Courtney Cavin ca...@sonymobile.com> > > Signed-off-by: Courtney Cavin ca...@sonymobile.com> > Signed-off-by: Bjorn Andersson anders...@sonymobile.com> > > > +config INPUT_PM8941_PWRKEY > + tristate "Qualcomm PM8941

Re: [PATCH] mmc: sdhci-acpi: detect sd card reader on asus x205ta

2015-09-15 Thread Ulf Hansson
On 5 September 2015 at 08:49, Michele Curti wrote: > Add an entry to the sdhci_acpi_uids list to detect the SD card > reader on the Asus X205Ta laptop. > > dstd table: > > Device (SDHC) > { > Name (_ADR, Zero) // _ADR: Address > Name (_HID, "PNP0FFF") // _HID: Hardware ID > Name

Re: [PATCH v2] arm: Fix backtrace generation when IPI is masked

2015-09-15 Thread Russell King - ARM Linux
On Tue, Sep 15, 2015 at 12:05:12PM +0100, Daniel Thompson wrote: > Currently on ARM when is triggered from an interrupt handler > (e.g. a SysRq issued using UART or kbd) the main CPU will wedge for ten > seconds with interrupts masked before issuing a backtrace for every CPU > except itself. > >

Re: [PATCH 04/13] twl4030_charger: trust phy to determine when USB power is available.

2015-09-15 Thread Pavel Machek
On Thu 2015-07-30 10:11:24, NeilBrown wrote: > The usb phy driver already determines when VBUS is available, > so repeating the test in the charger driver is pointless duplication. > > On probe, process the last event from the phy, and from then on, > do whatever the phy tells us without

Re: [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-09-15 Thread Pavel Machek
On Thu 2015-07-30 10:11:24, NeilBrown wrote: > > Add a 'continuous' option for usb charging which enables > the "linear" charging mode of the twl4030. > > Linear charging does a good job with not-so-reliable power sources. > Auto mode does not work well as it switches off when voltage drops >

Re: [PATCH 01/13] twl4030_charger: use runtime_pm to keep usb phy active while charging.

2015-09-15 Thread Pavel Machek
On Thu 2015-07-30 10:11:24, NeilBrown wrote: > The twl4030 usb phy needs to be active while we are using > the USB VBUS as a current source for charging. > In particular, the usb3v1 regulator must be enabled and the > PHY_PWR_PHYPWD bit must be set to keep the phy powered. > > commit

Re: [PATCHv3 1/1] ti-soc-thermal: implement omap3 support

2015-09-15 Thread Pavel Machek
On Wed 2015-09-09 21:58:09, Eduardo Valentin wrote: > From: Pavel Machek > > This adds support for OMAP3 chips to ti-soc-thermal. As requested by > TI people, it is marked unreliable and warning is printed. > > Cc: Zhang Rui > Cc: linux...@vger.kernel.org > Cc: linux-o...@vger.kernel.org > Cc:

Re: [PATCH] spmi-pmic-arb: support configurable number of peripherals

2015-09-15 Thread Ivan T. Ivanov
On Mon, 2015-09-14 at 18:28 -0700, Stephen Boyd wrote: > On 09/14/2015 02:54 PM, Stephen Boyd wrote: > > The current driver implementation supports only 128 peripherals. > > Add support for more than 128 peripherals by taking a lazy > > caching approach to the mapping tables. Instead of reading

Re: [PATCH] arm64: enable generic idle loop

2015-09-15 Thread Leo Yan
Hi Will, On Fri, Aug 21, 2015 at 04:54:25PM +0100, Catalin Marinas wrote: > On Fri, Aug 21, 2015 at 05:14:46PM +0800, Leo Yan wrote: > > On Fri, Aug 21, 2015 at 10:00:43AM +0100, Catalin Marinas wrote: > > > On Fri, Aug 21, 2015 at 11:40:22AM +0800, Leo Yan wrote: > > > > Enable generic idle loop

Re: [PATCH] power: align wakeup_sources format

2015-09-15 Thread Pavel Machek
On Fri 2015-08-14 16:59:27, check.ker...@gmail.com wrote: > From: yangdongdong > > This aligns every column of elements in wakeup_sources to > conveniently check any specific column for suspicious power > consumption wakeup source or for other easily readable purpose. > > Signed-off-by:

Re: [PATCH] clk: tegra: Unlock top rates for Tegra124 DFLL clock

2015-09-15 Thread Thierry Reding
On Tue, Sep 15, 2015 at 12:55:15PM +0300, Mikko Perttunen wrote: > The new determine_rate prototype allows for clock rates exceeding > 2^31-1 Hz to be used. Switch the DFLL clock to use determine_rate > instead of round_rate and unlock the top rates supported by the > Tegra124. > > Signed-off-by:

[PATCH v2] arm: Fix backtrace generation when IPI is masked

2015-09-15 Thread Daniel Thompson
Currently on ARM when is triggered from an interrupt handler (e.g. a SysRq issued using UART or kbd) the main CPU will wedge for ten seconds with interrupts masked before issuing a backtrace for every CPU except itself. The new backtrace code introduced by commit 96f0e00378d4 ("ARM: add basic

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Mark Rutland
On Tue, Sep 15, 2015 at 11:46:02AM +0100, Jon Medhurst (Tixy) wrote: > On Tue, 2015-09-15 at 10:37 +0100, Punit Agrawal wrote: > > "Jon Medhurst (Tixy)" writes: > > > > > On Mon, 2015-09-14 at 15:38 +0100, Punit Agrawal wrote: > > >> Mark Rutland writes: > > >> > [...] > > >> The way the SCP

Re: [PATCH] PM / sleep: Fix broken builds without CONFIG_PM_SLEEP_DEBUG

2015-09-15 Thread Pavel Machek
On Tue 2015-09-15 13:42:21, Viresh Kumar wrote: > The variable 'wakeup_irq' is defined within #ifdef CONFIG_PM_SLEEP_DEBUG > and used outside of it. And that breaks kernel build: > > /home/viresh/linux/drivers/base/power/wakeup.c:871: undefined reference to > `wakeup_irq' >

Re: [PATCH v4 2/2] [media] media-device: split media initialization and registration

2015-09-15 Thread Sakari Ailus
Hi Javier, Javier Martinez Canillas wrote: > The media device node is registered and so made visible to user-space > before entities are registered and links created which means that the > media graph obtained by user-space could be only partially enumerated > if that happens too early before all

Re: [PATCH v3 2/8] genirq: irqdomain: Remove irqdomain dependency on struct device_node

2015-09-15 Thread Tomasz Nowicki
On 14.09.2015 18:44, Marc Zyngier wrote: struct device_node is very much DT specific, and the original authors of the irqdomain subsystem recognized that tie, and went as far as mentionning that this could be replaced by some "void *token", should another firmware infrastructure be using it. As

[PATCH] sched/fair: Polish comments for LOAD_AVG_MAX

2015-09-15 Thread Leo Yan
Macro LOAD_AVG_MAX is defined far away from the precompuated tables for decay calculation in code; So explicitly comments for this. Also fix one typo: s/LOAD_MAX_AVG/LOAD_AVG_MAX. Signed-off-by: Leo Yan --- kernel/sched/fair.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[PATCH] sched/fair: Remove unnecessary parameter for group_classify

2015-09-15 Thread Leo Yan
Function group_classify() has not used parameter "env", so remove it. And unify code to always use group_classify() to calculate group's load type. Signed-off-by: Leo Yan --- kernel/sched/fair.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c

Re: [v4.0][v4.1][v4.2][Regression] tpm: fix raciness of PPI interface lookup

2015-09-15 Thread Jarkko Sakkinen
Hi Sorry for the late reply. Looking into this now and sending feedback later today. /Jarkko On Mon, Sep 14, 2015 at 05:36:07PM -0400, Joseph Salisbury wrote: > Hi Jarkko, > > A kernel bug report was opened against Ubuntu [0] and in bugzilla[1]. A > kernel bisect was performed, and it

BUG: quattro stagioni

2015-09-15 Thread poma
BUG: unable to handle kernel NULL pointer dereference at 0024 BUG: sleeping function called from invalid context at include/linux/sched.h:2756 BUG: scheduling while atomic: spice-vdagentd/906/0x0002 BUG: spinlock lockup suspected on CPU#0, spice-vdagentd/906

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Jon Medhurst (Tixy)
On Tue, 2015-09-15 at 10:37 +0100, Punit Agrawal wrote: > "Jon Medhurst (Tixy)" writes: > > > On Mon, 2015-09-14 at 15:38 +0100, Punit Agrawal wrote: > >> Mark Rutland writes: > >> [...] > >> The way the SCP interface is defined, the sensor identifiers are > >> contiguous, > > > > Is there any

Re: [PATCH v2 2/2] ARM: dts: am57xx-beagle-x15: use palmas-usb for USB2

2015-09-15 Thread Roger Quadros
Tony, On 03/09/15 10:36, Roger Quadros wrote: > Chanwoo, > > On 06/08/15 02:36, Chanwoo Choi wrote: >> On 08/05/2015 07:37 PM, Tony Lindgren wrote: >>> * Roger Quadros [150727 06:13]: The VBUS line of USB2 is connected to VBUS detect logic on the PMIC. Use the palmas-usb driver to

Re: [RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-15 Thread Archit Taneja
Hi Rob, Mark, We've been trying to figure out the right way to represent a class of display encoder devices in DT. These devices have registers that are generally configured via i2c. Once the device is configured, it takes in video data from the mipi dsi bus. Until now, all the devices we've

Re: [RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-15 Thread Archit Taneja
Hi Rob, Mark, We've been trying to figure out the right way to represent a class of display encoder devices in DT. These devices have registers that are generally configured via i2c. Once the device is configured, it takes in video data from the mipi dsi bus. Until now, all the devices we've

[PATCH v4 2/2] [media] media-device: split media initialization and registration

2015-09-15 Thread Javier Martinez Canillas
The media device node is registered and so made visible to user-space before entities are registered and links created which means that the media graph obtained by user-space could be only partially enumerated if that happens too early before all the graph has been created. To avoid this race

[PATCH V2 0/2] fix clock issue for fsl,spdi

2015-09-15 Thread Shengjiu Wang
fix clock issue for fsl,spdi in imx6. Changes in v2: move the dts change to another patch Shengjiu Wang (2): clk: imx6: Add SPDIF_GCLK clock in clock tree ARM: dts: imx6: change the core clock of spdif arch/arm/boot/dts/imx6qdl.dtsi| 2 +- arch/arm/boot/dts/imx6sl.dtsi

[PATCH v4 0/2] [media] Fix race between graph enumeration and entities registration

2015-09-15 Thread Javier Martinez Canillas
Hello, The Media Controller framework has an issue in which the media device node is registered before all the media entities and pads links are created so if user-space tries to enumerate the graph too early, it may get a partial graph since not everything has been registered yet. This series

[PATCH v4 1/2] [media] media-device: check before unregister if mdev was registered

2015-09-15 Thread Javier Martinez Canillas
Most media functions that unregister, check if the corresponding register function succeed before. So these functions can safely be called even if a registration was never made or the component as already been unregistered. Add the same check to media_device_unregister() function for consistency.

[PATCHv6 1/7] mm: drop page->slab_page

2015-09-15 Thread Kirill A. Shutemov
Since 8456a648cf44 ("slab: use struct page for slab management") nobody uses slab_page field in struct page. Let's drop it. Signed-off-by: Kirill A. Shutemov Acked-by: Christoph Lameter Acked-by: David Rientjes Acked-by: Vlastimil Babka Reviewed-by: Andrea Arcangeli Cc: Joonsoo Kim Cc:

[PATCH v2 1/2] KVM: nVMX: enhance allocate/free_vpid to handle shadow vpid

2015-09-15 Thread Wanpeng Li
Enhance allocate/free_vid to handle shadow vpid. Suggested-by: Wincy Van Signed-off-by: Wanpeng Li --- arch/x86/kvm/vmx.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index da1590e..bd07d88 100644

[PATCH v2 2/2] KVM: nVMX: nested VPID emulation

2015-09-15 Thread Wanpeng Li
VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1 hypervisor, then address space of L1 and L2 can be separately treated and avoid TLB

[PATCHv6 5/7] mm: make compound_head() robust

2015-09-15 Thread Kirill A. Shutemov
Hugh has pointed that compound_head() call can be unsafe in some context. There's one example: CPU0CPU1 isolate_migratepages_block() page_count() compound_head() !!PageTail() == true put_page()

[PATCH v2 0/2] KVM: nested VPID emulation

2015-09-15 Thread Wanpeng Li
v1 -> v2: * enhance allocate/free_vpid to handle shadow vpid * drop empty space * allocate shadow vpid during initialization * For each nested vmentry, if vpid12 is changed, reuse shadow vpid w/ an invvpid. VPID is used to tag address space and avoid a TLB flush. Currently L0 use the

[PATCHv6 0/7] Fix compound_head() race

2015-09-15 Thread Kirill A. Shutemov
Here's my attempt on fixing race in compound_head(). It should make compound_head() reliable in all contexts. The last patch is optional. It applies cleanly into mmotm patchstack just before my page-flags patchset. As expected, it causes few conflicts with patches:

[PATCHv6 6/7] mm: use 'unsigned int' for page order

2015-09-15 Thread Kirill A. Shutemov
Let's try to be consistent about data type of page order. Signed-off-by: Kirill A. Shutemov Acked-by: Michal Hocko Acked-by: Vlastimil Babka Reviewed-by: Andrea Arcangeli --- include/linux/mm.h | 5 +++-- mm/hugetlb.c | 19 ++- mm/internal.h | 4 ++--

[PATCHv6 3/7] zsmalloc: use page->private instead of page->first_page

2015-09-15 Thread Kirill A. Shutemov
We are going to rework how compound_head() work. It will not use page->first_page as we have it now. The only other user of page->first_page beyond compound pages is zsmalloc. Let's use page->private instead of page->first_page here. It occupies the same storage space. Signed-off-by: Kirill A.

[PATCHv6 2/7] slab, slub: use page->rcu_head instead of page->lru plus cast

2015-09-15 Thread Kirill A. Shutemov
We have properly typed page->rcu_head, no need to cast page->lru. Signed-off-by: Kirill A. Shutemov Reviewed-by: Andrea Arcangeli Cc: Christoph Lameter --- mm/slab.c | 17 +++-- mm/slub.c | 5 + 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/mm/slab.c

[PATCH] mmc: sdhci: call sdhci_init() before request irq

2015-09-15 Thread Haibo Chen
sdhci_init() will clear all irqs and set the needed irqs. So logically sdhci_init() should be called before request irq. If not, some irqs may be triggled and handled wrongly. Take the following into consideration, after request irq, if SDIO card interrupt enabled, a sd card in the sd slot will

[PATCHv6 4/7] mm: pack compound_dtor and compound_order into one word in struct page

2015-09-15 Thread Kirill A. Shutemov
The patch halves space occupied by compound_dtor and compound_order in struct page. For compound_order, it's trivial long -> short conversion. For get_compound_page_dtor(), we now use hardcoded table for destructor lookup and store its index in the struct page instead of direct pointer to

[PATCHv6 7/7] mm: use 'unsigned int' for compound_dtor/compound_order on 64BIT

2015-09-15 Thread Kirill A. Shutemov
On 64 bit system we have enough space in struct page to encode compound_dtor and compound_order with unsigned int. On x86-64 it leads to slightly smaller code size due usesage of plain MOV instead of MOVZX (zero-extended move) or similar effect. allyesconfig: textdata bss dec

Re: [PATCH v7 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-09-15 Thread Fu Wei
Hi Pratyush, On 15 September 2015 at 17:44, Pratyush Anand wrote: > On 15/09/2015:04:43:32 PM, Dave Young wrote: >> On 08/25/15 at 01:01am, fu@linaro.org wrote: >> > From: Fu Wei >> > >> > This can be a example of adding SBSA Generic Watchdog device node >> > into some dts files for the

Re: [PATCH] KVM: nVMX: nested VPID emulation

2015-09-15 Thread Wanpeng Li
On 9/15/15 12:08 AM, Bandan Das wrote: Wanpeng Li writes: VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1 hypervisor, then address

Re: [PATCH v7 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-09-15 Thread Fu Wei
Hi Dave, On 15 September 2015 at 16:43, Dave Young wrote: > On 08/25/15 at 01:01am, fu@linaro.org wrote: >> From: Fu Wei >> >> This can be a example of adding SBSA Generic Watchdog device node >> into some dts files for the Soc which contains SBSA Generic Watchdog. >> >> Acked-by: Arnd

Re: [PATCH] KVM: nVMX: nested VPID emulation

2015-09-15 Thread Wanpeng Li
On 9/14/15 10:54 PM, Jan Kiszka wrote: On 2015-09-14 14:52, Wanpeng Li wrote: VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1

Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jarkko Sakkinen
On Mon, Sep 14, 2015 at 11:35:23AM -0600, Jason Gunthorpe wrote: > On Mon, Sep 14, 2015 at 08:15:23PM +0300, Jarkko Sakkinen wrote: > > The command buffer address is necessarily not naturally aligned. > > The hardware drops the entire read on some platforms and fills the > > address with 1's. This

Re: [PATCH v7 5/8] Watchdog: introduce ARM SBSA watchdog driver

2015-09-15 Thread Fu Wei
Hi Dave, On 15 September 2015 at 16:38, Dave Young wrote: > On 08/25/15 at 01:01am, fu@linaro.org wrote: >> From: Fu Wei >> >> This driver bases on linux kernel watchdog framework, and >> use "pretimeout" in the framework. It supports getting timeout and >> pretimeout from parameter and FDT

[PATCH] Input: cyapa: remove variable overwriting

2015-09-15 Thread Sudip Mukherjee
Even if rotat_align is true or false the final value of cyapa->electrodes_rx is always cyapa->electrodes_y. remove the variable overwriting and in the process remove the variable rotat_align which is not required any more. Signed-off-by: Sudip Mukherjee --- drivers/input/mouse/cyapa_gen6.c | 10

[PATCH 3.4 002/146] Bluetooth: ath3k: Add support Atheros AR5B195 combo Mini PCIe card

2015-09-15 Thread lizf
From: Alexander Ploumistos 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 2eeff0b4317a02f0e281df891d990194f0737aae upstream. Add 04f2:aff1 to ath3k.c supported devices list and btusb.c blacklist, so that the device can load the ath3k

[PATCH 3.4 001/146] ipv6: add check for blackhole or prohibited entry in rt6_redire

2015-09-15 Thread lizf
From: Weilong Chen 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- There's a check for ip6_null_entry, but it's not enough if the config CONFIG_IPV6_MULTIPLE_TABLES is selected. Blackhole or prohibited entries should also be ignored. This path

[PATCH V2 1/2] clk: imx6: Add SPDIF_GCLK clock in clock tree

2015-09-15 Thread Shengjiu Wang
As spdif driver will register SPDIF clock to regmap, regmap will do clk_prepare in init function, so SPDIF clock is prepared in probe, then its root clock (pll clock) is prepared also, which cause the arm can't enter low power mode. Add SPDIF_GCLK in clock tree which share same gate bits with

[PATCH V2 2/2] ARM: dts: imx6: change the core clock of spdif

2015-09-15 Thread Shengjiu Wang
As core clock is changed in clock tree, the dts also need to be updated. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6qdl.dtsi | 2 +- arch/arm/boot/dts/imx6sl.dtsi | 16 arch/arm/boot/dts/imx6sx.dtsi | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff

Re: [PATCH 1/1] x509: only prefix strip raw serial numbers

2015-09-15 Thread David Howells
Andy Whitcroft wrote: > This leads us to truncate the id for kernel module signing keys and to > fail to recognise our own modules: > > [1.572423] Loaded X.509 cert 'Build time autogenerated kernel > key: 62a7c3d2da278be024da4af8652c071f3fea33' > [1.646153] Request for unknown

Re: [PATCH v2 00/12] New paravirtual PCI front-end for Hyper-V VMs

2015-09-15 Thread Marc Zyngier
On 14/09/15 18:59, Jake Oshins wrote: >> -Original Message- >> From: Marc Zyngier [mailto:marc.zyng...@arm.com] >> Sent: Monday, September 14, 2015 8:01 AM >> To: Jake Oshins ; gre...@linuxfoundation.org; KY >> Srinivasan ; linux-kernel@vger.kernel.org; >> de...@linuxdriverproject.org;

[PATCH 3.4 007/146] pinctrl: remove maxpin from documentation

2015-09-15 Thread lizf
From: Baruch Siach 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 939417bd8b909ae34a3b2106531594f5115eaea5 upstream. struct pinctrl_desc does not contain the maxpin member since commit 0d2006bbf0 (pinctrl: remove unnecessary max pin

[PATCH 3.4 008/146] compal-laptop: Check return value of power_supply_register

2015-09-15 Thread lizf
From: Krzysztof Kozlowski 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 1915a718b1872edffcb13e5436a9f7302d3d36f0 upstream. The return value of power_supply_register() call was not checked and even on error probe() function returned 0.

Test program: check if fsync() can detect I/O error (2/2)

2015-09-15 Thread Junichi Nomura
On 09/15/15 17:39, Jun'ichi Nomura wrote: >> However if admins run a command such as sync or fsfreeze along side, >> fsync/fdatasync may return success even if writeback has failed. >> That could lead to data corruption. > > For reproducing the problem, compile the attached C program (iogen.c) >

[PATCH 3.4 005/146] KVM: s390: Zero out current VMDB of STSI before including level3 data.

2015-09-15 Thread lizf
From: Ekaterina Tumanova 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit b75f4c9afac2604feb971441116c07a24ecca1ec upstream. s390 documentation requires words 0 and 10-15 to be reserved and stored as zeros. As we fill out all other

[PATCH] clk: tegra: Unlock top rates for Tegra124 DFLL clock

2015-09-15 Thread Mikko Perttunen
The new determine_rate prototype allows for clock rates exceeding 2^31-1 Hz to be used. Switch the DFLL clock to use determine_rate instead of round_rate and unlock the top rates supported by the Tegra124. Signed-off-by: Mikko Perttunen --- drivers/clk/tegra/clk-dfll.c | 15 ---

[PATCH 1/1] fs: global sync to not clear error status of individual inodes

2015-09-15 Thread Junichi Nomura
filemap_fdatawait() is a function to wait for on-going writeback to complete but also consume and clear error status of the mapping set during writeback. The latter functionality is critical for applications to detect writeback error with system calls like fsync(2)/fdatasync(2). However

[PATCH 3.4 004/146] e1000: add dummy allocator to fix race condition between mtu change and netpoll

2015-09-15 Thread lizf
From: Sabrina Dubroca 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 08e8331654d1d7b2c58045e549005bc356aa7810 upstream. There is a race condition between e1000_change_mtu's cleanups and netpoll, when we change the MTU across jumbo size:

[PATCH 3.4 021/146] Btrfs: fix log tree corruption when fs mounted with -o discard

2015-09-15 Thread lizf
From: Filipe Manana 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit dcc82f4783ad91d4ab654f89f37ae9291cdc846a upstream. While committing a transaction we free the log roots before we write the new super block. Freeing the log roots

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Peter Zijlstra
On Tue, Sep 15, 2015 at 11:49:49AM +0200, Peter Zijlstra wrote: > On Mon, Sep 14, 2015 at 02:08:06PM -0700, Davidlohr Bueso wrote: > > On Mon, 14 Sep 2015, Peter Zijlstra wrote: > > > > >On Mon, Sep 14, 2015 at 12:37:23AM -0700, Davidlohr Bueso wrote: > > >> /* > > >>+ * Atomically grab the

[PATCH 0/1] Fix false-negative error reporting from fsync/fdatasync

2015-09-15 Thread Junichi Nomura
Applications use fsync/fdatasync to make sure data is written back to storage. It is expected that those system calls return error if writeback has failed (e.g. disk/transport failure, memory failure..) However if admins run a command such as sync or fsfreeze along side, fsync/fdatasync may

[PATCH 3.4 019/146] C6x: time: Ensure consistency in __init

2015-09-15 Thread lizf
From: Nishanth Menon 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit f4831605f2dacd12730fe73961c77253cc2ea425 upstream. time_init invokes timer64_init (which is __init annotation) since all of these are invoked at init time, lets

[PATCH 3.4 018/146] UBI: fix check for "too many bytes"

2015-09-15 Thread lizf
From: Brian Norris 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 299d0c5b27346a77a0777c993372bf8777d4f2e5 upstream. The comparison from the previous line seems to have been erroneously (partially) copied-and-pasted onto the next. The

[PATCH 3.4 022/146] btrfs: don't accept bare namespace as a valid xattr

2015-09-15 Thread lizf
From: David Sterba 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 3c3b04d10ff1811a27f86684ccd2f5ba6983211d upstream. Due to insufficient check in btrfs_is_valid_xattr, this unexpectedly works: $ touch file $ setfattr -n user. -v 1

Re: [PATCH v3 1/6] mfd: arizona: Add TST_CAP bits for headphone detection

2015-09-15 Thread Charles Keepax
On Tue, Sep 15, 2015 at 01:05:07PM +0900, Chanwoo Choi wrote: > Hi Charles, > > Your following patch-set[1][2] receive the ack message about almost patches. > But, a few patches[3][4][5] must need the ack message from each maintainer. > [1] http://www.spinics.net/lists/devicetree/msg93383.html >

[PATCH 3.4 012/146] usb: common: otg-fsm: only signal connect after switching to peripheral

2015-09-15 Thread lizf
From: Peter Chen 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 990919cad55a8c38fc73b0a6a0c9e5e4e927a5f8 upstream. We should signal connect (pull up dp) after we have already at peripheral mode, otherwise, the dp may be toggled due to

[PATCH 3.4 010/146] pinctrl: fix example .get_group_pins implementation signature

2015-09-15 Thread lizf
From: Baruch Siach 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 838d030bda9e2da5f9dcf7251f4e117c6258cb2f upstream. The callback function signature has changed in commit a5818a8bd0 (pinctrl: get_group_pins() const fixes) Fixes:

[PATCH 3.4 015/146] staging: panel: fix lcd type

2015-09-15 Thread lizf
From: Sudip Mukherjee 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 2c20d92dad5db6440cfa88d811b69fd605240ce4 upstream. the lcd type as defined in the Kconfig is not matching in the code. as a result the rs, rw and en pins were getting

[PATCH 3.4 016/146] UBI: fix out of bounds write

2015-09-15 Thread lizf
From: Brian Norris 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit d74adbdb9abf0d2506a6c4afa534d894f28b763f upstream. If aeb->len >= vol->reserved_pebs, we should not be writing aeb into the PEB->LEB mapping. Caught by Coverity, CID

Test program: check if fsync() can detect I/O error (1/2)

2015-09-15 Thread Junichi Nomura
> However if admins run a command such as sync or fsfreeze along side, > fsync/fdatasync may return success even if writeback has failed. > That could lead to data corruption. For reproducing the problem, compile the attached C program (iogen.c) and run with 'runtest.sh' script in the next mail:

Re: [PATCH v5 1/4] mtd: nand: increase ready wait timeout and report timeouts

2015-09-15 Thread Niklas Cassel
On 09/15/2015 11:38 AM, Alex Smith wrote: > On 10 September 2015 at 00:49, Brian Norris > wrote: >> + Niklas >> >> On Tue, Sep 08, 2015 at 10:10:50AM +0100, Alex Smith wrote: >>> If nand_wait_ready() times out, this is silently ignored, and its >>> caller will then proceed to read from/write to

[PATCH 3.4 024/146] rtlwifi: rtl8192cu: Add new USB ID

2015-09-15 Thread lizf
From: Larry Finger 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 2f92b314f4daff2117847ac5343c54d3d041bf78 upstream. USB ID 2001:330d is used for a D-Link DWA-131. Signed-off-by: Larry Finger Signed-off-by: Kalle Valo Signed-off-by:

[PATCH 3.4 026/146] ext4: make fsync to sync parent dir in no-journal for real this time

2015-09-15 Thread lizf
From: Lukas Czerner 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit e12fb97222fc41e8442896934f76d39ef99b590a upstream. Previously commit 14ece1028b3ed53ffec1b1213ffc6acaf79ad77c added a support for for syncing parent directory of newly

<    3   4   5   6   7   8   9   10   11   12   >