[PATCH v5 15/21] usb: dwc2: host: Add scheduler logging for missed SOFs

2016-01-22 Thread Douglas Anderson
We'll use the new "scheduler verbose debugging" macro to log missed SOFs. This is fast enough (assuming you configure it to use the ftrace buffer) that we can do it without worrying about the speed hit. The overhead hit if the scheduler tracing is set to "no_printk" should be near zero. Signed-o

[PATCH v5 09/21] usb: dwc2: host: Add a delay before releasing periodic bandwidth

2016-01-22 Thread Douglas Anderson
We'd like to be able to use HCD_BH in order to speed up the dwc2 host interrupt handler quite a bit. However, according to the kernel doc for usb_submit_urb() (specifically the part about "Reserved Bandwidth Transfers"), we need to keep a reservation active as long as a device driver keeps submitt

[PATCH v5 10/21] usb: dwc2: host: Giveback URB in tasklet context

2016-01-22 Thread Douglas Anderson
In commit 94dfd7edfd5c ("USB: HCD: support giveback of URB in tasklet context") support was added to give back the URB in tasklet context. Let's take advantage of this in dwc2. This speeds up the dwc2 interrupt handler considerably. Note that this requires the change ("usb: dwc2: host: Add a dela

[PATCH v5 01/21] usb: dwc2: rockchip: Make the max_transfer_size automatic

2016-01-22 Thread Douglas Anderson
Previously we needed to set the max_transfer_size to explicitly be 65535 because the old driver would detect that our hardware could support much bigger transfers and then would try to do them. This wouldn't work since the DMA alignment code couldn't support it. Later in commit e8f8c14d9da7 ("usb

[PATCH v5 12/21] usb: dwc2: host: Rename some fields in struct dwc2_qh

2016-01-22 Thread Douglas Anderson
This no-op change just does some renames to simplify a future patch. 1. The "interval" field is renamed to "host_interval" to make it more obvious that this interval may be 8 times the interval that the device sees (if we're doing split transactions). A future patch will also add the "de

[PATCH v5 06/21] usb: dwc2: host: Always add to the tail of queues

2016-01-22 Thread Douglas Anderson
The queues the the dwc2 host controller used are truly queues. That means FIFO or first in first out. Unfortunately though the code was iterating through these queues starting from the head, some places in the code was adding things to the queue by adding at the head instead of the tail. That me

[PATCH v5 11/21] usb: dwc2: host: Use periodic interrupt even with DMA

2016-01-22 Thread Douglas Anderson
The old code in dwc2_process_periodic_channels() would only enable the "periodic empty" interrupt if we weren't using DMA. That wasn't right since we can still get into cases where we have small FIFOs even on systems that have DMA (the rk3288 is a prime example). Let's always enable/disable the "

[PATCH v5 07/21] usb: dwc2: hcd: fix split transfer schedule sequence

2016-01-22 Thread Douglas Anderson
We're supposed to keep outstanding splits in order. Keep track of a list of the order of splits and process channel interrupts in that order. Without this change and the following setup: * Rockchip rk3288 Chromebook, using port ff54 -> Pluggable 7-port Hub with Charging (powered) -> Mi

[PATCH v5 05/21] usb: dwc2: host: Avoid use of chan->qh after qh freed

2016-01-22 Thread Douglas Anderson
When poking around with USB devices with slub_debug enabled, I found another obvious use after free. Turns out that in dwc2_hc_n_intr() I was in a state when the contents of chan->qh was filled with 0x6b, indicating that chan->qh was freed but chan still had a reference to it. Let's make sure tha

[PATCH v5 03/21] usb: dwc2: host: Set host_rx_fifo_size to 528 for rk3066

2016-01-22 Thread Douglas Anderson
As documented in dwc2_calculate_dynamic_fifo(), host_rx_fifo_size should really be: 2 * ((Largest Packet size / 4) + 1 + 1) + n with n = number of host channel. We have 9 host channels, so 2 * ((1024/4) + 2) + 9 = 516 + 9 = 525 We've got 960 / 972 total_fifo_size on rk3288 (and presumably on r

[PATCH v5 0/21] usb: dwc2: host: Fix and speed up all the stuff, especially with splits

2016-01-22 Thread Douglas Anderson
This is a bit of catchall series for all the bug fix and performance patches I've been working on over the last few months. Note that for dwc2 we need to do LOTS in software and need super low interrupt latency, so most performance improvements actually fix real bugs. Patches are structured to st

[PATCH v5 04/21] usb: dwc2: host: Set host_perio_tx_fifo_size to 304 for rk3066

2016-01-22 Thread Douglas Anderson
Looking at rk3288, there are two dwc2 ports. One has 960 total_fifo_size and the other 972. We're currently assigning 528 + 128 + 256 = 912. That means we're wasting 48 words on one port and 60 words on the other. Since we have one settings block for both ports, let's just eat the 48 words that

Re: [git pull] more vfs.git stuff

2016-01-22 Thread Linus Torvalds
On Thu, Jan 21, 2016 at 3:04 PM, Al Viro wrote: > [trying to use git request-pull; result looks more or less sane, AFAICT...] Looks fine, if you can just fix this part: > gitol...@ra.kernel.org:/pub/scm/linux/kernel/git/viro/vfs.git for-linus and have it point to the public git://git.kernel.o

Applied "regmap: clairify meaning of max_register" to the regmap tree

2016-01-22 Thread Mark Brown
The patch regmap: clairify meaning of max_register has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Re: linux-4.4 bisected: kwin5 stuck on kde5 loading screen with radeon

2016-01-22 Thread Mario Kleiner
On 01/22/2016 04:18 PM, Ville Syrjälä wrote: On Fri, Jan 22, 2016 at 12:06:00PM +0900, Michel Dänzer wrote: [ Trimming KDE folks from Cc ] On 21.01.2016 19:09, Daniel Vetter wrote: On Thu, Jan 21, 2016 at 05:36:46PM +0900, Michel Dänzer wrote: On 21.01.2016 16:58, Daniel Vetter wrote: Ca

[PATCH] block: fix bio splitting on max sectors

2016-01-22 Thread Ming Lei
After commit e36f62042880(block: split bios to maxpossible length), bio can be splitted in the middle of a vector entry, then it is easy to split out one bio which size isn't aligned with block size, especially when the block size is bigger than 512. This patch fixes the issue by making the max io

Re: [git pull] more vfs.git stuff

2016-01-22 Thread Al Viro
On Fri, Jan 22, 2016 at 10:26:18AM -0800, Linus Torvalds wrote: > On Thu, Jan 21, 2016 at 3:04 PM, Al Viro wrote: > > [trying to use git request-pull; result looks more or less sane, AFAICT...] > > Looks fine, if you can just fix this part: > > > gitol...@ra.kernel.org:/pub/scm/linux/kernel/gi

Re: [PATCH] block: fix bio splitting on max sectors

2016-01-22 Thread Linus Torvalds
On Fri, Jan 22, 2016 at 10:29 AM, Ming Lei wrote: > > This patch fixes the issue by making the max io size aligned > to logical block size. Looks better, thanks. I'd suggest also moving the "max_sectors" variable into the bio_for_each_segment() loop too just to keep variables with minimal scope,

Re: [PATCH -next] aio: Fix compile error due to unexpected use of cmpxchg()

2016-01-22 Thread Benjamin LaHaise
On Fri, Jan 22, 2016 at 10:14:39AM -0800, Guenter Roeck wrote: > cmpxchg() on some architectures (ia64) doesn't like functions as parameters. > This results in the following compile error on the affected architectures. > > fs/aio.c: In function 'aio_thread_fn': > fs/aio.c:1499:1: error: cast speci

drivers/staging/media/lirc/lirc_parallel.c:163:22-33: WARNING: Unsigned expression compared with zero: timeelapsed > 0 (fwd)

2016-01-22 Thread Julia Lawall
Maybe != 0 would be better? I don't have a strong opinion about it. julia -- Forwarded message -- Date: Sat, 23 Jan 2016 02:33:48 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: drivers/staging/media/lirc/lirc_parallel.c:163:22-33: WARNING: Unsigned

Re: [PATCH V12 3/7] dma: add Qualcomm Technologies HIDMA management driver

2016-01-22 Thread Sinan Kaya
On 1/15/2016 10:22 AM, Mark Rutland wrote: > Typically VFIO-platform also comes with a corresponding reset driver. > You don't need one? Digging this further, I do need a HIDMA reset driver. The reset driver is useful if HIDMA operation is aborted in the middle and guest machine is shutdown. I

Re: [PATCH] phys_to_pfn_t: use phys_addr_t

2016-01-22 Thread Matthew Wilcox
Missed one: static inline dma_addr_t pfn_t_to_phys(pfn_t pfn) { return PFN_PHYS(pfn_t_to_pfn(pfn)); } On Fri, Jan 22, 2016 at 09:51:14AM -0800, Dan Williams wrote: > A dma_addr_t is potentially smaller than a phys_addr_t on some archs. > Don't truncate the address when doing the pfn conv

[PATCH v2] phys_to_pfn_t: use phys_addr_t

2016-01-22 Thread Dan Williams
A dma_addr_t is potentially smaller than a phys_addr_t on some archs. Don't truncate the address when doing the pfn conversion. Cc: Ross Zwisler Reported-by: Matthew Wilcox [willy: fix pfn_t_to_phys as well] Signed-off-by: Dan Williams --- include/linux/pfn_t.h |4 ++-- kernel/

Re: [git pull] more vfs.git stuff

2016-01-22 Thread Linus Torvalds
On Fri, Jan 22, 2016 at 10:42 AM, Al Viro wrote: > > BTW, looks like ext4 is the only pending i_mutex-sensitive tree; once > it's pulled, I'll regenerate the inode_{lock,unlock,trylock,...} patch > and send it your way. I have the ext4 pull pending now, I'm doing some test-builds before pulling t

Re: [RFC v1 0/8] x86/init: Linux linker tables

2016-01-22 Thread H. Peter Anvin
On 01/22/2016 05:44 AM, Michael Matz wrote: > Hi, > > On Thu, 21 Jan 2016, H. Peter Anvin wrote: > >> Something that confuses me is that gcc seems to give these sections the >> "aw" attributes which makes as complain. This might be a gcc bug. > > Workaround: use an (possibly empty) intializer:

Re: clang --target=bpf missing on f23 was: Re: [PATCH 1/2] perf test: Add libbpf relocation checker

2016-01-22 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 22, 2016 at 06:56:02PM +0100, Daniel Borkmann escreveu: > On 01/22/2016 06:35 PM, Adam Jackson wrote: > >On Fri, 2016-01-22 at 14:22 -0300, Arnaldo Carvalho de Melo wrote: > > > >>the 'bpf' target for clang is being used together with perf to > >>build scriptlets into object code th

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-22 Thread Vivek Goyal
On Fri, Jan 22, 2016 at 10:00:19AM -0800, Shaohua Li wrote: > On Fri, Jan 22, 2016 at 10:52:36AM -0500, Vivek Goyal wrote: > > On Fri, Jan 22, 2016 at 09:48:22AM -0500, Tejun Heo wrote: > > > Hello, Shaohua. > > > > > > On Thu, Jan 21, 2016 at 04:00:16PM -0800, Shaohua Li wrote: > > > > > The thin

[RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-22 Thread Jarod Wilson
The network core tries to keep track of dropped packets, but some packets you wouldn't really call dropped, so much as intentionally ignored, under certain circumstances. One such case is that of bonding and team device slaves that are currently inactive. Their respective rx_handler functions retur

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-22 Thread Shaohua Li
On Fri, Jan 22, 2016 at 01:08:44PM -0500, Tejun Heo wrote: > Hello, Shaohua. > > On Fri, Jan 22, 2016 at 09:57:10AM -0800, Shaohua Li wrote: > > > Let's say per-cgroup buffer budget B is calculated as, say, 100ms > > > worth of IO cost (or bandwidth or iops) available to the cgroup. In > > > prac

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-01-22 Thread Josh Poimboeuf
On Fri, Jan 22, 2016 at 11:43:48AM -0600, Chris J Arges wrote: > On Thu, Jan 21, 2016 at 04:49:04PM -0600, Josh Poimboeuf wrote: > > This is v16 of the compile-time stack metadata validation patch set, > > along with proposed fixes for most of the warnings it found. It's based > > on the tip/maste

Re: [PATCH 1/2] regulator: core: Use a bitfield for continuous_voltage_range

2016-01-22 Thread Joe Perches
On Thu, 2016-01-21 at 20:24 +, Mark Brown wrote: > Using a bitfield enables the compiler to lay out the structure more > efficiently when we have other boolean flags since multiple values can > be included in a single byte. > > Signed-off-by: Mark Brown > --- >  include/linux/regulator/driver

PCI device driver broken between 4.2 and 4.3

2016-01-22 Thread Олег Мороз
Hello. I've got a device driver for MIL-1553b card called TA1-PCI, which could be found at https://github.com/qmor/elcus-1553-driver-linux Card is using PLX_PCI9030 PCI controller. Today i've found that this driver compiles, installes, but is not working as it should. Looks like it not receives

Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory

2016-01-22 Thread Laura Abbott
On 1/22/16 9:19 AM, David Brown wrote: On Tue, Jan 19, 2016 at 10:08:34AM -0800, Kees Cook wrote: This introduces __ro_after_init as a way to mark such memory, and uses it on the x86 vDSO to kill an extant kernel exploitation method. Also adds a new kernel parameter to help debug future use and

drivers/media/v4l2-core/videobuf2-core.c:2784:33-34: Unneeded semicolon

2016-01-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e1e21c7bfcfa9bf06c07f48a13faca2f62b3339 commit: af3bac1a7c8a21ff4f4edede397cba8e3f8ee503 [media] media: videobuf2: Move vb2_fileio_data and vb2_thread to core part date: 5 weeks ago coccinelle warnings:

Re: [PATCH] pci: fix unavailable irq number 255 reported by BIOS

2016-01-22 Thread David Daney
On 01/22/2016 09:53 AM, Bjorn Helgaas wrote: On Thu, Jan 21, 2016 at 11:58:26PM +0100, Rafael J. Wysocki wrote: On Thu, Jan 21, 2016 at 3:41 PM, Cao jin wrote: Hi, IMHO, I think maybe modification on i801_smbus driver is easier. Because when i801_smbus request_irq using pci_dev->ir

Re: [PATCH 1/6] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-01-22 Thread Alexei Starovoitov
On Fri, Jan 22, 2016 at 12:13:49PM +, Wang Nan wrote: > Add new ioctl() to pause/resume ring-buffer output. > > In some situations we want to read from ring buffer only when we > ensure nothing can write to the ring buffer during reading. Without > this patch we have to turn off all events att

Re: [PATCH] i2c: mt8173: add 4GB mode support in i2c driver.

2016-01-22 Thread Daniel Kurtz
Hi Liguo, Thanks for the patch. On Fri, Jan 22, 2016 at 1:38 AM, Liguo Zhang wrote: > If 4GB mode is enable, we should add 4gb mode support in i2c driver. > Set 4GB mode register to support 4GB mode. > > Signed-off-by: Liguo Zhang > --- > drivers/i2c/busses/i2c-mt65xx.c | 41 > +

Re: [PATCH 0/6] perf core: Read from overwrite ring buffer

2016-01-22 Thread Alexei Starovoitov
On Fri, Jan 22, 2016 at 12:13:48PM +, Wang Nan wrote: > This is v2 of this series. > > Compare with v1: > > Fixes several bugs in v1. > > Corresponsing perf has finished and can be found from: > > https://git.kernel.org/cgit/linux/kernel/git/pi3orama/linux.git/ > branch: perf/overwrite-b

Re: [PATCH RFC] mm: Rework virtual memory accounting

2016-01-22 Thread Christian Borntraeger
On 12/28/2015 11:22 PM, Linus Torvalds wrote: > On Mon, Dec 28, 2015 at 1:10 PM, Cyrill Gorcunov wrote: >> Really sorry for delays. Konstantin, I slightly updated the >> changelog (to point where problem came from). Linus are you >> fine with accounting not only anonymous memory in VmData? > > Th

Re: [PATCH v2] perf: Synchronously cleanup child events

2016-01-22 Thread Alexei Starovoitov
On Fri, Jan 22, 2016 at 01:38:47PM +0100, Peter Zijlstra wrote: > On Fri, Jan 22, 2016 at 01:35:40PM +0200, Alexander Shishkin wrote: > > Peter Zijlstra writes: > > > > > So I think there's a number of problems still :-( I've been looking at how perf_event->owner is handled and couldn't figure o

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-22 Thread Shaohua Li
On Fri, Jan 22, 2016 at 02:09:10PM -0500, Vivek Goyal wrote: > On Fri, Jan 22, 2016 at 10:00:19AM -0800, Shaohua Li wrote: > > On Fri, Jan 22, 2016 at 10:52:36AM -0500, Vivek Goyal wrote: > > > On Fri, Jan 22, 2016 at 09:48:22AM -0500, Tejun Heo wrote: > > > > Hello, Shaohua. > > > > > > > > On Th

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
Function setup_access_params_addr is called only from probe function, hence managed version dmam_alloc_coherent is used. setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus addre

Re: [PATCH v3 3/5] firmware: fold successful fw read early

2016-01-22 Thread Luis R. Rodriguez
On Fri, Jan 22, 2016 at 3:56 AM, Mimi Zohar wrote: > On Fri, 2016-01-22 at 02:45 +0100, Luis R. Rodriguez wrote: >> On Mon, Jan 04, 2016 at 03:48:29PM -0500, Josh Boyer wrote: >> > On Wed, Dec 23, 2015 at 4:34 PM, Luis R. Rodriguez >> > wrote: >> > > From: David Howells >> > > >> > > We'll be fo

offerta di prestito al tasso del 3%

2016-01-22 Thread Eric Falasca
Avete bisogno di un prestito urgente? f sì Assicurati di contattarci via e-mail per la soluzione di prestito

[GIT PULL] final round of SCSI updates for the 4.4+ merge window

2016-01-22 Thread James Bottomley
This is mostly stuff which missed the first pull request because it needed to incubate longer. It's mainly made up of the ncr 5380 rework but also has a few assorted bug fixes. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-misc The short changelog

Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory

2016-01-22 Thread Kees Cook
On Fri, Jan 22, 2016 at 11:16 AM, Laura Abbott wrote: > On 1/22/16 9:19 AM, David Brown wrote: >> >> On Tue, Jan 19, 2016 at 10:08:34AM -0800, Kees Cook wrote: >> >>> This introduces __ro_after_init as a way to mark such memory, and uses >>> it on the x86 vDSO to kill an extant kernel exploitation

Re: [PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Joe Perches
On Sat, 2016-01-23 at 01:21 +0530, Shraddha Barke wrote: > Function setup_access_params_addr is called only from probe function, hence > managed version dmam_alloc_coherent is used. trivia: > diff --git a/drivers/platform/goldfish/goldfish_pipe.c > b/drivers/platform/goldfish/goldfish_pipe.c []

Re: [RFC 0/3] block: proportional based blk-throttling

2016-01-22 Thread Vivek Goyal
On Fri, Jan 22, 2016 at 11:45:51AM -0800, Shaohua Li wrote: > On Fri, Jan 22, 2016 at 02:09:10PM -0500, Vivek Goyal wrote: > > On Fri, Jan 22, 2016 at 10:00:19AM -0800, Shaohua Li wrote: > > > On Fri, Jan 22, 2016 at 10:52:36AM -0500, Vivek Goyal wrote: > > > > On Fri, Jan 22, 2016 at 09:48:22AM -0

Re: [PATCH v3 1/5] firmware: generalize "firmware" as "system data" helpers

2016-01-22 Thread Luis R. Rodriguez
On Mon, Jan 04, 2016 at 12:41:07PM -0800, Kees Cook wrote: > On Wed, Dec 23, 2015 at 1:34 PM, Luis R. Rodriguez > wrote: > > From: "Luis R. Rodriguez" > > > > Historically firmware_class code was added to help > > get device driver firmware binaries but these days > > request_firmware*() helpers

Re: [PATCH v2 3/4] x86/efi: print size and base in binary units in efi_print_memmap

2016-01-22 Thread Andrew Morton
On Fri, 22 Jan 2016 15:11:00 + Matt Fleming wrote: > > >> + md->phys_addr, md->phys_addr + size - 1, > > > > > > So I did s/ - 1// here, but worried. > > > > I'm pretty sure the series should go via efi tree. > > Right, because of the prerequisite patches sat in my tree

Re: [PATCH] block: fix bio splitting on max sectors

2016-01-22 Thread Keith Busch
On Fri, Jan 22, 2016 at 10:43:59AM -0800, Linus Torvalds wrote: > On Fri, Jan 22, 2016 at 10:29 AM, Ming Lei wrote: > > > > This patch fixes the issue by making the max io size aligned > > to logical block size. > > Looks better, thanks. > > I'd suggest also moving the "max_sectors" variable int

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-22 Thread One Thousand Gnomes
> I would have expected that the main (and IMO sufficient) reason why > the kernel should do it is because the particular bus used to connect > a BT chip to the CPU is a hw detail that a kernel that does its job > should keep to itself. Same as userspace not needing to care if a BT > chip is behind

Re: [PATCH RFC] mm: Rework virtual memory accounting

2016-01-22 Thread Cyrill Gorcunov
On Fri, Jan 22, 2016 at 08:42:11PM +0100, Christian Borntraeger wrote: > On 12/28/2015 11:22 PM, Linus Torvalds wrote: > > On Mon, Dec 28, 2015 at 1:10 PM, Cyrill Gorcunov wrote: > >> Really sorry for delays. Konstantin, I slightly updated the > >> changelog (to point where problem came from). Lin

Re: [PATCH RFC] mm: Rework virtual memory accounting

2016-01-22 Thread Andrew Morton
On Fri, 22 Jan 2016 20:42:11 +0100 Christian Borntraeger wrote: > On 12/28/2015 11:22 PM, Linus Torvalds wrote: > > On Mon, Dec 28, 2015 at 1:10 PM, Cyrill Gorcunov wrote: > >> Really sorry for delays. Konstantin, I slightly updated the > >> changelog (to point where problem came from). Linus a

Re: [PATCH RFC] mm: Rework virtual memory accounting

2016-01-22 Thread Linus Torvalds
On Fri, Jan 22, 2016 at 11:42 AM, Christian Borntraeger wrote: > > Just want to mention that this patch breaks older versions of valgrind > (including the current release) > https://bugs.kde.org/show_bug.cgi?id=357833 Ugh. Looks like valgrind is doing something that fundamentally can't be "tweake

Re: [PATCH RFC 08/15] ARM: dts: sun6i: Add mmc3 pins for 8 bit emmc

2016-01-22 Thread Maxime Ripard
Hi, On Thu, Jan 21, 2016 at 01:26:35PM +0800, Chen-Yu Tsai wrote: > mmc2 and mmc3 are available on the same pins, with different mux values. > However, only mmc3 supports 8 bit DDR transfer modes. > > Since preference for mmc3 over mmc2 is due to DDR transfer modes, just > set the drive strength

Re: [Xen-devel] [PATCH 1/3] xen-netback: fix license ident used in MODULE_LICENSE

2016-01-22 Thread One Thousand Gnomes
> The fact what include/linux/license.h:license_is_gpl_compatible includes > "Dual MIT/GPL" as an option seems to suggest that it is enough of a thing > to be validly used as the contents of a MODULE_LICENSE() thing. Yes. The MIT licence most definitely exists, and people know what it means. Also

Re: [PATCH] block: fix bio splitting on max sectors

2016-01-22 Thread Linus Torvalds
[ Grr. re-sending due to stupid html from android mobile app. ] On Jan 22, 2016 12:11 PM, "Keith Busch" wrote: > > The value of max_sectors doesn't change in this function Why do you say that? It depends on the offset, so it clearly *does* change. Now, if the patch did what I suggested and made

Re: [PATCH] block: fix bio splitting on max sectors

2016-01-22 Thread Keith Busch
On Fri, Jan 22, 2016 at 12:22:18PM -0800, Linus Torvalds wrote: > > On Jan 22, 2016 12:11 PM, "Keith Busch" wrote: > > > > The value of max_sectors doesn't change in this function > > Why do you say that? It depends on the offset, so it clearly *does* change. The only "offset" used is the bio's

[PATCH v2] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus address for the allocated memory to transfer to the device. Replace the combination of devm_kzalloc and _pa() with dmam_alloc_

Re: [PATCH RFC 09/15] ARM: dts: sun6i: sina31s: Switch to mmc3 for onboard eMMC

2016-01-22 Thread Maxime Ripard
Hi, On Thu, Jan 21, 2016 at 01:26:36PM +0800, Chen-Yu Tsai wrote: > According to Allwinner, only mmc3 supports 8 bit DDR transfers for eMMC. > Switch to mmc3 for the onboard eMMC, and also assign vqmmc for signal > voltage sensing/switching, and "cap-mmc-hw-reset" to denote this > instance can use

Re: [rfc patch v4.4-rt2] sched: fix up preempt lazy forward port

2016-01-22 Thread Sebastian Andrzej Siewior
* Sebastian Andrzej Siewior | 2016-01-22 13:54:43 [+0100]: >> Should _TIF_WORK_MASK also contain _TIF_NEED_RESCHED_LAZY? > >Yes, and arm64 lacks the same bits. That would be this. If a compiler is reading here and knows how to improve the following, please let me know :) diff --git a/arch/arm/in

net: use-after-free in recvmmsg

2016-01-22 Thread Dmitry Vyukov
Hello, While running syzkaller fuzzer I've hit the following use-after-free: == BUG: KASAN: use-after-free in __sys_recvmmsg+0x6fa/0x7f0 at addr 88003b689ce0 Read of size 8 by task syz-executor/11997 =

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-01-22 Thread Chris J Arges
On Fri, Jan 22, 2016 at 01:14:47PM -0600, Josh Poimboeuf wrote: > On Fri, Jan 22, 2016 at 11:43:48AM -0600, Chris J Arges wrote: > > On Thu, Jan 21, 2016 at 04:49:04PM -0600, Josh Poimboeuf wrote: > > > This is v16 of the compile-time stack metadata validation patch set, > > > along with proposed f

Re: [PATCH RFC 11/15] ARM: dts: sun8i: sina33: Enable hardware reset and HS-DDR for eMMC

2016-01-22 Thread Maxime Ripard
On Thu, Jan 21, 2016 at 01:26:38PM +0800, Chen-Yu Tsai wrote: > mmc2 has a special pin for eMMC hardware reset, which is controllable > from the controller. Add the "mmc-cap-hw-reset" property to denote that > this controller supports this function, and the pins are actually used. > > Also increas

Re: [ANNOUNCE] 4.4-rc6-rt1

2016-01-22 Thread Sebastian Andrzej Siewior
* Sebastian Andrzej Siewior | 2016-01-22 16:48:09 [+0100]: >On 01/22/2016 04:35 PM, Grygorii Strashko wrote: >> Additional note: RCU_BOOST now depends on RCU_EXPERT, so commit >> 3da4cab "rcu: make RCU_BOOST default on RT" is nop now. >> >> config RCU_BOOST >> bool "Enable RCU priority boosti

Re: RCU lockup? (was: Re: [PATCH v2 tip/core/rcu 10/14] rcu: Don't redundantly disable irqs in rcu_irq_{enter,exit}())

2016-01-22 Thread Paul E. McKenney
On Fri, Jan 22, 2016 at 09:55:44AM +0100, Geert Uytterhoeven wrote: > Hi Paul, > > On Thu, Jan 21, 2016 at 5:06 PM, Paul E. McKenney > wrote: > > On Thu, Jan 21, 2016 at 02:22:56PM +0100, Geert Uytterhoeven wrote: > >> On Thu, Dec 10, 2015 at 12:10 AM, Paul E. McKenney > >> wrote: > >> > This co

Re: [PATCH v8 2/4] perf inject: add jitdump mmap injection support

2016-01-22 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 30, 2015 at 10:02:21AM +0100, Stephane Eranian escreveu: > This patch adds a --jit/-j option to perf inject. > > This options injects MMAP records into the perf.data > file to cover the jitted code mmaps. It also emits > ELF images for each function in the jidump file. > Those images a

Re: [PATCH RFC 12/15] ARM: dts: sun9i: Use sun9i specific mmc compatible

2016-01-22 Thread Maxime Ripard
On Thu, Jan 21, 2016 at 01:26:39PM +0800, Chen-Yu Tsai wrote: > sun9i/A80 MMC controllers have a larger FIFO, and the FIFO DMA > trigger levels can be increased. Also, the mmc module clock parent > has a higher clock rate, and the sample and output delay phases > are different. > > Signed-off-by:

Re: [PATCH v2] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Joe Perches
On Sat, 2016-01-23 at 02:08 +0530, Shraddha Barke wrote: > setup_access_params_addr has 2 goals- > > -Initialize the access_params field so that it can be used to send and read > commands from the device in access_with_param > -Get a bus address for the allocated memory to transfer to the device.

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-01-22 Thread Josh Poimboeuf
On Fri, Jan 22, 2016 at 02:40:35PM -0600, Chris J Arges wrote: > On Fri, Jan 22, 2016 at 01:14:47PM -0600, Josh Poimboeuf wrote: > > On Fri, Jan 22, 2016 at 11:43:48AM -0600, Chris J Arges wrote: > > > On Thu, Jan 21, 2016 at 04:49:04PM -0600, Josh Poimboeuf wrote: > > > > This is v16 of the compil

[git pull] Input updates for 4.5-rc0 (round 2)

2016-01-22 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive second round of updates for the input subsystem, mainly changes to xpad driver to better hanlde Xbox One controllers. Changelog: - Clement Calmels (1): Input: xpa

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-22 Thread Jay Vosburgh
Jarod Wilson wrote: >The network core tries to keep track of dropped packets, but some packets >you wouldn't really call dropped, so much as intentionally ignored, under >certain circumstances. One such case is that of bonding and team device >slaves that are currently inactive. Their respective

Re: [Xen-devel] [PATCH 1/3] xen-netback: fix license ident used in MODULE_LICENSE

2016-01-22 Thread David Miller
From: One Thousand Gnomes Date: Fri, 22 Jan 2016 20:25:21 + >> The fact what include/linux/license.h:license_is_gpl_compatible includes >> "Dual MIT/GPL" as an option seems to suggest that it is enough of a thing >> to be validly used as the contents of a MODULE_LICENSE() thing. > > Yes. The

fs: sandboxed process brings host down

2016-01-22 Thread Dmitry Vyukov
Hello, While running syzkaller fuzzer I hit the following problem. Supervisor process sandboxes worker processes that do random activities with CLONE_NEWUSER | CLONE_NEWNS | CLONE_NEWPID | CLONE_NEWUTS | CLONE_NEWNET | CLONE_NEWIPC | CLONE_IO, setrlimit, chroot, etc. Because of that worker process

Re: [PATCH v3] kallsyms: add support for relative offsets in kallsyms address table

2016-01-22 Thread Andrew Morton
On Fri, 22 Jan 2016 09:20:41 +0100 Ard Biesheuvel wrote: > > : in half since offsets can typically be expressed in 32 bits. > > : > """ > > In addition to fixing the broken grammar, would it make sense to > mention that dynamic relocation only occurs under > CONFIG_RELOCATABLE=y? I.e., somethin

Re: [PATCH] MAINTAINERS: return arch/sh to maintained state, with new maintainers

2016-01-22 Thread Andrew Morton
On Fri, 22 Jan 2016 00:26:15 -0500 Rich Felker wrote: > From: Rich Felker > > Add Yoshinori Sato and Rich Felker as maintainers for arch/sh > (SUPERH). > > Signed-off-by: Rich Felker > Signed-off-by: Yoshinori Sato > Acked-by: D. Jeff Dionne > Acked-by: Rob Landley > Acked-by: Peter Zijlst

Re: clang --target=bpf missing on f23 was: Re: [PATCH 1/2] perf test: Add libbpf relocation checker

2016-01-22 Thread David Airlie
- Original Message - > From: "Alexei Starovoitov" > To: "Adam Jackson" > Cc: "Arnaldo Carvalho de Melo" , "Wang Nan" > , a...@kernel.org, > linux-kernel@vger.kernel.org, "Daniel Borkmann" , "Li > Zefan" , > pi3or...@163.com, "Dave Airlie" > Sent: Saturday, 23 January, 2016 3:42:30 AM

Regression for mmap writes through FUSE in 4.2+

2016-01-22 Thread Jakob Unterwurzacher
I have noticed an annoying regression that was introduced in 4.2 and is still there in 4.4. mmap writes to FUSE filesystems are throttled down to basically zero. Reproducer: https://github.com/rfjakob/mmapwrite , testing against encfs: $ mmapwrite /tmp/encfs-mnt/foo 1 ..

[PATCH v3] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-01-22 Thread Shraddha Barke
setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus address for the allocated memory to transfer to the device. Replace the combination of devm_kzalloc and _pa() with dmam_alloc_

Re: net: use-after-free in recvmmsg

2016-01-22 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 22, 2016 at 09:39:53PM +0100, Dmitry Vyukov escreveu: > While running syzkaller fuzzer I've hit the following use-after-free: > Call Trace: > [] __asan_report_load8_noabort+0x3e/0x40 > mm/kasan/report.c:295 > [] __sys_recvmmsg+0x6fa/0x7f0 net/socket.c:2261 > [< inline >]

Re: [PATCH v2] ARM: mm: mark section-aligned portion of rodata NX

2016-01-22 Thread Kees Cook
On Tue, Dec 8, 2015 at 10:38 AM, Kees Cook wrote: > On Mon, Dec 7, 2015 at 11:47 PM, Ard Biesheuvel > wrote: >> On 7 December 2015 at 23:35, Kees Cook wrote: >>> When rodata is large enough that it crosses a section boundary after the >>> kernel text, mark the rest NX. This is as close to full N

Re: fs: sandboxed process brings host down

2016-01-22 Thread Al Viro
On Fri, Jan 22, 2016 at 10:06:14PM +0100, Dmitry Vyukov wrote: > Hello, > > While running syzkaller fuzzer I hit the following problem. Supervisor > process sandboxes worker processes that do random activities with > CLONE_NEWUSER | CLONE_NEWNS | CLONE_NEWPID | CLONE_NEWUTS | > CLONE_NEWNET | CLON

Re: [PATCH v8 2/4] perf inject: add jitdump mmap injection support

2016-01-22 Thread Stephane Eranian
On Fri, Jan 22, 2016 at 12:44 PM, Arnaldo Carvalho de Melo wrote: > Em Mon, Nov 30, 2015 at 10:02:21AM +0100, Stephane Eranian escreveu: >> This patch adds a --jit/-j option to perf inject. >> >> This options injects MMAP records into the perf.data >> file to cover the jitted code mmaps. It also e

Re: [RFC PATCH 1/1] seccomp: provide information about the previous syscall

2016-01-22 Thread Kees Cook
On Fri, Jan 22, 2016 at 9:30 AM, Alexei Starovoitov wrote: > On Fri, Jan 22, 2016 at 03:30:00PM +0900, Daniel Sangorrin wrote: >> This patch allows applications to restrict the order in which >> its system calls may be requested. In order to do that, we >> provide seccomp-BPF scripts with informat

Re: [PATCH 1/2] regulator: core: Use a bitfield for continuous_voltage_range

2016-01-22 Thread Mark Brown
On Fri, Jan 22, 2016 at 11:15:28AM -0800, Joe Perches wrote: > On Thu, 2016-01-21 at 20:24 +, Mark Brown wrote: > > - bool continuous_voltage_range; > > + unsigned int continuous_voltage_range:1; > Is this really valuable? > There are already padding bytes that are unused > and adding a

Re: [PATCH] mm, gup: introduce concept of "foreign" get_user_pages()

2016-01-22 Thread Dave Hansen
On 01/22/2016 10:16 AM, kbuild test robot wrote: > [auto build test ERROR on next-20160122] > [also build test ERROR on v4.4] > [cannot apply to drm/drm-next linuxtv-media/master v4.4-rc8 v4.4-rc7 v4.4-rc6] > [if your patch is applied to the wrong git tree, please drop us a not

[PATCH v3 0/5] DAX fsync/msync fixes

2016-01-22 Thread Ross Zwisler
Changes from v2: - Added a WARN_ON_ONCE() to dax_radix_entry() to enforce the assumption that we never insert a PMD DAX entry that isn't dirty. (Jan) - Added checks to ensure that 'entry' is non-NULL before passing it to RADIX_DAX_TYPE(). This worked correclty before because RADIX_DAX_TYP

[PATCH v1 08/12] xen/hvmlite: Initialize context for secondary VCPUs

2016-01-22 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- arch/x86/xen/smp.c | 57 arch/x86/xen/smp.h |4 +++ arch/x86/xen/xen-hvmlite.S |7 + 3 files changed, 63 insertions(+), 5 deletions(-) diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.

[PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally

2016-01-22 Thread Boris Ostrovsky
Xen's HVMlite guests will want to use them. Signed-off-by: Boris Ostrovsky --- arch/x86/include/asm/smp.h |1 + arch/x86/kernel/head_32.S |2 +- arch/x86/kernel/smpboot.c |2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/smp.h b/arch/x86/inc

[PATCH v1 10/12] xen/hvmlite: Use x86's default timer init for HVMlite guests

2016-01-22 Thread Boris Ostrovsky
xen_timer_init() will be called from apic_bsp_setup(). Signed-off-by: Boris Ostrovsky --- arch/x86/xen/time.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index a0a4e55..93745e7 100644 --- a/arch/x86/xen/time.c +++ b/arch/

[PATCH v1 05/12] xen/hvmlite: Allow HVMlite guests delay initializing grant table

2016-01-22 Thread Boris Ostrovsky
.. just like we currently do for PVH guests Signed-off-by: Boris Ostrovsky --- arch/x86/xen/grant-table.c |4 ++-- drivers/xen/grant-table.c |8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/xen/grant-table.c b/arch/x86/xen/grant-table.c index e079500.

[PATCH v1 09/12] xen/hvmlite: Extend APIC operations for HVMlite guests

2016-01-22 Thread Boris Ostrovsky
HVMlite guests need to be viewed as having APIC, otherwise smpboot code, for example, will complain. Signed-off-by: Boris Ostrovsky --- Not sure about xen_cpu_present_to_apicid() being an identity function, given xen_x86_32_early_logical_apicid(). arch/x86/xen/apic.c | 39 +++

[PATCH v1 07/12] xen/hvmlite: Prepare cpu_initialize_context() routine for HVMlite SMP

2016-01-22 Thread Boris Ostrovsky
Subsequent patch will add support for starting secondary VCPUs in HVMlite guest. This patch exists to make review easier. No functional changes (except for introduction of 'if (!xen_hvmlite)'). Signed-off-by: Boris Ostrovsky --- arch/x86/xen/smp.c | 104

[PATCH v1 12/12] xen/hvmlite: Enable CPU on-/offlining

2016-01-22 Thread Boris Ostrovsky
When offlining, we should properly clean up interrupts and wait until hypervisor declares VCPU as down before cleaning up. After VCPU that was previously offlined is brought back to life we want to jump back to bare-metal entry points. It's a simple jump on 64-bit but requires minor tweaking for 3

[PATCH v3 4/5] dax: fix PMD handling for fsync/msync

2016-01-22 Thread Ross Zwisler
Fix the way that DAX PMD radix tree entries are handled. With this patch we now check to see if a PMD entry exists in the radix tree on write, even if we are just trying to insert a PTE. If it exists, we dirty that instead of inserting our own PTE entry. Fix a bug in the PMD path in dax_writebac

[PATCH v1 03/12] xen/hvmlite: Import hvmlite-related Xen public interfaces

2016-01-22 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- include/xen/interface/elfnote.h | 12 +++- include/xen/interface/hvm/hvm_vcpu.h | 143 ++ include/xen/interface/xen.h | 24 ++ 3 files changed, 178 insertions(+), 1 deletions(-) create mode 100644 include/x

[PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-22 Thread Boris Ostrovsky
Start HVMlite guest XEN_ELFNOTE_PHYS32_ENTRY address. Setup hypercall page, initialize boot_params, enable early page tables. Signed-off-by: Boris Ostrovsky --- arch/x86/xen/Makefile |1 + arch/x86/xen/enlighten.c | 91 +- arch/x86/xen/xen-hvmlite.S | 158 ++

[PATCH v1 00/12] HVMlite domU support

2016-01-22 Thread Boris Ostrovsky
This series introduces HVMlite support for unprivileged guests. It has been tested on Intel/AMD, both 32- and 64-bit, including CPU on- and offlining and save/restore. (Restore will result in APIC write warnings which exist now for 32-bit PV guests as well so I didn't address this in this series)

Re: fs: sandboxed process brings host down

2016-01-22 Thread Dmitry Vyukov
On Fri, Jan 22, 2016 at 10:21 PM, Al Viro wrote: > On Fri, Jan 22, 2016 at 10:06:14PM +0100, Dmitry Vyukov wrote: >> Hello, >> >> While running syzkaller fuzzer I hit the following problem. Supervisor >> process sandboxes worker processes that do random activities with >> CLONE_NEWUSER | CLONE_NEW

<    1   2   3   4   5   6   7   8   >