Re: [PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3

2014-07-20 Thread Chen, Gong
On Mon, Jul 21, 2014 at 01:54:56PM +0800, Lan Tianyu wrote: > Date: Mon, 21 Jul 2014 13:54:56 +0800 > From: Lan Tianyu > To: r...@rjwysocki.net, l...@kernel.org, linux-a...@vger.kernel.org, > linux-kernel@vger.kernel.org, gong.c...@linux.intel.com > Subject: Re: [PATCH] ACPI/NVS: Not save NVS reg

Re: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Richard Weinberger
Yie, Am 21.07.2014 04:44, schrieb Yue Zhang (OSTC DEV): >> From: Richard Weinberger [mailto:richard.weinber...@gmail.com] >> Why 10? Is this a random number which works by accident for ifplugd? >> What about other networking implementations, is 10 also ok for them? >> -- >> Thanks, >> //richard >

Re: [PATCHv3 00/19] perf tools: Factor ordered samples queue

2014-07-20 Thread Adrian Hunter
On 07/21/2014 12:55 AM, Jiri Olsa wrote: > hi, > this patchset factors session's ordered samples queue, > and allows to limit the size of this queue. > > v3 changes: > - rebased to latest tip/perf/core > - add comment for WARN in patch 8 (David) > - added ordered-events debug variable (David

Re: [PATCH 24/30] sis900: remove unnecessary break after return

2014-07-20 Thread Daniele Venzano
Il 20/07/2014 16:27, Fabian Frederick ha scritto: > Signed-off-by: Fabian Frederick Signed-off-by: Daniele Venzano > --- > drivers/net/ethernet/sis/sis900.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/ethernet/sis/sis900.c > b/drivers/net/ethernet/sis/sis900.c > index

Re: [PATCH, RFC] random: introduce getrandom(2) system call

2014-07-20 Thread Dwayne Litzenberger
On Thu, Jul 17, 2014 at 05:18:15AM -0400, Theodore Ts'o wrote: SYNOPSIS #include int getrandom(void *buf, size_t buflen, unsigned int flags); DESCRIPTION The system call getrandom() fills the buffer pointed to by buf with up to buflen random bytes which can be

Re: [PATCH] CMA/HOTPLUG: clear buffer-head lru before page migration

2014-07-20 Thread Gioh Kim
2014-07-21 오전 11:50, Minchan Kim 쓴 글: Hi Gioh, On Fri, Jul 18, 2014 at 03:45:36PM +0900, Gioh Kim wrote: Hi, For page migration of CMA, buffer-heads of lru should be dropped. Please refer to https://lkml.org/lkml/2014/7/4/101 for the history. Just nit: Please write *problem* in descriptio

[RFC PATCH v3 00/14] ACPI/EC: Add event storm prevention and cleanup command storm prevention.

2014-07-20 Thread Lv Zheng
Note that this patchset is very stable now, it is sent as RFC because it depends on an ACPICA GPE enhancement series which might be merged from ACPICA upstream. This patchset is based on the previous ACPI/EC bug fixes series and the GPE API enhancement series. For the EC driver, GPE must be disab

Re: [PATCH v7 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-07-20 Thread Andi Kleen
Qiaowei Ren writes: > This patch adds the PR_MPX_REGISTER and PR_MPX_UNREGISTER prctl() > commands. These commands can be used to register and unregister MPX > related resource on the x86 platform. Please provide a manpage for the API. This is needed for proper review. Your description is far to

RE: [PATCH v7 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-07-20 Thread Ren, Qiaowei
On 2014-07-21, Andi Kleen wrote: > Qiaowei Ren writes: >> + */ >> +#ifdef CONFIG_X86_64 >> +insn->x86_64 = 1; >> +insn->addr_bytes = 8; >> +#else >> +insn->x86_64 = 0; >> +insn->addr_bytes = 4; >> +#endif > > How would that handle compat mode on a 64bit kernel? > Should like

Re: [PATCH 00/30] drivers/net: remove unnecessary break after return

2014-07-20 Thread Fabian Frederick
> On 21 July 2014 at 06:31 David Miller wrote: > > > From: Fabian Frederick > Date: Sun, 20 Jul 2014 16:16:08 +0200 > > > Second patchset after "remove unnecessary break after goto" addressing break > > redundancy on drivers/net branch > > (suggested by Joe Perches) > > All applied except the i

[RFC PATCH v3 08/14] ACPI/EC: Refine event/query debugging messages.

2014-07-20 Thread Lv Zheng
This patch refines event/query debugging messages to use a unified format as commands. Developers can clearly find different processes by checking different log seperators. No functional changes. Signed-off-by: Lv Zheng --- drivers/acpi/ec.c | 14 -- 1 file changed, 8 insertions(+)

Re: [RESEND PATCH] thermal: samsung: Add TMU support for Exynos3250 SoC

2014-07-20 Thread Zhang Rui
On Fri, 2014-07-18 at 09:00 +0900, Chanwoo Choi wrote: > This patch adds the registers, bit fields and compatible strings > required to support for the 1 TMU channels on Exynos3250. > > Signed-off-by: Chanwoo Choi > [Add MUX address setting bits by Jonghwa Lee] > Signed-off-by: Jonghwa Lee > Ack

[RFC PATCH v3 07/14] ACPI/EC: Add a warning message to indicate event storms.

2014-07-20 Thread Lv Zheng
This patch splits query handler scheduling into a new seperate function acpi_ec_notify_query_handlers() and adds a warning message in it to indicate a BIOS bug. It is reported that EC event storm can happen in case there is no _Qxx method prepared for the event. No functional changes. Reference: h

[RFC PATCH v3 02/14] ACPI/EC: Add detailed command/query debugging information.

2014-07-20 Thread Lv Zheng
Developers really don't need to translate EC commands in mind. This patch adds detailed debugging information for the EC commands. The address can be found in the follow-up sequential EC_DATA(W) accesses, thus this patch also removes some of the redundant address information. Signed-off-by: Lv Zhe

Re: [PATCH v7 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-07-20 Thread Andi Kleen
Qiaowei Ren writes: > + */ > +#ifdef CONFIG_X86_64 > + insn->x86_64 = 1; > + insn->addr_bytes = 8; > +#else > + insn->x86_64 = 0; > + insn->addr_bytes = 4; > +#endif How would that handle compat mode on a 64bit kernel? Should likely look at the code segment instead of ifdef.

[RFC PATCH v3 11/14] ACPI/EC: Add event storm prevention support.

2014-07-20 Thread Lv Zheng
There are cases that BIOS doesn't provide a _Qxx method for the returned xx query value, in this case, acpi_set_gpe(ACPI_GPE_DISABLE) need to be invoked to prevent event IRQ storms. See comment 55 and 80 in the bug link below. This patch implements such storm prevention using new GPE APIs. By alw

[RFC PATCH v3 04/14] ACPI/EC: Refine command storm prevention support.

2014-07-20 Thread Lv Zheng
This patch refines EC command storm prevention support. After applying the race fixes series, we almost cannot see any in-transaction false irqs. The out-transaction false irqs are normal, they are triggered by EC firmware for various reasons and will become silent sooner or later. So the out-tran

[RFC PATCH v3 13/14] ACPI/EC: Add unit test support for EC driver hotplug.

2014-07-20 Thread Lv Zheng
This patch adds facility to test future EC modification. All EC commits should enable TEST_HOTPLUG, and try a build/boot test. Since EC is currently a built-in module, this is the only mean for us to test the hotplug code. The following is the result of the flushing tests: ACPI : EC: = IRQ (0

[RFC PATCH v3 14/14] ACPI/EC: Cleanup coding style.

2014-07-20 Thread Lv Zheng
This patch cleans up the following coding style issues that are detected by scripts/checkpatch.pl: ERROR: code indent should use tabs where possible WARNING: Missing a blank line after declarations No functional changes. Signed-off-by: Lv Zheng --- drivers/acpi/ec.c | 33

[RFC PATCH v3 12/14] ACPI/EC: Add GPE reference counting debugging messages.

2014-07-20 Thread Lv Zheng
This patch enhances debugging with the GPE reference count messages added. No functional changes. Signed-off-by: Lv Zheng --- drivers/acpi/ec.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 2a1eb2a..c2e276f 100644 --- a/drive

[RFC PATCH v3 10/14] ACPI/EC: Cleanup QR_SC command processing by adding a kernel thread to poll EC events.

2014-07-20 Thread Lv Zheng
There is wait code in the QR_SC command processing, which makes it not suitable to be put into a work queue item. This patch cleans up QR_SC command processing by using an IRQ polling thread as the replacement for the queued work item. Using thread allows us to change the EC GPE handler into the th

[RFC PATCH v3 03/14] ACPI/EC: Cleanup command storm prevention using the new GPE handling model.

2014-07-20 Thread Lv Zheng
This patch deploys the following GPE handling model: 1. acpi_enable_gpe()/acpi_disable_gpe(): This set of APIs are used for EC usage reference counting. 2. acpi_set_gpe(ACPI_GPE_ENABLE)/acpi_set_gpe(ACPI_GPE_DISABLE): This set of APIs are used for preventing GPE storm. Note that this patch on

[RFC PATCH v3 05/14] ACPI/EC: Add reference counting for query handlers.

2014-07-20 Thread Lv Zheng
This patch adds reference counting for query handlers in order to eliminate kmalloc()/kfree() usage. Signed-off-by: Lv Zheng Tested-by: Steffen Weber --- drivers/acpi/ec.c | 46 -- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/driv

[RFC PATCH v3 09/14] ACPI/EC: Add CPU ID to debugging messages.

2014-07-20 Thread Lv Zheng
This patch adds CPU ID to the context entries' debugging output. no functional changes. Signed-off-by: Lv Zheng --- drivers/acpi/ec.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index a729f31..065aabc 100644 --- a/drivers/acpi/ec

[RFC PATCH v3 06/14] ACPI/EC: Add command flushing support.

2014-07-20 Thread Lv Zheng
This patch implements command flushing support. It's better to wait all command transactions to be completed before disabling the EC GPE when the system is going to be suspended. By doing so, the EC hardware can be ensured to be in the idle state when the system is resumed. There is a good indicat

[RFC PATCH v3 01/14] ACPI/EC: Introduce STARTED/STOPPED flags to replace BLOCKED flag.

2014-07-20 Thread Lv Zheng
By using the 2 flags, we can indicate an inter-mediate state where the current transactions should be completed while the new transactions should be blocked. Signed-off-by: Lv Zheng --- drivers/acpi/ec.c | 64 + 1 file changed, 50 insertions(

Re: [PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3

2014-07-20 Thread Lan Tianyu
On 2014年07月21日 13:01, Chen, Gong wrote: > On Mon, Jul 21, 2014 at 10:14:31AM +0800, Lan Tianyu wrote: >> Date: Mon, 21 Jul 2014 10:14:31 +0800 >> From: Lan Tianyu >> To: r...@rjwysocki.net, l...@kernel.org, linux-a...@vger.kernel.org, >> linux-kernel@vger.kernel.org, gong.c...@linux.intel.com >>

Re: [PATCH] spi: omap2-mcspi: fix blatant abuse of the resource subsystem

2014-07-20 Thread Lothar Waßmann
Hi, Mark Brown wrote: > On Fri, Jul 18, 2014 at 01:30:53PM +0200, Lothar Waßmann wrote: > > Aua. This really hurts. I wonder how this could ever be admitted to > > the Linux kernel... > > Further comments suppressed because the would most likely violate the > > CDA. > > > > If someone should not

Re: [PATCH v3] usb:serial:pl2303: add GPIOs interface on PL2303

2014-07-20 Thread Andreas Mohr
Hi, Did some more review, sorry ;) On Mon, Jul 21, 2014 at 10:46:24AM +0800, Wang YanQing wrote: > +static struct gpio_chip template_chip = { > + .label = "pl2303-gpio", > + .owner = THIS_MODULE, > + .direction_input= pl2303_gpio_direction_in,

[PATCH v7 02/10] x86, mpx: add MPX specific mmap interface

2014-07-20 Thread Qiaowei Ren
This patch adds one MPX specific mmap interface, which only handles mpx related maps, including bounds table and bounds directory. In order to track MPX specific memory usage, this interface is added to stick new vm_flag VM_MPX in the vma_area_struct when create a bounds table or bounds directory.

[PATCH v7 05/10] x86, mpx: extend siginfo structure to include bound violation information

2014-07-20 Thread Qiaowei Ren
This patch adds new fields about bound violation into siginfo structure. si_lower and si_upper are respectively lower bound and upper bound when bound violation is caused. Signed-off-by: Qiaowei Ren --- include/uapi/asm-generic/siginfo.h |9 - kernel/signal.c|

[PATCH v7 04/10] x86, mpx: hook #BR exception handler to allocate bound tables

2014-07-20 Thread Qiaowei Ren
This patch handles a #BR exception for non-existent tables by carving the space out of the normal processes address space (essentially calling mmap() from inside the kernel) and then pointing the bounds-directory over to it. The tables need to be accessed and controlled by userspace because the co

[PATCH v7 00/10] Intel MPX support

2014-07-20 Thread Qiaowei Ren
This patchset adds support for the Memory Protection Extensions (MPX) feature found in future Intel processors. MPX can be used in conjunction with compiler changes to check memory references, for those references whose compile-time normal intentions are usurped at runtime due to buffer overflow o

[PATCH v7 09/10] x86, mpx: cleanup unused bound tables

2014-07-20 Thread Qiaowei Ren
Since the kernel allocated those tables on-demand without userspace knowledge, it is also responsible for freeing them when the associated mappings go away. Here, the solution for this issue is to hook do_munmap() to check whether one process is MPX enabled. If yes, those bounds tables covered in

[PATCH v7 03/10] x86, mpx: add macro cpu_has_mpx

2014-07-20 Thread Qiaowei Ren
In order to do performance optimization, this patch adds macro cpu_has_mpx which will directly return 0 when MPX is not supported by kernel. Community gave a lot of comments on this macro cpu_has_mpx in previous version. Dave will introduce a patchset about disabled features to fix it later. In t

[PATCH v7 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-07-20 Thread Qiaowei Ren
This patch sets bound violation fields of siginfo struct in #BR exception handler by decoding the user instruction and constructing the faulting pointer. This patch does't use the generic decoder, and implements a limited special-purpose decoder to decode MPX instructions, simply because the gener

[PATCH v7 10/10] x86, mpx: add documentation on Intel MPX

2014-07-20 Thread Qiaowei Ren
This patch adds the Documentation/x86/intel_mpx.txt file with some information about Intel MPX. Signed-off-by: Qiaowei Ren --- Documentation/x86/intel_mpx.txt | 127 +++ 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644 Documentation/x86/

[PATCH v7 01/10] x86, mpx: introduce VM_MPX to indicate that a VMA is MPX specific

2014-07-20 Thread Qiaowei Ren
MPX-enabled application will possibly create a lot of bounds tables in process address space to save bounds information. These tables can take up huge swaths of memory (as much as 80% of the memory on the system) even if we clean them up aggressively. Being this huge, we need a way to track their m

[PATCH v7 06/10] mips: sync struct siginfo with general version

2014-07-20 Thread Qiaowei Ren
Due to new fields about bound violation added into struct siginfo, this patch syncs it with general version to avoid build issue. Signed-off-by: Qiaowei Ren --- arch/mips/include/uapi/asm/siginfo.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/mips/include/uapi

Re: [PATCH 2/2] cpufreq: ondemand: Eliminate the deadband effect

2014-07-20 Thread Stratos Karafotis
On 21/07/2014 12:51 πμ, Pavel Machek wrote: > Hi! > >> Tested on Intel i7-3770 CPU @ 3.40GHz and on ARM quad core 1500MHz Krait >> (Android smartphone). >> Benchmarks on Intel i7 shows a performance improvement on low and medium >> work loads with lower power consumption. Specifics

[PATCH v7 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-07-20 Thread Qiaowei Ren
This patch adds the PR_MPX_REGISTER and PR_MPX_UNREGISTER prctl() commands. These commands can be used to register and unregister MPX related resource on the x86 platform. The base of the bounds directory is set into mm_struct during PR_MPX_REGISTER command execution. This member can be used to ch

[PATCH] mm:bugfix, pfn_valid sometimes return incorrect when memmap parameter specified

2014-07-20 Thread Huangpeng (Peter)
In sparse memory mode, I add "memmap = 200M$0x103380" into menu.lst, then I found the information in /proc/iomem is shown as: . fee0-fee00fff : Local APIC fee0-fee00fff : reserved fee0-fee00fff : pnp 00:08 fff0- : reserved 1-10337f : Sys

Re: [PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3

2014-07-20 Thread Chen, Gong
On Mon, Jul 21, 2014 at 10:14:31AM +0800, Lan Tianyu wrote: > Date: Mon, 21 Jul 2014 10:14:31 +0800 > From: Lan Tianyu > To: r...@rjwysocki.net, l...@kernel.org, linux-a...@vger.kernel.org, > linux-kernel@vger.kernel.org, gong.c...@linux.intel.com > Subject: Re: [PATCH] ACPI/NVS: Not save NVS reg

Re: [Tree sweep] BUG: sleeping function called from invalid context at include/linux/highmem.h:58

2014-07-20 Thread Andi Kleen
On Mon, Jul 21, 2014 at 09:10:10AM +0800, Jet Chen wrote: > Hi Andi, > > 0day kernel testing robot got the below dmesg and the first bad commit is Thanks. That branch is not quite ready yet. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[PATCH V2] usb: core: allow zero packet flag for interrupt urbs

2014-07-20 Thread Amit Virdi
Section 4.4.7.2 "Interrupt Transfer Bandwidth Requirements" of the USB3.0 spec says: A zero-length data payload is a valid transfer and may be useful for some implementations. So, extend the logic of allowing URB_ZERO_PACKET to interrupt urbs too. Otherwise, the kernel throws warni

linux-next: please clean up the audit tree

2014-07-20 Thread Stephen Rothwell
Hi Eric, The last commit to the audit tree (git://git.infradead.org/users/eparis/audit.git#master) is from April and it is now causing more and more conflicts with other trees in linux-next. Please have a look at it and clean it up. -- Cheers, Stephen Rothwells...@canb.auug.

Re: [PATCH] usb: core: allow zero packet flag for interrupt urbs

2014-07-20 Thread Amit Virdi
On 7/18/2014 8:09 PM, Alan Stern wrote: On Fri, 18 Jul 2014, Amit Virdi wrote: On 7/17/2014 8:25 PM, Alan Stern wrote: I can't say this is actually wrong, but have you ever encountered a situation where this would be needed? How often does anyone need to do a multi-packet transfer over an int

[PATCH v6 0/2] Use DMA for data transfers in JZ4740 MMC driver

2014-07-20 Thread Apelete Seketeli
Hello, MMC driver for JZ4740 SoC is currently relying on PIO mode only for data transfers. The patches that come as a follow-up of this message allow the use of DMA for data transfers. Changes since v5: - added a new patch to this series, on top of the previous one, to prepare next dma tra

[PATCH v6 2/2] mmc: jz4740: prepare next dma transfer in parallel with current transfer

2014-07-20 Thread Apelete Seketeli
Make use of the MMC asynchronous request capability to prepare the next DMA transfer request in parallel with the current transfer. This is done by adding pre-request and post-request callbacks that are used by the MMC framework during an active data transfer. It should help reduce the impact of D

[PATCH v6 1/2] mmc: jz4740: add dma infrastructure for data transfers

2014-07-20 Thread Apelete Seketeli
Until now the MMC driver for JZ4740 SoC was relying on PIO mode only for data transfers. This patch allows the use of DMA for data trasnfers in addition to PIO mode by relying on DMA Engine. DMA tranfers performance might be further improved by taking advantage of the asynchronous request capabili

Re: [PATCH 00/30] drivers/net: remove unnecessary break after return

2014-07-20 Thread David Miller
From: Fabian Frederick Date: Sun, 20 Jul 2014 16:16:08 +0200 > Second patchset after "remove unnecessary break after goto" addressing break > redundancy on drivers/net branch > (suggested by Joe Perches) All applied except the i40e patch, which did not apply to net-next at all. -- To unsubscrib

general protection fault on 3.15.6

2014-07-20 Thread Steven Noonan
My router/storage box suddenly stopped responding (originally noticed because dnsmasq wasn't responding) and I had to reboot it. I checked the systemd journal when it came back and these were the last thing in there for the previous boot. Any ideas about pinning down the cause? general protection

Re: [PATCH] Make IP_MULTICAST_ALL and IP_MSFILTER work on raw sockets

2014-07-20 Thread David Miller
From: Quentin Armitage Date: Fri, 18 Jul 2014 17:38:23 +0100 > Currently, although IP_MULTICAST_ALL and IP_MSFILTER ioctl calls succeed on > raw sockets, there is no code to implement the functionality on received > packets; it is only implemented for UDP sockets. The raw(7) man page states: > "I

Re: [PATCH 2/5] net/rxrpc/ar-key.c: drop negativity check on unsigned value

2014-07-20 Thread David Miller
From: Andrey Utkin Date: Fri, 18 Jul 2014 18:31:57 +0300 > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80611 > Reported-by: David Binderman > Signed-off-by: Andrey Utkin Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Linux 3.16-rc6

2014-07-20 Thread Linus Torvalds
Week by week, we're getting to what is supposed to be the last rc's, but quite frankly, things aren't calming down the way they are supposed to. That was already true for rc5 - it was bigger than rc4. That didn't worry me all that much, because rc4 was really pretty small. But now rc6 is out, and

Re: [PATCH 0/25] Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-20 Thread David Miller
From: Benoit Taine Date: Fri, 18 Jul 2014 17:26:47 +0200 > We should prefer `const struct pci_device_id` over > `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding style guidelines. > This issue was reported by checkpatch. > > A simplified version of the semantic patch that makes this change is as >

Re: [PATCH 2/6] net/macb: add scatter-gather hw feature

2014-07-20 Thread David Miller
From: Cyrille Pitchen Date: Fri, 18 Jul 2014 16:21:14 +0200 > + if (tx_skb->mapped_as_page) { > + dma_unmap_page(&bp->pdev->dev, tx_skb->mapping, > +tx_skb->size, DMA_TO_DEVICE); > + } else { > + d

Re: [PATCH 1/6] net/macb: configure for FIFO mode and non-gigabit

2014-07-20 Thread David Miller
From: Cyrille Pitchen Date: Fri, 18 Jul 2014 16:21:13 +0200 > From: Nicolas Ferre > > This addition will also allow to configure DMA burst length. > > Signed-off-by: Nicolas Ferre > Acked-by: Cyrille Pitchen > --- > drivers/net/ethernet/cadence/macb.c | 72 > +++

Re: [PATCH v2 2/2] net: macb: Handle errors in RX path

2014-07-20 Thread David Miller
From: Neil Armstrong Date: Fri, 18 Jul 2014 14:43:04 +0200 > @@ -872,12 +890,22 @@ static int macb_poll(struct napi_struct *napi, int > budget) > status = macb_readl(bp, RSR); > macb_writel(bp, RSR, status); > > - work_done = 0; > + work_done = -EIO; > > netdev_vdbg

[PATCH v2 4/7] memory-hotplug: ia64: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on ia64 to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/ia64/mm/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v2 1/7] memory-hotplug: add zone_for_memory() for selecting zone for new memory

2014-07-20 Thread Wang Nan
This patch introduces a zone_for_memory function in arch independent code for arch_add_memory() using. Many arch_add_memory() function simply selects ZONE_HIGHMEM or ZONE_NORMAL and add new memory into it. However, with the existance of ZONE_MOVABLE, the selection method should be carefully consid

[PATCH v2 3/7] memory-hotplug: x86_32: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on x86_32 to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/x86/mm/init_32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 0/7] memory-hotplug: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This series of patches fix a problem when adding memory in bad manner. For example: for a x86_64 machine booted with "mem=400M" and with 2GiB memory installed, following commands cause problem: # echo 0x4000 > /sys/devices/system/memory/probe [ 28.613895] init_memory_mapping: [mem 0x4

[PATCH v2 2/7] memory-hotplug: x86_64: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on x86_64 to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/x86/mm/init_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 6/7] memory-hotplug: sh: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on sh to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/sh/mm/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()

2014-07-20 Thread David Miller
From: Ethan Zhao Date: Fri, 18 Jul 2014 11:43:29 +0800 > netxen driver has implemented netxen_nic_get_ethtool_stats() interface, > but it doesn't collect stats.rxdropped in driver, so we will get > different rx_dropped statistic information while using ifconfig and ethtool. > this patch fills sta

[PATCH v2 7/7] memory-hotplug: tile: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on tile to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. This patch also fix a problem: on tile, new memory should be added into ZONE_HIGHMEM by default, not MAX_NR_ZONES-1, which is ZONE_MOVABLE.

Re: [PATCH net 0/4 v2] xen-netback: Fixing up xenvif_tx_check_gop

2014-07-20 Thread David Miller
From: Zoltan Kiss Date: Fri, 18 Jul 2014 19:08:01 +0100 > This series fixes a lot of bugs on the error path around this function, which > were introduced with my grant mapping series in 3.15. They apply to the latest > net tree, but probably to net-next as well without any modification. > I'll po

[PATCH v2 5/7] memory-hotplug: ppc: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on powerpc to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/powerpc/mm/mem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH v3 1/1] doc: Add remote CPU access details and others to this_cpu_ops.txt

2014-07-20 Thread Pranith Kumar
Add more details from a recent kernel newbies mailing list discussion here: http://www.spinics.net/lists/newbies/msg52747.html Also list the operations available and add details about safe accesses. v3: clearly mention that remote write access is discouraged v2: updated with comments from Christo

Re: [PATCH v2 21/29] nios2: Futex operations

2014-07-20 Thread Ley Foon Tan
On Fri, Jul 18, 2014 at 5:55 PM, Arnd Bergmann wrote: > On Friday 18 July 2014 11:42:34 Thomas Gleixner wrote: >> On Fri, 18 Jul 2014, Arnd Bergmann wrote: >> > On Friday 18 July 2014 14:07:42 Ley Foon Tan wrote: >> > > On Thu, Jul 17, 2014 at 7:07 PM, Arnd Bergmann wrote: >> > If this understand

Re: [PATCH net-next V2 0/3] rx busy polling support for virtio-net

2014-07-20 Thread Jason Wang
On 07/21/2014 04:34 AM, Michael S. Tsirkin wrote: > On Wed, Jul 16, 2014 at 02:21:44PM +0800, Jason Wang wrote: >> Hi all: >> >> This series introduces the support for rx busy polling support. This >> was useful for reduing the latency for a kvm guest. Patch 1-2 >> introduces helpers which is used

Re: [PATCH net-next V2 3/3] virtio-net: rx busy polling support

2014-07-20 Thread Jason Wang
On 07/21/2014 04:31 AM, Michael S. Tsirkin wrote: > On Wed, Jul 16, 2014 at 02:21:47PM +0800, Jason Wang wrote: >> Add basic support for rx busy polling. >> >> Test was done between a kvm guest and an external host. Two hosts were >> connected through 40gb mlx4 cards. With both busy_poll and busy_r

Re: [GIT PULL] Btrfs

2014-07-20 Thread Duncan
Chris Mason posted on Sun, 20 Jul 2014 10:33:24 -0400 as excerpted: > I was hoping to also include a fix for a btrfs deadlock with compression > enabled, but we're still nailing that one down. FWIW, I might be (rarely but twice, now) hitting that one myself, compress=lzo, but /not/ with the rsyn

Re: [PATCH v2 00/25] AMDKFD kernel driver

2014-07-20 Thread Jerome Glisse
On Sun, Jul 20, 2014 at 01:46:53PM -0400, Jerome Glisse wrote: > On Thu, Jul 17, 2014 at 04:57:25PM +0300, Oded Gabbay wrote: > > Forgot to cc mailing list on cover letter. Sorry. > > > > As a continuation to the existing discussion, here is a v2 patch series > > restructured with a cleaner histor

Re: [PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-20 Thread Namhyung Kim
Hi Hemant, On Thu, 17 Jul 2014 11:25:12 +0530, Hemant Kumar wrote: > This patch enables perf to list the SDT markers present in a system. It looks > in dsos given by ldconfig --print-cache and for other binaries, it looks into > the PATH environment variable. After preparing a list of the binaries

[PATCH v3] usb:serial:pl2303: add GPIOs interface on PL2303

2014-07-20 Thread Wang YanQing
PL2303HX has two GPIOs, this patch add interface for it. Signed-off-by: Wang YanQing --- Changes v2-v3: 1: fix errors and warnings reported by Daniele Forsi checked with checkpatch.pl 2: fix missing GPIOLIB dependence in Kconfig 3: fix pl2303_gpio_get can't work Known issue: If gpios are i

Re: [PATCH 4/7] firmware_class: perform new LSM checks

2014-07-20 Thread Mimi Zohar
On Mon, 2014-07-21 at 09:43 +1000, James Morris wrote: > On Sat, 19 Jul 2014, Kees Cook wrote: > > [...] > > > With the patch series, the LSM hook sees the userspace-touching loads: > > - from kernel built-in: no LSM hook (nonsense to check the static list) > > - direct from filesystem: called w

Re: [PATCH] CMA/HOTPLUG: clear buffer-head lru before page migration

2014-07-20 Thread Minchan Kim
Hi Gioh, On Fri, Jul 18, 2014 at 03:45:36PM +0900, Gioh Kim wrote: > > Hi, > > For page migration of CMA, buffer-heads of lru should be dropped. > Please refer to https://lkml.org/lkml/2014/7/4/101 for the history. Just nit: Please write *problem* in description instead of URL link. > > I hav

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Yue Zhang (OSTC DEV)
> From: Varka Bhadram [mailto:varkabhad...@gmail.com] > Sent: Friday, July 18, 2014 6:13 PM > > On 07/18/2014 04:25 PM, Yue Zhang wrote: > > @@ -816,8 +816,21 @@ static void netvsc_link_change(struct work_struct > *w) > > > > rtnl_unlock(); > > > > - if (refresh) > > - call_usermod

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Yue Zhang (OSTC DEV)
> From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > Sent: Friday, July 18, 2014 9:41 PM > > On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang wrote: > > From: Yue Zhang > > > > This patch addresses the comment from Olaf Hering and Greg KH > > for a previous commit 3a494e710367 ("hyperv:

Re: [PATCH v2 16/25] amdkfd: Add module parameter of scheduling policy

2014-07-20 Thread Jerome Glisse
On Thu, Jul 17, 2014 at 04:29:23PM +0300, Oded Gabbay wrote: > From: Ben Goz > > This patch adds a new parameter to the amdkfd driver. This parameter enables > the user to select the scheduling policy of the CP. The choices are: > > * CP Scheduling with support for over-subscription > * CP Sche

Re: [PATCH v2 15/25] amdkfd: Add kernel queue module

2014-07-20 Thread Jerome Glisse
On Thu, Jul 17, 2014 at 04:29:22PM +0300, Oded Gabbay wrote: > From: Ben Goz > > The kernel queue module enables the amdkfd to establish kernel queues, not > exposed to user space. > > The kernel queues are used for HIQ (HSA Interface Queue) and DIQ (Debug > Interface Queue) operations > > Si

Re: [PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-20 Thread Namhyung Kim
Hi Andi, On Fri, 18 Jul 2014 10:50:45 -0700, Andi Kleen wrote: > Hemant Kumar writes: >> +/* >> + * Finds out the libraries present in a system as shown by the command >> + * "ldconfig --print-cache". Uses "=>" and '/' to find out the start of a >> + * dso path. >> + */ > > This seems like a hack

Re: testing result of loop-aio patchset on ext3

2014-07-20 Thread Rui Xiang
On 2014/7/18 17:10, Lukáš Czerner wrote: > On Wed, 16 Jul 2014, Rui Xiang wrote: > >> Date: Wed, 16 Jul 2014 17:28:10 +0800 >> From: Rui Xiang >> To: Lukáš Czerner >> Cc: Dave Kleikamp , linux-e...@vger.kernel.org, >> linux-fsde...@vger.kernel.org, linux-kernel@vger.kernel.org, >> Li Zef

Re: [PATCH v2 14/25] amdkfd: Add mqd_manager module

2014-07-20 Thread Jerome Glisse
On Thu, Jul 17, 2014 at 04:29:21PM +0300, Oded Gabbay wrote: > From: Ben Goz > > The mqd_manager module handles MQD data structures. MQD stands for Memory > Queue Descriptor, which is used by the H/W to keep the usermode queue state > in memory. > > Signed-off-by: Ben Goz > Signed-off-by: Ode

[PATCHv2] CMA/HOTPLUG: clear buffer-head lru before page migration

2014-07-20 Thread Gioh Kim
I removed checking migratetype of v1: https://lkml.org/lkml/2014/7/18/82. Thanks a lot. 8< -- >From 95addf7f1644cde3a0944629ff5c6a8d6f43e5d6 Mon Sep 17 00:00:00 2001 From: Gioh Kim Date: Fri, 18 Jul 2014 13:40:01 +0900 Subject: [PATCH] CMA

[PATCH 1/1] Drivers: scsi: storvsc: Add blist flags

2014-07-20 Thread K. Y. Srinivasan
Add blist flags to permit the reading of the VPD pages even when the target may claim SPC-2 compliance. MSFT targets currently claim SPC-2 compliance while they implement post SPC-2 features. With this patch we can correctly handle WRITE_SAME_16 issues. Signed-off-by: K. Y. Srinivasan --- driver

Re: [PATCH v1] x86: fix kernel crash on boot due to NULL dereference

2014-07-20 Thread Jiang Liu
Hi Andy, Have you encountered any issue with another call site of setup_irq() in arch/x86/kernel/time.c? void __init setup_default_timer_irq(void) { setup_irq(0, &irq0); } Seems it may need the same protection for system without legacy IRQ con

Re: [PATCH v2 0/3] perf/sdt : Support for SDT markers

2014-07-20 Thread Namhyung Kim
Hi Masami and Hemant, On Sun, 20 Jul 2014 12:16:46 +0900, Masami Hiramatsu wrote: > (2014/07/20 2:32), Hemant Kumar wrote: We have lots of applications which use SDT markers today, like: Postgresql, MySql, Mozilla, Perl, Python, Java, Ruby, libvirt, QEMU, glib To add SDT marker

[PATCHv7 1/4] iio: adc: exynos_adc: Add exynos_adc_data structure to improve readability

2014-07-20 Thread Chanwoo Choi
This patchset add 'exynos_adc_data' structure which includes some functions to control ADC operation and specific data according to ADC version (v1 or v2). Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Reviewed-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa --- drivers/iio/adc/ex

[PATCHv7 4/4] ARM: dts: Fix wrong compatible string for Exynos3250 ADC

2014-07-20 Thread Chanwoo Choi
This patchset fix wrong compatible string for Exynos3250 ADC. Exynos3250 SoC need to control only special clock for ADC. Exynos SoC except for Exynos3250 has not included special clock for ADC. The exynos ADC driver can control special clock if compatible string is 'exynos3250-adc-v2'. Signed-off-

[PATCHv7 0/4] iio: adc: exynos_adc: Support Exynos3250 ADC and code clean

2014-07-20 Thread Chanwoo Choi
This patchset support Exynos3250 ADC (Analog Digital Converter) because Exynos3250 has additional special clock for ADC IP. Changes from v6: - Use "exynos3250-adc" compatible string instead of "exynos3250-adc-v2" - Use "sclk" clock name instead of "sclk_adc" - Remove un-necessary macro for exyno-a

[PATCHv7 2/4] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-07-20 Thread Chanwoo Choi
This patch control special clock for ADC in Exynos series's FSYS block. If special clock of ADC is registerd on clock list of common clk framework, Exynos ADC drvier have to control this clock. Exynos3250/Exynos4/Exynos5 has 'adc' clock as following: - 'adc' clock: bus clock for ADC Exynos3250 ha

[PATCHv7 3/4] iio: devicetree: Add DT binding documentation for Exynos3250 ADC

2014-07-20 Thread Chanwoo Choi
This patch add DT binding documentation for Exynos3250 ADC IP. Exynos3250 has special clock ('sclk_adc') for ADC which provide clock to internal ADC. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Reviewed-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa Acked-by: Kukjin Kim --- ..

Re: [PATCH] ACPI/NVS: Not save NVS region for new machines to accelerate S3

2014-07-20 Thread Lan Tianyu
On 2014年07月18日 16:00, Chen, Gong wrote: > On Fri, Jul 18, 2014 at 01:55:22PM +0800, Lan Tianyu wrote: >> Date:Fri, 18 Jul 2014 13:55:22 +0800 >> From: Lan Tianyu >> To: r...@rjwysocki.net, l...@kernel.org >> Cc: Lan Tianyu , linux-a...@vger.kernel.org, >> linux-kernel@vger.kernel.org >> S

Re: [x86, irq, ACPI] WARNING: CPU: 13 PID: 11079 at fs/proc/generic.c:521 remove_proc_entry+0x19f/0x1b0()

2014-07-20 Thread Jiang Liu
Thanks for testing, Aaron. On 2014/7/18 15:41, Aaron Lu wrote: > On 07/16/2014 02:31 PM, Jiang Liu wrote: >> Hi Aaron, >> Thanks for reporting this issue. Yinghai has already posted >> a patch to fix the issue by disabling freeing of irq in case of system >> shutdown. Please refer to: >> http

[PATCH] USB: core: hcd-pci: free IRQ before disabling PCI device when shutting down

2014-07-20 Thread Jiang Liu
The assigned IRQ should be freed before calling pci_disable_device() when shutting down system, otherwise it will cause following warning. [ 568.879482] [ cut here ] [ 568.884236] WARNING: CPU: 1 PID: 3300 at /home/konrad/ssd/konrad/xtt-i386/bootstrap/linux-usb/fs/proc/ge

Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()

2014-07-20 Thread Ethan Zhao
-- Forwarded message -- From: Francois Romieu Date: Mon, Jul 21, 2014 at 2:01 AM Subject: Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats() To: Ethan Zhao Cc: Rajesh Borundia , Ethan Zhao , Manish Chopra , Sony Chacko , netdev , linux-kernel

Re: [PATCHv6 3/4] iio: devicetree: Add DT binding documentation for Exynos3250 ADC

2014-07-20 Thread Chanwoo Choi
On 07/19/2014 03:48 AM, Arnd Bergmann wrote: > On Saturday 19 July 2014 02:02:09 Chanwoo Choi wrote: >> On Sat, Jul 19, 2014 at 1:33 AM, Arnd Bergmann wrote: >>> On Saturday 19 July 2014 01:23:15 Chanwoo Choi wrote: If don't add new compatible including specific exynos version, I would a

  1   2   3   4   >