[PATCH v2 6/6] ARM: dts: stm32f429: enable adc on eval board

2016-11-10 Thread Fabrice Gasnier
Enable analog to digital converter on stm32f429i-eval board. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32429i-eval.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 6

[PATCH v2 5/6] ARM: dts: stm32f429: Add adc support

2016-11-10 Thread Fabrice Gasnier
Add adc support & pinctrl analog phandle (adc3_in8) to stm32f429. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32f429.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi

[PATCH v2 4/6] ARM: configs: stm32: enable ADC driver

2016-11-10 Thread Fabrice Gasnier
Signed-off-by: Fabrice Gasnier --- arch/arm/configs/stm32_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 1e5ec2a..e012570 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/configs/stm32_defconfi

Re: [PATCH 01/25] fs/buffer: Convert to hotplug state machine

2016-11-10 Thread Al Viro
On Thu, Nov 03, 2016 at 03:49:57PM +0100, Sebastian Andrzej Siewior wrote: > Install the callbacks via the state machine. > diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h > index afe641c02dca..69b74fa0da60 100644 > --- a/include/linux/cpuhotplug.h > +++ b/include/linux/cpuhot

Re: [PATCHv4] shmem: avoid huge pages for small files

2016-11-10 Thread Kirill A. Shutemov
On Mon, Nov 07, 2016 at 03:17:11PM -0800, Hugh Dickins wrote: > On Sat, 22 Oct 2016, Kirill A. Shutemov wrote: > > > > Huge pages are detrimental for small file: they causes noticible > > overhead on both allocation performance and memory footprint. > > > > This patch aimed to address this issue

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread Olaf Hering
On Tue, Nov 10, Boris Ostrovsky wrote: > Doing so will cause the grant to be unmapped and then, during > fault handling, the fault to be mistakenly treated as NUMA hint > fault. > > In addition, even if those maps could partcipate in NUMA > balancing, it wouldn't provide any benefit since we are

Re: [PATCH] perf/core: introduce context per CPU event list

2016-11-10 Thread Peter Zijlstra
On Thu, Nov 10, 2016 at 02:10:37PM +, Mark Rutland wrote: > Sure, that sounds fine for scheduling (including big.LITTLE). > > I might still be misunderstanding something, but I don't think that > helps Kan's case: since INACTIVE events which will fail their filters > (including the CPU check)

Re: [PATCH v3 0/3] dmaengine: DW DMAC: split pdata to hardware properties

2016-11-10 Thread Eugeniy Paltsev
On Tue, 2016-11-08 at 15:36 +0200, Andy Shevchenko wrote: > On Tue, 2016-11-08 at 12:22 +, Eugeniy Paltsev wrote: > > > > On Mon, 2016-11-07 at 15:55 +0200, Andy Shevchenko wrote: >   > > > > > > > > > > > > > + * @only_quirks_used: Only read quirks (like "is_private" or > > > > "is_memcpy"

Re: PM regression with LED changes in next-20161109

2016-11-10 Thread Pavel Machek
Hi! > >>>Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing > >>>the sysfs brightness attr for changes.") breaks runtime PM for me. > >>> > >>>On my omap dm3730 based test system, idle power consumption is over 70 > >>>times higher now with this patch! It goes from about 6mW fo

Re: [PATCH][RFC v7] timekeeping: Ignore the bogus sleep time if pm_trace is enabled

2016-11-10 Thread Pavel Machek
On Thu 2016-11-10 12:55:53, Chen Yu wrote: > Previously we encountered some memory overflow issues due to > the bogus sleep time brought by inconsistent rtc, which is > triggered when pm_trace is enabled, and we have fixed it > in recent kernel. However it's improper in the first place > to call __

Re: [PATCH 01/25] fs/buffer: Convert to hotplug state machine

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Al Viro wrote: > On Thu, Nov 03, 2016 at 03:49:57PM +0100, Sebastian Andrzej Siewior wrote: > > Install the callbacks via the state machine. > > > diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h > > index afe641c02dca..69b74fa0da60 100644 > > --- a/inclu

Re: PM regression with LED changes in next-20161109

2016-11-10 Thread Pavel Machek
Hi! > >>>The current docs say not about (sw) blinking, but that should be treated > >>>just > >>>like a trigger IMHO. > >> > >>You'r right, we should describe the semantics on reading, but it would > >>have to be as follows: > >> > >>Reading from this file returns LED brightness at given moment,

Re: Proposal: HAVE_SEPARATE_IRQ_STACK?

2016-11-10 Thread Matt Redfearn
Hi Jason, On 10/11/16 11:41, Jason A. Donenfeld wrote: On Thu, Nov 10, 2016 at 10:03 AM, Thomas Gleixner wrote: If you want to go with that config, then you need local_bh_disable()/enable() to fend softirqs off, which disables also preemption. Thanks. Indeed this is what I want. What cleve

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread Boris Ostrovsky
On 11/10/2016 11:26 AM, Olaf Hering wrote: > On Tue, Nov 10, Boris Ostrovsky wrote: Perfect timing. This is from Nov. 10 2015. > >> Doing so will cause the grant to be unmapped and then, during >> fault handling, the fault to be mistakenly treated as NUMA hint >> fault. >> >> In addition, even if

Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration

2016-11-10 Thread Grygorii Strashko
On 11/09/2016 05:56 PM, Ivan Khoronzhuk wrote: > > > On 09.11.16 23:09, Grygorii Strashko wrote: >> >> >> On 11/08/2016 07:10 AM, Ivan Khoronzhuk wrote: >>> The dma ctlr is reseted to 0 while cpdma start, thus cpdma ctlr >> >> I assume this is because cpdma_ctlr_start() does soft reset. Is it >

Re: [PATCH V3 1/9] PM / OPP: Reword binding supporting multiple regulators per device

2016-11-10 Thread Mark Brown
On Thu, Nov 10, 2016 at 09:34:40AM +0530, Viresh Kumar wrote: > On 09-11-16, 14:58, Mark Brown wrote: > > On Wed, Oct 26, 2016 at 12:02:56PM +0530, Viresh Kumar wrote: > > > + Entries for multiple regulators shall be provided in the same field > > > separated > > > + by angular brackets <>. The

Re: [v17 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-11-10 Thread Enric Balletbo Serra
Hi Jitao, 2016-08-27 8:44 GMT+02:00 Jitao Shi : > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi > Reviewed-by: Daniel Kurtz > --- > Changes since v16: > - Disable ps8640 DSI MCS Function. > - Rename gpios name more clearly. > - Tune the ps86

Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-11-10 Thread Michael S. Tsirkin
On Sat, Aug 20, 2016 at 05:07:42PM +0900, Namhyung Kim wrote: > The virtio pstore driver provides interface to the pstore subsystem so > that the guest kernel's log/dump message can be saved on the host > machine. Users can access the log file directly on the host, or on the > guest at the next bo

Re: [PATCH v6 3/7] iommu/exynos: Simplify internal enable/disable functions

2016-11-10 Thread Joerg Roedel
On Tue, Nov 08, 2016 at 02:29:20PM +0100, Marek Szyprowski wrote: > Remove remaining leftovers of the ref-count related code in the > __sysmmu_enable/disable functions inline __sysmmu_enable/disable_nocount > to them. Suspend/resume callbacks now checks if master device is set for > given SYSMMU co

Re: [PATCH] perf/x86: Fix overlap counter scheduling bug

2016-11-10 Thread Peter Zijlstra
On Thu, Nov 10, 2016 at 09:00:13AM +0100, Ingo Molnar wrote: > Would it be possible to also add debug code (or some other mechanism) to > disallow > such buggy EVENT_CONSTRAINT_OVERLAP() definitions? Should certainly be possible if someone has the time for it I think. The rules are fairly straigh

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread Olaf Hering
On Thu, Nov 10, Boris Ostrovsky wrote: > Is this something new? Because this patch has been there for a year. It was just tested now, cycling through all the combinations for a disk=[]. Removing "direct-is-save" will use different code paths and the error is not seen. Olaf signature.asc Descri

Re: [PATCH v1 1/1] mfd: intel-lpss: Try to enable Memory-Write-Invalidate

2016-11-10 Thread Mika Westerberg
On Thu, Nov 10, 2016 at 05:22:40PM +0200, Andy Shevchenko wrote: > On Thu, 2016-11-10 at 16:59 +0200, Mika Westerberg wrote: > > On Thu, Nov 10, 2016 at 04:51:42PM +0200, Andy Shevchenko wrote: > > > Enable MWI mechanism if PCI bus master supports it. > > > > Why? > > It might be potential benefi

Re: PM regression with LED changes in next-20161109

2016-11-10 Thread Hans de Goede
Hi, On 10-11-16 17:29, Pavel Machek wrote: Hi! Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing the sysfs brightness attr for changes.") breaks runtime PM for me. On my omap dm3730 based test system, idle power consumption is over 70 times higher now with this patch! It

Re: [PATCH] PCI: mvebu: Take control of mbus windows setup by the firmware

2016-11-10 Thread Jason Gunthorpe
On Thu, Nov 10, 2016 at 09:30:37AM +0100, Thomas Petazzoni wrote: > Hello, > > On Wed, 26 Oct 2016 11:44:40 -0600, Jason Gunthorpe wrote: > > The firmware may setup the mbus to access PCI-E and indicate this > > has happened with a ranges mapping for the PCI-E ID. If this happens > > then the mbus

[PATCH v2 10/11] pcmcia: fix return value of soc_pcmcia_regulator_set

2016-11-10 Thread Arnd Bergmann
The newly introduced soc_pcmcia_regulator_set() function sometimes returns without setting its return code, as shown by this warning: drivers/pcmcia/soc_common.c: In function 'soc_pcmcia_regulator_set': drivers/pcmcia/soc_common.c:112:5: error: 'ret' may be used uninitialized in this function [-W

[PATCH v2 08/11] crypto: aesni: shut up -Wmaybe-uninitialized warning

2016-11-10 Thread Arnd Bergmann
The rfc4106 encrypy/decrypt helper functions cause an annoying false-positive warning in allmodconfig if we turn on -Wmaybe-uninitialized warnings again: arch/x86/crypto/aesni-intel_glue.c: In function ‘helper_rfc4106_decrypt’: include/linux/scatterlist.h:67:31: warning: ‘dst_sg_walk.sg’ may be us

[PATCH v2 01/11] Kbuild: enable -Wmaybe-uninitialized warning for "make W=1"

2016-11-10 Thread Arnd Bergmann
Traditionally, we have always had warnings about uninitialized variables enabled, as this is part of -Wall, and generally a good idea [1], but it also always produced false positives, mainly because this is a variation of the halting problem and provably impossible to get right in all cases [2]. V

[PATCH v2 05/11] s390: pci: don't print uninitialized data for debugging

2016-11-10 Thread Arnd Bergmann
gcc correctly warns about an incorrect use of the 'pa' variable in case we pass an empty scatterlist to __s390_dma_map_sg: arch/s390/pci/pci_dma.c: In function '__s390_dma_map_sg': arch/s390/pci/pci_dma.c:309:13: warning: 'pa' may be used uninitialized in this function [-Wmaybe-uninitialized] Th

[PATCH v2 06/11] [media] dib0700: fix nec repeat handling

2016-11-10 Thread Arnd Bergmann
From: Sean Young When receiving a nec repeat, ensure the correct scancode is repeated rather than a random value from the stack. This removes the need for the bogus uninitialized_var() and also fixes the warnings: drivers/media/usb/dvb-usb/dib0700_core.c: In function ‘dib0700_rc_urb_complet

[PATCH v2 04/11] nios2: fix timer initcall return value

2016-11-10 Thread Arnd Bergmann
When called more than twice, the nios2_time_init() function return an uninitialized value, as detected by gcc -Wmaybe-uninitialized arch/nios2/kernel/time.c: warning: 'ret' may be used uninitialized in this function This makes it return '0' here, matching the comment above the function. Acked-b

[PATCH v2 03/11] x86: apm: avoid uninitialized data

2016-11-10 Thread Arnd Bergmann
apm_bios_call() can fail, and return a status in its argument structure. If that status however is zero during a call from apm_get_power_status(), we end up using data that may have never been set, as reported by "gcc -Wmaybe-uninitialized": arch/x86/kernel/apm_32.c: In function ‘apm’: arch/x86/ke

[PATCH v2 0/3] increase TSCADC clock to 24MHz and fix ti,charge-delay to represent in nS

2016-11-10 Thread Mugunthan V N
This patch series enables ADC to be clocked at 24MHz as the TI AM335x ADC driver has already adopted to use DMA to transfer ADC samples. Now ADC can generated upto 800K Samples per second with the patch [1] on AM335x BBB and AM437x GP EVM. when ADC ref clock is set at 24MHz, I am seeing some issue

[PATCH v2 07/11] [media] rc: print correct variable for z8f0811

2016-11-10 Thread Arnd Bergmann
A recent rework accidentally left a debugging printk untouched while changing the meaning of the variables, leading to an uninitialized variable being printed: drivers/media/i2c/ir-kbd-i2c.c: In function 'get_key_haup_common': drivers/media/i2c/ir-kbd-i2c.c:62:2: error: 'toggle' may be used uninit

[PATCH v2 00/11] getting back -Wmaybe-uninitialized

2016-11-10 Thread Arnd Bergmann
Hi Linus, It took a while for some patches to make it into mainline through maintainer trees, but the 28-patch series is now reduced to 10, with one tiny patch added at the end. I hope this can still make it into v4.9. Aside from patches that are no longer required, I did these changes compared t

[PATCH v2 02/11] NFSv4.1: work around -Wmaybe-uninitialized warning

2016-11-10 Thread Arnd Bergmann
A bugfix introduced a harmless gcc warning in nfs4_slot_seqid_in_use if we enable -Wmaybe-uninitialized again: fs/nfs/nfs4session.c:203:54: error: 'cur_seq' may be used uninitialized in this function [-Werror=maybe-uninitialized] gcc is not smart enough to conclude that the IS_ERR/PTR_ERR pair r

[PATCH v2 11/11] Kbuild: enable -Wmaybe-uninitialized warnings by default

2016-11-10 Thread Arnd Bergmann
Previously the warnings were added back at the W=1 level and above, this now turns them on again by default, assuming that we have addressed all warnings and again have a clean build for v4.10. I found a number of new warnings in linux-next already and submitted bugfixes for those. Hopefully they

[PATCH] mmc: sdhci-of-esdhc: fixup PRESENT_STATE read

2016-11-10 Thread Michael Walle
Since commit 87a18a6a5652 ("mmc: mmc: Use ->card_busy() to detect busy cards in __mmc_switch()") the ESDHC driver is broken: mmc0: Card stuck in programming state! __mmc_switch mmc0: error -110 whilst initialising MMC card Since this commit __mmc_switch() uses ->card_busy(), which is sdhci_car

[PATCH v2 09/11] [v3] infiniband: shut up a maybe-uninitialized warning

2016-11-10 Thread Arnd Bergmann
Some configurations produce this harmless warning when built with gcc -Wmaybe-uninitialized: infiniband/core/cma.c: In function 'cma_get_net_dev': infiniband/core/cma.c:1242:12: warning: 'src_addr_storage.sin_addr.s_addr' may be used uninitialized in this function [-Wmaybe-uninitialized] I previ

[PATCH v2] dt-bindings: video: exynos7-decon: Remove obsolete samsung,power-domain property

2016-11-10 Thread Krzysztof Kozlowski
The samsung,power-domain property is obsolete since commit 0da658704136 ("ARM: dts: convert to generic power domain bindings for exynos DT"). Replace it with generic one. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Sylwester Nawrocki Reviewed-by: Javier Martinez Canillas Acked-by: Rob Herri

Re: [PATCH net-next 00/17] Bug fixes & Code improvements in HNS driver

2016-11-10 Thread David Miller
From: Salil Mehta Date: Wed, 9 Nov 2016 18:13:44 + > This patch-set introduces some bug fixes and code improvements. > These have been identified during internal review or testing of > the driver by internal Hisilicon teams. Series applied, thanks.

Re: [PATCH v8 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-11-10 Thread Marek Vasut
On 11/09/2016 07:54 PM, Joel Holdsworth wrote: > On 09/11/16 11:39, Marek Vasut wrote: >> On 11/09/2016 07:37 PM, Joel Holdsworth wrote: >>> On 09/11/16 05:01, Marek Vasut wrote: On 11/08/2016 06:30 PM, Joel Holdsworth wrote: On the whole, I don't think the zero-length transfers are t

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Dexuan Cui
> From: Jake Oshins > > From: Dexuan Cui > > Sent: Wednesday, November 9, 2016 11:18 PM > > We don't really need such a big on-stack buffer. > > vmbus_sendpacket() here only uses sizeof(struct pci_child_message). > > > > @@ -1271,9 +1271,9 @@ static struct hv_pci_dev > > *new_pcichild_device(struct

Re: [PATCH v4 1/5] arm64: perf: Basic uncore counter support for Cavium ThunderX SOC

2016-11-10 Thread Mark Rutland
Hi Jan, Apologies for the delay in getting to this. On Sat, Oct 29, 2016 at 01:55:29PM +0200, Jan Glauber wrote: > diff --git a/drivers/perf/uncore/uncore_cavium.c > b/drivers/perf/uncore/uncore_cavium.c > new file mode 100644 > index 000..a7b4277 > --- /dev/null > +++ b/drivers/perf/uncore/

[PATCH/RFC] mm: don't cap request size based on read-ahead setting

2016-11-10 Thread Jens Axboe
Hi, We ran into a funky issue, where someone doing 256K buffered reads saw 128K requests at the device level. Turns out it is read-ahead capping the request size, since we use 128K as the default setting. This doesn't make a lot of sense - if someone is issuing 256K reads, they should see 256K re

Re: [PATCH net-next v5]] cadence: Add LSO support.

2016-11-10 Thread David Miller
From: Rafal Ozieblo Date: Wed, 9 Nov 2016 13:41:02 + First, please remove the spurious closing bracket in your Subject line in future submittions. > + if (is_udp) /* is_udp is only set when (is_lso) is checked */ > + /* zero UDP checksum, not calculated by h/w for UFO */ > +

Re: [PATCH] perf/core: introduce context per CPU event list

2016-11-10 Thread Mark Rutland
On Thu, Nov 10, 2016 at 05:26:32PM +0100, Peter Zijlstra wrote: > On Thu, Nov 10, 2016 at 02:10:37PM +, Mark Rutland wrote: > > > Sure, that sounds fine for scheduling (including big.LITTLE). > > > > I might still be misunderstanding something, but I don't think that > > helps Kan's case: sin

[PATCH] staging: rtl8192e: Fix checkpatch warnings

2016-11-10 Thread Yamanappagouda Patil
Fixed checkpatch.pl warning on Block comments. Signed-off-by: Yamanappagouda Patil --- drivers/staging/rtl8192e/dot11d.c | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 2 +- 4 files c

Re: [PATCH 0/6 v7] sched: reflect sched_entity move into task_group's load

2016-11-10 Thread Dietmar Eggemann
On 08/11/16 09:53, Vincent Guittot wrote: > Ensure that the move of a sched_entity will be reflected in load and > utilization of the task_group hierarchy. > > When a sched_entity moves between groups or CPUs, load and utilization > of cfs_rq don't reflect the changes immediately but converge to n

Re: [RESEND PATCH] regulator: pwm: fix syntax errors in the examples

2016-11-10 Thread Peter Rosin
On 2016-11-10 17:18, Mark Brown wrote: > On Thu, Nov 10, 2016 at 11:25:27AM +0100, Peter Rosin wrote: >> While at it, clean up some other things as well. > > This isn't a useful changelog, it's just saying that there's some > random changes for no reason. Please make proper patches with > changel

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-10 Thread Alex Williamson
On Thu, 10 Nov 2016 15:40:07 +0100 Joerg Roedel wrote: > On Wed, Nov 09, 2016 at 01:01:14PM -0700, Alex Williamson wrote: > > Well, it's not like QEMU or libvirt stumbling through sysfs to figure > > out where holes could be in order to instantiate a VM with matching > > holes, just in case someo

Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2016-11-10 Thread Dave Hansen
On 11/09/2016 07:24 PM, Ricardo Neri wrote: > On Wed, 2016-11-09 at 03:02 -0800, Andy Lutomirski wrote: ... >> > What I mean is: why does this need a config option at all? > I intended this feature to be configurable at build time in case someone > wants to build a kernel without it; similar to oth

Re: [PATCH] block: cfq_cpd_alloc() should use @gfp

2016-11-10 Thread Jens Axboe
On 11/10/2016 09:16 AM, Tejun Heo wrote: Re: [bug report] blkcg: replace blkcg_policy->cpd_size with ->cpd_alloc/free_fn() methods Reply-To: In-Reply-To: <20161110133426.GA30610@mwanda> cfq_cpd_alloc() which is the cpd_alloc_fn implementation for cfq was incorrectly hard coding GFP_KERNEL inste

Re: [PATCH] genetlink: fix unsigned int comparison with less than zero

2016-11-10 Thread Cong Wang
On Thu, Nov 10, 2016 at 7:57 AM, Colin King wrote: > From: Colin Ian King > > family->id is unsigned, so the less than zero check for > failure return from idr_alloc is never true and so the error exit > is never handled. Instead, assign err and check if this is less > than zero since this is a

[PATCH] staging: rtl8192e: Fix checkpatch.pl warnings

2016-11-10 Thread Yamanappagouda Patil
Fixed "missing blank line after declaration" checkpatch.pl warnings. Signed-off-by: Yamanappagouda Patil --- drivers/staging/rtl8192e/rtllib_rx.c | 1 + drivers/staging/rtl8192e/rtllib_softmac.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/dr

Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h

2016-11-10 Thread Will Deacon
On Thu, Nov 10, 2016 at 03:32:12PM +, Marc Zyngier wrote: > On 10/11/16 15:12, Wei Huang wrote: > > > > > > On 11/10/2016 03:10 AM, Marc Zyngier wrote: > >> Hi Wei, > >> > >> On 09/11/16 19:57, Wei Huang wrote: > >>> This patch moves ARMv8-related perf event definitions from perf_event.c > >>

Re: [PATCH] x86/cpuid: Deal with broken firmware once more

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Boris Ostrovsky wrote: > On 11/10/2016 10:12 AM, Thomas Gleixner wrote: > > On Thu, 10 Nov 2016, Boris Ostrovsky wrote: > >> By firmware you mean ACPI? It is most likely not available to PV guests. > > You either have to provide ACPI or MP tables. And either of those has to > >

Re: [PATCH] x86/cpuid: Deal with broken firmware once more

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Boris Ostrovsky wrote: > On 11/10/2016 10:05 AM, Charles (Chas) Williams wrote: > For Xen, we recently added a6a198bc60e6 ("xen/x86: Update topology map > for PV VCPUs") to at least temporarily work around some topology map > problems that PV guests have with RAPL (which I thin

Re: [PATCH][RFC v7] timekeeping: Ignore the bogus sleep time if pm_trace is enabled

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Chen Yu wrote: > Previously we encountered some memory overflow issues due to > the bogus sleep time brought by inconsistent rtc, which is > triggered when pm_trace is enabled, and we have fixed it > in recent kernel. However it's improper in the first place > to call __timeke

[PATCH] lm87: Allow LM87_REG_CHANNEL_MODE to be set via DT

2016-11-10 Thread Jason Gunthorpe
This compliments the existing scheme that lets it be set via platform_data. Signed-off-by: Jason Gunthorpe --- Documentation/devicetree/bindings/hwmon/lm87.txt | 27 drivers/hwmon/lm87.c | 8 ++- 2 files changed, 34 insertions(+), 1 delet

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
> -Original Message- > > > From: Jake Oshins > > > From: Dexuan Cui > > > Sent: Wednesday, November 9, 2016 11:18 PM > > > We don't really need such a big on-stack buffer. > > > vmbus_sendpacket() here only uses sizeof(struct pci_child_message). > > > > > > @@ -1271,9 +1271,9 @@ static str

[PATCH 0/1] kthread: don't abuse kthread_create_on_cpu() in __kthread_create_worker()

2016-11-10 Thread Oleg Nesterov
On 11/09, Oleg Nesterov wrote: > > Yes, agreed. Again, I'll write another email. Perhaps we should even keep > park/unpark exported and change them to avoid the races with exit/itself, > I dunno. > > My real point was, imo the KTHREAD_IS_PER_CPU/__kthread_bind(kthread->cpu) > logic in kthread_unpar

[PATCH 1/1] kthread: don't abuse kthread_create_on_cpu() in __kthread_create_worker()

2016-11-10 Thread Oleg Nesterov
kthread_create_on_cpu() sets KTHREAD_IS_PER_CPU and kthread->cpu, this only makes sense if this kthread can be parked/unparked by cpuhp code. kthread workers never call kthread_parkme() so this has no effect. Change __kthread_create_worker() to simply call kthread_bind(task, cpu). The very fact th

Re: 4.8.2 not booting in 32-bit VM without I/O-APIC

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Michael Thayer wrote: > On 03.11.2016 21:02, Michal Necasek wrote: > > Sorry for the delay. I can confirm that the problem is fixed in > > 4.9.0-rc3 and prefill_possible_map no longer crashes (as it did in > > 4.9.0-rc2). Thank you! > > > > Just a side question, is the previou

Re: [Intel-wired-lan] [PATCH] igb: use igb_adapter->io_addr instead of e1000_hw->hw_addr

2016-11-10 Thread Corinna Vinschen
On Nov 10 05:48, Hisashi T Fujinaka wrote: > On Thu, 10 Nov 2016, Corinna Vinschen wrote: > > On Nov 8 11:33, Alexander Duyck wrote: > ... > > > The question I would have is what is reading the device when it is in > > > this state. The watchdog and any other functions that would read the > > > d

Applied "regulators: helpers: Fix handling of bypass_val_on in get_bypass_regmap" to the regulator tree

2016-11-10 Thread Mark Brown
The patch regulators: helpers: Fix handling of bypass_val_on in get_bypass_regmap has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

[PATCH 00/35] second batch of missing lustre 2.8 patches

2016-11-10 Thread James Simmons
More fixes missing from the upstream client. Also a nice cleanup with the removal of cl_req which is no longer needed. More cleanup for lustre_idl.h which is a uapi header. Like the last batch these patches are independent of order. Aditya Pandit (1): staging: lustre: llite: tar restore fails fo

Applied "ASoC: fix platform_no_drv_owner.cocci warnings" to the asoc tree

2016-11-10 Thread Mark Brown
The patch ASoC: fix platform_no_drv_owner.cocci warnings has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

[PATCH 26/35] staging: lustre: mdc: remove console spew from mdc_ioc_fid2path

2016-11-10 Thread James Simmons
From: Andreas Dilger In some cases with a very long pathname, such as with sanity.sh test_154c, mdc_ioc_fid2path() would spew long debug messages to the log, because libcfs_debug_vmsg2() refuses to log messages over one page in size. Truncate the debug message to only log the last 512 characters

[PATCH 25/35] staging: lustre: osc: Do not merge extents with partial pages

2016-11-10 Thread James Simmons
From: Jinshan Xiong After range lock is introduced to Lustre, it's possible for multiple threads to submit osc_extents with partial pages, and finally I/O engine may try to merge these extents, which will end up with assert in osc_build_rpc(). In this patch, osc_extent::oe_no_merge is introduced

[PATCH 21/35] staging: lustre: statahead: lock leaks if statahead file recreated

2016-11-10 Thread James Simmons
From: Lai Siyao During statahead file may be recreated, though this is rare case, current code will leak the lock, this patch will release lock in this case. Signed-off-by: Lai Siyao Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7232 Reviewed-on: http://review.whamcloud.com/16841 Reviewed

[PATCH 10/35] staging: lustre: lmv: revalidate the dentry for striped dir

2016-11-10 Thread James Simmons
From: wang di If there are bad stripe during striped dir revalidation, most likely due the race between close(unlink) and getattr, then let's revalidate the dentry, instead of return error, like normal directory. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6831 Re

[PATCH 35/35] staging: lustre: idl: clean up file attribute flags

2016-11-10 Thread James Simmons
From: Andreas Dilger Remove unused file attribute flag LUSTRE_BFLAG_UNCOMMITTED_WRITES that was used internally on the client at one point. Add flags from the kernel which may be useful in the near future. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5017 R

Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing

2016-11-10 Thread Boris Ostrovsky
On 11/10/2016 11:42 AM, Olaf Hering wrote: > On Thu, Nov 10, Boris Ostrovsky wrote: > >> Is this something new? Because this patch has been there for a year. > It was just tested now, cycling through all the combinations for a > disk=[]. Removing "direct-is-save" will use different code paths and t

[PATCH 34/35] staging: lustre: lnet: add offset for selftest brw

2016-11-10 Thread James Simmons
From: Liang Zhen In current lnet selftest, both client and server side bulk have no offset and we can only test page aligned IO, this patch changed this: - user can set brw offset by lst add_test ... brw off=OFFSET ... - offset is only effective on client side so far - to simply implementation,

[PATCH 32/35] staging: lustre: mount: fix lmd_parse() to handle commas in expr_list

2016-11-10 Thread James Simmons
From: Jian Yu The lmd_parse() function parses mount options with comma as delimiter without considering commas in expr_list as follows is a valid LNET nid range syntax: :== '[' [ ',' ] ']' This patch fixes the above issue by using cfs_parse_nidlist() to parse nid range list instead of using

[PATCH 33/35] staging: lustre: hsm: prevent migration of HSM archived files

2016-11-10 Thread James Simmons
From: John L. Hammond The reference copytool cannot handle migration of HSM archive files. In the MDT migration path check for HSM attributes and fail if they are present. In the LMV layer allow creation of volatile files with any MDT index. Add a test to sanity-hsm to ensure that attempting to m

[PATCH 29/35] staging: lustre: misc: clean up DFID related error messages

2016-11-10 Thread James Simmons
From: Andreas Dilger Improve the error messages related to DFID output and parsing for usage in userspace. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1606 Reviewed-on: http://review.whamcloud.com/6156 Reviewed-by: Frank Zago Reviewed-by: Ben Evans Review

Re: [PATCH v3 00/10] Add DT support for ohci-da8xx

2016-11-10 Thread Axel Haslam
On Thu, Nov 10, 2016 at 1:02 PM, Greg KH wrote: > On Tue, Nov 08, 2016 at 05:37:41PM +0100, Axel Haslam wrote: >> Hi, >> >> On Mon, Nov 7, 2016 at 9:39 PM, Axel Haslam wrote: >> > The purpose of this patch series is to add DT support for the davinci >> > ohci driver. >> > >> >> To make it easier

[mm PATCH v3 01/23] arch/arc: Add option to skip sync on DMA mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Acked-by: Vineet Gupta Signed-off-by: Alexander Duyck --- arch/arc/mm/dma.c |5 - 1 file cha

[PATCH 28/35] staging: lustre: osc: Remove remains of osc_ast_guard

2016-11-10 Thread James Simmons
From: Oleg Drokin osc_ast_guard has been removed by the clio simplification. Remove the last lock class definition. Signed-off-by: Oleg Drokin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7148 Reviewed-on: http://review.whamcloud.com/16392 Reviewed-by: Andreas Dilger Reviewed-by: Bobi J

[PATCH 22/35] staging: lustre: llite: clear dir stripe md in ll_iget

2016-11-10 Thread James Simmons
From: wang di If ll_iget fails during inode initialization, especially during striped directory lookup after creation failed, then it should clear stripe MD before make_bad_inode(), because make_bad_inode() will reset the i_mode, which can cause ll_clear_inode() skip freeing those stripe MD. Sig

[PATCH 12/35] staging: lustre: clio: get rid of cl_req

2016-11-10 Thread James Simmons
From: Jinshan Xiong Implement cl_req_attr_set with a cl_object operation. Get rid of cl_req and related function and data structures. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6943 Reviewed-on: http://review.whamcloud.com/15833 Reviewed-by: John L. Hammond

[PATCH 30/35] staging: lustre: llite: ll_write_begin/end not passing on errors

2016-11-10 Thread James Simmons
From: Hiroya Nozaki Because of a implementation of generic_perform_write(), write(2) may return 0 with no errno even if EDQUOT or ENOSPC actually happened in it. This patch fixes the issue with setting a proper errno to ci_result. Signed-off-by: Hiroya Nozaki Intel-bug-id: https://jira.hpdd.int

[mm PATCH v3 08/23] arch/m68k: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Geert Uytterhoeven Cc: linux-m...@lists.linux-m68k.org Signed-off-by: Alexander Duyck --- arch/m

[PATCH 27/35] staging: lustre: ptlrpc: reset imp_replay_cursor

2016-11-10 Thread James Simmons
From: Hongchao Zhang At client side, the replay cursor using to speed up the lookup of committed open requests in its obd_import should be resetted for normal connection (not reconnection) during recovery. Signed-off-by: Hongchao Zhang Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6802 Re

[PATCH 31/35] staging: lustre: obdclass: add export for lprocfs_stats_alloc_one()

2016-11-10 Thread James Simmons
From: Chennaiah Palla When compiling the kernel without optimization, when using GCOV, the lprocfs_stats_alloc_one() symbol is not properly exported to other modules and causes the ptlrpc module to fail loading with an unknown symbol. Added EXPORT_SYMBOL(lprocfs_stats_alloc_one) so that this work

[PATCH 20/35] staging: lustre: ptlrpc: Move IT_* definitions to lustre_idl.h

2016-11-10 Thread James Simmons
From: Ben Evans Put IT_* definitions into an enum, as they're sent over the wire, adjust calls, print statements, etc. to use the new enum. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6746 Reviewed-on: http://review.whamcloud.com/16228 Reviewed-by: John L. Hammo

[PATCH 19/35] staging: lustre: obdclass: remove structure holes to reduce memory

2016-11-10 Thread James Simmons
From: Andreas Dilger Fix the alignment of fields in commonly-used structures to reduce memory usage on the client and server. Structures fixed: ptlrpc_reply_state: reduced by 8 bytes obd_device: reduced by 16 bytes niobuf_local: reduced by 8 bytes Signed-off-by: Andreas Dilger I

[mm PATCH v3 07/23] arch/hexagon: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Signed-off-by: Alexander Duyck --- arch/hexagon/ke

[mm PATCH v3 03/23] arch/avr32: Add option to skip sync on DMA map

2016-11-10 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Acked-by: Hans-Christian Noren Egtvedt Signed-off-by: Alexander Duyck --- arch/avr32/mm/dma-coherent.c |7 ++-

[PATCH 15/35] staging: lustre: llite: tar restore fails for HSM released files.

2016-11-10 Thread James Simmons
From: Aditya Pandit If you create a file, archive and release it, it keeps only a link and all information in xattr. If you tar the file with --xattr you will store the same striping information and link information in the tar. If you delete the file, the file and archive state does not make sens

[PATCH 01/35] staging: lustre: hsm: Use file lease to implement migration

2016-11-10 Thread James Simmons
From: Henri Doreau Implement non-blocking migration based on exclusive open instead of group lock. Implemented exclusive close operation to atomically put a lease, swap two layouts and close a file. This allows race-free migrations. Make the caller responsible for retrying on failure (EBUSY, EAG

[mm PATCH v3 18/23] arch/tile: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Chris Metcalf Signed-off-by: Alexander Duyck --- arch/tile/kernel/pci-dma.c | 12 ++-- 1 fil

[mm PATCH v3 06/23] arch/frv: Add option to skip sync on DMA map

2016-11-10 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Signed-off-by: Alexander Duyck --- arch/frv/mb93090-mb00/pci-dma-nommu.c | 14 ++ arch/frv/mb93090-mb00/

[mm PATCH v3 15/23] arch/powerpc: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Acked-by: Michael Ellerman (powerpc) Signed-off-by: Alexander Duyck --- arch/powerpc/kernel/dma.c |9 +

[mm PATCH v3 21/23] mm: Add support for releasing multiple instances of a page

2016-11-10 Thread Alexander Duyck
This patch adds a function that allows us to batch free a page that has multiple references outstanding. Specifically this function can be used to drop a page being used in the page frag alloc cache. With this drivers can make use of functionality similar to the page frag alloc cache without havi

[mm PATCH v3 14/23] arch/parisc: Add option to skip DMA sync as a part of map and unmap

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-par...@vger.kernel.org Signed-off-by: Alexander Duyck

[mm PATCH v3 20/23] dma: Add calls for dma_map_page_attrs and dma_unmap_page_attrs

2016-11-10 Thread Alexander Duyck
Add support for mapping and unmapping a page with attributes. The primary use for this is currently to allow for us to pass the DMA_ATTR_SKIP_CPU_SYNC attribute when mapping and unmapping a page. On some architectures such as ARM the synchronization has significant overhead and if we are already

[mm PATCH v3 23/23] igb: Update code to better handle incrementing page count

2016-11-10 Thread Alexander Duyck
This patch updates the driver code so that we do bulk updates of the page reference count instead of just incrementing it by one reference at a time. The advantage to doing this is that we cut down on atomic operations and this in turn should give us a slight improvement in cycles per packet. In a

[mm PATCH v3 19/23] arch/xtensa: Add option to skip DMA sync as a part of mapping

2016-11-10 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Max Filippov Signed-off-by: Alexander Duyck --- arch/xtensa/kernel/pci-dma.c |7 +-- 1 file ch

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