[patch 13/14] x86/apic: Use default send single IPI wrapper

2015-11-04 Thread Thomas Gleixner
Wire up the default_send_IPI_single() wrapper to the last holdouts. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/apic_flat_64.c |1 + arch/x86/kernel/apic/probe_32.c |1 + 2 files changed, 2 insertions(+) Index: linux/arch/x86/kernel/apic/apic_flat_64.c

Re: [PATCH] livepatch: Cleanup page permission changes

2015-11-04 Thread Jiri Kosina
On Tue, 3 Nov 2015, Josh Poimboeuf wrote: > Subject: [PATCH] livepatch: Cleanup page permission changes > > Calling set_memory_rw() and set_memory_ro() for every iteration of the > loop in klp_write_object_relocations() is messy and inefficient. Change > all the RO pages to RW before the loop

Re: [PATCH v3 1/6] Documentation: tps65086: Add DT bindings for the TPS65086 PMIC

2015-11-04 Thread Rob Herring
On Wed, Nov 04, 2015 at 11:12:10AM -0600, Andrew F. Davis wrote: > The TPS65086 PMIC contains several regulators and a GPO controller. > Add bindings for the TPS65086 PMIC. > > Signed-off-by: Andrew F. Davis Acked-by: Rob Herring > --- > Documentation/devicetree/bindings/mfd/tps65086.txt |

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Johannes Weiner
On Wed, Nov 04, 2015 at 04:48:17PM -0500, Daniel Micay wrote: > > Even if we're wrong about the aging of those MADV_FREE pages, their > > contents are invalidated; they can be discarded freely, and restoring > > them is a mere GFP_ZERO allocation. All other anonymous pages have to > > be written

[PATCH 0/3] dwc2: Speed up the interrupt handler quite a bit

2015-11-04 Thread Douglas Anderson
The dwc2 interrupt handler is quite slow. On rk3288 with a few things plugged into the ports and with cpufreq locked at 696MHz (to simulate real world idle system), I can easily observe dwc2_handle_hcd_intr() taking > 120 us, sometimes > 150 us. Note that SOF interrupts come every 125 us with

[PATCH 2/3] usb: dwc2: host: Giveback URB in tasklet context

2015-11-04 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. Signed-off-by: Douglas Anderson --- drivers/usb/dwc2/hcd.c |

Re: [GIT PULL] arm64 updates for 4.4

2015-11-04 Thread Linus Torvalds
On Wed, Nov 4, 2015 at 10:25 AM, Catalin Marinas wrote: > > - Support for 16KB pages, with the additional bonus of a 36-bit VA > space, though the latter only depending on EXPERT So I told the ppc people this many years ago, and I guess I'll tell you guys too: 16kB pages are not actually

[PATCH 3/3] usb: dwc2: host: Get aligned DMA in a more supported way

2015-11-04 Thread Douglas Anderson
All other host controllers who want aligned buffers for DMA do it a certain way. Let's do that too instead of working behind the USB core's back. This makes our interrupt handler not take forever and also rips out a lot of code, simplifying things a bunch. This also has the side effect of

[PATCH 1/3] usb: dwc2: rockchip: Make the max_transfer_size automatic

2015-11-04 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

RE: [PATCH v5] i40e: Look up MAC address in Open Firmware or IDPROM

2015-11-04 Thread Nelson, Shannon
> From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Wednesday, November 04, 2015 11:59 AM > > On Wed, Nov 4, 2015 at 9:39 PM, Sowmini Varadhan > wrote: > > > > This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC > > address in Open Firmware or IDPROM"). [...]

Re: [PATCH v3 2/6] Documentation: tps65086: Add DT bindings for the TPS65086 regulators

2015-11-04 Thread Rob Herring
On Wed, Nov 04, 2015 at 11:12:11AM -0600, Andrew F. Davis wrote: > The TPS65086 PMIC contains several regulators and a GPO controller. > Add bindings for the TPS65086 regulators. > > Signed-off-by: Andrew F. Davis Acked-by: Rob Herring > --- > .../bindings/regulator/tps65086-regulator.txt

Re: [dm-devel] [PATCH 19/32] block: add helper to get data dir from op

2015-11-04 Thread Bart Van Assche
On 11/04/2015 02:08 PM, mchri...@redhat.com wrote: From: Mike Christie In later patches the op will no longer be a bitmap, so we will not have REQ_WRITE set for all non reads like discard, flush, and write same. Drivers will still want to treat them as writes for accounting reasons, so this

Re: [PATCH] bpf: add mod default A and X test cases

2015-11-04 Thread Xi Wang
On Wed, Nov 4, 2015 at 11:36 AM, Yang Shi wrote: > When running "mod X" operation, if X is 0 the filter has to be halt. > Add new test cases to cover A = A mod X if X is 0, and A = A mod 1. > > CC: Xi Wang > CC: Zi Shen Lim > Signed-off-by: Yang Shi Acked-by: Xi Wang -- To unsubscribe from

Re: [PATCH net] net: dsa: mv88e6xxx: isolate unbridged ports

2015-11-04 Thread Florian Fainelli
On 04/11/15 14:23, Vivien Didelot wrote: > The DSA documentation specifies that each port must be capable of > forwarding frames to the CPU port. The last changes on bridging support > for the mv88e6xxx driver broke this requirement for non-bridged ports. > > So as for the bridged ports, reserve

[PATCH] USB: serial: cp210x: Add tx_empty()

2015-11-04 Thread Konstantin Shkolnyy
Without this function, when the port is closed the data in the chip's transmit FIFO are lost. If the actual byte count is reported the close can be delayed until all data are sent. Signed-off-by: Konstantin Shkolnyy --- drivers/usb/serial/cp210x.c | 60

Re: [PATCH v2 1/2] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-04 Thread Kees Cook
On Wed, Nov 4, 2015 at 2:10 PM, Eric W. Biederman wrote: > Daniel Cashman writes: > >> On 11/3/15 5:31 PM, Andrew Morton wrote: >>> On Tue, 03 Nov 2015 18:40:31 -0600 ebied...@xmission.com (Eric W. >>> Biederman) wrote: >>> Andrew Morton writes: > On Tue, 3 Nov 2015 10:10:03

[PATCH v2] tracefs: fix refcount imbalance in start_creating

2015-11-04 Thread Daniel Borkmann
In tracefs' start_creating(), we pin the file system to safely access its root. When we failed to create a file, we unpin the file system via failed_creating() to release the mount count and eventually the reference of the singleton vfsmount. However, when we run into an error during

[PATCH 02/32] block/fs/mm: prepare submit_bio_wait users for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares submit_bio_wait callers for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers now pass them in seperately. Temp issue: When the fs.h read/write types,

[PATCH 07/32] dm: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares dm's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 01/32] block/fs: add REQ_OP definitions.

2015-11-04 Thread mchristi
From: Mike Christie This patch adds definitions for request/bio operations which will be used in the next patches. In the initial patches the REQ_OPs match the REQ ones for compat reasons while all the code is converted in this set. In the last patches that will be removed. Signed-off-by: Mike

[PATCH 06/32] xen blkback: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares xen blkback submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code

[PATCH 05/32] drbd: prepare drbd for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares drbd's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 09/32] btrfs: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares btrfs's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 03/32] dio/btrfs: prep dio->submit_bio users for bi_rw split.

2015-11-04 Thread mchristi
From: Mike Christie Instead of passing around a bitmap of ops and flags, the next patches separate it into a op field and a flags field. This patch prepares the dio code and dio->submit_bio users for the split. Note that the next patches will fix up the submit_bio() call with along other users

[PATCH 0/8] mm: memcontrol: account socket memory in unified hierarchy v2

2015-11-04 Thread Johannes Weiner
Hi, this is version 2 of the patches to add socket memory accounting to the unified hierarchy memory controller. Changes from v1 include: - No accounting overhead unless a dedicated cgroup is created and the memory controller instructed to track that group's memory footprint. Distribution

[PATCH 08/32] target: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares lio's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 4/8] net: tcp_memcontrol: remove bogus hierarchy pressure propagation

2015-11-04 Thread Johannes Weiner
When a cgroup currently breaches its socket memory limit, it enters memory pressure mode for itself and its *parents*. This throttles transmission in unrelated groups that have nothing to do with the breached limit. On the contrary, breaching a limit should make that group and its *children*

[PATCH 1/8] mm: memcontrol: export root_mem_cgroup

2015-11-04 Thread Johannes Weiner
A later patch will need this symbol in files other than memcontrol.c, so export it now and replace mem_cgroup_root_css at the same time. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- include/linux/memcontrol.h | 3 ++- mm/backing-dev.c | 2 +- mm/memcontrol.c|

[PATCH 2/8] mm: vmscan: simplify memcg vs. global shrinker invocation

2015-11-04 Thread Johannes Weiner
Letting shrink_slab() handle the root_mem_cgroup, and implicitely the !CONFIG_MEMCG case, allows shrink_zone() to invoke the shrinkers unconditionally from within the memcg iteration loop. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- include/linux/memcontrol.h | 2 ++ mm/vmscan.c

[PATCH 6/8] mm: memcontrol: prepare for unified hierarchy socket accounting

2015-11-04 Thread Johannes Weiner
The unified hierarchy memory controller will account socket memory. Move the infrastructure functions accordingly. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- mm/memcontrol.c | 140 1 file changed, 70 insertions(+), 70

Re: [PATCH 2/4] perf tools: Pass LINUX_VERSION_CODE to BPF program when compiling

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 04, 2015 at 11:20:05AM +, Wang Nan escreveu: > Arnaldo suggests to make LINUX_VERSION_CODE works like __func__ and > __FILE__ so user don't need to care setting right linux version > too much. In this patch, perf llvm transfers LINUX_VERSION_CODE macro > through clang cmdline. > >

[PATCH 8/8] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-04 Thread Johannes Weiner
Let the networking stack know when a memcg is under reclaim pressure so that it can clamp its transmit windows accordingly. Whenever the reclaim efficiency of a cgroup's LRU lists drops low enough for a MEDIUM or HIGH vmpressure event to occur, assert a pressure state in the socket and tcp memory

[PATCH net] net: dsa: mv88e6xxx: isolate unbridged ports

2015-11-04 Thread Vivien Didelot
The DSA documentation specifies that each port must be capable of forwarding frames to the CPU port. The last changes on bridging support for the mv88e6xxx driver broke this requirement for non-bridged ports. So as for the bridged ports, reserve a few VLANs (4000+) in the switch to isolate ports

Re: [PATCH 3/4] perf test: Enforce LLVM test: update basic BPF test program

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 04, 2015 at 11:20:06AM +, Wang Nan escreveu: > This patch replaces the original toy BPF program with previous introduced > bpf-script-example.c. Dynamically embedded it into 'llvm-src-base.c'. > > The newly introduced BPF program attaches a BPF program to > 'sys_epoll_pwait()'.

Re: [PATCH] tracefs, debugfs: fix refcount imbalance in start_creating

2015-11-04 Thread Daniel Borkmann
On 11/02/2015 08:07 PM, Steven Rostedt wrote: On Fri, 9 Oct 2015 20:30:10 +0200 Daniel Borkmann wrote: [...] Fixes: 4282d60689d4 ("tracefs: Add new tracefs file system") Fixes: 190afd81e4a5 ("debugfs: split the beginning and the end of __create_file() off") Signed-off-by: Daniel Borkmann

[PATCH 5/8] net: tcp_memcontrol: consolidate socket buffer tracking and accounting

2015-11-04 Thread Johannes Weiner
The tcp memory controller has extensive provisions for future memory accounting interfaces that won't materialize after all. Cut the code base down to what's actually used, now and in the likely future. - There won't be any different protocol counters in the future, so a direct sock->sk_memcg

[PATCH 7/8] mm: memcontrol: account socket memory in unified hierarchy memory controller

2015-11-04 Thread Johannes Weiner
Socket memory can be a significant share of overall memory consumed by common workloads. In order to provide reasonable resource isolation in the unified hierarchy, this type of memory needs to be included in the tracking/accounting of a cgroup under active memory resource control. Overhead is

[PATCH 14/32] block/fs/mm: pass in op and flags to submit_bio

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares submit_bio callers for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers now pass them in seperately. Signed-off-by: Mike Christie --- block/bio.c

[PATCH 3/8] mm: page_counter: let page_counter_try_charge() return bool

2015-11-04 Thread Johannes Weiner
page_counter_try_charge() currently returns 0 on success and -ENOMEM on failure, which is surprising behavior given the function name. Make it follow the expected pattern of try_stuff() functions that return a boolean true to indicate success, or false for failure. Signed-off-by: Johannes Weiner

[PATCH 15/32] btrfs: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares btrfs's submit_bh use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 10/32] f2fs: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares f2fs's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 16/32] block/fs/md: pass in op and flags to submit_bh

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares submit_bh callers for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers now pass them in seperately. Signed-off-by: Mike Christie ---

[PATCH 17/32] block: add operation field to bio struct

2015-11-04 Thread mchristi
From: Mike Christie This patch adds field to the bio to store the REQ_OP, and it has the block layer code set it. The next patches will modify the other drivers and filesystems to also set the bi_op. We are still ORing the op into the bi_rw. When I am done with the conversion, that will be

Re: [PATCH v2 1/2] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-04 Thread Eric W. Biederman
Daniel Cashman writes: > On 11/3/15 5:31 PM, Andrew Morton wrote: >> On Tue, 03 Nov 2015 18:40:31 -0600 ebied...@xmission.com (Eric W. Biederman) >> wrote: >> >>> Andrew Morton writes: >>> On Tue, 3 Nov 2015 10:10:03 -0800 Daniel Cashman wrote: > ASLR currently only uses

[GIT PULL] char/misc driver patches for 4.4-rc1

2015-11-04 Thread Greg KH
The following changes since commit 25cb62b76430a91cc6195f902e61c2cb84ade622: Linux 4.3-rc5 (2015-10-11 11:09:45 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.4-rc1 for you to fetch changes up to

[GIT PULL] Driver core patches for 4.4-rc1

2015-11-04 Thread Greg KH
The following changes since commit 9ffecb10283508260936b96022d4ee43a7798b4c: Linux 4.3-rc3 (2015-09-27 07:50:08 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-4.4-rc1 for you to fetch changes up to

[GIT PULL] TTY/Serial patches for 4.4-rc1

2015-11-04 Thread Greg KH
The following changes since commit 25cb62b76430a91cc6195f902e61c2cb84ade622: Linux 4.3-rc5 (2015-10-11 11:09:45 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-4.4-rc1 for you to fetch changes up to

Re: [linux-sunxi] [PATCH v4 2/6] clk: sunxi: Add H3 clocks support

2015-11-04 Thread Julian Calaby
Hi Maxime, On Thu, Nov 5, 2015 at 3:23 AM, Maxime Ripard wrote: > Hi Julian, > > On Wed, Oct 28, 2015 at 10:12:09AM +1100, Julian Calaby wrote: >> > + of_property_for_each_u32(node, "clock-indices", prop, p, index) { >> > + of_property_read_string_index(node,

[GIT PULL] USB driver patches for 4.4-rc1

2015-11-04 Thread Greg KH
The following changes since commit 32b88194f71d6ae7768a29f87fbba454728273ee: Linux 4.3-rc7 (2015-10-25 10:39:47 +0900) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.4-rc1 for you to fetch changes up to

[PATCH 13/32] mm: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares mm's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 18/32] drbd: set bio bi_op to REQ_OP

2015-11-04 Thread mchristi
From: Mike Christie This patch has drbd set the bi_op. For compat reasons, we are still ORing the op into bi_rw. This will be dropped in later patches in this series when everyone is updated. Signed-off-by: Mike Christie --- drivers/block/drbd/drbd_actlog.c | 1 +

[PATCH 19/32] block: add helper to get data dir from op

2015-11-04 Thread mchristi
From: Mike Christie In later patches the op will no longer be a bitmap, so we will not have REQ_WRITE set for all non reads like discard, flush, and write same. Drivers will still want to treat them as writes for accounting reasons, so this patch adds a helper to translate a op to a data

[PATCH 12/32] xfs: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares xfs's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 20/32] md: set bi_op to REQ_OP

2015-11-04 Thread mchristi
From: Mike Christie This patch has md set the bi_op. For compat reasons, we are still ORing the op into bi_rw. This will be dropped in later patches in this series when everyone is updated. For discards, I am also still passing in REQ_WRITE in with the flags, so code that has not yet been

[PATCH 21/32] bcache: set bi_op to REQ_OP

2015-11-04 Thread mchristi
From: Mike Christie This patch has bcache set the bi_op. For compat reasons, we are still ORing the op into bi_rw. This will be dropped in later patches in this series when everyone is updated. Signed-off-by: Mike Christie --- drivers/md/bcache/btree.c | 2 ++

[PATCH 11/32] gfs2: prepare for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie This patch prepares gfs2's submit_bio use for the next patches that split bi_rw into a operation and flags field. Instead of passing in a bitmap with both the operation and flags mixed in, the callers will now pass them in seperately. This patch modifies the code related to

[PATCH 26/32] ide cd: do not set REQ_WRITE on requests.

2015-11-04 Thread mchristi
From: Mike Christie The block layer will set the correct READ/WRITE operation flags/fields when creating a request, so there is not need for drivers to set the REQ_WRITE flag. Signed-off-by: Mike Christie --- drivers/ide/ide-cd_ioctl.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH 24/32] dm: pass dm stats data dir instead of bi_rw

2015-11-04 Thread mchristi
From: Mike Christie It looks like dm stats primarily cares about the data direction (READ vs WRITE) and does not need the bio/request flags and in the future operation value. REQ_DISCARD is always set with REQ_WRITE, so the check for either one in dm_stats_account_io is not needed. This patch

[PATCH 25/32] block: add operation field to request struct

2015-11-04 Thread mchristi
From: Mike Christie This patch adds field to the request to store the REQ_OP, and has the block layer code set it up. The next patches will modify the other drivers to get/test the request->op field. We are still ORing the op into the cmd_flags. When I am done with the conversion, that will be

[PATCH 27/32] cfq/cgroup: pass operation and flags seperately

2015-11-04 Thread mchristi
From: Mike Christie The operation is about to be separated from the flags, so this patch has users pass them in separately to the cgroup stats. Signed-off-by: Mike Christie --- block/cfq-iosched.c| 49 +++--- include/linux/blk-cgroup.h | 13

[PATCH 28/32] block/fs/drivers: use bio/rq_data_dir helpers

2015-11-04 Thread mchristi
From: Mike Christie This has the the block layer, drivers and fs code use the bio and rq data_dir helpers instead of accessing the bi_rw/cmd_flags and checking for REQ_WRITE. Signed-off-by: Mike Christie --- block/blk-merge.c| 2 +- drivers/ata/libata-scsi.c| 2 +-

Re: Mobility Radeon HD 4530/4570/545v: flicker in 1920x1080

2015-11-04 Thread Alex Deucher
On Wed, Nov 4, 2015 at 5:10 PM, Pavel Machek wrote: > Hi! > >> index dac78ad..b86f06a 100644 >> --- a/drivers/gpu/drm/radeon/atombios_crtc.c >> +++ b/drivers/gpu/drm/radeon/atombios_crtc.c >> @@ -569,6 +569,8 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc, >>

[PATCH 30/32] drbd: don't use bi_rw for operations

2015-11-04 Thread mchristi
From: Mike Christie This removes drbd's bi_rw use for operations read, write, discard, write same, etc (REQ_OPs). Signed-off-by: Mike Christie --- drivers/block/drbd/drbd_actlog.c | 2 +- drivers/block/drbd/drbd_bitmap.c | 1 - drivers/block/drbd/drbd_main.c | 15 ---

[PATCH 29/32] block/drivers: rm request cmd_flags REQ_OP use

2015-11-04 Thread mchristi
From: Mike Christie With this patch the request struct code no longer uses the cmd_flags field for REQ_OP operations. --- block/blk-core.c | 17 + block/blk-merge.c | 10 ++ block/blk-mq.c| 10 +-

[GIT PULL] power supply changes for 4.4

2015-11-04 Thread Sebastian Reichel
Hi Linus, The following changes since commit 1f93e4a96c9109378204c147b3eec0d0e8100fde: Linux 4.3-rc2 (2015-09-20 14:32:34 -0700) are available in the git repositories at: git://git.infradead.org/battery-2.6.git tags/for-v4.4

[GIT PULL] HSI changes for 4.4

2015-11-04 Thread Sebastian Reichel
Hi Linus, The following changes since commit 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f: Linux 4.3-rc1 (2015-09-12 16:35:56 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi.git tags/hsi-for-4.4 for you to fetch changes up to

Re: [PATCH] PM / OPP: Protect updates to list_dev with mutex

2015-11-04 Thread Stephen Boyd
On 10/30, Viresh Kumar wrote: > dev_opp_list_lock is used everywhere to protect device and OPP lists, > but dev_pm_opp_set_sharing_cpus() is missed somehow. And instead we used > rcu-lock, which wouldn't help here as we are adding a new list_dev. > > This also fixes a problem where we have called

Re: [PATCH v13 12/51] vfs: Cache richacl in struct inode

2015-11-04 Thread Andreas Gruenbacher
Andreas, On Wed, Nov 4, 2015 at 3:03 AM, Andreas Dilger wrote: >> @@ -33,7 +33,7 @@ richacl_alloc(int count, gfp_t gfp) >> struct richacl *acl = kzalloc(size, gfp); >> >> if (acl) { >> - atomic_set(>a_refcount, 1); >> + atomic_set(>a_base.ba_refcount, 1); >>

Re: Mobility Radeon HD 4530/4570/545v: flicker in 1920x1080

2015-11-04 Thread Pavel Machek
Hi! > index dac78ad..b86f06a 100644 > --- a/drivers/gpu/drm/radeon/atombios_crtc.c > +++ b/drivers/gpu/drm/radeon/atombios_crtc.c > @@ -569,6 +569,8 @@ static u32 atombios_adjust_pll(struct drm_crtc *crtc, > radeon_crtc->pll_flags = 0; > > if

Re: [PATCH 1/3] PM / OPP: Add "opp-supported-hw" binding

2015-11-04 Thread Stephen Boyd
On 11/03, Viresh Kumar wrote: > On 02-11-15, 11:21, Stephen Boyd wrote: > > Ah I see that after looking at the previous thread. Perhaps we > > can add such information into the documentation so that people > > aren't misled into thinking they're limited to 32 bits? > > What about these changes:

Re: [PATCH 1/4] perf tools: Pass available CPU number to clang compiler

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 04, 2015 at 11:20:04AM +, Wang Nan escreveu: > This patch introduces a new macro "__NR_CPUS__" to perf's embedded > clang compiler, which represent the available CPU counters in this available "CPU counters"? ENOPARSE :-) > system. BPF program can use this macro to create a map

[PATCH 23/32] block/fs: pass in op and flags to ll_rw_block

2015-11-04 Thread mchristi
From: Mike Christie This has ll_rw_block users pass in the request op and flags seperately instead of as a bitmap. Signed-off-by: Mike Christie --- fs/buffer.c | 19 ++- fs/ext4/inode.c | 6 +++--- fs/ext4/namei.c | 3 ++-

[PATCH 22/32] block/fs/drivers: set bi_op to REQ_OP

2015-11-04 Thread mchristi
From: Mike Christie This patch sets the bi_op to a REQ_OP for users where it was a simple one line change. For compat reasons, we are still ORing the op into bi_rw. This will be dropped in later patches in this series when everyone is updated. Signed-off-by: Mike Christie ---

[PATCH 31/32] block/fs/driver: rm bio bi_rw REQ_OP use

2015-11-04 Thread mchristi
From: Mike Christie With this patch we no longer use the bio->bi_rw field for REQ_WRITE, REQ_DISCARD, REQ_WRITE_SAME, (REQ_OPs). bi_rw should only set REQ_XYZ values and bi_op is for REQ_OPs. Signed-off-by: Mike Christie --- block/bio.c | 15 +++--

[PATCH 32/32] block: remove __REQ op defs and reduce bi_op/bi_rw sizes

2015-11-04 Thread mchristi
From: Mike Christie This patches removes the __REQ/REQ definitions for operations now defined by REQ_OPs. There is now no need for bi_rw to be a long, so this makes it a int. I also moved the priority to its own field, but I guess I could have just kept this in the bi_rw since there is only 16

[PATCH 04/32] block: prepare blkdev_issue_discard for bi_rw split

2015-11-04 Thread mchristi
From: Mike Christie The next patches will prepare the submit_bio users for the split. There were a lot more users than there were for submit_bio_wait, so if the conversion was not a one liner, I broke it out into its own patch. This patch prepares blkdev_issue_discard. There is some compat

[RESEND RFC PATCH 00/32] separate operations from flags in the bio/request structs

2015-11-04 Thread mchristi
This is just a resend of the patchset from earlier today. There was a error in the middle of sending the set, so it looks like 10 - 32 got dropped. There are a couple new block layer commands we are trying to add support for in the near term: compare and write

Re: [PATCH 1/3] PM / OPP: Add "opp-supported-hw" binding

2015-11-04 Thread Stephen Boyd
On 11/03, Viresh Kumar wrote: > On 30-10-15, 15:18, Stephen Boyd wrote: > > A side-note. I wonder if it would be better style to have the > > node name be: > > > > opp@6 { > > > > At least it seems that the assumption is we can store all the > > possible combinations of OPP

Re: [PATCH 07/10] staging: lustre: Handle nodemask on UMP machines

2015-11-04 Thread kbuild test robot
Hi James, [auto build test WARNING on: staging/staging-next] [also build test WARNING on: next-20151104] [cannot apply to: v4.3] url: https://github.com/0day-ci/linux/commits/James-Simmons/staging-lustre-wrong-parameter-to-cfs_hash_keycpy/20151105-024407 config: i386-randconfig-b0-11050505

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Daniel Micay
> With enough pages at once, though, munmap would be fine, too. That implies lots of page faults and zeroing though. The zeroing alone is a major performance issue. There are separate issues with munmap since it ends up resulting in a lot more virtual memory fragmentation. It would help if the

Re: [PATCH] bpf: add mod default A and X test cases

2015-11-04 Thread Z Lim
On Wed, Nov 4, 2015 at 11:36 AM, Yang Shi wrote: > When running "mod X" operation, if X is 0 the filter has to be halt. > Add new test cases to cover A = A mod X if X is 0, and A = A mod 1. > > CC: Xi Wang > CC: Zi Shen Lim > Signed-off-by: Yang Shi > --- Acked-by: Zi Shen Lim -- To

Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting

2015-11-04 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 04, 2015 at 02:25:58AM +, Wang Nan escreveu: > In this patch, a series libbpf specific error numbers and > libbpf_strerror() are created to help reporting error to caller. > Functions are updated to pass correct error number through macro > CHECK_ERR(). > > All users of

Re: [PATCH v2 1/2] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-04 Thread Andrew Morton
On Wed, 4 Nov 2015 11:31:25 -0800 Daniel Cashman wrote: > As for the > clarification itself, where would you like it? I could include a cover > letter for this patch-set, elaborate more in the commit message itself, > add more to the Kconfig help description, or some combination of the above.

Re: [PATCH v13 10/51] vfs: Cache base_acl objects in inodes

2015-11-04 Thread Andreas Gruenbacher
Andreas, On Tue, Nov 3, 2015 at 11:29 PM, Andreas Dilger wrote: > On Nov 3, 2015, at 8:16 AM, Andreas Gruenbacher wrote: >> >> POSIX ACLs and richacls are both objects allocated by kmalloc() with a >> reference count which are freed by kfree_rcu(). An inode can either >> cache an access and a

Re: [patch] vfio: make an array larger

2015-11-04 Thread walter harms
Am 04.11.2015 14:26, schrieb Dan Carpenter: > Smatch complains about a possible out of bounds error: > > drivers/vfio/pci/vfio_pci_config.c:1241 vfio_cap_init() > error: buffer overflow 'pci_cap_length' 20 <= 20 > > Fix this by making the array larger. > > Signed-off-by: Dan

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Daniel Micay
> Even if we're wrong about the aging of those MADV_FREE pages, their > contents are invalidated; they can be discarded freely, and restoring > them is a mere GFP_ZERO allocation. All other anonymous pages have to > be written to disk, and potentially be read back. > > [ Arguably, MADV_FREE pages

[PATCH 6/8] ARM: dts: rockchip: add clock-cells for usb phy nodes

2015-11-04 Thread Heiko Stuebner
Add the #clock-cells properties for the usbphy nodes as they provide the pll-clocks now. Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3066a.dtsi | 2 ++ arch/arm/boot/dts/rk3188.dtsi | 2 ++ arch/arm/boot/dts/rk3288.dtsi | 3 +++ 3 files changed, 7 insertions(+) diff --git

[PATCH 7/8] ARM: dts: rockchip: assign usbphy480m_src to the new usbphy pll on veyron

2015-11-04 Thread Heiko Stuebner
Veyron devices try to always set the source for usbphy480m to the usbphy0 that is the phy connected to the otg controller, because the firmware- default is usbphy1, the ehci-controller connected to the internal camera that might get turned off way easier to save power. In the mainline kernel we

[PATCH 4/8] phy: rockchip-usb: expose the phy-internal PLLs

2015-11-04 Thread Heiko Stuebner
The USB phys on Rockchip SoCs contain their own internal PLLs to create the 480MHz needed. Additionally this PLL output is also fed back into the core clock-controller as possible source for clocks like the GPU or others. Until now this was modelled incorrectly with a "virtual" factor clock in

[PATCH 2/8] phy: rockchip-usb: introduce a common data-struct for the device

2015-11-04 Thread Heiko Stuebner
This introduces a common struct that holds data belonging to the umbrella device that contains all the phys and that we want to use later. Signed-off-by: Heiko Stuebner --- drivers/phy/phy-rockchip-usb.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git

[PATCH 5/8] clk: rockchip: fix usbphy-related clocks

2015-11-04 Thread Heiko Stuebner
The otgphy clocks really only drive the phy blocks. These in turn contain plls that then generate the 480m clocks the clock controller uses to supply some other clocks like uart0, gpu or the video-codec. So fix this structure to actually respect that hirarchy and removed that usb480m fixed-rate

[PATCH 0/8] phy: rockchip-usb: correct pll handling and usb-uart

2015-11-04 Thread Heiko Stuebner
Patches 1-7 fix a long-standing issue with the clock-tree of Rockchip SoCs namely our ignorance of the usbphy-internal pll that creates the needed 480MHz but is also a supply-clock back to the core clock-controller in Rockchip SoCs. Till now that was worked around using a virtual clock in the cru

[PATCH 8/8] phy: rockchip-usb: add handler for usb-uart functionality

2015-11-04 Thread Heiko Stuebner
Most newer Rockchip SoCs provide the possibility to use a usb-phy as passthrough for the debug uart (uart2), making it possible to for example get console output without needing to open the device. This patch adds an early_initcall to enable this functionality conditionally via the commandline

[PATCH 1/8] phy: rockchip-usb: fix clock get-put mismatch

2015-11-04 Thread Heiko Stuebner
Currently the phy driver only gets the optional clock reference but never puts it again, neither during error handling nor on remove. Fix that by moving the clk_put to a devm-action that gets called at the right time when all other devm actions are done. Signed-off-by: Heiko Stuebner ---

[PATCH 3/8] phy: rockchip-usb: move per-phy init into a separate function

2015-11-04 Thread Heiko Stuebner
This unclutters the loop in probe a lot and makes current (and future) error handling easier to read. Signed-off-by: Heiko Stuebner --- drivers/phy/phy-rockchip-usb.c | 82 -- 1 file changed, 47 insertions(+), 35 deletions(-) diff --git

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Andy Lutomirski
On Wed, Nov 4, 2015 at 12:00 PM, Shaohua Li wrote: > > The new proposal tries to fix the TLB issue. We introduce two madvise verbs: > > MARK_FREE. Userspace notifies kernel the memory range can be discarded. Kernel > just records the range in current stage. Should memory pressure happen, page >

Re: [PATCH 2/5] do_div(): generic optimization for constant divisor on 32-bit machines

2015-11-04 Thread Måns Rullgård
Nicolas Pitre writes: > On Tue, 3 Nov 2015, Arnd Bergmann wrote: > >> On Tuesday 03 November 2015 13:32:17 kbuild test robot wrote: >> > >> >net/can/bcm.c: In function 'bcm_proc_show': >> > >> net/can/bcm.c:223:1: warning: the frame size of 1156 bytes is larger >> > >> than 1024 bytes

Re: [RESEND][PATCH] ARM: debug: add support for Palmchip 16550-like UART

2015-11-04 Thread Måns Rullgård
Arnd Bergmann writes: > On Tuesday 27 October 2015 12:57:57 Mans Rullgard wrote: >> --- a/arch/arm/include/debug/8250.S >> +++ b/arch/arm/include/debug/8250.S >> @@ -9,6 +9,18 @@ >> */ >> #include >> >> +#ifdef CONFIG_DEBUG_UART_8250_PALMCHIP >> + >> +#undef UART_TX >> +#undef UART_LSR >>

Re: [PATCH v5] i40e: Look up MAC address in Open Firmware or IDPROM

2015-11-04 Thread Andy Shevchenko
On Wed, Nov 4, 2015 at 10:06 PM, Sowmini Varadhan wrote: > On (11/04/15 21:59), Andy Shevchenko wrote: >> > See earlier response. So, if maintainer is okay I'm also okay with those and you may take my tag. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Daniel Micay
> That's comparable to Android's pinning / unpinning API for ashmem and I > think it makes sense if it's faster. It's different than the MADV_FREE > API though, because the new allocations that are handed out won't have > the usual lazy commit which MADV_FREE provides. Pages in an allocation >

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