[PATCH v4] serio: PS/2 gpio bit banging driver for serio bus

2017-08-02 Thread Danilo Krummrich
This driver provides PS/2 serio bus support by implementing bit banging with the GPIO API. The GPIO pins, data and clock, can be configured with a node in the device tree or by generic device properties (GDP). Writing to a device is supported as well, though it is not recommended as the timings to

Re: [PATCH 6/7] docs: driver-api: Add GPIO section

2017-08-02 Thread Linus Walleij
On Mon, Jul 24, 2017 at 4:57 PM, Thierry Reding wrote: > From: Thierry Reding > > This adds a section about the various parts of the GPIO subsystem to the > driver API documentation. Note that this isn't exhaustive documentation, > but rather focusses on pulling in the kerneldoc from various sou

Re: [PATCH 7/7] gpio: Use unsigned int for of_gpio_n_cells

2017-08-02 Thread Linus Walleij
On Mon, Jul 24, 2017 at 4:57 PM, Thierry Reding wrote: > From: Thierry Reding > > The cell count for GPIO specifiers can never be negative, so make the > field unsigned. > > Signed-off-by: Thierry Reding Patch applied. Yours, Linus Walleij

Re: [PATCH] staging: pi433: remove some macros, introduce some inline functions

2017-08-02 Thread Dan Carpenter
On Wed, Aug 02, 2017 at 02:07:37PM +0200, Marcus Wolf wrote: > Hi Dan, > > I get your point and I understand, that there need to be rules to > simplify the life for the maintainers... > > But I honestly must confess, that at the moment, I don't have the > time for doing that. I am into two custom

Re: [PATCH 1/4] gpio: tegra: Remove unnecessary check

2017-08-02 Thread Linus Walleij
On Mon, Jul 24, 2017 at 4:55 PM, Thierry Reding wrote: > From: Thierry Reding > > of_device_get_match_data() can never return NULL, therefore the check > for NULL values is unnecessary. > > Signed-off-by: Thierry Reding Patch applied with Jon's ACK. Yours, Linus Walleij

Re: [PATCH 2/2] HID: multitouch: Support Asus T304UA media keys

2017-08-02 Thread Benjamin Tissoires
On Aug 02 2017 or thereabouts, Jiri Kosina wrote: > On Mon, 24 Jul 2017, João Paulo Rechi Vita wrote: > > > The Asus T304UA convertible sports a magnetic detachable keyboard with > > touchpad, which is connected over USB. Most of the keyboard hotkeys are > > exposed through the same USB interface

Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies

2017-08-02 Thread Linus Walleij
On Mon, Jul 24, 2017 at 4:55 PM, Thierry Reding wrote: > From: Thierry Reding > > Rather than manually compute the size of an array, pass the number and > element size to kcalloc(). > > Signed-off-by: Thierry Reding Patch applied with Jon's ACK. Yours, Linus Walleij

Re: [PATCH] iommu/arm-smmu: Defer TLB flush in case of unmap op

2017-08-02 Thread Robin Murphy
On 02/08/17 10:53, Vivek Gautam wrote: > We don't want to touch the TLB when smmu is suspended. > Defer it until resume. > > Signed-off-by: Vivek Gautam > --- > > Hi all, > > Here's the small patch in response of suggestion to defer tlb operations > when smmu is in suspend state. > The patch st

Re: [PATCH 3/4] gpio: tegra: Fix checkpatch warnings

2017-08-02 Thread Linus Walleij
On Mon, Jul 24, 2017 at 4:55 PM, Thierry Reding wrote: > From: Thierry Reding > > Fix a couple of checkpatch warnings, such as complaints about bare > unsigned being used (instead of unsigned int) and missing blank lines > after declarations. > > Signed-off-by: Thierry Reding Patch applied wit

Re: [PATCH 1/1 v3 nf-next] netfilter: constify nf_conntrack_l3/4proto parameters

2017-08-02 Thread Pablo Neira Ayuso
On Tue, Aug 01, 2017 at 12:25:01PM +0200, Julia Lawall wrote: > When a nf_conntrack_l3/4proto parameter is not on the left hand side > of an assignment, its address is not taken, and it is not passed to a > function that may modify its fields, then it can be declared as const. > > This change is u

Re: [PATCH nf-next] netfilter: constify nf_loginfo structures

2017-08-02 Thread Pablo Neira Ayuso
On Tue, Aug 01, 2017 at 12:48:03PM +0200, Julia Lawall wrote: > The nf_loginfo structures are only passed as the seventh argument to > nf_log_trace, which is declared as const or stored in a local const > variable. Thus the nf_loginfo structures themselves can be const. > > Done with the help of

[PATCH RFC] fpga: add FPGA Bus device framework

2017-08-02 Thread Wu Hao
This patch is a RFC patch which replaces the patch[1] which creates 'fpga-dev' class as container device. It introduces a 'fpga' bus type, and provides interfaces to create/destroy fpga bus devices. This fpga bus device only could be used as a container device, and no drivers needed for it. There

Re: [BUG] Slow SATA disk - waiting in balance_dirty_pages() on i686-pae.html

2017-08-02 Thread Michal Hocko
On Tue 01-08-17 12:32:40, Philipp Hahn wrote: > Hello, > > ;TL,DR: apt-get is blocked by balance_dirty_pages() with linux-{3,16 > 4.2, 4.9}, but fast after reboot. > > > We still have several systems running 4.9.0-ucs104-686-pae. They have 16 > GiB RAM and two disk: I would strongly discourage

[PATCH] staging:wlan-ng Fix multiple line dereference

2017-08-02 Thread janani-sankarababu
This patch fixes multiple line dereference Warning reported by checkpatch script. This is done to simplify the code and make it more readable. Signed-off-by: Janani Sankara Babu --- drivers/staging/wlan-ng/hfa384x_usb.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --g

Re: [PATCH 02/12] ARM: ep93xx: use ARM_PATCH_PHYS_VIRT

2017-08-02 Thread Linus Walleij
On Thu, Jul 20, 2017 at 5:49 PM, Arnd Bergmann wrote: > Just like ARCH_MULTIPLATFORM, we want to use ARM_PATCH_PHYS_VIRT > when possible, but that fails for NOMMU or XIP_KERNEL configurations. > Using 'imply' instead of 'select' gets this right and only uses > the symbol when we don't have to har

[PATCH] mtd: blkdevs: Fix mtd block write failure

2017-08-02 Thread Abhishek Sahu
All the MTD block write requests are failing with following error messages mkfs.ext4 /dev/mtdblock0 print_req_error: I/O error, dev mtdblock0, sector 0 Buffer I/O error on dev mtdblock0, logical block 0, lost async page write The control is going to default case after block writ

Re: [PATCH] userfaultfd_zeropage: return -ENOSPC in case mm has gone

2017-08-02 Thread Mike Rapoport
On Mon, Jul 31, 2017 at 03:45:08PM +0200, Michal Hocko wrote: > On Mon 31-07-17 15:32:47, Andrea Arcangeli wrote: > > On Mon, Jul 31, 2017 at 02:22:04PM +0200, Michal Hocko wrote: > > > On Thu 27-07-17 09:26:59, Mike Rapoport wrote: > > > > In the non-cooperative userfaultfd case, the process exit

Re: [PATCH 0/5] tpm: tpm_ibmvtpm: - style fix

2017-08-02 Thread Jarkko Sakkinen
On Sat, Jul 29, 2017 at 03:24:28PM +0800, SZ Lin wrote: > Fix styling WARNINGs and Errors of tpm_ibmvtpm.c driver by using checkpatch.pl Changes are great but you should revise the patch series so that you expain in each commit what goes wrong instead of copy paste of the checkpatch output and why

Re: [PATCH] staging: vboxvideo: use drm_gem_object_put instead of drm_gem_object_unreference

2017-08-02 Thread Daniel Vetter
On Wed, Aug 2, 2017 at 1:46 AM, Cihangir Akturk wrote: > drm_gem_object_unreference is a compatibility alias for drm_gem_object_put so > should > not be used by new code. > > This patch fixes the following warning reported by coccinelle: > > drivers/staging/vboxvideo/vbox_main.c:528:1-27: WARNING

Re: [PATCH 0/3] FPGA Manager support for FPP via FT232H FT245-FIFO

2017-08-02 Thread Eric Schwarz
Dear all, DENX Software Engineering develops and brings this driver to mainline on behalf of us (ARRI*). Since there was a lot of discussion around this patch series I would highly appreciate if someone could sum up what needs to be changed in detail in order to get this driver into the main

Re: RCU stall when using function_graph

2017-08-02 Thread Daniel Lezcano
On Tue, Aug 01, 2017 at 08:12:14PM -0400, Steven Rostedt wrote: > On Wed, 2 Aug 2017 00:15:44 +0200 > Daniel Lezcano wrote: > > > On 02/08/2017 00:04, Paul E. McKenney wrote: > > >> Hi Paul, > > >> > > >> I have been trying to set the function_graph tracer for ftrace and each > > >> time I > > >

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Liviu Dudau
On Wed, Aug 02, 2017 at 01:27:23PM +0200, Daniel Vetter wrote: > On Wed, Aug 2, 2017 at 1:20 PM, Liviu Dudau wrote: > > On Thu, Jul 20, 2017 at 03:01:16PM +0200, Maxime Ripard wrote: > >> +/** > >> + * drm_atomic_helper_commit_tail_rpm - commit atomic update to hardware > >> + * @old_state: new mo

Re: RCU stall when using function_graph

2017-08-02 Thread Paul E. McKenney
On Tue, Aug 01, 2017 at 03:04:05PM -0700, Paul E. McKenney wrote: > > Hi Paul, > > > > I have been trying to set the function_graph tracer for ftrace and each > > time I > > get a CPU stall. > > > > How to reproduce: > > - > > > > echo function_graph > /sys/kernel/d

[PATCH] Remove explicit return type cast

2017-08-02 Thread Hari Prasath
Remove explicit typecasting of return value in the interrupt handlers. Signed-off-by: Hari Prasath --- drivers/staging/pi433/pi433_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index ed737f4..95f3e

Re: [PATCH v3 02/10] cpufreq: provide default frequency-invariance setter function

2017-08-02 Thread Dietmar Eggemann
Hi Viresh, On 28/07/17 08:30, Viresh Kumar wrote: > On 27-07-17, 20:33, Dietmar Eggemann wrote: >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c >> index 9bf97a366029..04e2f7e4964e 100644 >> --- a/drivers/cpufreq/cpufreq.c >> +++ b/drivers/cpufreq/cpufreq.c >> @@ -2404,6 +2404

Re: [RFC]Add new mdev interface for QoS

2017-08-02 Thread Gao, Ping A
On 2017/8/2 18:19, Kirti Wankhede wrote: > > On 8/2/2017 3:56 AM, Alex Williamson wrote: >> On Tue, 1 Aug 2017 13:54:27 +0800 >> "Gao, Ping A" wrote: >> >>> On 2017/7/28 0:00, Gao, Ping A wrote: On 2017/7/27 0:43, Alex Williamson wrote: > [cc +libvir-list] > > On Wed, 26 Jul 20

Re: [PATCH -v2 1/4] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Mel Gorman
On Wed, Aug 02, 2017 at 01:38:38PM +0200, Peter Zijlstra wrote: > For this to work we need to rework migrate_misplaced_transhuge_page() > a little and move the test up into do_huge_pmd_numa_page(). > Note that Nadav has a patch in parallel on it's way towards Andrew's tree that I suggested to alw

ARC stuff (was Re: [PATCH -v2 1/4] mm: Rework {set,clear,mm}_tlb_flush_pending())

2017-08-02 Thread Vineet Gupta
On 08/02/2017 05:19 PM, Peter Zijlstra wrote: Commit: af2c1401e6f9 ("mm: numa: guarantee that tlb_flush_pending updates are visible before page table updates") added smp_mb__before_spinlock() to set_tlb_flush_pending(). I think we can solve the same problem without this barrier. If instead

Re: [PATCH v2 2/4] drm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD

2017-08-02 Thread Noralf Trønnes
Den 02.08.2017 00.11, skrev David Lechner: LEGO MINDSTORMS EV3 has an LCD with a ST7586 controller. This adds a new module for the ST7586 controller with parameters for the EV3 LCD display. Signed-off-by: David Lechner --- .../devicetree/bindings/display/st7586.txt | 26 + drivers/

Re: [PATCH v3 00/10] arm, arm64, cpufreq: frequency- and cpu-invariant accounting support for task scheduler

2017-08-02 Thread Dietmar Eggemann
Hi Russell, On 27/07/17 20:33, Dietmar Eggemann wrote: [...] > Patch high level description: > >[ 01/10] Fix to free cpumask cpus_to_visit >[ 02/10] Default (empty, weak) arch_set_freq_scale() implementation >[03,04/10] Call arch_set_freq_scale() from two cpufreq drivers >

Re: [PATCH -v2 1/4] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 02:00:40PM +0100, Mel Gorman wrote: > On Wed, Aug 02, 2017 at 01:38:38PM +0200, Peter Zijlstra wrote: > > For this to work we need to rework migrate_misplaced_transhuge_page() > > a little and move the test up into do_huge_pmd_numa_page(). > > > > Note that Nadav has a pat

Re: [Intel-gfx] [PATCH 3/4] lib/scatterlist: Introduce and export __sg_alloc_table_from_pages

2017-08-02 Thread Tvrtko Ursulin
Hi Andrew, We have a couple of small lib/scatterlist.c tidies here, plus exporting the new API which allows drivers to control the maximum coalesced entry as created by __sg_alloc_table_from_pages. I am looking for an ack to merge these three patches via the drm-intel tree. Regards, Tvrtko

Re: RCU stall when using function_graph

2017-08-02 Thread Steven Rostedt
On Wed, 2 Aug 2017 14:42:39 +0200 Daniel Lezcano wrote: > On Tue, Aug 01, 2017 at 08:12:14PM -0400, Steven Rostedt wrote: > > On Wed, 2 Aug 2017 00:15:44 +0200 > > Daniel Lezcano wrote: > > > > > On 02/08/2017 00:04, Paul E. McKenney wrote: > > > >> Hi Paul, > > > >> > > > >> I have been tr

RE: [PATCH v3 14/16] switchtec_ntb: implement scratchpad registers

2017-08-02 Thread Allen Hubbe
From: Logan Gunthorpe > On 01/08/17 01:10 PM, Jon Mason wrote: > > It would probaly be better if I remarked about the SPADs in the actual > > patch about the SPADS :) > > > > The whole point of using the SPADs in the NTB driver was to workaround > > the problems establishing a connection between th

[PATCH] sched/fair: Sync task util before slow-path wakeup

2017-08-02 Thread Brendan Jackman
We use task_util in find_idlest_group via capacity_spare_wake. This task_util is updated in wake_cap. However wake_cap is not the only reason for ending up in find_idlest_group - we could have been sent there by wake_wide. So explicitly sync the task util with prev_cpu when we are about to head to

Re: [PATCH] arm64: defconfig: enable fine-grained task level IRQ time accounting

2017-08-02 Thread Gregory CLEMENT
Hi, (Adding Arnd and Olof) On lun., juil. 31 2017, Marcin Wojtas wrote: > Tests showed, that under certain conditions, the summary number of jiffies > spent on softirq/idle, which are counted by system statistics can be even > below 10% of expected value, resulting in false load presentation.

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-02 Thread Pierre Yves MORDRET
On 08/02/2017 11:19 AM, Peter Ujfalusi wrote: > > > On 2017-08-02 07:55, Vinod Koul wrote: >> On Tue, Aug 01, 2017 at 09:32:50AM +, Pierre Yves MORDRET wrote: >>> >>> >>> On 07/31/2017 02:31 PM, Vinod Koul wrote: On Wed, Jul 26, 2017 at 07:38:02AM +, Pierre Yves MORDRET wrote:

Re: ARC stuff (was Re: [PATCH -v2 1/4] mm: Rework {set,clear,mm}_tlb_flush_pending())

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 06:30:43PM +0530, Vineet Gupta wrote: > On 08/02/2017 05:19 PM, Peter Zijlstra wrote: > > Commit: > > > >af2c1401e6f9 ("mm: numa: guarantee that tlb_flush_pending updates are > > visible before page table updates") > > > > added smp_mb__before_spinlock() to set_tlb_fl

[PATCH v3 0/3] ASoC: codecs: msm8916-wcd-digital: Fix dmic support

2017-08-02 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patchset fixes dmic support in the codec driver, first and second patch fixes the mclk rate for the codec and the third patch adds missing selection of DMIC in CIC filter source path. Tested on DB410c with Audio Mezz board which has got dmic on it. Changes since v

[PATCH v3 3/3] ASoC: codecs: msm8916-wcd-digital: add CIC filter source selection path

2017-08-02 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch fixes a missing selection of DMIC in CIC filter source path to dapm route. Without this patch dmic is not functional. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/msm8916-wcd-digital.c | 25 +++-- 1 file changed, 23 insertions

[patch v1 2/2] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-08-02 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Ole

[PATCH v3 2/3] ASoC: qcom: apq8016-sbc: set default mclk rate

2017-08-02 Thread srinivas . kandagatla
From: Srinivas Kandagatla MCLK for internal audio codec is expected to be at 9.6MHz by default. This patch adds support to 9.6MHz to make the default case possible. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8016_sbc.c | 23 +++ 1 file changed, 19 insertions(+

[PATCH v3 1/3] ASoC: codecs: msm8916-wcd-digital: add support to set_sysclk

2017-08-02 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to set_sysclk() which can let the sound card driver to set default mclk rate. In this case MCLK for internal audio codec is expected to be at 9.6MHz by default. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/msm8916-wcd-digital.c | 10

[patch v1 0/2] JTAG driver introduction

2017-08-02 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, it could be done from the external JTAG master controller. For such purpose, usually the user layer application implements jtag protocol or using a proprietary connection to vendor hardware. This method

[patch v1 1/2] drivers: jtag: Add JTAG core driver

2017-08-02 Thread Oleksandr Shamray
JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to user space for: - XFER: - SIR

[PATCH v2] f2fs: update cur_valid_map_mir together with cur_valid_map

2017-08-02 Thread Yunlong Song
When cur_valid_map passes the f2fs_test_and_set(,clear)_bit test, cur_valid_map_mir update is skipped unlikely, so fix it. The fix now changes the mirror check together with cur_valid_map all the time. Signed-off-by: Yunlong Song Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 41 +++

Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-02 Thread Andrew Lunn
> +static struct phy_driver rockchip_phy_driver[] = { > +{ > + .phy_id = 0x1234d400, > + .phy_id_mask= 0xfff0, > + .name = "Rockchip internal EPHY", > + .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause > +

Re: [PATCH] userfaultfd_zeropage: return -ENOSPC in case mm has gone

2017-08-02 Thread Dr. David Alan Gilbert
* Mike Rapoport (r...@linux.vnet.ibm.com) wrote: > On Mon, Jul 31, 2017 at 03:45:08PM +0200, Michal Hocko wrote: > > On Mon 31-07-17 15:32:47, Andrea Arcangeli wrote: > > > On Mon, Jul 31, 2017 at 02:22:04PM +0200, Michal Hocko wrote: > > > > On Thu 27-07-17 09:26:59, Mike Rapoport wrote: > > > > >

Re: [PATCH] sched/fair: Sync task util before slow-path wakeup

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 02:10:02PM +0100, Brendan Jackman wrote: > We use task_util in find_idlest_group via capacity_spare_wake. This > task_util is updated in wake_cap. However wake_cap is not the only > reason for ending up in find_idlest_group - we could have been sent > there by wake_wide. So

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Laurent Pinchart
Hi Livu, On Wednesday 02 Aug 2017 13:46:48 Liviu Dudau wrote: > On Wed, Aug 02, 2017 at 01:27:23PM +0200, Daniel Vetter wrote: > > On Wed, Aug 2, 2017 at 1:20 PM, Liviu Dudau wrote: > >> On Thu, Jul 20, 2017 at 03:01:16PM +0200, Maxime Ripard wrote: > >>> +/** > >>> + * drm_atomic_helper_commit_t

Re: [PATCH] sched/fair: Sync task util before slow-path wakeup

2017-08-02 Thread Brendan Jackman
On Wed, Aug 02 2017 at 13:24, Peter Zijlstra wrote: > On Wed, Aug 02, 2017 at 02:10:02PM +0100, Brendan Jackman wrote: >> We use task_util in find_idlest_group via capacity_spare_wake. This >> task_util is updated in wake_cap. However wake_cap is not the only >> reason for ending up in find_idlest

[PATCH v1] platform/x86: wmi: Switch to use new generic UUID API

2017-08-02 Thread Andy Shevchenko
There are new types and helpers that are supposed to be used in new code. As a preparation to get rid of legacy types and API functions do the conversion here. While here, update Copyright to reflect this change along with previous one for the topic. Signed-off-by: Andy Shevchenko --- drivers/

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Liviu Dudau
On Wed, Aug 02, 2017 at 04:27:27PM +0300, Laurent Pinchart wrote: > Hi Livu, > > On Wednesday 02 Aug 2017 13:46:48 Liviu Dudau wrote: > > On Wed, Aug 02, 2017 at 01:27:23PM +0200, Daniel Vetter wrote: > > > On Wed, Aug 2, 2017 at 1:20 PM, Liviu Dudau wrote: > > >> On Thu, Jul 20, 2017 at 03:01:16

Re: [PATCH 3/4] input: Add MediaTek PMIC keys support

2017-08-02 Thread Chen Zhong
Hi Dmitry, Thanks for your suggestions. I will fix them in the next version. On Tue, 2017-08-01 at 22:10 -0700, Dmitry Torokhov wrote: > Hi Chen, > > On Wed, Aug 02, 2017 at 11:17:19AM +0800, Chen Zhong wrote: > > This patch add support to handle MediaTek PMIC MT6397/MT6323 key > > interrupts in

Re: [patch v1 1/2] drivers: jtag: Add JTAG core driver

2017-08-02 Thread Greg KH
On Wed, Aug 02, 2017 at 04:18:37PM +0300, Oleksandr Shamray wrote: > JTAG class driver provide infrastructure to support hardware/software > JTAG platform drivers. It provide user layer API interface for flashing > and debugging external devices which equipped with JTAG interface > using standard t

Re: [patch v1 1/2] drivers: jtag: Add JTAG core driver

2017-08-02 Thread Greg KH
On Wed, Aug 02, 2017 at 04:18:37PM +0300, Oleksandr Shamray wrote: > +menuconfig JTAG > + tristate "JTAG support" > + default n 'n' is always the default, no need for this line at all. thanks, greg k-h

[RFC PATCH] module: use relative references for __ksymtab entries

2017-08-02 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

Re: [PATCH] staging: vboxvideo: use drm_gem_object_put instead of drm_gem_object_unreference

2017-08-02 Thread Cihangir Akturk
On Wed, Aug 02, 2017 at 02:38:50PM +0200, Daniel Vetter wrote: > On Wed, Aug 2, 2017 at 1:46 AM, Cihangir Akturk wrote: > > drm_gem_object_unreference is a compatibility alias for drm_gem_object_put > > so should > > not be used by new code. > > > > This patch fixes the following warning reported

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Laurent Pinchart
Hi Liviu, On Wednesday 02 Aug 2017 14:32:06 Liviu Dudau wrote: > On Wed, Aug 02, 2017 at 04:27:27PM +0300, Laurent Pinchart wrote: > > On Wednesday 02 Aug 2017 13:46:48 Liviu Dudau wrote: > >> On Wed, Aug 02, 2017 at 01:27:23PM +0200, Daniel Vetter wrote: > >>> On Wed, Aug 2, 2017 at 1:20 PM, Livi

Re: [RFC 06/12] Clk: qcom: support for dynamic updating the PLL

2017-08-02 Thread Abhishek Sahu
On 2017-08-02 02:42, Stephen Boyd wrote: On 07/30, Abhishek Sahu wrote: On 2017-07-29 00:04, Stephen Boyd wrote: >On 07/27, Abhishek Sahu wrote: 2. Following patch fixes different issue although flag name is common. https://patchwork.kernel.org/patch/9662917/ Shall I include this pat

[PATCH v3 0/5] powerpc/mm: Fix kernel protection and implement STRICT_KERNEL_RWX on PPC32

2017-08-02 Thread Christophe Leroy
This patch set implements STRICT_KERNEL_RWX on Powerpc32 after fixing a few issues related to kernel code page protection. At the end we take the opportunity to get rid of some unneccessary/outdated fixmap stuff. Changes from v2 to v3: * Rebased on latest linux-powerpc/merge branch * Function rem

[PATCH v3 1/5] powerpc/mm: Ensure change_page_attr() doesn't invalidate pinned TLBs

2017-08-02 Thread Christophe Leroy
__change_page_attr() uses flush_tlb_page(). flush_tlb_page() uses tlbie instruction, which also invalidates pinned TLBs, which is not what we expect. This patch modifies the implementation to use flush_tlb_kernel_range() instead. This will make use of tlbia which will preserve pinned TLBs. Signed

Re: [PATCH] z3fold: use per-cpu unbuddied lists

2017-08-02 Thread kbuild test robot
Hi Vitaly, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.13-rc3 next-20170802] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Vitaly-Wool/z3fold-use-per-cpu-unbuddied

Re: [PATCH 1/3] percpu: Add alloc_percpu_aligned()

2017-08-02 Thread Christopher Lameter
On Wed, 2 Aug 2017, Huang, Ying wrote: > --- a/include/linux/percpu.h > +++ b/include/linux/percpu.h > @@ -129,5 +129,8 @@ extern phys_addr_t per_cpu_ptr_to_phys(void *addr); > #define alloc_percpu(type) \ > (typeof(type) __percpu *)__alloc_percpu(s

[PATCH v3 3/5] powerpc/mm: Implement STRICT_KERNEL_RWX on PPC32

2017-08-02 Thread Christophe Leroy
This patch implements STRICT_KERNEL_RWX on PPC32. As for CONFIG_DEBUG_PAGEALLOC, it deactivates BAT and LTLB mappings in order to allow page protection setup at the level of each page. As BAT/LTLB mappings are deactivated, there might be a performance impact. Signed-off-by: Christophe Leroy ---

[PATCH v3 4/5] powerpc/mm: declare some local functions static

2017-08-02 Thread Christophe Leroy
get_pteptr() and __mapin_ram_chunk() are only used locally, so define them static Signed-off-by: Christophe Leroy --- v3: no change arch/powerpc/include/asm/book3s/32/pgtable.h | 3 --- arch/powerpc/include/asm/nohash/32/pgtable.h | 3 --- arch/powerpc/mm/pgtable_32.c | 4 ++--

Re: [PATCH -v2 1/4] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Mel Gorman
On Wed, Aug 02, 2017 at 03:05:50PM +0200, Peter Zijlstra wrote: > On Wed, Aug 02, 2017 at 02:00:40PM +0100, Mel Gorman wrote: > > On Wed, Aug 02, 2017 at 01:38:38PM +0200, Peter Zijlstra wrote: > > > For this to work we need to rework migrate_misplaced_transhuge_page() > > > a little and move the t

Re: [PATCH 3/4] input: Add MediaTek PMIC keys support

2017-08-02 Thread Chen Zhong
On Wed, 2017-08-02 at 12:33 +0200, Matthias Brugger wrote: > > On 08/02/2017 05:17 AM, Chen Zhong wrote: > > This patch add support to handle MediaTek PMIC MT6397/MT6323 key > > interrupts including pwrkey and homekey, also add setting for > > long press key shutdown behavior. > > > > Signed-off-

[PATCH v3 5/5] powerpc/mm: Simplify __set_fixmap()

2017-08-02 Thread Christophe Leroy
__set_fixmap() uses __fix_to_virt() then does the boundary checks by it self. Instead, we can use fix_to_virt() which does the verification at build time. For this, we need to use it inline so that GCC can see the real value of idx at buildtime. In the meantime, we remove the 'fixmaps' variable. T

[PATCH v3 2/5] powerpc/mm: Fix kernel RAM protection after freeing unused memory on PPC32

2017-08-02 Thread Christophe Leroy
As seen below, allthough the init sections have been freed, the associated memory area is still marked as executable in the page tables. ~ dmesg [5.860093] Freeing unused kernel memory: 592K (c057 - c0604000) ~ cat /sys/kernel/debug/kernel_page_tables ---[ Start of kernel VM ]--- 0xc0

Re: [PATCH 0/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-02 Thread Christopher Lameter
On Wed, 2 Aug 2017, Huang, Ying wrote: > To allocate cache line size aligned percpu memory dynamically, > alloc_percpu_aligned() is introduced and used in iova drivers too. alloc_percpu() already aligns objects as specified when they are declared. Moreover the function is improperly named since

Re: [PATCH v2 08/25] mtd: nand: qcom: reorganize nand page write

2017-08-02 Thread Abhishek Sahu
On 2017-08-02 11:31, Archit Taneja wrote: On 07/19/2017 05:17 PM, Abhishek Sahu wrote: Each NAND page consist of multiple codewords. Following is sequence for NAND page write according to hardware guide. 1. Program Power-up configuration, page row, page column address and flash configuratio

Re: [PATCH] misc: Kconfig: fix missing tristate prompt and help for LIS3LV02D

2017-08-02 Thread Greg Kroah-Hartman
On Wed, Aug 02, 2017 at 08:23:35AM +0200, H. Nikolaus Schaller wrote: > Signed-off-by: H. Nikolaus Schaller > --- > drivers/misc/Kconfig | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) I can't take patches without any changelog text at all, sorry. greg k-h

Re: [PATCH v2 10/25] mtd: nand: qcom: reorganize nand devices probing

2017-08-02 Thread Abhishek Sahu
On 2017-08-02 13:51, Archit Taneja wrote: On 07/19/2017 05:17 PM, Abhishek Sahu wrote: This is reorganization of exiting code and will not change any functionality. The NAND controller supports multiple NAND device with different page size. The subsequent patch allocate memory which depends upon

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Liviu Dudau
On Wed, Aug 02, 2017 at 04:49:16PM +0300, Laurent Pinchart wrote: > Hi Liviu, > > On Wednesday 02 Aug 2017 14:32:06 Liviu Dudau wrote: > > On Wed, Aug 02, 2017 at 04:27:27PM +0300, Laurent Pinchart wrote: > > > On Wednesday 02 Aug 2017 13:46:48 Liviu Dudau wrote: > > >> On Wed, Aug 02, 2017 at 01:

Re: [PATCH v2 14/25] mtd: nand: qcom: add and initialize QPIC DMA resources

2017-08-02 Thread Abhishek Sahu
On 2017-08-02 14:11, Archit Taneja wrote: On 07/19/2017 05:18 PM, Abhishek Sahu wrote: 1. QPIC NAND uses 3 BAM channels: command, data tx and data rx while EBI2 NAND uses only single ADM channel. 2. CRCI is only required for ADM DMA and its not required for s/its/it's I Will fix this.

Re: [PATCH v1] crypto: caam - set hwrng quality level

2017-08-02 Thread Horia Geantă
On 7/20/2017 4:08 PM, Harald Freudenberger wrote: > On 07/19/2017 08:13 PM, Oleksij Rempel wrote: >> On Wed, Jul 19, 2017 at 04:53:21PM +, Horia Geantă wrote: >>> On 7/19/2017 7:32 PM, Oleksij Rempel wrote: On Wed, Jul 19, 2017 at 12:49:47PM +, Horia Geantă wrote: > On 7/19/2017 10

[PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D

2017-08-02 Thread H. Nikolaus Schaller
fix missing tristate prompt and add help for LIS3LV02D Signed-off-by: H. Nikolaus Schaller --- drivers/misc/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 8136dc7e863d..41781d61eac7 100644 --- a/drivers/misc/Kconf

[PATCH] base: topology: constify attribute_group structures.

2017-08-02 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/base/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

RE: [PATCH] Adding Agile-SD TCP module and modifying Kconfig and Makefile

2017-08-02 Thread David Laight
From: mohamedalrshah > Sent: 02 August 2017 05:44 > Published: > Alrshah, M.A., Othman, M., Ali, B. and Hanapi, Z.M., 2015. Agile-SD: a > Linux-based > TCP congestion control algorithm for supporting high-speed and short-distance > networks. > Journal of Network and Computer Applications, 55, pp.

[PATCH] drivers/fsi: add const to bin_attribute structures

2017-08-02 Thread Bhumika Goyal
Declare bin_attribute structures as const as they are only passed as an argument to the function device_create_bin_file. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/fsi/fsi-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-02 Thread Peter Ujfalusi
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-08-02 16:11, Pierre Yves MORDRET wrote: Our SoC works with or without DMAMUX. Both binding is allowed. Using only DMA a ChannelId and request line is part of

Re: [PATCH v2 2/3] arm/syscalls: Optimize address limit check

2017-08-02 Thread Thomas Garnier
On Wed, Jul 26, 2017 at 10:00 AM, Thomas Garnier wrote: > Disable the generic address limit check in favor of an architecture > specific optimized implementation. The generic implementation using > pending work flags did not work well with ARM and alignment faults. > > The address limit is checked

Re: [patch v1 0/2] JTAG driver introduction

2017-08-02 Thread Andrew Lunn
On Wed, Aug 02, 2017 at 04:18:36PM +0300, Oleksandr Shamray wrote: > When a need raise up to use JTAG interface for system's devices > programming or CPU debugging, it could be done from the external > JTAG master controller. > > For such purpose, usually the user layer > application implements j

Re: [PATCH v2 02/22] fpga: add FPGA device framework

2017-08-02 Thread Wu Hao
On Tue, Aug 01, 2017 at 04:04:44PM -0500, Alan Tull wrote: > On Tue, Aug 1, 2017 at 3:43 AM, Wu Hao wrote: > > On Mon, Jul 31, 2017 at 04:40:16PM -0500, Alan Tull wrote: > >> On Thu, Jul 27, 2017 at 2:10 PM, Rob Herring wrote: > >> > On Thu, Jul 27, 2017 at 11:35 AM, Alan Tull wrote: > >> >> On

Re: [PATCH -v2 1/4] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 02:52:03PM +0100, Mel Gorman wrote: > On Wed, Aug 02, 2017 at 03:05:50PM +0200, Peter Zijlstra wrote: > > On Wed, Aug 02, 2017 at 02:00:40PM +0100, Mel Gorman wrote: > > > On Wed, Aug 02, 2017 at 01:38:38PM +0200, Peter Zijlstra wrote: > > > > For this to work we need to rew

Re: [patch v1 1/2] drivers: jtag: Add JTAG core driver

2017-08-02 Thread Andrew Lunn
> +void jtag_unregister(struct jtag *jtag) > +{ > + struct device *dev = jtag->dev; > + > + mutex_lock(&jtag_mutex); > + list_add_tail(&jtag->list, &jtag_list); add? > + mutex_unlock(&jtag_mutex); > + cdev_del(&jtag->cdev); > + device_unregister(dev); > + ida_simple_re

Re: [PATCH 0/3] FPGA Manager support for FPP via FT232H FT245-FIFO

2017-08-02 Thread Alan Tull
On Wed, Aug 2, 2017 at 6:36 AM, Eric Schwarz wrote: > Dear all, > > DENX Software Engineering develops and brings this driver to mainline on > behalf of us (ARRI*). > > Since there was a lot of discussion around this patch series I would highly > appreciate if someone could sum up what needs to be

Re: [PATCH] staging: vboxvideo: use drm_gem_object_put instead of drm_gem_object_unreference

2017-08-02 Thread Daniel Vetter
On Wed, Aug 2, 2017 at 3:47 PM, Cihangir Akturk wrote: > On Wed, Aug 02, 2017 at 02:38:50PM +0200, Daniel Vetter wrote: >> On Wed, Aug 2, 2017 at 1:46 AM, Cihangir Akturk wrote: >> > drm_gem_object_unreference is a compatibility alias for drm_gem_object_put >> > so should >> > not be used by new

[PATCH] [media] solo6x10: export hardware GPIO pins 8:31 to gpiolib interface

2017-08-02 Thread Anton Sviridenko
24 GPIO pins from 32 available on solo6x10 chips are exported to gpiolib. First 8 GPIOs are reserved for internal use on capture card boards, GPIOs in range 8:15 are configured as outputs to control relays, remaining 16:31 are configured as inputs to read sensor states. Now with this patch userspac

[PATCH] f2fs: do not change the valid_block value if cur_valid_map was wrongly set or cleared

2017-08-02 Thread Yunlong Song
Signed-off-by: Yunlong Song --- fs/f2fs/segment.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 40e40c5..9e3249a 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1540,6 +1540,8 @@ static void update_sit_entry(struct f2fs_sb_info *sbi

Re: [PATCH 16/18] tools include uapi: Grab a copy of linux/vhost.h

2017-08-02 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 02, 2017 at 12:19:18AM +0300, Michael S. Tsirkin escreveu: > On Tue, Aug 01, 2017 at 04:56:43PM -0300, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > > > We will use it to generate tables for beautifying ioctl's 'cmd' arg. > > > > Cc: Adrian Hunter > > Cc: Da

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Laurent Pinchart
Hi Liviu, On Wednesday 02 Aug 2017 14:57:30 Liviu Dudau wrote: > On Wed, Aug 02, 2017 at 04:49:16PM +0300, Laurent Pinchart wrote: > > On Wednesday 02 Aug 2017 14:32:06 Liviu Dudau wrote: > >> On Wed, Aug 02, 2017 at 04:27:27PM +0300, Laurent Pinchart wrote: > >>> On Wednesday 02 Aug 2017 13:46:48

[PATCH] FMC: add const to bin_attribute structure

2017-08-02 Thread Bhumika Goyal
Add const to bin_attribute structure as it is only passed to the functions sysfs_{remove/create}_bin_file. The corresponding arguments are of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/fmc/fmc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH 2/2] tpm: migrate pubek_show to struct tpm_buf

2017-08-02 Thread Jarkko Sakkinen
On Tue, Jun 20, 2017 at 11:38:03AM +0200, Jarkko Sakkinen wrote: > Migrated pubek_show to struct tpm_buf and cleaned up its implementation. > Previously the output parameter structure was declared but left > completely unused. Now it is used to refer different fields of the > output. We can move it

[GIT PULL] SCSI fixes for 4.13-rc3

2017-08-02 Thread James Bottomley
This seven is mostly minor build, Kconfig and error leg fixes. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Arnd Bergmann (1): scsi: lpfc: fix linking against modular NVMe support Dan Carpenter (1): scsi

Re: [patch v1 1/2] drivers: jtag: Add JTAG core driver

2017-08-02 Thread Neil Armstrong
On 08/02/2017 03:18 PM, Oleksandr Shamray wrote: > JTAG class driver provide infrastructure to support hardware/software > JTAG platform drivers. It provide user layer API interface for flashing > and debugging external devices which equipped with JTAG interface > using standard transactions. > >

Re: [PATCH] power: add const to bin_attribute structures

2017-08-02 Thread Bhumika Goyal
On Wed, Aug 2, 2017 at 3:59 PM, Bhumika Goyal wrote: > Add const to bin_attribute structures as they are only passed to the > functions sysfs_{remove/create}_bin_file or > device_{remove/create}_bin_file. The corresponding parameters > passed are of type const, so declare the structures to be cons

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-08-02 Thread Daniel Vetter
On Wed, Aug 2, 2017 at 3:27 PM, Laurent Pinchart wrote: > Hi Livu, > > On Wednesday 02 Aug 2017 13:46:48 Liviu Dudau wrote: >> On Wed, Aug 02, 2017 at 01:27:23PM +0200, Daniel Vetter wrote: >> > On Wed, Aug 2, 2017 at 1:20 PM, Liviu Dudau wrote: >> >> On Thu, Jul 20, 2017 at 03:01:16PM +0200, Max

Re: [PATCH v6 5/7] mm: make tlb_flush_pending global

2017-08-02 Thread kbuild test robot
Hi Minchan, [auto build test WARNING on linus/master] [also build test WARNING on v4.13-rc3] [cannot apply to next-20170802] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nadav-Amit/mm-migrate

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