Re: [PATCH v2 2/2] x86/mm/pat, drivers/media/ivtv: move pat warn and replace WARN() with pr_warn()

2015-06-28 Thread Ingo Molnar
* Andy Walls wrote: > On Fri, 2015-06-26 at 10:45 +0200, Ingo Molnar wrote: > > * Luis R. Rodriguez wrote: > > > > > On Thu, Jun 25, 2015 at 08:51:47AM +0200, Ingo Molnar wrote: > > > > > > > > * Luis R. Rodriguez wrote: > > > > > > > > > From: "Luis R. Rodriguez" > > > > > > > > > > On b

Re: [RFC][PATCHv3 2/7] zsmalloc: partial page ordering within a fullness_list

2015-06-28 Thread Minchan Kim
On Thu, Jun 18, 2015 at 08:46:39PM +0900, Sergey Senozhatsky wrote: > We want to see more ZS_FULL pages and less ZS_ALMOST_{FULL, EMPTY} > pages. Put a page with higher ->inuse count first within its > ->fullness_list, which will give us better chances to fill up this > page with new objects (find_

Re: [RFC v2 PATCH 1/8] mm: add a new config to manage the code

2015-06-28 Thread Kamezawa Hiroyuki
On 2015/06/27 11:23, Xishi Qiu wrote: This patch introduces a new config called "CONFIG_ACPI_MIRROR_MEMORY", set it CONFIG_MEMORY_MIRROR off by default. Signed-off-by: Xishi Qiu --- mm/Kconfig | 8 1 file changed, 8 insertions(+) diff

Re: [GIT PULL] workqueue changes for v4.2-rc1

2015-06-28 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Sat, Jun 27, 2015 at 10:09:28AM +0200, Ingo Molnar wrote: > > > > * Linus Torvalds wrote: > > > > > On Fri, Jun 26, 2015 at 9:01 AM, Tejun Heo wrote: > > > > > > > > Ooh, it isn't in mainline yet but pulling rcu tree will cause a silent > > > > conflict with th

Re: [PATCH v2] x86, espfix: init espfix on the boot cpu side

2015-06-28 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Jun 26, 2015 at 05:33:22PM +0800, Zhu Guihua wrote: > > The following lockdep warning occurrs when running with latest kernel: > > [3.178000] [ cut here ] > > [3.183000] WARNING: CPU: 128 PID: 0 at kernel/locking/lockdep.c:2755

Re: [PATCH 2/3] ARM: dts: configure regulators for Gumstix Pepper

2015-06-28 Thread Tony Lindgren
* Arun Bharadwaj [150604 11:10]: > From: Adam YH Lee > > Boot process is halting in midway because some of the necessary voltage > regulators are deemed unused and subsequently powered off, leading to > a completely unresponsive system. OK that needs to be fixed for v4.2-rc series. > Most of

Re: [RFC][PATCHv3 4/7] zsmalloc: introduce zs_can_compact() function

2015-06-28 Thread Minchan Kim
On Thu, Jun 18, 2015 at 08:46:41PM +0900, Sergey Senozhatsky wrote: > This function checks if class compaction will free any pages. > Rephrasing -- do we have enough unused objects to form at least > one ZS_EMPTY page and free it. It aborts compaction if class > compaction will not result in any (f

Re: [PATCH] x86, msr: Allow read access to /dev/cpu/X/msr

2015-06-28 Thread Ingo Molnar
* Henrique de Moraes Holschuh wrote: > On Sun, 28 Jun 2015, Prarit Bhargava wrote: > > > Is it easier to blacklist MSRs we don't want generally exposed, or only > > expose > > the ones that we think are safe? That's sort of a devil's advocate sort of > > question ;) and I'm wondering what th

Re: [all better] Re: regression: massive trouble with fpu rework

2015-06-28 Thread Ingo Molnar
* Mike Galbraith wrote: > > This would suggest sensitivity on CPUID details, i.e. that doing > > fpu__init_system() before other CPU init sequences is causing the bug. > > > > Does the patch below perhaps make a difference? (I'd suggest to apply it > > _without_ the other patch I sent.) > >

Reboot, powerdown (and hibernate suspend) not working. Help appreciated

2015-06-28 Thread Nils Rennebarth
Second try, this time with a better subject. Hi, I have a new Laptop, a Medion E4214, with a standard xubuntu LTS 14.04 installed. My problem is, that the notebook does neither reboot nor powerdown (and consequently, suspend and hibernate do not work either). It hangs late in the powerdown/reb

Re: [RFC][PATCHv3 3/7] zsmalloc: always keep per-class stats

2015-06-28 Thread Minchan Kim
On Thu, Jun 18, 2015 at 08:46:40PM +0900, Sergey Senozhatsky wrote: > Always account per-class `zs_size_stat' stats. This data will > help us make better decisions during compaction. We are especially > interested in OBJ_ALLOCATED and OBJ_USED, which can tell us if > class compaction will result in

Re: [PATCH] HID-picoLCD: Deletion of unnecessary checks before three function calls

2015-06-28 Thread Bruno Prémont
On Sun, 28 Jun 2015 13:54:56 +0200 SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Wed, 19 Nov 2014 18:30:22 +0100 > > > > The functions backlight_device_unregister(), lcd_device_unregister() and > > rc_unregister_device() test whether their argument is NULL and then > > return immedi

[PATCH 1/1] ACPI/resource.c: Fixing memory leak for reg

2015-06-28 Thread Maninder Singh
static analysis gives memory leak error for reg:- [drivers/acpi/resource.c:663]: (error) Memory leak: reg Thus to prevent this allocate memory for reg after request_range error checking. Signed-off-by: Maninder Singh Reviewed-by: Akhilesh Kumar --- drivers/acpi/resource.c |8 1 fi

Re: vfio: powerpc/spapr: One function call less in tce_iommu_attach_group() after kzalloc() failure

2015-06-28 Thread SF Markus Elfring
> tcegrp will be NULL and kfree() can handle this just fine The affected function did not show this API knowledge, did it? > (is not it the whole point of this patchset > - remove the check and just call kfree() even if the pointer is NULL?). Partly, yes. > And if you wanted another label, I

RE: [PATCH] spi: SPI_ZYNQMP_GQSPI should depend on HAS_DMA

2015-06-28 Thread Ranjit Abhimanyu Waghmode
Acked-by: Ranjit Waghmode > -Original Message- > From: Geert Uytterhoeven [mailto:ge...@linux-m68k.org] > Sent: Friday, June 26, 2015 5:37 PM > To: Mark Brown; Ranjit Abhimanyu Waghmode > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Geert > Uytterhoeven > Subject: [PATCH]

[PATCH] arm64: defconfig: Add Ceva ahci to the defconfig

2015-06-28 Thread Michal Simek
From: Suneel Garapati The Ceva ahci controller is available on the Xilinx Zynq UltraScale+ MPSoC. Signed-off-by: Suneel Garapati Signed-off-by: Michal Simek --- arch/arm64/configs/defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/configs/defconfig b

Re: [PATCH RFC] tun, macvtap: higher order allocations for skbs

2015-06-28 Thread Jason Wang
On 06/18/2015 06:20 PM, Michael S. Tsirkin wrote: > Needs more testing. Anyone see anything wrong with this? > > Signed-off-by: Michael S. Tsirkin > --- > drivers/net/macvtap.c | 2 +- > drivers/net/tun.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/ne

[RFC][PATCH 1/1] drm/amdkfd: Remove redundant pdd validation

2015-06-28 Thread Maninder Singh
pdd is already dereferenced before this check. So it is redundtant to validate pdd here. Signed-off-by: Maninder Singh --- drivers/gpu/drm/amd/amdkfd/kfd_process.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm

linux-next: Tree for Jun 29

2015-06-28 Thread Stephen Rothwell
Hi all, Changes since 20150626: Undropped tree: edac-amd The modules tree lost its build failure. Non-merge commits (relative to Linus' tree): 1821 1683 files changed, 111393 insertions(+), 26077 deletions(-) I have

Re: [RFC PATCH 0/6] stop_machine: kill stop_cpus_mutex and stop_cpus_lock

2015-06-28 Thread Oleg Nesterov
On 06/26, Oleg Nesterov wrote: > > 2 cmpxchg()'s vs 2 spin_lock()'s. Plus wake_up(), but we can check > waitqueue_active(). > > Do you think thi will be noticeably slower? > > Of course, if it races with another stop_two_cpus/stop_cpus it will > sleep, but in this case we need to wait anyway. > > >

Re: [PATCH RFC] MAINTAINERS: Update Zynq git tree location

2015-06-28 Thread Michal Simek
On 06/26/2015 06:04 PM, Soren Brinkmann wrote: > The git tree for Zynq moved to Github. Update the MAINTAINERS record to > reflect the change. > > Signed-off-by: Soren Brinkmann > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINER

[PATCH] kernel/ptrace.c: 2 blank lines, 2 sizeof parentheses

2015-06-28 Thread Ruben Carlo Benante
Fixed 4 checkpatch.pl warnings: kernel/ptrace.c:270: WARNING: Missing a blank line after declarations kernel/ptrace.c:413: WARNING: Missing a blank line after declarations kernel/ptrace.c:841: WARNING: sizeof siginfo should be sizeof(siginfo) kernel/ptrace.c:1140: WARNING: sizeof siginfo sho

Re: [PATCH] net: via: VIA_RHINE and VIA_VELOCITY should depend on HAS_DMA

2015-06-28 Thread David Miller
From: Geert Uytterhoeven Date: Fri, 26 Jun 2015 14:08:22 +0200 > If NO_DMA=y: ... > Before, the symbols depended implicitly on HAS_DMA through PCI or > USE_OF. Add explicit dependencies on HAS_DMA to fix this. > > Fixes: commit b7d3282a245f4428 ("net: via/Kconfig: replace USE_OF with > OF_???

Re: [PATCH]drivers:staging:visorbus:Fix checkpatch warnings

2015-06-28 Thread Greg KH
On Sun, Jun 28, 2015 at 10:24:49PM +0530, Ravi Teja wrote: > > This patch fixes checkpatch warnings What warnings? Be specific please. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: [RESEND PATCH 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-06-28 Thread Yingjoe Chen
On Fri, 2015-06-19 at 02:01 +0800, Scott Shu wrote: > For MT6580 SoC platform, the secondary cores are in powered off state > as default, so compared with MT65xx series SoC, one new enable method > is needed. This method using the SPM (System Power Manager) inside > the SCYSYS to control the CPU po

Re: [RFC Patch V1] ioatdma: Ignore IOAT devices under hotplug-capable PCI host bridge

2015-06-28 Thread Jiang, Dave
> On Jun 28, 2015, at 7:14 PM, Jiang Liu wrote: > > Hi Dave, >Gentle Ping:) Any suggestion about this patch? > Thanks! > Gerry I'm fine with it if Dan has no objections. >> On 2015/6/2 14:36, Jiang Liu wrote: >> The dmaengine core assumes that async DMA devices will only be removed >> whe

Re: [RFC Patch V1] ioatdma: Ignore IOAT devices under hotplug-capable PCI host bridge

2015-06-28 Thread Jiang Liu
Hi Dave, Gentle Ping:) Any suggestion about this patch? Thanks! Gerry On 2015/6/2 14:36, Jiang Liu wrote: > The dmaengine core assumes that async DMA devices will only be removed > when they not used anymore, or it assumes dma_async_device_unregister() > will only be called by dma driver ex

Re: [PATCH] power: axp288_charger: Fix broken extcon API calls

2015-06-28 Thread Chanwoo Choi
Hi Guenter, The similar patch[1] was already merged. [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4b703b1d4c46ca4a00109ca1a391943ec21991b3 Thanks, Chanwoo Choi On 06/27/2015 10:12 AM, Guenter Roeck wrote: > The extcon API calls have been changed to add an addit

Re: [PATCH v2 2/2] tty: check tcsetpgrp p is a process group

2015-06-28 Thread Patrick Donnelly
On Sun, Jun 28, 2015 at 12:07 PM, Peter Hurley wrote: > On 06/27/2015 08:51 PM, Patrick Donnelly wrote: >> This fixes a bug where a process can set the foreground process group to its >> pid even if its pid is not a valid pgrp. >> >> Signed-off-by: Patrick Donnelly >> --- >> drivers/tty/tty_io.c

[GIT PULL REQUEST] md updates for 4.2

2015-06-28 Thread NeilBrown
The following changes since commit 0f57d86787d8b1076ea8f9cba2a46d534a27: Linux 4.1-rc8 (2015-06-14 15:51:10 -1000) are available in the git repository at: git://neil.brown.name/md/ tags/md/4.2 for you to fetch changes up to ab16bfc732c436658d13455f28b0b4a2608a7476: md: clear Blocked

[RESEND] mfd: rtsx: add support for rts522A

2015-06-28 Thread micky_ching
From: Micky Ching rts522a(rts5227s) is derived from rts5227, and mainly same with rts5227. Add it to file mfd/rts5227.c to support this chip. Signed-off-by: Micky Ching --- drivers/mfd/Kconfig | 7 ++-- drivers/mfd/rts5227.c| 77 ++-- d

[PATCH] Input: elan_i2c - Add hover event for ST format

2015-06-28 Thread duson
Signed-off by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 62641f2..ce97e28 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/el

Re: [all better] Re: regression: massive trouble with fpu rework

2015-06-28 Thread Henrique de Moraes Holschuh
On Sun, 28 Jun 2015, Mike Galbraith wrote: > On Sun, 2015-06-28 at 12:06 -0300, Henrique de Moraes Holschuh wrote: > > It is just that this kind of breakage should not be subtle if we can help > > it, because people will use a crippled system for years without noticing... > > If you can use it wit

[PATCH] mwifiex: usb: Fix double add error when submitting rx urb

2015-06-28 Thread Reyad Attiyat
There is an error that can occur where the driver adds the same URB to USB submission list twice. This happens since mwifiex_usb_submit_rem_rx can submit packets at same time as an rx urb complete callback. This causes list corruption and is fixed by not setting the skb to NULL when submitting a

[PATCH RFC 1/1] perf,tool: partial callgrap and time support

2015-06-28 Thread kan . liang
From: Kan Liang When multiple events are sampled it may not be needed to collect callgraphs for all of them. The sample sites are usually nearby, and it's enough to collect the callgraphs on a reference event (such as precise cycles or precise instructions). Similarly we also don't need fine grai

[PATCH v2] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-28 Thread Reyad Attiyat
This commmit checks for the URB_ZERO_PACKET flag and creates an extra zero-length td if the urb transfer length is a multiple of the endpoint's max packet length. Signed-off-by: Reyad Attiyat --- drivers/usb/host/xhci-ring.c | 43 +-- 1 file changed, 33 in

Re: [alsa-devel] [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2015-06-28 Thread Hui Wang
On 06/27/2015 11:03 AM, Raymond Yau wrote: Most Thinkpad Edge series laptops use conexant codec, so far although Is there anything I can debug or any information I can collect from my box to examine this? What is the linux distribution on your machine? And use showkey to catch the keycode of

Re: [PATCH] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-28 Thread Reyad Attiyat
Sorry I have forgotten to change the dp loop check line in the bulk_sg function. Will resubmit. On Sun, Jun 28, 2015 at 7:36 PM, Reyad Attiyat wrote: > This commit checks for the URB_ZERO_PACKET flag and creates an extra > zero-length td if the urb transfer length is a multiple of the endpoint >

[PATCH] usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

2015-06-28 Thread Reyad Attiyat
This commit checks for the URB_ZERO_PACKET flag and creates an extra zero-length td if the urb transfer length is a multiple of the endpoint max packet length. Signed-off-by: Reyad Attiyat --- drivers/usb/host/xhci-ring.c | 41 - 1 file changed, 32 insert

Re: [lkp] [usb] 56aa45adcc5: Fixed: WARNING: at kernel/mutex.c:199 mutex_lock_nested+0x121/0x349()

2015-06-28 Thread Huang Ying
On Fri, 2015-06-26 at 11:01 -0500, Felipe Balbi wrote: > Hi, > > On Fri, Jun 26, 2015 at 10:32:30AM +0800, Huang Ying wrote: > > FYI, we noticed the below changes on > > > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > commit 56aa45adcc5b793369e535a4b7177f1c731

[PATCH v2] HID: microsoft: Add quirk for MS Surface Type/Touch cover

2015-06-28 Thread Reyad Attiyat
The newer firmware on MS Surface 2 tablets causes the type and touch cover keyboards to timeout when waiting for reports. The quirk HID_QUIRK_NO_INIT_REPORTS allows them to function normally. Signed-off-by: Reyad Attiyat --- drivers/hid/usbhid/hid-quirks.c | 3 +++ 1 file changed, 3 insertions(

[RESEND PATCH] regulator: Add lockdep asserts to help detecting locking misuse

2015-06-28 Thread Krzysztof Kozlowski
Add lockdep_assert_held_once() to functions explicitly mentioning that rdev or regulator_list mutex must be held. Using WARN_ONCE shouldn't pollute the dmesg to much. The patch (if CONFIG_LOCKDEP enabled) will show warnings in certain regulators calling regulator_notifier_call_chain() without rdev

[PATCH 2/3] percpu-rwsem: don't use percpu_rw_semaphore->rw_sem to exclude writers

2015-06-28 Thread Oleg Nesterov
percpu_down_write() does down_write() to exclude both the readers and other writers. We can rely on rcu_sync_enter() in exclusive mode and take ->rw_sem right before wait_event(). Signed-off-by: Oleg Nesterov --- kernel/locking/percpu-rwsem.c |3 +-- 1 files changed, 1 insertions(+), 2 delet

[PATCH 3/3] percpu-rwsem: introduce percpu_rw_semaphore->recursive mode

2015-06-28 Thread Oleg Nesterov
Add percpu_rw_semaphore->recursive boolean. If it is true then the recursive percpu_down_read() is safe, percpu_down_write() doesn't exclude the new readers, like cpu_hotplug_begin(). Signed-off-by: Oleg Nesterov --- include/linux/percpu-rwsem.h | 15 ++- kernel/events/uprobes.c

[PATCH 0/3] percpu-rwsem: introduce percpu_rw_semaphore->recursive mode

2015-06-28 Thread Oleg Nesterov
On 06/24, Oleg Nesterov wrote: > > So we need percpu_down_write_dont_block_readers(). I already thought > about this before, I'll try to make the patch tomorrow on top of your > changes. Never say tomorrow... > This means that we do not need task_struct->cpuhp_ref, but we can't > avoid livelock w

[PATCH 1/3] rcusync: introduce rcu_sync_struct->exclusive mode

2015-06-28 Thread Oleg Nesterov
Add rcu_sync_struct->exclusive boolean set by rcu_sync_init(), it obviously controls the exclusiveness of rcu_sync_enter(). This is what percpu_down_write() actually wants. We turn ->gp_wait into "struct completion gp_comp", it is used as a resource counter in "exclusive" mode. Otherwise we only u

Re: [PATCH] drivers: net: xgene: Pre-initialize ret in xgene_enet_get_resources()

2015-06-28 Thread David Miller
From: Geert Uytterhoeven Date: Thu, 25 Jun 2015 15:13:29 +0200 > If CONFIG_ACPI=n: > > drivers/net/ethernet/apm/xgene/xgene_enet_main.c: In function > ‘xgene_enet_get_resources’: > drivers/net/ethernet/apm/xgene/xgene_enet_main.c:951: warning: ‘ret’ may > be used uninitialized in this

Re: [PATCH] flow_dissector: Pre-initialize ip_proto in __skb_flow_dissect()

2015-06-28 Thread David Miller
From: Geert Uytterhoeven Date: Thu, 25 Jun 2015 15:10:32 +0200 > net/core/flow_dissector.c: In function ‘__skb_flow_dissect’: > net/core/flow_dissector.c:132: warning: ‘ip_proto’ may be used uninitialized > in this function > > Signed-off-by: Geert Uytterhoeven Applied, thanks.

Re: [PATCH] xen-netfront: Remove the meaningless code

2015-06-28 Thread David Miller
From: David Vrabel Date: Fri, 26 Jun 2015 16:15:18 +0100 > On 27/06/15 00:17, Liang Li wrote: >> The function netif_set_real_num_tx_queues() will return -EINVAL if >> the second parameter < 1, so call this function with the second >> parameter set to 0 is meaningless. > > Reviewed-by: David Vrab

Re: [PATCH 2/2] vfio: powerpc/spapr: One function call less in tce_iommu_attach_group() after kzalloc() failure

2015-06-28 Thread Alexey Kardashevskiy
On 06/29/2015 02:24 AM, SF Markus Elfring wrote: From: Markus Elfring Date: Sun, 28 Jun 2015 17:58:42 +0200 The kfree() function was called even if a previous memory allocation try failed. tcegrp will be NULL and kfree() can handle this just fine (is not it the whole point of this patchset -

Re: [PATCH] HID: microsoft: Add quirk for MS Surface Type/Touch cover

2015-06-28 Thread Reyad Attiyat
This is missing a device ID I will need to resubmit Sorry, Reyad Attiyat On Fri, Jun 26, 2015 at 1:00 AM, Reyad Attiyat wrote: > The newer frimware on MS Surface 2 tablets causes the type and touch cover > keyboards to timeout when waiting for reports. > > Signed-off-by: Reyad Attiyat > --- >

[no subject]

2015-06-28 Thread Khan Maimunah (RW3) CMFT Manchester
You have been pick for a donation contact: ( gloriamackenzi...@gmail.com ) for more details... Privacy and Confidentiality Notice: The information contained in this e-mail is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an int

Re: [PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-06-28 Thread Hartmut Knaack
Daniel Baluta schrieb am 24.04.2015 um 17:58: > Minimal implementation for MMC35240 3-axis magnetometer > sensor. It provides processed readings and possiblity to change > the sampling frequency. > Hi Daniel, please find a few issues inline, which you could address in a next rework patch set. I w

[git pull] m68knommu arch fixes for 4.2

2015-06-28 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-next branch. Only a couple of small changes. Improved the m68knommu MAINTAINERS entry to make it clearer which m68k parts this applies to, and a print format clean up. Regards Greg The following changes since commit 0f57d86787d8b1076ea

Re: [PATCH RESEND] Bluetooth: btusb: Modify entry to support misc devices with BT interface

2015-06-28 Thread Larry Finger
On 06/28/2015 04:49 PM, Xi Ruoyao wrote: In the USB device table in btusb driver, the code specify a generic Bluetooth device by matching Device Descriptor. However, some devices with BT interface are classified as "Miscellaneous Device" and have different Device Descriptor, such as Realtek RTL87

Re: [Intel-gfx] [v3 0/7] Crystalcove (CRC) PMIC based panel and pwm control

2015-06-28 Thread Paul Gortmaker
[Re: [Intel-gfx] [v3 0/7] Crystalcove (CRC) PMIC based panel and pwm control] On 26/06/2015 (Fri 20:47) Ville Syrjälä wrote: > On Fri, Jun 26, 2015 at 06:31:37PM +0200, Daniel Vetter wrote: > > On Fri, Jun 26, 2015 at 02:32:03PM +0530, Shobhit Kumar wrote: > > > Hi, > > > Next update of the serie

Re: LIBCFS_ALLOC

2015-06-28 Thread Dan Carpenter
Yeah. You're right. Doing a vmalloc() when kmalloc() doesn't have even a tiny sliver of RAM isn't going to work. It's easier to use libcfs_kvzalloc() everywhere, but it's probably the wrong thing. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH RFC v2 2/3] tty: serial_core: Add hooks for uart slave drivers

2015-06-28 Thread Sergei Zviagintsev
Hi, Some minor comments below. On Sun, Jun 28, 2015 at 09:46:25PM +0200, Marek Belisko wrote: > From: "H. Nikolaus Schaller" > > 1. allow drivers to get notified in mctrl changes > 2. allow drivers to get notified on rx data (indicating to the driver that >the connected chip is active) > >

[PATCH RESEND] Bluetooth: btusb: Modify entry to support misc devices with BT interface

2015-06-28 Thread Xi Ruoyao
In the USB device table in btusb driver, the code specify a generic Bluetooth device by matching Device Descriptor. However, some devices with BT interface are classified as "Miscellaneous Device" and have different Device Descriptor, such as Realtek RTL8723AU. Then btusb wouldn't probe them. To r

Re: [PATCH] hpfs: add fstrim support

2015-06-28 Thread Linus Torvalds
On Sun, Jun 28, 2015 at 1:59 PM, Al Viro wrote: > > More to the point, why bother with ->ioctl() at all? Why not make > ->fitrim() a super_block method and let do_vfs_ioctl() handle all > marshalling? As in > (int *)fitrim(struct super_block *, struct fstrim_range *); > guaranteed to be

Re: [PATCH RFC v2 1/3] tty: serial core: provide method to search uart by phandle

2015-06-28 Thread Sergei Zviagintsev
Hi, Some comments below. On Sun, Jun 28, 2015 at 09:46:24PM +0200, Marek Belisko wrote: > From: "H. Nikolaus Schaller" > > 1. add registered uart_ports to a search list > 2. provide a function to search an uart_port by phandle. This copies the >mechanism how devm_usb_get_phy_by_phandle() wo

[PATCH] um: Fix out-of-tree build

2015-06-28 Thread Richard Weinberger
Commit 30b11ee9a (um: Remove copy&paste code from init.h) uncovered an issue wrt. out-of-tree builds. For out-of-tree builds, we must not rely on relative paths. Before 30b11ee9a it worked by chance as no host code included generated header files. Signed-off-by: Richard Weinberger --- arch/um/Ma

Re: [PATCH] hpfs: add fstrim support

2015-06-28 Thread Al Viro
On Sun, Jun 28, 2015 at 12:52:11PM -0700, Linus Torvalds wrote: > On Sun, Jun 28, 2015 at 6:16 AM, Mikulas Patocka > wrote: > > This patch adds support for fstrim to the HPFS filesystem. > ... > > +#ifdef CONFIG_COMPAT > > + .compat_ioctl = hpfs_compat_ioctl, > > +#endif > ... > > +#ifdef

Re: [Bug 100491] New: Oops under bitmap_start_sync [md_mod] at boot

2015-06-28 Thread Sami Liedes
On Thu, Jun 25, 2015 at 09:02:45PM +, bugzilla-dae...@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=100491 > > Bug ID: 100491 >Summary: Oops under bitmap_start_sync [md_mod] at boot [...] > Reading all physical valumes. This may take a while

Re: [PATCH v6 1/2] serial_core: add pci uart early console support

2015-06-28 Thread Peter Hurley
On 06/08/2015 02:17 PM, Bin Gao wrote: > On some Intel Atom SoCs, the legacy IO port UART(0x3F8) is not available. > Instead, a 8250 compatible PCI uart can be used as early console. > This patch adds pci support to the 8250 early console driver uart8250. > For example, to enable pci uart(00:21.3)

Re: [PATCH] tty/vt: Fix the memory leak in visual_init

2015-06-28 Thread Peter Hurley
On 06/10/2015 03:21 AM, Dongxing Zhang wrote: > If vc->vc_uni_pagedir_loc is not NULL, its refcount needs to be > decreased before vc_uni_pagedir_loc is re-assigned. Reviewed-by: Peter Hurley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFCv4 PATCH 00/34] sched: Energy cost model for energy-aware scheduling

2015-06-28 Thread Abel Vesa
Hi, So I tried to play around a little bit with this patchset. I did a checkout from: git://linux-arm.org/linux-power.git energy_model_rfc_v4 and then, when I tried to enable the ENERGY_AWARE from sysfs inside qemu (x86_64) and I got this: [69452.750245] BUG: unable to handle kernel paging requ

Re: [RFC PATCH v3] arm DMA: Fix allocation from CMA for coherent DMA

2015-06-28 Thread Lorenzo Nava
On Fri, Jun 26, 2015 at 6:25 PM, Catalin Marinas wrote: > On Thu, Jun 18, 2015 at 11:44:22PM +0200, Lorenzo Nava wrote: >> diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c >> index 7e7583d..8e7f402 100644 >> --- a/arch/arm/mm/dma-mapping.c >> +++ b/arch/arm/mm/dma-mapping.c >> @@

Re: [PATCH] hpfs: add fstrim support

2015-06-28 Thread Linus Torvalds
On Sun, Jun 28, 2015 at 6:16 AM, Mikulas Patocka wrote: > This patch adds support for fstrim to the HPFS filesystem. ... > +#ifdef CONFIG_COMPAT > + .compat_ioctl = hpfs_compat_ioctl, > +#endif ... > +#ifdef CONFIG_COMPAT > + .compat_ioctl = hpfs_compat_ioctl, > +#endif ... > +#ifd

[PATCH RFC v2 2/3] tty: serial_core: Add hooks for uart slave drivers

2015-06-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" 1. allow drivers to get notified in mctrl changes 2. allow drivers to get notified on rx data (indicating to the driver that the connected chip is active) Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/tty/serial/serial_core.c | 10

[PATCH RFC v2 3/3] misc: Add w2g0004 gps receiver driver

2015-06-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" Add driver for Wi2Wi w2g004 GPS module connected through uart. Use uart slave + notification hooks to glue with tty. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- .../devicetree/bindings/misc/wi2wi,w2sg0004.txt| 18 + drivers/misc/Kcon

[PATCH RFC v2 1/3] tty: serial core: provide method to search uart by phandle

2015-06-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" 1. add registered uart_ports to a search list 2. provide a function to search an uart_port by phandle. This copies the mechanism how devm_usb_get_phy_by_phandle() works Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- Documentation/serial/sl

[PATCH RFC v2 0/3] UART slave device support

2015-06-28 Thread Marek Belisko
Post RFC V2 (test on 4.1) as it seems that V1 wasn't sent properly. Hi all, this patch series is our proposal to add hooks so that the driver for a device connected to an UART can monitor modem control lines and data activity of the connected chip. It contains an example for such a device driver

Re: [PATCH] un-improve strrchr()

2015-06-28 Thread Alexey Dobriyan
Joe Perches wrote: > On Sun, 2015-06-28 at 19:44 +0300, Alexey Dobriyan wrote: > > Commit 8da53d4595a53fb9a3380dd4d1c9bc24c7c9aab8 > > ("lib/string.c: improve strrchr()") changed strrchr() implementation > > from "rewind to the end and search backwards" to "search forward" > > optimizing for chara

[PATCH] ARM: tegra: paz00: set gpiod_lookup table conn_id's

2015-06-28 Thread Dmitry Osipenko
Commit 72daceb9a10a ("net: rfkill: gpio: Add default GPIO driver mappings for ACPI") removed possibility to request GPIO by table index for non-ACPI platforms without changing it users. As result "shutdown" GPIO request will fail if request for "reset" GPIO succeeded or "reset" will be requested in

[PATCH] gpu: host1x: Fix MLOCK's debug info

2015-06-28 Thread Dmitry Osipenko
MLOCK's debug info, spewed on CDMA timeout, contains meaningless MLOCK owner channel ID because HOST1X_SYNC_MLOCK_OWNER_CHID_F() returns shifted value, while unshifted should be used. Fix it by changing '_F' to '_V'. Signed-off-by: Dmitry Osipenko --- drivers/gpu/host1x/hw/debug_hw.c | 2

Re: [PATCH v2 1/2] tty: add missing rcu_read_lock for task_pgrp

2015-06-28 Thread Peter Hurley
Hi Patrick, On 06/27/2015 08:51 PM, Patrick Donnelly wrote: > task_pgrp requires an rcu or tasklist lock to be obtained if the returned pid > is to be dereferenced, which kill_pgrp does. Obtain an RCU lock for the > duration of use. > > Signed-off-by: Patrick Donnelly > --- > drivers/tty/tty_io

Re: [PATCH v2 1/2] tty: add missing rcu_read_lock for task_pgrp

2015-06-28 Thread Peter Hurley
On 06/28/2015 01:20 PM, Patrick Donnelly wrote: > On Sun, Jun 28, 2015 at 11:23 AM, Peter Hurley > wrote: >> On 06/27/2015 08:51 PM, Patrick Donnelly wrote: >>> task_pgrp requires an rcu or tasklist lock to be obtained if the returned >>> pid >>> is to be dereferenced, which kill_pgrp does. Obta

Re: [PATCH V2 4/6] slim: qcom: Add Qualcomm Slimbus controller driver

2015-06-28 Thread Sagar Dharia
On 6/17/2015 7:53 AM, Mark Brown wrote: On Tue, Jun 16, 2015 at 07:46:02PM -0600, Sagar Dharia wrote: + - dmaengine, and pipes used to communicate between controller and memory if + sps-BAM HW is used This needs more detail. +*/ + mb(); + if (

Re: [PATCH 3/6] ASoC: fsl_ssi: enable AC'97 asymmetric rates

2015-06-28 Thread Maciej S. Szmigiero
W dniu 28.06.2015 16:01, Timur Tabi pisze: > Maciej S. Szmigiero wrote: >> /* Are the RX and the TX clocks locked? */ >> if (!of_find_property(np, "fsl,ssi-asynchronous", NULL)) { >> -ssi_private->cpu_dai_drv.symmetric_rates = 1; >> +if (!fsl_ssi_is_ac97(ssi_private)) >>

[PATCH] SCSI: DTC: Removed 0 initialization for statics

2015-06-28 Thread Rudhresh
Removed unneccessary initialization of zero to a static variable Signed-off-by: Rudhresh Kumar J --- drivers/scsi/dtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/dtc.c b/drivers/scsi/dtc.c index 4c74c7b..99164d6 100644 --- a/drivers/scsi/dtc.c +++ b/dri

Re: [tip:irq/urgent] avr32/at32ap: Fix race in installing chained IRQ handler

2015-06-28 Thread Hans-Christian Egtvedt
Around Fri 26 Jun 2015 12:47:18 -0700 or thereabout, tip-bot for Thomas Gleixner wrote: > avr32/at32ap: Fix race in installing chained IRQ handler > > Reported-by: Russell King > Signed-off-by: Thomas Gleixner > Cc: Julia Lawall > Cc: Haavard Skinnemoen > Cc: Hans-Christian Egtvedt > ---

Re: [PATCH] un-improve strrchr()

2015-06-28 Thread Joe Perches
On Sun, 2015-06-28 at 19:44 +0300, Alexey Dobriyan wrote: > Commit 8da53d4595a53fb9a3380dd4d1c9bc24c7c9aab8 > ("lib/string.c: improve strrchr()") changed strrchr() implementation > from "rewind to the end and search backwards" to "search forward" > optimizing for characher not found case. However,

[PATCH REESEND 06/10] Drivers: hv: vmbus: prefer 'die' notification chain to 'panic'

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov current_pt_regs() sometimes returns regs of the userspace process and in case of a kernel crash this is not what we need to report. E.g. when we trigger crash with sysrq we see the following: ... RIP: 0010:[] [] sysrq_handle_crash+0x16/0x20 RSP: 0018:8800db0a7d88 E

[PATCH RESEND 08/10] Drivers: hv: fcopy: dynamically allocate smsg_out in fcopy_send_data()

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov struct hv_start_fcopy is too big to be on stack on i386, the following warning is reported: >> drivers/hv/hv_fcopy.c:159:1: warning: the frame size of 1088 bytes is larger >> than 1024 bytes [-Wframe-larger-than=] Reported-by: kbuild test robot Signed-off-by: Vitaly Kuz

[PATCH RESEND 03/10] Drivers: hv: vmbus: add special kexec handler

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When general-purpose kexec (not kdump) is being performed in Hyper-V guest the newly booted kernel fails with an MCE error coming from the host. It is the same error which was fixed in the "Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state" commit - mo

[PATCH RESEND 02/10] kexec: define kexec_in_progress in !CONFIG_KEXEC case

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov If some piece of code wants to check kexec_in_progress it has to be put in #ifdef CONFIG_KEXEC block to not break the build in !CONFIG_KEXEC case. Overcome this limitation by defining kexec_in_progress to false. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Sriniva

[PATCH RESEND 07/10] Drivers: hv: kvp: check kzalloc return value

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov kzalloc() return value check was accidentally lost in 11bc3a5fa91f: "Drivers: hv: kvp: convert to hv_utils_transport" commit. We don't need to reset kvp_transaction.state here as we have the kvp_timeout_func() timeout function and in case we're in OOM situation it is prefe

[PATCH RESEND 01/10] Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov We already have hv_synic_free() which frees all per-cpu pages for all CPUs, let's remove the hv_synic_free_cpu() call from hv_synic_cleanup() so it will be possible to do separate cleanup (writing to MSRs) and final freeing. This is going to be used to assist kexec. Signed

[PATCH RESEND 04/10] Drivers: hv: don't do hypercalls when hypercall_page is NULL

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov At the very late stage of kexec a driver (which are not being unloaded) can try to post a message or signal an event. This will crash the kernel as we already did hv_cleanup() and the hypercall page is NULL. Move all common (between 32 and 64 bit code) declarations to the

[PATCH RESEND 10/10] Drivers: hv: vmbus: Permit sending of packets without payload

2015-06-28 Thread K. Y. Srinivasan
The guest may have to send a completion packet back to the host. To support this usage, permit sending a packet without a payload - we would be only sending the descriptor in this case. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |4 +++- 1 files changed, 3 insertions(+), 1 dele

[PATCH RESEND 05/10] Drivers: hv: vmbus: add special crash handler

2015-06-28 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Full kernel hang is observed when kdump kernel starts after a crash. This hang happens in vmbus_negotiate_version() function on wait_for_completion() as Hyper-V host (Win2012R2 in my testing) never responds to CHANNELMSG_INITIATE_CONTACT as it thinks the connection is alrea

[PATCH RESEND 09/10] Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts

2015-06-28 Thread K. Y. Srinivasan
From: Alex Ng Support Win10 protocol for Dynamic Memory. Thia patch allows guests on Win10 hosts to hot-add memory even when dynamic memory is not enabled on the guest. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 26 -- 1 fil

[PATCH RESEND 00/10] Drivers: hv: vmbus: Enable kexec and other misc cleanup

2015-06-28 Thread K. Y. Srinivasan
In addition to enabling kexec, this patch-set has a bunch of miscellaneous fixes. I have been having mail issues and hence resending the series. Alex Ng (1): Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts K. Y. Srinivasan (1): Drivers: hv: vmbus: P

RE

2015-06-28 Thread Info
-- I am Mrs. Gloria C. Mackenzie, the power-ball lottery winner and I have donated $2,000,000.00 USD to you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-

Re: [PATCH v2 1/2] tty: add missing rcu_read_lock for task_pgrp

2015-06-28 Thread Patrick Donnelly
On Sun, Jun 28, 2015 at 11:23 AM, Peter Hurley wrote: > On 06/27/2015 08:51 PM, Patrick Donnelly wrote: >> task_pgrp requires an rcu or tasklist lock to be obtained if the returned pid >> is to be dereferenced, which kill_pgrp does. Obtain an RCU lock for the >> duration of use. > > kill_pgrp() ob

[PATCH]drivers:staging:visorbus:Fix checkpatch warnings

2015-06-28 Thread Ravi Teja
This patch fixes checkpatch warnings Signed-off-by: Ravi Teja Darbha --- drivers/staging/unisys/visorbus/visorchipset.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c

[PATCH] un-improve strrchr()

2015-06-28 Thread Alexey Dobriyan
Commit 8da53d4595a53fb9a3380dd4d1c9bc24c7c9aab8 ("lib/string.c: improve strrchr()") changed strrchr() implementation from "rewind to the end and search backwards" to "search forward" optimizing for characher not found case. However, common case is exactly the opposite: string is absolute pathname,

[PATCH 2/2] vfio: powerpc/spapr: One function call less in tce_iommu_attach_group() after kzalloc() failure

2015-06-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 28 Jun 2015 17:58:42 +0200 The kfree() function was called even if a previous memory allocation try failed. This implementation detail could be improved by the introduction of another jump label. Signed-off-by: Markus Elfring --- drivers/vfio/vfio_iommu_spapr_t

[PATCH 1/2] vfio: powerpc/spapr: Delete an unnecessary check before the function call "kfree"

2015-06-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 28 Jun 2015 17:43:48 +0200 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/vfi

  1   2   >