RE: [Intel-wired-lan] [PATCH v5] ixgbe: Add module parameter to disable VLAN filter

2015-05-26 Thread Hiroshi Shimamoto
> On 05/21/2015 06:10 AM, Hiroshi Shimamoto wrote: > > From: Hiroshi Shimamoto > > > > Introduce module parameter "disable_hw_vlan_filter" to disable HW VLAN > > filter on ixgbe module load. > > > > From the hardware limitation, there are only 64 VLAN entries for HW VLAN > > filter, and it leads

Re: [PATCH] pinctrl: zynq: change error code for pinctrl_register failure

2015-05-26 Thread Masahiro Yamada
Hi Sören, 2015-05-27 3:37 GMT+09:00 Sören Brinkmann : > On Tue, 2015-05-26 at 10:12AM +0200, Arnd Bergmann wrote: >> On Tuesday 26 May 2015 13:18:29 Masahiro Yamada wrote: >> > diff --git a/drivers/pinctrl/pinctrl-zynq.c >> > b/drivers/pinctrl/pinctrl-zynq.c >> > index 04748a4..0ff653c 100644 >>

Re: [PATCH 06/16] ia64: fix up obsolete cpu function usage.

2015-05-26 Thread Rusty Russell
Tony Luck writes: > On Mon, Mar 2, 2015 at 3:35 AM, Rusty Russell wrote: >> Thanks to spatch, then a sweep for for_each_cpu_mask => for_each_cpu. >> >> Signed-off-by: Rusty Russell > > I'm seeing a bunch of warnings building the ia64 tree: Indeed, here's the forgotten fix sitting in my patch co

[PATCH] atm:he - Change 0 to false for bool type variable initialization.

2015-05-26 Thread Shailendra Verma
The variable sdh is bool type so initializing it with false value instead of 0. Signed-off-by: Shailendra Verma --- drivers/atm/he.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 93dca2e..eb5bebc 100644 --- a/drivers/atm/he.c

Re: [PATCH 000/208] big x86 FPU code rewrite

2015-05-26 Thread Bobby Powers
Hello, Ingo Molnar wrote: > Please have a look. I've been running this for ~ 2 weeks. I've only seen one issue, when emerging mesa 10.5.6: [May26 20:41] traps: aclocal-1.15[27452] trap invalid opcode ip:7f6331031ab0 sp:7ffe73ece880 error:0 in libperl.so.5.20.2[7f6330f18000+19e000] [ +0.51

Re: swap: nfs: Sleeping function called from an rcu read section in nfs_swap_activate

2015-05-26 Thread Jeff Layton
On Tue, 26 May 2015 09:56:14 -0400 Jeff Layton wrote: > On Tue, 26 May 2015 15:20:46 +0200 > Jerome Marchand wrote: > > > > > Commit dad2b015 added an rcu read lock around the call to xs_swapper() > > in nfs_activate()/deactivate(), which can sleep, thus raising a bug at > > each swapon and sw

[PATCH] staging:nvec: fix typo in comment

2015-05-26 Thread Shailendra Verma
Fix spelling error in comment in function tegra_nvec_remove. Signed-off-by: Shailendra Verma --- drivers/staging/nvec/nvec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 1bdc8d0..164634d 100644 --- a/driver

Re: Re: [RFC PATCH] suspend/resume performance improvement

2015-05-26 Thread EunTaik Lee
>> When a task that calls state_store() to suspend >> the device has used up most of its time slice, >> suspend sometimes take too long. (User noticeable) >> >> Suspend/resume is a system wide operation. >> So, instead of depending on a userspace task's time >> slice, let kworker do the work to a

Re: [PATCH v3 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-26 Thread Lu, Baolu
On 05/26/2015 10:50 PM, Felipe Balbi wrote: Hi, On Mon, May 25, 2015 at 02:24:00PM +0800, Lu, Baolu wrote: On 05/23/2015 12:08 AM, David Cohen wrote: Hi, On Fri, May 22, 2015 at 07:29:15PM +0800, Lu Baolu wrote: Phy drivers and the ulpi interface providers depend on the registeration of t

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

2015-05-26 Thread Gu Zheng
ping... Any comments or suggestions are welcomed. Regards, Gu On 05/14/2015 07:33 PM, Gu Zheng wrote: > Yasuaki Ishimatsu found that with node online/offline, cpu<->node > relationship is established. Because workqueue uses a info which > was established at boot time, but it may be changed by n

[PATCH] lguest: fix out-by-one error in address checking.

2015-05-26 Thread Rusty Russell
This bug has been there since day 1; addresses in the top guest physical page weren't considered valid. You could map that page (the check in check_gpte() is correct), but if a guest tried to put a pagetable there we'd check that address manually when walking it, and kill the guest. Signed-off-by

Re: Re: [RFC PATCH] suspend/resume performance improvement

2015-05-26 Thread EunTaik Lee
> Instead of replicating code in state_store here, does it make sense to > move into a common part, so that fixes/optimization can be done in one > place? > Also why another config? If this has proven benefit then it can be > default path. I agree. I will resend the patch if this patch is agreed t

Re: [c++std-parallel-1651] Re: Compilers and RCU readers: Once more unto the breach!

2015-05-26 Thread Paul E. McKenney
On Tue, May 26, 2015 at 07:08:35PM +0200, Torvald Riegel wrote: > On Tue, 2015-05-19 at 17:55 -0700, Paul E. McKenney wrote: > > http://www.rdrop.com/users/paulmck/RCU/consume.2015.05.18a.pdf > > I have been discussing Section 7.9 with Paul during last week. > > While I think that 7.9 helps

[PATCH] char:agp:amd64-agp - Change 1 to true for bool type

2015-05-26 Thread Shailendra Verma
The variable agp_try_unsupported is bool type.Hence initializing with bool value true instead of 1. Signed-off-by: Shailendra Verma --- drivers/char/agp/amd64-agp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c

Re: [Intel-wired-lan] [PATCH v5] ixgbe: Add module parameter to disable VLAN filter

2015-05-26 Thread Alexander Duyck
On 05/26/2015 06:11 PM, Hiroshi Shimamoto wrote: On 05/21/2015 06:10 AM, Hiroshi Shimamoto wrote: From: Hiroshi Shimamoto Introduce module parameter "disable_hw_vlan_filter" to disable HW VLAN filter on ixgbe module load. From the hardware limitation, there are only 64 VLAN entries for HW V

[PATCH v4 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-26 Thread Lu Baolu
Phy drivers and the ulpi interface providers depend on the registration of the ulpi bus. Ulpi registers the bus in module_init(). This could cause unnecessary probe delays. Reported-by: Zhuo Qiuxu Signed-off-by: Lu Baolu Acked-by: Heikki Krogerus --- drivers/usb/common/ulpi.c | 2 +- 1 file c

[PATCH] char:agp:amd64-agp - fix for warning __initdata

2015-05-26 Thread Shailendra Verma
The below checkpatch warning fixed in this patch. WARNING: __initdata should be placed after agp_try_unsupported static bool __initdata agp_try_unsupported = true; Signed-off-by: Shailendra Verma --- drivers/char/agp/amd64-agp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH 1/1] dw_mmc: insmod followed by rmmod will hung for eMMC

2015-05-26 Thread Jaehoon Chung
Hi, Pradu. Sorry for late. I will wait for your next version than i will check yours. To Ulf. Thanks for review! Best Regards, Jaehoon Chung On 05/22/2015 10:21 PM, Ulf Hansson wrote: > On 18 May 2015 at 16:23, Prabu Thangamuthu wrote: >> Removing dw_mmc driver immediately after inserting the

Re:Re: Question about "Make sched entity usage tracking scale-invariant"

2015-05-26 Thread Chao Xie
At 2015-05-26 19:05:36, "Morten Rasmussen" wrote: >Hi, > >[Adding maintainers and others to cc] > >On Mon, May 25, 2015 at 02:19:43AM +0100, Chao Xie wrote: >> hi >> I saw the patch “sched: Make sched entity usage tracking >> scale-invariant” that will make the usage to be freq scaled. >> So if d

Re: [PATCH] mmc: dw_mmc: Wait for data transfer after response errors

2015-05-26 Thread Jaehoon Chung
Hi, All. Thanks for your effort and sorry for late! On 05/27/2015 05:44 AM, Doug Anderson wrote: > Alim, > > On Tue, May 26, 2015 at 11:02 AM, Alim Akhtar wrote: >> Hi Doug, >> On peach-pi, I got a hung task once in 4 cold boot as [1]. > > OK, I'll have to get my peach-pi or peach-pit up and r

Re: [PATCH] scripts:checkpatch - Do not give error if static bool or global bool variables are assigned to false value.

2015-05-26 Thread Joe Perches
On Wed, 2015-05-27 at 06:39 +0530, Shailendra Verma wrote: > The bool value false is not always to be 0. By definition (7.16 Boolean type and values ), false is integer 0. Setting a boolean variable to 0 is equivalent to setting it to false. What I think you mean is that a boolean variable can b

linux-next: build failure after merge of the wireless-drivers-next tree

2015-05-26 Thread Stephen Rothwell
: dereferencing pointer to incomplete type adev->flags.power_manageable = 0; ^ Caused by commit f0992ace680c ("brcmfmac: prohibit ACPI power management for brcmfmac driver"). I have used the wireless-drivers-next from next-20150526 for today. -- Cheers, Stephen R

Re: [PATCH] PCI / ACPI: Do not set ACPI companions for host bridges with parents

2015-05-26 Thread Boris Ostrovsky
On 05/26/2015 08:07 PM, Rafael J. Wysocki wrote: On Tuesday, May 26, 2015 10:32:03 AM Boris Ostrovsky wrote: On 05/25/2015 10:17 PM, Rafael J. Wysocki wrote: On Tuesday, May 26, 2015 03:08:17 AM Rafael J. Wysocki wrote: On Tuesday, May 26, 2015 01:42:16 AM Rafael J. Wysocki wrote: On Tuesda

Re: [PATCH 2/2] base: power : opp.c: fixed a typo error

2015-05-26 Thread Viresh Kumar
On Wed, May 27, 2015 at 12:00 AM, Sriram Dash wrote: > From: dashsriram > > Fixed a typo error in the file > > Signed-off-by: Sriram Dash > --- > drivers/base/power/opp.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/base/power/opp.c b/drivers/base/power

Re: [RFC PATCH v2 09/15] perf probe: Support $params without debuginfo

2015-05-26 Thread He Kuang
hi, Alexei On 2015/5/27 1:50, Alexei Starovoitov wrote: > On 5/25/15 1:33 AM, He Kuang wrote: >> Right, I learnt regparm(3) is mandatory in x86_32, according to rules, >> the first three args will go to regparm(ax, dx, cx). But we should not >> refer arg1~3 to ax, dx, cx because of 64bit parameter

[PATCH] usb: dwc2: fix unnecessary USB overcurrent condition

2015-05-26 Thread dinguyen
From: Dinh Nguyen For platforms that use a ULPI phy, we should enable the external VbusValid signal instead. Signed-off-by: Dinh Nguyen Cc: Gregory Herrero Cc: Mian Yousaf Kaukab Cc: Felipe Balbi --- drivers/usb/dwc2/core.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/us

Re: [RFC v2 1/4] fs: Add generic file system event notifications

2015-05-26 Thread Greg KH
On Tue, May 26, 2015 at 06:39:48PM +0200, Beata Michalska wrote: > Hi, > > Things has gone a bit quiet thread wise ... > As I believe I've managed to snap back to reality, I was hoping we could > continue with this? > I'm not sure if we've got everything cleared up or ... have we reached a dead

Re: [GIT PULL] USB fixes for v4.1-rc5

2015-05-26 Thread Greg KH
On Tue, May 26, 2015 at 10:35:16AM -0500, Felipe Balbi wrote: > Hi Greg, > > My final pull request for this -rc cycle. Sorry for being > rather late, but I had a ton of things to catch up on after > only 5 days out. > > cheers > > The following changes since commit c94e289f195e0e13cf34d27f9338d2

Re: [PATCH v4 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-26 Thread Greg Kroah-Hartman
On Wed, May 27, 2015 at 09:45:37AM +0800, Lu Baolu wrote: > Phy drivers and the ulpi interface providers depend on the > registration of the ulpi bus. Ulpi registers the bus in > module_init(). This could cause unnecessary probe delays. What do you mean by "probe delays"? > > Reported-by: Zhuo

Re: [PATCH v4 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-26 Thread Greg Kroah-Hartman
On Wed, May 27, 2015 at 09:45:37AM +0800, Lu Baolu wrote: > Phy drivers and the ulpi interface providers depend on the > registration of the ulpi bus. Ulpi registers the bus in > module_init(). This could cause unnecessary probe delays. > > Reported-by: Zhuo Qiuxu > Signed-off-by: Lu Baolu > Ac

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-26 Thread Greg KH
On Mon, May 25, 2015 at 07:00:13PM +0200, Bjørn Mork wrote: > Greg KH writes: > > > If there are other bus drivers that do this, I'll go fix them up, > > pointers to those files would be appreciated. > > git grep -E 'if .*\.p\W' found a couple of interesting candidates you > might want to check

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-26 Thread Greg KH
On Tue, May 26, 2015 at 10:54:01AM -0700, David Cohen wrote: > Hi, > > On Mon, May 25, 2015 at 07:00:13PM +0200, Bjørn Mork wrote: > > Greg KH writes: > > > > > If there are other bus drivers that do this, I'll go fix them up, > > > pointers to those files would be appreciated. > > > > git grep

[PATCH V2 1/3] usb: add function usb_autopm_get_interface_upgrade

2015-05-26 Thread Zhang, Yanmin
Some usb driver has a specific requirement. Their critical functions might be called under both atomic environment and non-atomic environment. If it's under atomic environment, the driver can wake up the device by calling pm_runtime_get_sync directly. If it's under non-atomic environment, the fun

[PATCH V2 0/3] cdc-acm: fix incorrect runtime wakeup in acm_tty_write

2015-05-26 Thread Zhang, Yanmin
Resend as V1 has email format issue. Sorry for bothering. --- There is a scenario about cdc-acm utilization.Application opens n_gsm tty and cdc-acm tty. cdc-acm tty connects to xhci device. The application configures cdc-adm tty to n_gsm tty as ldisc tty. n_gsm=>cdc-acm=>xhci driver acm_tty

[PATCH V2 2/3] cdc-acm: call usb_autopm_get_interface_upgrade in acm_tty_write

2015-05-26 Thread Zhang, Yanmin
acm device might be used as ldisc device by n_gsm driver. gsmtty_write and other gsm functions calls acm_tty_write indirectly while they holds spinlocks. Meanwhile, application might access ACM tty device directly. Here we choose to call usb_autopm_get_interface_upgrade instead of usb_autopm_get_

[PATCH V2 3/3] n_gsm: wake up ldisc tty before using it

2015-05-26 Thread Zhang, Yanmin
Wake up ldisc device before calling its driver to access the device. Signed-off-by: Zhang Yanmin --- drivers/tty/n_gsm.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 2c34c32..40671fa

[PATCH net-next v6 0/2] Adding support for Cavium ThunderX network controller

2015-05-26 Thread Aleksey Makarov
This patchset adds support for the Cavium ThunderX network controller. changes in v6: * unused preprocessor symbols were removed * reduce no of atomic operations in SQ maintenance * support for TCP segmentation at driver level * reset RBDR if fifo state is FAIL * fixed an issue with link stat

Re: [PATCH 1/2] KVM: MMU: fix SMAP virtualization

2015-05-26 Thread Xiao Guangrong
On 05/26/2015 10:48 PM, Paolo Bonzini wrote: On 26/05/2015 16:45, Edward Cree wrote: This breaks older compilers that can't initialize anon structures. How old ? Even gcc 3.1 says you can use unnamed struct/union fields and 3.2 is the minimum version required to compile the kernel as mentio

Re: [PATCH] atm:he - Change 0 to false for bool type variable initialization.

2015-05-26 Thread David Miller
From: Shailendra Verma Date: Wed, 27 May 2015 06:50:18 +0530 > The variable sdh is bool type so initializing it with false value > instead of 0. > > Signed-off-by: Shailendra Verma > --- > drivers/atm/he.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers

Re: [PATCH v3 6/6] ACPI: import watchdog info of GTDT into platform device

2015-05-26 Thread Hanjun Guo
On 2015年05月27日 00:35, Timur Tabi wrote: On 05/26/2015 03:28 AM, Hanjun Guo wrote: early_acpi_os_unmap_memory((char *)table, tbl_size); } please add #ifdef CONFIG_ARM_SBSA_WATCHDOG (acpi gtdt code) #endif I don't agree with this. The GTDT should be parsed even if there's no watchdo

Re: [PATCH V2 3/3] n_gsm: wake up ldisc tty before using it

2015-05-26 Thread Greg KH
On Wed, May 27, 2015 at 10:50:01AM +0800, Zhang, Yanmin wrote: > Wake up ldisc device before calling its driver to access the device. > > Signed-off-by: Zhang Yanmin > > --- > > drivers/tty/n_gsm.c | 40 +++- > 1 file changed, 39 insertions(+), 1 deletion(-)

Re: [PATCHv6 05/10] ARM: mxs: fix in tree users of ssd1306

2015-05-26 Thread Shawn Guo
On Tue, May 26, 2015 at 10:08:23AM +0300, Tomi Valkeinen wrote: > So should I take this via fbdev tree with the rest of the patches? If > so, I want an ack from a relevant dts maintainer. get_maintainers.pl > gives Shawn as the first contact for imx28-cfa10036.dts. Acked-by: Shawn Guo -- To unsub

Re: [PATCH v3 6/6] ACPI: import watchdog info of GTDT into platform device

2015-05-26 Thread Timur Tabi
Hanjun Guo wrote: I don't agree with this. The GTDT should be parsed even if there's no watchdog driver compiled for this kernel. There are no other #ifdefs in this file. So what's the point of parse GTDT and alloc memories for it if there is no watchdog driver compiled for the kernel? I do

linux-next: build failure after merge of the backlight tree

2015-05-26 Thread Stephen Rothwell
on of function 'of_platform_device_ensure' [-Werror=implicit-function-declaration] of_platform_device_ensure(node); ^ Caused by commit 67a6b10546ea ("backlight: Probe backlight devices on demand"). I have used the backlight tree from next-20150526 for today. -- Cheers, Stephen Rothwell

Re: [PATCH v2 v3.18-rc4 1/4] drm: prime: Honour O_RDWR during prime-handle-to-fd

2015-05-26 Thread Damian Hobson-Garcia
Hello, >On Wed, Nov 12, 2014 at 6:38 AM, Daniel Thompson >wrote: >> Currently DRM_IOCTL_PRIME_HANDLE_TO_FD rejects all flags except >> (DRM|O)_CLOEXEC making it hard for the userspace to generate a file >> descriptor that can be used by mmap(). >> >> It is easy to relax the restriction and allow

Re: [PATCH net-next v6 0/2] Adding support for Cavium ThunderX network controller

2015-05-26 Thread David Miller
From: Aleksey Makarov Date: Tue, 26 May 2015 19:20:13 -0700 > This patchset adds support for the Cavium ThunderX network controller. I don't see patch #1 (yet). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More m

Re: [PATCH v2 0/7] Smack namespace

2015-05-26 Thread Eric W. Biederman
Lukasz Pawelczyk writes: > Hello, > > Some time ago I sent a Smack namespace documentation and a preliminary > LSM namespace for RFC. I've been suggested that there shouldn't be a > separate LSM namespace and that it should live within user namespace. > And this version does. This is a complete s

Re: [PATCH v3] net/unix: sk_socket can disappear when state is unlocked

2015-05-26 Thread David Miller
From: Hannes Frederic Sowa Date: Tue, 26 May 2015 23:24:59 +0200 > On Tue, May 26, 2015, at 17:22, Mark Salyzyn wrote: >> got a rare NULL pointer dereference in clear_bit >> >> Signed-off-by: Mark Salyzyn > > IMHO, this is the right approach, I didn't came up with something > easier, thanks! >

[PATCH] regulator: s2mps11: Fix GPIO suspend enable shift wrapping bug

2015-05-26 Thread Krzysztof Kozlowski
Status of enabling suspend mode for regulator was stored in bitmap-like long integer. However since adding support for S2MPU02 the number of regulators exceeded 32 so on devices with more than 32 regulators (S2MPU02 and S2MPS13) overflow happens when shifting the bit. This could lead to enabling s

Re: [PATCH] scripts:checkpatch - Do not give error if static bool or global bool variables are assigned to false value.

2015-05-26 Thread Joe Perches
On Wed, 2015-05-27 at 08:43 +0530, Shailendra Verma wrote: > Hello Joe, > > Thanks for the clarification. So I will change the error message as > suggested by you and will send the patch to you. Hello Shailendra. My humble apologies to you. I totally misunderstood what you were writing. I guess

Re: [PATCH 0/3] GPIO support for BRCMSTB

2015-05-26 Thread Gregory Fong
Hi Linus, On Wed, May 13, 2015 at 1:59 AM, Linus Walleij wrote: > On Tue, May 12, 2015 at 9:38 PM, Gregory Fong wrote: >> On Tue, May 12, 2015 at 3:59 AM, Linus Walleij >> wrote: >>> On Wed, May 6, 2015 at 10:37 AM, Gregory Fong >>> wrote: >>> There is only one IRQ for each GIO IP block

Re: [PATCH 0/6] support "dataplane" mode for nohz_full

2015-05-26 Thread Mike Galbraith
On Tue, 2015-05-26 at 15:51 -0400, Chris Metcalf wrote: > On balance I suspect it's still better to make command line arguments > handle the common cases most succinctly. I prefer user specifies precisely, but yeah, that entails more typing. Idle curiosity: can SGI monster from hell boot a NO_

Re: [PATCH] mm/hugetlb: document the reserve map/region tracking routines

2015-05-26 Thread Mike Kravetz
On 05/26/2015 04:09 PM, Andrew Morton wrote: On Tue, 26 May 2015 14:27:10 -0700 Mike Kravetz wrote: This is a documentation only patch and does not modify any code. Descriptions of the routines used for reserve map/region tracking are added. Confused. This adds comments which are similar to

Re: [fuse-devel] fuse_get_context() and namespaces

2015-05-26 Thread Eric W. Biederman
Seth Forshee writes: > On Tue, May 26, 2015 at 05:21:38PM +0200, Miklos Szeredi wrote: >> On Fri, May 22, 2015 at 01:59:32PM -0500, Seth Forshee wrote: >> > On Fri, May 22, 2015 at 12:44:35PM -0500, Eric W. Biederman wrote: >> > > Seth Forshee writes: >> > > >> > > > On Fri, May 22, 2015 at 04:

[PATCH] Intel, Dell, Ubuntu - i915/intel_dp.c

2015-05-26 Thread Dragan Stancevic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, this is not a patch for mainline. It affects Dell Precision M3800 Laptop running Ubuntu with Intel Graphics. Problem manifests in a way where laptop after some use will not suspend anymore. It will attempt to suspend, blank out the screen and come

Re: [PATCH V2 3/3] n_gsm: wake up ldisc tty before using it

2015-05-26 Thread Zhang, Yanmin
On 2015/5/27 11:02, Greg KH wrote: > On Wed, May 27, 2015 at 10:50:01AM +0800, Zhang, Yanmin wrote: >> Wake up ldisc device before calling its driver to access the device. >> >> Signed-off-by: Zhang Yanmin >> >> --- >> >> drivers/tty/n_gsm.c | 40 +++- >> 1 fil

Re: [RFC PATCH 1/2] kernel/fork.c: add a function to calculate page address from thread_info

2015-05-26 Thread KOSAKI Motohiro
On Sun, May 24, 2015 at 12:01 PM, Jungseok Lee wrote: > A current implementation assumes thread_info address is always correctly > calculated via virt_to_page. It restricts a different approach, such as > thread_info allocation from vmalloc space. > > This patch, thus, introduces an independent fu

Re: [PATCH] zram: check comp algorithm availability earlier

2015-05-26 Thread Minchan Kim
Hello Sergey, On Tue, May 26, 2015 at 10:13:37PM +0900, Sergey Senozhatsky wrote: > Improvement idea by Marcin Jabrzyk. > > comp_algorithm_store() silently accepts any supplied algorithm > name, because zram performs algorithm availability check later, > during the device configuration phase in d

[PATCH net-next v6 1/2] pci: Add Cavium PCI vendor id

2015-05-26 Thread Aleksey Makarov
From: Sunil Goutham This vendor id will be used by network (vNIC), USB (xHCI), SATA (AHCI), GPIO, I2C, MMC and maybe other drivers for ThunderX SoC. Acked-by: Bjorn Helgaas Signed-off-by: Sunil Goutham Signed-off-by: Aleksey Makarov --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 inser

Re: [PATCH 10/11] XEN / PCI: Remove the dependence on arch x86 when PCI_MMCONFIG=y

2015-05-26 Thread Hanjun Guo
On 2015年05月26日 23:44, Boris Ostrovsky wrote: On 05/26/2015 10:54 AM, Tomasz Nowicki wrote: On 26.05.2015 16:00, Boris Ostrovsky wrote: On 05/26/2015 09:54 AM, Boris Ostrovsky wrote: On 05/26/2015 08:49 AM, Hanjun Guo wrote: In drivers/xen/pci.c, there are arch x86 dependent codes when CONFIG_

Re: [PATCH 00/11] ARM64 PCI hostbridge init based on ACPI

2015-05-26 Thread Hanjun Guo
On 2015年05月27日 08:30, Rafael J. Wysocki wrote: On Tuesday, May 26, 2015 08:49:13 PM Hanjun Guo wrote: This patch set is introducing ARM64 PCI hostbridge init based on ACPI, which based on Jiang Liu's patch set "Consolidate ACPI PCI root common code into ACPI core": https://lkml.org/lkml/2015/5/

Re: dell_rbtn - kernel panic at boot...

2015-05-26 Thread Darren Hart
On Mon, May 25, 2015 at 04:40:14PM +0200, Pali Rohár wrote: > On Sunday 24 May 2015 21:44:32 Darren Hart wrote: > > On Sat, May 23, 2015 at 03:05:36AM +0200, Pali Rohár wrote: > > > On Saturday 23 May 2015 00:53:16 Dmitry Torokhov wrote: > > > > On Thu, May 21, 2015 at 7:06 PM, Valdis Kletnieks > >

Re: [RFC PATCH 2/2] arm64: Implement vmalloc based thread_info allocator

2015-05-26 Thread Minchan Kim
Hello Jungseok, On Tue, May 26, 2015 at 08:29:59PM +0900, Jungseok Lee wrote: > On May 25, 2015, at 11:40 PM, Minchan Kim wrote: > > Hello Jungseok, > > Hi, Minchan, > > > On Mon, May 25, 2015 at 01:02:20AM +0900, Jungseok Lee wrote: > >> Fork-routine sometimes fails to get a physically contiguo

[PATCH V3 2/3] cdc-acm: call usb_autopm_get_interface_upgrade in acm_tty_write

2015-05-26 Thread Zhang, Yanmin
From: Zhang Yanmin acm device might be used as ldisc device by n_gsm driver. gsmtty_write and other gsm functions calls acm_tty_write indirectly while they holds spinlocks. Meanwhile, application might access ACM tty device directly. Here we choose to call usb_autopm_get_interface_upgrade inste

[PATCH V3 0/3] cdc-acm: fix incorrect runtime wakeup in acm_tty_write

2015-05-26 Thread Zhang, Yanmin
Resend as V1/V2 have email format issue. Sorry for bothering. I use Thunderbird. It has no a button to enable LKML email simply. :) V3: Change email config to resend. Add a space in comment. --- There is a scenario about cdc-acm utilization.Application opens n_gsm tty and cdc-acm tty.

[PATCH V3 1/3] usb: add function usb_autopm_get_interface_upgrade

2015-05-26 Thread Zhang, Yanmin
From: Zhang Yanmin Some usb driver has a specific requirement. Their critical functions might be called under both atomic environment and non-atomic environment. If it's under atomic environment, the driver can wake up the device by calling pm_runtime_get_sync directly. If it's under non-atomic

[PATCH V3 3/3] n_gsm: wake up ldisc tty before using it

2015-05-26 Thread Zhang, Yanmin
From: Zhang Yanmin Wake up ldisc device before calling its driver to access the device. Signed-off-by: Zhang Yanmin --- drivers/tty/n_gsm.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c ind

[v8 8/9] iommu, x86: define irq_remapping_cap()

2015-05-26 Thread Feng Wu
This patch adds a new interface irq_remapping_cap() to detect whether irq remapping supports new features, such as VT-d Posted-Interrupts. We export this function out, so that KVM code can check this and use this mechanism properly. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu --- arch/x86/inc

[v8 1/9] iommu: Add new member capability to struct irq_remap_ops

2015-05-26 Thread Feng Wu
This patch adds a new member capability to struct irq_remap_ops, this new function ops can be used to check whether some features are supported, such as VT-d Posted-Interrupts. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu --- arch/x86/include/asm/irq_remapping.h | 4 drivers/iommu/irq_rem

[v8 2/9] iommu: dmar: Extend struct irte for VT-d Posted-Interrupts

2015-05-26 Thread Feng Wu
From: Thomas Gleixner The IRTE (Interrupt Remapping Table Entry) is either an entry for remapped or for posted interrupts. The hardware distiguishes between remapped and posted entries by bit 15 in the low 64 bit of the IRTE. If cleared the entry is remapped, if set it's posted. The entries have

[v8 9/9] iommu, x86: Properly handler PI for IOMMU hotplug

2015-05-26 Thread Feng Wu
Return error when inserting a new IOMMU which doesn't support PI if PI is currently in use. Signed-off-by: Feng Wu --- drivers/iommu/intel_irq_remapping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index c21a2

[v8 6/9] iommu, x86: Add cap_pi_support() to detect VT-d PI capability

2015-05-26 Thread Feng Wu
Add helper function to detect VT-d Posted-Interrupts capability. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu Acked-by: David Woodhouse --- include/linux/intel-iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 0af9b03..

[v8 7/9] iommu, x86: Setup Posted-Interrupts capability for Intel iommu

2015-05-26 Thread Feng Wu
Set Posted-Interrupts capability for Intel iommu when IR is enabled, clear it when IR is disabled. Signed-off-by: Feng Wu --- drivers/iommu/intel_irq_remapping.c | 30 ++ drivers/iommu/irq_remapping.c | 2 ++ drivers/iommu/irq_remapping.h | 3 +++ 3 file

[v8 4/9] iommu, x86: Save the mode (posted or remapped) of an IRTE

2015-05-26 Thread Feng Wu
This patch adds a new field in struct irq_2_iommu, which can capture whether the entry is in posted mode or remapped mode. Signed-off-by: Feng Wu Suggested-by: Thomas Gleixner --- drivers/iommu/intel_irq_remapping.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/iommu/inte

Re: dell_rbtn - kernel panic at boot...

2015-05-26 Thread Darren Hart
On Mon, May 25, 2015 at 08:03:42AM +0200, Pali Rohár wrote: > On Monday 25 May 2015 07:01:21 Matthew Garrett wrote: > > On Sun, May 24, 2015 at 09:44:32PM -0700, Darren Hart wrote: > > > Greg, Matthew, I'm tempted to recommend this 434 line driver be > > > rolled into dell-laptop.c. Any strong opin

[v8 5/9] iommu, x86: No need to migrating irq for VT-d Posted-Interrupts

2015-05-26 Thread Feng Wu
We don't need to migrate the irqs for VT-d Posted-Interrupts here. When 'pst' is set in IRTE, the associated irq will be posted to guests instead of interrupt remapping. The destination of the interrupt is set in Posted-Interrupts Descriptor, and the migration happens during vCPU scheduling. Howev

[v8 3/9] iommu, x86: Implement irq_set_vcpu_affinity for intel_ir_chip

2015-05-26 Thread Feng Wu
Implement irq_set_vcpu_affinity for intel_ir_chip. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu Acked-by: David Woodhouse --- arch/x86/include/asm/irq_remapping.h | 5 drivers/iommu/intel_irq_remapping.c | 46 2 files changed, 51 insertions(+) diff

[v8 0/9] Add VT-d Posted-Interrupts support - IOMMU part

2015-05-26 Thread Feng Wu
VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. With VT-d Posted-Interrupts enabled, external interrupts from direct-assigned devices can be delivered to guests without VMM intervention when guest is running in non-root mode. You can find the VT-d Posted-Interrtups Spec. in

Re: [RFC PATCH 2/2] arm64: Implement vmalloc based thread_info allocator

2015-05-26 Thread Minchan Kim
On Tue, May 26, 2015 at 09:10:11PM +0900, Jungseok Lee wrote: > On May 25, 2015, at 11:58 PM, Minchan Kim wrote: > > On Mon, May 25, 2015 at 07:01:33PM +0900, Jungseok Lee wrote: > >> On May 25, 2015, at 2:49 AM, Arnd Bergmann wrote: > >>> On Monday 25 May 2015 01:02:20 Jungseok Lee wrote: > F

Re: dell_rbtn - kernel panic at boot...

2015-05-26 Thread Darren Hart
On Tue, May 26, 2015 at 09:09:30PM -0700, Darren Hart wrote: > On Mon, May 25, 2015 at 04:40:14PM +0200, Pali Rohár wrote: > > On Sunday 24 May 2015 21:44:32 Darren Hart wrote: > > > On Sat, May 23, 2015 at 03:05:36AM +0200, Pali Rohár wrote: > > > > On Saturday 23 May 2015 00:53:16 Dmitry Torokhov

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-26 Thread Sudip Mukherjee
On Tue, May 26, 2015 at 07:41:18PM -0700, Greg KH wrote: > On Tue, May 26, 2015 at 10:54:01AM -0700, David Cohen wrote: > > Hi, > > > > On Mon, May 25, 2015 at 07:00:13PM +0200, Bjørn Mork wrote: > > > Greg KH writes: > > > > Don't mess with bus->p. I can rename it to > "do_not_touch_this_isnt_

Re: [Patch v3] apple-gmux: lock iGP IO to protect from vgaarb changes

2015-05-26 Thread Darren Hart
On Tue, May 26, 2015 at 12:10:48PM -0700, Michael Marineau wrote: > FYI, this actually broke backlight controls on my MBP11,3 because the > assumption the patch makes that gmux is always loaded before graphics > drivers didn't hold true. At least for me dracut included the nouveau > module in the i

Re: [PATCH] ACPI / property: Define a symbol for PRP0001

2015-05-26 Thread Darren Hart
On Fri, May 22, 2015 at 04:24:34AM +0200, Rafael Wysocki wrote: > From: Rafael J. Wysocki > > Use a #defined symbol ACPI_DT_NAMESPACE_HID instead of the PRP0001 > string. > > Signed-off-by: Rafael J. Wysocki That's a worthy improvement for both legibility as well as maintenance. Reviewed-by:

Re: [PATCH v2 2/2] ALSA: set no sound proc fs for reduced memory footprint

2015-05-26 Thread Sudip Mukherjee
On Tue, May 26, 2015 at 09:13:57PM +0800, Jie Yang wrote: > Disable sound proc fs, when CONFIG_SND_NO_PROC_FS is selected, > which can save about 9KB memory size for reducing memory > footprint purpose. > --- missing Signed-off-by. regards sudip -- To unsubscribe from this list: send the line "uns

Re: [PATCH 02/36] mmu_notifier: keep track of active invalidation ranges v3

2015-05-26 Thread Aneesh Kumar K.V
j.gli...@gmail.com writes: > From: Jérôme Glisse > > The mmu_notifier_invalidate_range_start() and > mmu_notifier_invalidate_range_end() > can be considered as forming an "atomic" section for the cpu page table update > point of view. Between this two function the cpu page table content is > un

RE: [PATCH] MAINTAINERS: update Emulex ocrdma email addresses

2015-05-26 Thread Devesh Sharma
Thanks Laurent, My earlier mail bounced back from Linux-kernel mailing list, thus resending. CC'ing Doug. Acked-By: Devesh Sharma > -Original Message- > From: Laurent Navet [mailto:laurent.na...@gmail.com] > Sent: Wednesday, May 27, 2015 12:46 AM > To: a...@linux-foundation.org; gre..

Re: [PATCH-v2 0/4] target: Eliminate se_port + t10_alua_tg_pt_gp_member

2015-05-26 Thread Nicholas A. Bellinger
On Tue, 2015-05-26 at 14:44 +0200, Bart Van Assche wrote: > On 05/26/15 08:57, Nicholas A. Bellinger wrote: > >- Add various rcu_dereference and lockless_dereference RCU notation > > Hello Nic, > > Feedback from an RCU expert (which I'm not) would be appreciated here. > But my understanding

RE: [PATCH 1/1] dw_mmc: insmod followed by rmmod will hung for eMMC

2015-05-26 Thread Prabu Thangamuthu
Hi Ulf, Jaehoon, Thanks for your comments, I will update and send a new Patch. > On 05/27/2015 7:20 AM, Jaehoon Chung Wrote: > > Hi, Pradu. > > Sorry for late. No Problem. > I will wait for your next version than i will check yours. > To Ulf. > > Thanks for review! > > Best Regards, > Jaehoon

Re: [PATCH 03/36] mmu_notifier: pass page pointer to mmu_notifier_invalidate_page()

2015-05-26 Thread Aneesh Kumar K.V
j.gli...@gmail.com writes: > From: Jérôme Glisse > > Listener of mm event might not have easy way to get the struct page > behind and address invalidated with mmu_notifier_invalidate_page() > function as this happens after the cpu page table have been clear/ > updated. This happens for instance i

[RFC PATCH v4 05/29] bpf tools: Allow caller to set printing function

2015-05-26 Thread Wang Nan
By libbpf_set_print(), users of libbpf are allowed to register he/she own debug, info and warning printing functions. Libbpf will use those functions to print messages. If not provided, default info and warning printing functions are fprintf(stderr, ...); defailt debug printing is NULL. This API i

[RFC PATCH v4 09/29] bpf tools: Collect version and license from ELF sections

2015-05-26 Thread Wang Nan
Expand bpf_obj_elf_collect() to collect license and kernel version information in eBPF object file. eBPF object file should have a section named 'license', which contains a string. It should also have a section named 'version', contains a u32 LINUX_VERSION_CODE. bpf_obj_validate() is introduced to

[RFC PATCH v4 27/29] perf record: Load all eBPF object into kernel

2015-05-26 Thread Wang Nan
This patch utilizes bpf_load_object() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan --- tools/perf/builtin-record.c | 12 tools/perf/util/bpf-loader.c | 19 +++ tools/perf/util/bpf-loader.h | 1 + 3 files changed, 32 insertions(+) dif

Re: [v4 1/4] arm64: kvm: add a cpu tear-down function

2015-05-26 Thread AKASHI Takahiro
Marc, Thank you for your reviews: On 05/26/2015 06:26 PM, Marc Zyngier wrote: Hi Takahiro, On 08/05/15 02:18, AKASHI Takahiro wrote: Cpu must be put back into its initial state, at least, in the following cases in order to shutdown the system and/or re-initialize cpus later on: 1) kexec/kdump

[RFC PATCH v4 28/29] perf tools: Add bpf_fd field to evsel and config it

2015-05-26 Thread Wang Nan
This patch adds a bpf_fd field to 'struct evsel' then introduces method to config it. In bpf-loader, a bpf__for_each_program() function is added. Which calls the callback function for each eBPF program with their names and file descriptors. In evlist.c, perf_evlist__add_bpf() is added to add all bp

[RFC PATCH v4 18/29] bpf tools: Introduce bpf_load_program() to bpf.c

2015-05-26 Thread Wang Nan
bpf_load_program() can be used to load bpf program into kernel. To make loading faster, first try to load without logbuf. Try again with logbuf if the first try failed. Signed-off-by: Wang Nan --- tools/lib/bpf/bpf.c | 34 ++ tools/lib/bpf/bpf.h | 7 +++ 2 fi

[RFC PATCH v4 26/29] perf record: Probe at kprobe points

2015-05-26 Thread Wang Nan
In this patch, kprobe points are created using add_perf_probe_events. Since all events are already grouped together in an array, calling add_perf_probe_events() once creates all of them. Signed-off-by: Wang Nan --- tools/perf/builtin-record.c | 14 ++ tools/perf/util/bpf-loader.c |

[RFC PATCH v4 23/29] perf tools: Make perf depend on libbpf

2015-05-26 Thread Wang Nan
By adding libbpf into perf's Makefile, this patch enable perf to build libbpf during building if libelf is found and NO_LIBELF is not set. The newly introduced code is similar to libapi and libtraceevent building in Makefile.perf. Signed-off-by: Wang Nan --- tools/perf/Makefile.perf | 19 +++

[RFC PATCH v4 11/29] bpf tools: Collect symbol table from SHT_SYMTAB section

2015-05-26 Thread Wang Nan
This patch collects symbols section. This section is useful when linking ELF maps. Signed-off-by: Wang Nan --- tools/lib/bpf/libbpf.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index da83766..d89fd42 100644 --- a/tools/lib/bpf/

[RFC PATCH v4 04/29] bpf tools: Introduce 'bpf' library to tools

2015-05-26 Thread Wang Nan
This is the first patch of libbpf. The goal of libbpf is to create a standard way for accessing eBPF object files. This patch creates Makefile and Build for it, allows 'make' to build libbpf.a and libbpf.so, 'make install' to put them into proper directories. Most part of Makefile is borrowed from

[RFC PATCH v4 29/29] perf tools: Attach eBPF program to perf event

2015-05-26 Thread Wang Nan
In this patch PERF_EVENT_IOC_SET_BPF ioctl is used to attach eBPF program to a newly created perf event. The file descriptor of the eBPF program is passed to perf record using previous patches, and stored into evsel->bpf_fd. It is possible that different perf event are created for one kprobe event

  1   2   3   4   5   6   7   8   9   10   >