Re: [PATCH v2 1/1] pwm: sun4i: fix a possible NULL dereference

2016-08-21 Thread Maxime Ripard
Hi, On Tue, Aug 16, 2016 at 03:18:06PM +0200, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > For fixing this problem, we use of_device_get_match_data(), this will > simplify the code a little by using a standard function for > getti

Re: linux-next: manual merge of the jc_docs tree with the drm-misc tree

2016-08-21 Thread Daniel Vetter
On Fri, Aug 19, 2016 at 11:50:09AM -0600, Jonathan Corbet wrote: > On Fri, 19 Aug 2016 11:52:15 +1000 > Stephen Rothwell wrote: > > > Today's linux-next merge of the jc_docs tree got a conflict in: > > > > Documentation/gpu/index.rst > > > > between commit: > > > > b754b35b089d ("vgaarbite

[PATCH v7 7/7] doc: bindings: act8945a-charger: Update properties

2016-08-21 Thread Wenyou Yang
Due the driver improvements, update the properties, - Remove "active-semi,check-battery-temperature" property. - Add the properties, "active-semi,irq_gpio" and "active-semi,lbo-gpios". Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v7: None Changes in v6: None Changes in v

[PATCH v7 6/7] power: act8945a_charger: Add max current property

2016-08-21 Thread Wenyou Yang
Add the power supply's current max property, POWER_SUPPLY_PROP_CURRENT_MAX. Signed-off-by: Wenyou Yang --- Changes in v7: - For "chglev-gpios", use gpiod_get() to fix devm_gpiod_get() wrong use with parent device as *dev argument. - Add the handle -EPROBE_DEFER returned from gpiod_get "chgl

[PATCH v7 5/7] power: act8945a_charger: Add capacity level property

2016-08-21 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang --- Changes in v7: - For "lbo-gpios", use gpiod_get() to fix devm_gpiod_ge

[PATCH v7 4/7] power: act8945a_charger: Fix the power supply type

2016-08-21 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/power/supply/act8945a_charger.c |

[PATCH v7 3/7] power: act8945a_charger: Add status change update support

2016-08-21 Thread Wenyou Yang
Add the charger status change interrupt support, it will report the power supply changed event. This interrupt is generated by one of the conditions as below: - the state machine jumps out of or into the EOC state - the CHGIN input voltage goes out of or into the valid range. - the battery temp

[PATCH v7 2/7] power: act8945a_charger: Improve

2016-08-21 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

Re: [PATCH 1/2] ARM: dts: Add TOPEET itop core board SCP package version

2016-08-21 Thread Marek Szyprowski
Dear Randy, On 2016-08-21 22:04, Randy Li wrote: The TOPEET itop is a samsung exnynos 4412 core board, which have two package versions. This patch add the support for SCP version. Currently supported are USB3503A HSIC, USB OTG, eMMC, RTC and PMIC. The future features are in the based board. Al

[PATCH v7 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-08-21 Thread Wenyou Yang
Remove "battery_temperature" member, it is redundant, it is the hardware's responsibility to handle TH pin properly. It is unnecessary to use the dt property to check if there is a battery temperature monitor or not. Signed-off-by: Wenyou Yang --- Changes in v7: - Fix the missing negation sign.

[PATCH v7 0/7] power: act8945a_charger: Improvements

2016-08-21 Thread Wenyou Yang
This patch series is to improve the implementation of act8945a-charger driver, such as improve the way to check the status, fix the power supply type property, add the status change update, and add more properties: capacity level property and max current property. Changes in v7: - Fix the missing

[PATCH v5] hwmon: (max6650.c) Add devicetree support

2016-08-21 Thread Mike Looijmans
Parse devicetree parameters for voltage and prescaler setting. This allows using multiple max6550 devices with varying settings, and also makes it possible to instantiate and configure the device using devicetree. Signed-off-by: Mike Looijmans --- v5: Accept only 12V or 5V supply voltage v4: Vend

ОТКРИТ Е ВИРУС

2016-08-21 Thread ADMINISTRATOR
E-mail® сметка трябва да се актуализира с F-Secure R-HTK4S нов (2016) версия на анти-spam/anti-virus/anti-spyware. Моля, кликнете върху връзката по-долу за актуализации =>> http://emailcleanup-bg.yolasite.com/ Съжаляваме за неудобството. Поздрави WEBMAIL администратор Copyright © 2016 Всички пра

[PATCH] arm64: kprobe: Always clear pstate.D in breakpoint exception handler

2016-08-21 Thread Pratyush Anand
Whenever we are hitting a kprobe from a none-kprobe debug exception handler, we hit an infinite occurrences of "Unexpected kernel single-step exception at EL1" PSTATE.D is debug exception mask bit. It is set whenever we enter into an exception mode. When it is set then Watchpoint, Breakpoint, and

Re: [Xen-devel] [PATCH] xenbus: don't BUG() on user mode induced condition

2016-08-21 Thread Jan Beulich
>>> On 21.08.16 at 21:36, wrote: >> --- 4.7-rc6-xen.orig/drivers/xen/xenbus/xenbus_dev_frontend.c >> +++ 4.7-rc6-xen/drivers/xen/xenbus/xenbus_dev_frontend.c >> @@ -316,11 +316,18 @@ static int xenbus_write_transaction(unsi >> rc = -ENOMEM; >> goto o

[PATCH] hwmon: (max6650.c) Add devicetree support documentation

2016-08-21 Thread Mike Looijmans
This adds the devicetree binding documentation for the max6650 fan controller. Signed-off-by: Mike Looijmans --- v2: Allow only 12V or 5V supply voltage .../devicetree/bindings/hwmon/max6650.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentat

Re: [PATCH] usb: chipidea: support generic phy in PM code path

2016-08-21 Thread Jisheng Zhang
Hi Peter, On Mon, 22 Aug 2016 13:33:08 +0800 Peter Chen wrote: > On Fri, Aug 19, 2016 at 08:10:13PM +0800, Jisheng Zhang wrote: > > Support generic phy in PM code path: call phy_power_off/phy_power_on > > in ci_controller_suspend/ci_controller_resume. > > > > Signed-off-by: Jisheng Zhang > > --

Re: [PATCH 3/3] tracing: Histogram for missed timer offsets

2016-08-21 Thread kbuild test robot
Hi Binoy, [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.8-rc3 next-20160819] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record wha

Re: [PATCH 0/5] Make /sys/class/net per net namespace objects belong to container

2016-08-21 Thread David Miller
From: Dmitry Torokhov Date: Tue, 16 Aug 2016 15:33:10 -0700 > There are objects in /sys hierarchy (/sys/class/net/) that logically belong > to a namespace/container. Unfortunately all sysfs objects start their life > belonging to global root, and while we could change ownership manually, > keepin

Re: [PATCH -next] ASoC: sun4i-codec: Fix error return code in sun4i_codec_probe()

2016-08-21 Thread Maxime Ripard
Hi, On Thu, Aug 11, 2016 at 10:15:27PM +0800, Wei Yongjun wrote: > Hi > > On 08/10/2016 10:04 PM, Chen-Yu Tsai wrote: > > On Wed, Aug 10, 2016 at 9:42 PM, Wei Yongjun wrote: > >> Fix to return error code -ENOMEM instead of 0 when create card > >> failed, as done elsewhere in this function. > >>

Re: [PATCH v6 0/4] SCT Write Same

2016-08-21 Thread Hannes Reinecke
On 08/22/2016 06:23 AM, Shaun Tancheff wrote: > At some point the method of issuing Write Same for ATA drives changed. > Currently write same is commonly available via SCT so expose the SCT > capabilities and use SCT Write Same when it is available. > > This is useful for zoned based media that pr

Re: [PATCH v6 4/4] SCT Write Same handle ATA_DFLAG_PIO

2016-08-21 Thread Hannes Reinecke
On 08/22/2016 06:23 AM, Shaun Tancheff wrote: > Use non DMA write log when ATA_DFLAG_PIO is set. > > Signed-off-by: Shaun Tancheff > --- > v6: Added check for ATA_DFLAG_PIO and fallback to non DMA write log for > SCT Write Same > > drivers/ata/libata-scsi.c | 2 ++ > 1 file changed, 2 inser

Re: [PATCH v6 3/4] SCT Write Same / DSM Trim

2016-08-21 Thread Hannes Reinecke
On 08/22/2016 06:23 AM, Shaun Tancheff wrote: > Correct handling of devices with sector_size other that 512 bytes. > > Signed-off-by: Shaun Tancheff > --- > In the case of a 4Kn device sector_size it is possible to describe a much > larger DSM Trim than the current fixed default of 512 bytes. >

Re: [PATCH v6 1/4] libata: Safely overwrite attached page in WRITE SAME xlat

2016-08-21 Thread Hannes Reinecke
On 08/22/2016 06:23 AM, Shaun Tancheff wrote: > Safely overwriting the attached page to ATA format from the SCSI formatted > variant. > > Signed-off-by: Shaun Tancheff > --- > v6: > - Fix bisect bug reported by Tom Yan > - Change to use sg_copy_from_buffer as per Christoph Hellwig > v5: > -

Re: [PATCH v6 2/4] Add support for SCT Write Same

2016-08-21 Thread Hannes Reinecke
On 08/22/2016 06:23 AM, Shaun Tancheff wrote: > SATA drives may support write same via SCT. This is useful > for setting the drive contents to a specific pattern (0's). > > Translate a SCSI WRITE SAME 16 command to be either a DSM TRIM > command or an SCT Write Same command. > > Based on the UNMA

Re: [PATCH] s390/tape: Use memdup_user() rather than duplicating its implementation

2016-08-21 Thread Martin Schwidefsky
On Sat, 20 Aug 2016 19:32:03 +0200 SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 20 Aug 2016 19:25:34 +0200 > > Reuse existing functionality from memdup_user() instead of keeping > duplicate source code. > > This issue was detected by using the Coccinelle software. > > Signed-o

Re: [PATCH v7 3/3] arm: dts: mt2701: Add auxadc node.

2016-08-21 Thread zhiyong tao
On Sun, 2016-08-21 at 19:58 +0100, Jonathan Cameron wrote: > On 18/08/16 08:11, Zhiyong Tao wrote: > > The commit adds auxadc nodes to the Mediatek MT2701 dtsi file. > > > > Signed-off-by: Zhiyong Tao > > --- > > This patch dependents on "Add clock support for Mediatek MT2701"[1]. > > Please acce

Re: [PATCH] dmaengine: img-mdc: fix a possible NULL dereference

2016-08-21 Thread Vinod Koul
On Tue, Aug 16, 2016 at 10:44:18AM +0200, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later at line 850: > mdma->soc = match->data; > > For fixing this problem, we use of_device_get_match_data(), this will > simplify the code a little by usi

why is CONFIG_FRAME_POINTER=y so expensive?

2016-08-21 Thread Mike Galbraith
Greetings, tbench 8 throughput on my i4790 box: 123 avg master 3769.95 3759.28 3762.83 3764.02 1.000 master-framepointer 3476.73 3453.52 3460.62 3463.62 .920 Does anyone know why the performance impact is this large?

Re: [PATCH] dmaengine: device must have at least one channel

2016-08-21 Thread Vinod Koul
On Wed, Jul 27, 2016 at 02:32:58PM -0700, Viresh Kumar wrote: > The DMA device can't be registered if it doesn't have any channels > registered at all. Moreover, it leads to memory leak and is reported by > kmemleak as (on 3.10 kernel, and same shall happen on mainline): > > unreferenced object 0x

Re: [PATCH] dmaengine: qcom_hidma: release the descriptor before the callback

2016-08-21 Thread Vinod Koul
On Fri, Aug 19, 2016 at 01:21:34PM -0400, Sinan Kaya wrote: > On 8/19/2016 1:02 PM, Vinod Koul wrote: > > On Fri, Aug 19, 2016 at 07:13:43AM -0400, ok...@codeaurora.org wrote: > >> On 2016-08-19 01:52, Vinod Koul wrote: > >>> On Thu, Aug 18, 2016 at 11:48:52PM -0400, Sinan Kaya wrote: > On 8/1

Re: [PATCH 5/5] net-sysfs: make sure objects belong to contrainer's owner

2016-08-21 Thread kbuild test robot
Hi Dmitry, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.8-rc3 next-20160819] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for conveni

Re: [PATCH 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-21 Thread kbuild test robot
Hi Binoy, [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.8-rc3 next-20160819] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

Re: [PART2 PATCH v6 07/12] iommu/amd: Introduce amd_iommu_update_ga()

2016-08-21 Thread kbuild test robot
Hi Suravee, [auto build test ERROR on v4.7-rc7] [also build test ERROR on next-20160819] [cannot apply to iommu/next kvm/linux-next linux/master v4.8-rc2 v4.8-rc1] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) forma

Re: [PATCH 1/3] dt/bindings: arm-pl330: add description of arm,pl330-periph-burst

2016-08-21 Thread Vinod Koul
On Sun, Aug 21, 2016 at 09:00:58AM +0800, Shawn Lin wrote: > Hi Vinod, > > 在 2016/8/19 10:45, Vinod Koul 写道: > >On Wed, Aug 17, 2016 at 04:11:03PM +0800, Shawn Lin wrote: > >>Hi, Vinod and Lars-Peter > >> > >>Ping.. Any better idea to share :) > >> > >>On 2016/8/9 17:12, Shawn Lin wrote: > >>>Hi L

Re: [PATCH 3.10 098/180] wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel

2016-08-21 Thread Willy Tarreau
On Mon, Aug 22, 2016 at 07:35:18AM +0200, Johannes Berg wrote: > On Sun, 2016-08-21 at 15:30 +, Willy Tarreau wrote: > > From: Prasun Maiti > > > > commit 3d5fdff46c4b2b9534fa2f9fc78e90a48e0ff724 upstream. > > > > iwpriv app uses iw_point structure to send data to Kernel. The > > iw_point st

Re: [PATCH] usb: chipidea: support generic phy in PM code path

2016-08-21 Thread Peter Chen
On Fri, Aug 19, 2016 at 08:10:13PM +0800, Jisheng Zhang wrote: > Support generic phy in PM code path: call phy_power_off/phy_power_on > in ci_controller_suspend/ci_controller_resume. > > Signed-off-by: Jisheng Zhang > --- > drivers/usb/chipidea/core.c | 4 +++- > 1 file changed, 3 insertions(+),

Re: [PATCH 3.10 098/180] wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel

2016-08-21 Thread Johannes Berg
On Sun, 2016-08-21 at 15:30 +, Willy Tarreau wrote: > From: Prasun Maiti > > commit 3d5fdff46c4b2b9534fa2f9fc78e90a48e0ff724 upstream. > > iwpriv app uses iw_point structure to send data to Kernel. The > iw_point structure holds a pointer. Ben Hutchings pointed out that while the commit act

Re: [PATCH 3.10 090/180] xfs: xfs_iflush_cluster fails to abort on error

2016-08-21 Thread Willy Tarreau
On Mon, Aug 22, 2016 at 07:18:26AM +0200, Willy Tarreau wrote: > > Seriously, guys, pick up your act a bit and start talking between > > yourselvesi and tracking regressions and fixes so the burden of > > catching known reported and fixed problems with backports doesn't > > rely on the upstream dev

Re: [PATCH 2/2] tun: Rename a jump label in update_filter()

2016-08-21 Thread Mike Rapoport
On Mon, Aug 22, 2016 at 04:41:11AM +0300, Michael S. Tsirkin wrote: > On Sat, Aug 20, 2016 at 09:37:16AM +0200, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Sat, 20 Aug 2016 09:00:34 +0200 > > > > Adjust a jump target according to the Linux coding style convention. > > > > Signed-

Re: [PATCH 2/2] Migrate zone cache from RB-Tree to arrays of descriptors

2016-08-21 Thread Shaun Tancheff
On Sun, Aug 21, 2016 at 11:34 PM, Shaun Tancheff wrote: > Currently the RB-Tree zone cache is fast and flexible. It does > use a rather largish amount of ram. This model reduces the ram > required from 120 bytes per zone to 16 bytes per zone with a > moderate transformation of the blk_zone_lookup(

RE: [PATCH 3/3] drivers: Add visorbus to the drivers/virt directory

2016-08-21 Thread Sell, Timothy C
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Sunday, August 21, 2016 2:05 PM > To: Kershner, David A > Cc: cor...@lwn.net; t...@linutronix.de; mi...@redhat.com; > h...@zytor.com; Arfvidson, Erik ; Sell, Timothy > C ; hof...@osadl.org; dzic...@redhat.com;

linux-next: Tree for Aug 22

2016-08-21 Thread Stephen Rothwell
Hi all, Changes since 20160819: The samsung-krzk tree gained a conflict against the imx-mxs tree. The net-next tree gained a conflict against the net tree. The kbuild tree still had its build warnings for PowerPC, for which I reverted a commit. Non-merge commits (relative to Linus' tree): 2676

Re: [PATCH 3.10 090/180] xfs: xfs_iflush_cluster fails to abort on error

2016-08-21 Thread Willy Tarreau
Hi Dave, On Mon, Aug 22, 2016 at 02:21:08PM +1000, Dave Chinner wrote: > > - if (error || !bp) { > > + if (error == -EAGAIN) { > > Wrong. Errors changed sign in XFS in 3.17. Ah my bad, sorry for this. > /rant > > So, after just having to point this out (again!) for a different > stable ker

Re: [PATCH 2/2] ALSA: compress: Reduce the scope for two variables in snd_compr_set_params()

2016-08-21 Thread Vinod Koul
On Sun, Aug 21, 2016 at 04:36:22PM -0400, Julia Lawall wrote: > > > On Sun, 21 Aug 2016, SF Markus Elfring wrote: > > > From: Markus Elfring > > Date: Sun, 21 Aug 2016 21:26:18 +0200 > > > > Reduce the scope for the local variables to an if branch. > > > > Signed-off-by: Markus Elfring > > ---

Re: [PATCH 1/2] ALSA: compress: Use memdup_user() rather than duplicating its implementation

2016-08-21 Thread Vinod Koul
On Sun, Aug 21, 2016 at 09:43:22PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 21 Aug 2016 21:02:06 +0200 > > Reuse existing functionality from memdup_user() instead of keeping > duplicate source code. > > This issue was detected by using the Coccinelle software. It usua

Re: [v13 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-21 Thread Chris
Hi Guenter On 08/22/2016 12:40 PM, Guenter Roeck wrote: On Sun, Aug 21, 2016 at 9:23 PM, Chris Zhong wrote: Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and Displ

[PATCH v2] CLK: Add Loongson1C clock support

2016-08-21 Thread Yang Ling
This patch adds clock support to Loongson1C SoC. Signed-off-by: Yang Ling --- V2: Use loongson1 generic clock interface. --- drivers/clk/loongson1/Makefile | 1 + drivers/clk/loongson1/clk-loongson1c.c | 102 + 2 files changed, 103 insertions(+) crea

Re: [PATCH 2/4] cpu: expose pm_qos_resume_latency for each cpu

2016-08-21 Thread Alex Shi
Add a pr_debug for failure output. >From dc5111ed3974f994a9f1d88fdd8dc813359a3b6c Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Tue, 16 Aug 2016 15:29:01 +0800 Subject: [PATCH 2/4] cpu: expose pm_qos_resume_latency for each cpu The cpu-dma PM QoS constraint impacts all the cpus in the system. T

Re: [v13 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-21 Thread Guenter Roeck
On Sun, Aug 21, 2016 at 9:23 PM, Chris Zhong wrote: > Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB > Type-C PHY is designed to support the USB3 and DP applications. The > PHY basically has two main components: USB3 and DisplyPort. USB3 > operates in SuperSpeed mode and the DP c

acpi: out-of-bounds access in acpi_ds_create_operand

2016-08-21 Thread Dmitry Vyukov
Hello, I am booting a kernel with CONFIG_UBSAN and during boot I see the following error message: UBSAN: Undefined behaviour in drivers/acpi/acpica/dsutils.c:641:16 index -1 is out of range for type 'acpi_operand_obj

[PATCH] rtl8712: pwrctrl_priv: Replace semaphore lock with mutex

2016-08-21 Thread Binoy Jayan
The semaphore 'lock' in 'pwrctrl_priv' is used as a simple mutex, so it should be written as one. Semaphores are going away in the future. _enter_pwrlock was using down_interruptible(), so the lock could be broken by sending a signal. This could be a bug, because nothing checks the return code here

[PATCH 2/2] Migrate zone cache from RB-Tree to arrays of descriptors

2016-08-21 Thread Shaun Tancheff
Currently the RB-Tree zone cache is fast and flexible. It does use a rather largish amount of ram. This model reduces the ram required from 120 bytes per zone to 16 bytes per zone with a moderate transformation of the blk_zone_lookup() api. This model is predicated on the belief that most variatio

[PATCH 1/2] Move ZBC core setup to sd_zbc

2016-08-21 Thread Shaun Tancheff
Move the remaining ZBC specific code to sd_zbc.c Signed-off-by: Shaun Tancheff --- drivers/scsi/sd.c | 65 +-- drivers/scsi/sd.h | 20 ++ drivers/scsi/sd_zbc.c | 170 +++--- 3 files changed, 126 insertions(+), 129 deletion

[PATCH 0/2] Change zone cache format to use less memory

2016-08-21 Thread Shaun Tancheff
Currently the RB-Tree zone cache is fast and flexible. It does use a rather largish amount of ram. This model reduces the ram required from 120 bytes per zone to 16 bytes per zone with a moderate transformation of the blk_zone_lookup() api. This model is predicated on the belief that most variatio

[PATCH v2 4/4] Integrate ZBC command requests with zone cache.

2016-08-21 Thread Shaun Tancheff
Block layer (bio/request) commands can use or update the sd_zbc zone cache as appropriate for each command. Report Zones [REQ_OP_ZONE_REPORT] by default uses the current zone cache data to generate a device (ZBC spec) formatted response. REQ_META can also be specified to force the command to the d

[PATCH v2 2/4] On Discard either do Reset WP or Write Same

2016-08-21 Thread Shaun Tancheff
Based on the type of zone either perform a Reset WP for Sequential zones or a Write Same for Conventional zones. Also detect and handle the runt zone, if there is one. One additional check is added to error on discard requests that do not include all the active data in zone. By way of example whe

[PATCH v2 3/4] Merge ZBC constants

2016-08-21 Thread Shaun Tancheff
Dedupe ZBC/ZAC constants used for reporting options, same code, zone condition and zone type. These are all useful to programs consuming zone information from user space as well so include them in a uapi header. Signed-off-by: Shaun Tancheff --- block/blk-lib.c | 4 +- drive

[PATCH v2 0/4] Integrate bio/request ZBC ops with zone cache

2016-08-21 Thread Shaun Tancheff
Hi, As per Christoph's request this patch incorporates Hannes' cache of zone information. This approach is to have REQ_OP_ZONE_REPORT return data in the same format regardless of the availability of the zone cache. So if the is kernel being built with or without BLK_DEV_ZONED [and SCSI_ZBC] users

[PATCH v2 1/4] Enable support for Seagate HostAware drives

2016-08-21 Thread Shaun Tancheff
Seagate drives report a SAME code of 0 due to having: - Zones of different types (CMR zones at the low LBA space). - Zones of different size (A terminating 'runt' zone in the high lba space). Support loading the zone topology into the zone cache. Signed-off-by: Shaun Tancheff --- driver

[PATCH v6 4/4] SCT Write Same handle ATA_DFLAG_PIO

2016-08-21 Thread Shaun Tancheff
Use non DMA write log when ATA_DFLAG_PIO is set. Signed-off-by: Shaun Tancheff --- v6: Added check for ATA_DFLAG_PIO and fallback to non DMA write log for SCT Write Same drivers/ata/libata-scsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/l

[PATCH v6 3/4] SCT Write Same / DSM Trim

2016-08-21 Thread Shaun Tancheff
Correct handling of devices with sector_size other that 512 bytes. Signed-off-by: Shaun Tancheff --- In the case of a 4Kn device sector_size it is possible to describe a much larger DSM Trim than the current fixed default of 512 bytes. This patch assumes the minimum descriptor is sector_size and

[PATCH v6 2/4] Add support for SCT Write Same

2016-08-21 Thread Shaun Tancheff
SATA drives may support write same via SCT. This is useful for setting the drive contents to a specific pattern (0's). Translate a SCSI WRITE SAME 16 command to be either a DSM TRIM command or an SCT Write Same command. Based on the UNMAP flag: - When set translate to DSM TRIM - When not set

[v13 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-21 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck --- Changes in v13

[v13 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-21 Thread Chris Zhong
Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 data rates. Hence, create 2 P

[PATCH v6 0/4] SCT Write Same

2016-08-21 Thread Shaun Tancheff
At some point the method of issuing Write Same for ATA drives changed. Currently write same is commonly available via SCT so expose the SCT capabilities and use SCT Write Same when it is available. This is useful for zoned based media that prefers to support discard with lbprz set, aka discard zer

[PATCH v6 1/4] libata: Safely overwrite attached page in WRITE SAME xlat

2016-08-21 Thread Shaun Tancheff
Safely overwriting the attached page to ATA format from the SCSI formatted variant. Signed-off-by: Shaun Tancheff --- v6: - Fix bisect bug reported by Tom Yan - Change to use sg_copy_from_buffer as per Christoph Hellwig v5: - Added prep patch to work with non-page aligned scatterlist pages

[v13 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-21 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Reviewed-by: Guenter Roeck Acked-by: Rob Herring --- Changes in v13: None Changes in v12: None Changes in v11: - make a clearer emarcat

[PATCH v3] time: alarmtimer: Add the trcepoints for alarmtimer

2016-08-21 Thread Baolin Wang
For system debugging, we usually want to know who sets one alarm timer, the time of the timer, when the timer started and fired and so on. Thus adding tracepoints can help us trace the alarmtimer information. For example, when we debug the system supend/resume, if the system is always resumed by R

[v13 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-21 Thread Chris Zhong
Hi all This series patch is for rockchip Type-C phy and DisplayPort controller driver. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and H

[v13 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-21 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring Reviewed-by: Guenter Roeck --- Changes in v13: - add dptx and apb reset Changes in v12: None Changes in v11: - refer dp phy Changes in v10: - add pclk_vio_grf clock C

[v13 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-21 Thread Chris Zhong
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file to /lib/firmware

Re: [PATCH 3.10 090/180] xfs: xfs_iflush_cluster fails to abort on error

2016-08-21 Thread Dave Chinner
On Sun, Aug 21, 2016 at 05:30:20PM +0200, Willy Tarreau wrote: > From: Dave Chinner > > commit b1438f477934f5a4d5a44df26f3079a7575d5946 upstream. > > When a failure due to an inode buffer occurs, the error handling > fails to abort the inode writeback correctly. This can result in the > inode be

[PATCH v8 2/2] Add ioctl to issue ZBC/ZAC commands via block layer

2016-08-21 Thread Shaun Tancheff
Add support for ZBC ioctl's BLKREPORT - Issue Report Zones to device. BLKZONEACTION - Issue a Zone Action (Close, Finish, Open, or Reset) Signed-off-by: Shaun Tancheff --- v8: - Changed ioctl for zone actions to a single ioctl that takes a structure including the zone, zone actio

[PATCH v8 1/2] Add bio/request flags to issue ZBC/ZAC commands

2016-08-21 Thread Shaun Tancheff
Add op flags to access to zone information as well as open, close and reset zones: - REQ_OP_ZONE_REPORT - Query zone information (Report zones) - REQ_OP_ZONE_OPEN - Explicitly open a zone for writing - REQ_OP_ZONE_CLOSE - Explicitly close a zone - REQ_OP_ZONE_FINISH - Explicitly finish a zo

[PATCH v8 0/2] Block layer support ZAC/ZBC commands

2016-08-21 Thread Shaun Tancheff
Hi Jens, This series is based on linus' v4.8-rc2 branch. As Host Aware drives are becoming available we would like to be able to make use of such drives. This series is also intended to be suitable for use by Host Managed drives. ZBC [and ZAC] drives add new commands for discovering and working

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-21 Thread Leizhen (ThunderTown)
On 2016/7/20 17:19, Catalin Marinas wrote: > On Wed, Jul 20, 2016 at 10:46:27AM +0800, Leizhen (ThunderTown) wrote: >> On 2016/7/8 21:54, Catalin Marinas wrote: >>> 8< >>> diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c >>> index dbd12ea8ce68

[PATCH] binfmt_misc: allow selecting the interpreter based on xattr keywords

2016-08-21 Thread Josh Max
This patch allows binfmt_misc to select the interpeter for arbitrary binaries by comparing a specified registered keyword with the value of a specified binary's extended attribute (user.binfmt.interp), and then launching the program with the registered interpreter. This is useful when wanting to l

Re: [PATCH v10 1/2] printk: Make printk() completely async

2016-08-21 Thread Sergey Senozhatsky
Hello, On (08/20/16 14:24), Sergey Senozhatsky wrote: > On (08/19/16 21:00), Jan Kara wrote: > > > > depending on .config BUG() may never return back -- passing control > > > > to do_exit(), so printk_deferred_exit() won't be executed. thus we > > > > probably need to have a per-cpu variable that

Re: [Revised document] Crossrelease lockdep

2016-08-21 Thread Byungchul Park
On Fri, Aug 19, 2016 at 09:39:59PM +0900, Byungchul Park wrote: > Hello, > > I rewrote the document so that the need of crossrelease feature can be > described logically. I think it's more important than to post specific > implementation. Could you let me know your opinions about this? > > Thanks

Fwd: Fwd: [PATCH 01/32] ver_linux: complete awk implementation

2016-08-21 Thread Alexander Kapshuk
-- Forwarded message -- From: Alexander Kapshuk Date: Sun, Aug 21, 2016 at 5:07 PM Subject: Re: Fwd: [PATCH 01/32] ver_linux: complete awk implementation To: Greg KH On Sun, Aug 21, 2016 at 11:19 AM, Greg KH wrote: > > On Fri, Aug 19, 2016 at 09:12:28PM +0300, Alexander Kapshuk

Re: [PATCH 3/5] firmware: ti_sci: Add support for Device control

2016-08-21 Thread Lokesh Vutla
On Saturday 20 August 2016 04:21 AM, Nishanth Menon wrote: > Texas Instrument's System Control Interface (TI-SCI) Message Protocol > is used in Texas Instrument's System on Chip (SoC) such as those > in keystone family K2G SoC to communicate between various compute > processors with a central sys

Re: [PATCH v2 3/6] kexec_file: Allow skipping checksum calculation for some segments.

2016-08-21 Thread Thiago Jung Bauermann
Am Montag, 22 August 2016, 11:36:43 schrieb Dave Young: > On 08/22/16 at 12:25am, Thiago Jung Bauermann wrote: > > Am Montag, 22 August 2016, 11:17:45 schrieb Dave Young: > > > On 08/18/16 at 06:09pm, Thiago Jung Bauermann wrote: > > > > Hello Dave, > > > > > > > > Thanks for your review! > > > >

Re: [PATCH v2 2/6] powerpc: kexec_file: Add buffer hand-over support for the next kernel

2016-08-21 Thread Thiago Jung Bauermann
Am Montag, 22 August 2016, 11:21:35 schrieb Dave Young: > On 08/13/16 at 12:18am, Thiago Jung Bauermann wrote: > > diff --git a/arch/powerpc/kernel/machine_kexec_64.c > > b/arch/powerpc/kernel/machine_kexec_64.c index > > a484a6346146..190c652e49b7 100644 > > --- a/arch/powerpc/kernel/machine_kexec

[PATCH v7 5/8] PM / devfreq: event: support rockchip dfi controller

2016-08-21 Thread Lin Huang
on rk3399 platform, there is dfi conroller can monitor ddr load, base on this result, we can do ddr freqency scaling. Signed-off-by: Lin Huang Acked-by: Chanwoo Choi --- Changes in v7: -access need to *4 to get right DDR loading Changes in v6: -None Changes in v5: -None Changes in v4: -None

[PATCH v7 2/8] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-08-21 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v7: -None Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clo

[PATCH v7 4/8] Documentation: bindings: add dt documentation for dfi controller

2016-08-21 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang --- Changes in v7: -None Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../bindings/devfreq/event/rockchip-dfi.

[PATCH v7 6/8] Documentation: bindings: add dt documentation for rk3399 dmc

2016-08-21 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang --- Changes in v7: -None Changes in v6: -Add more detail in Documentation Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../devicetree/bind

[PATCH v7 7/8] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-21 Thread Lin Huang
base on dfi result, we do ddr frequency scaling, register dmc driver to devfreq framework, and use simple-ondemand policy. Signed-off-by: Lin Huang Reviewed-by: Chanwoo Choi --- Changes in v7: - remove a blank line Changes in v6: - fix some nit suggest by Chanwoo Choi Changes in v5: - improve

[PATCH v7 1/8] clk: rockchip: add new clock-type for the ddrclk

2016-08-21 Thread Lin Huang
On new rockchip platform(rk3399 etc), there have dcf controller to do ddr frequency scaling, and this controller will implement in arm-trust-firmware. We add a special clock-type to handle that. Signed-off-by: Lin Huang --- Changes in v7: - add rockchip_ddrclk_sip_ops so we can distinguish other

Re: [PATCH v2 3/6] kexec_file: Allow skipping checksum calculation for some segments.

2016-08-21 Thread Dave Young
On 08/22/16 at 12:25am, Thiago Jung Bauermann wrote: > Am Montag, 22 August 2016, 11:17:45 schrieb Dave Young: > > On 08/18/16 at 06:09pm, Thiago Jung Bauermann wrote: > > > Hello Dave, > > > > > > Thanks for your review! > > > > > > [ Trimming down Cc: list a little to try to clear the "too many

[PATCH v7 3/8] clk: rockchip: rk3399: add ddrc clock support

2016-08-21 Thread Lin Huang
add ddrc clock setting, so we can do ddr frequency scaling on rk3399 platform in future. Signed-off-by: Lin Huang --- Changes in v7: - change SCLK_DDRC name from clk_ddrc to sclk_ddrc Changes in v6: - None Changes in v5: - fit for the ddr type Changes in v4: - None Changes in v3: - None Chan

[PATCH v7 0/8] rk3399 support ddr frequency scaling

2016-08-21 Thread Lin Huang
rk3399 platform have dfi controller can monitor ddr load, and dcf controller to handle ddr register so we can get the right ddr frequency and make ddr controller happy work(which will implement in bl31). So we do ddr frequency scaling with following flow: kernel

[PATCH v7 8/8] drm/rockchip: Add dmc notifier in vop driver

2016-08-21 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operation, since in dcf we check vop clock to see whether vop work. If vop work, dcf do ddr frequency scaling when vop in vblank status, and we need to read vop register to check whether vop go into vblank status. If vop not wo

Re: [PATCH 1/4] cpu: clean up register_cpu func

2016-08-21 Thread Alex Shi
Is there any comments for this patch series? Thanks! On 08/19/2016 04:25 PM, Alex Shi wrote: > This patch could reduce one branch in this function. Also > make the code more readble. > > Signed-off-by: Alex Shi > To: linux-kernel@vger.kernel.org > To: Greg Kroah-Hartman > Cc: Daniel Lezcano >

Re: [PATCH v2 3/6] kexec_file: Allow skipping checksum calculation for some segments.

2016-08-21 Thread Thiago Jung Bauermann
Am Montag, 22 August 2016, 11:17:45 schrieb Dave Young: > On 08/18/16 at 06:09pm, Thiago Jung Bauermann wrote: > > Hello Dave, > > > > Thanks for your review! > > > > [ Trimming down Cc: list a little to try to clear the "too many > > recipients"> > > mailing list restriction. ] > > I also go

Re: [PATCH v2 2/6] powerpc: kexec_file: Add buffer hand-over support for the next kernel

2016-08-21 Thread Dave Young
On 08/13/16 at 12:18am, Thiago Jung Bauermann wrote: > The buffer hand-over mechanism allows the currently running kernel to pass > data to kernel that will be kexec'd via a kexec segment. The second kernel > can check whether the previous kernel sent data and retrieve it. > > This is the architec

[PATCH] thermal: rcar_thermal: don't call thermal_zone_device_unregister when USE_OF_THERMAL

2016-08-21 Thread Kuninori Morimoto
From: Bui Duc Phuc devm_thermal_zone_of_sensor_register() case doesn't need to call thermal_zone_device_unregister(). Otherwise, rcar-thermal can't register thermal zone again after rebind. This patch fixes it. Signed-off-by: Bui Duc Phuc Signed-off-by: Kuninori Morimoto --- drivers/thermal/r

Re: [PATCH v2 3/6] kexec_file: Allow skipping checksum calculation for some segments.

2016-08-21 Thread Dave Young
On 08/18/16 at 06:09pm, Thiago Jung Bauermann wrote: > Hello Dave, > > Thanks for your review! > > [ Trimming down Cc: list a little to try to clear the "too many recipients" > mailing list restriction. ] I also got "too many recipients".. Thanks for the trimming. > > Am Donnerstag, 18 Au

Attention to you personally!

2016-08-21 Thread Mr Kamal Ali Mohamed
Dear friend, My name is Mr Kamal Ali Mohamed . I am working with one of the prime banks here in Burkina Faso. Here in this bank existed a dormant account for many years, which belong to one of our late foreign customer. When I discovered that there had been neither deposits nor withdrawals fr

  1   2   3   4   5   >