[PATCH 1/2] dt-bindings: input: sitronix-st1232: document optional reset-gpios property

2019-01-29 Thread Martin Kepplinger
From: Martin Kepplinger The st1232 driver reads this via gpiod. Signed-off-by: Martin Kepplinger --- .../devicetree/bindings/input/touchscreen/sitronix-st1232.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/input/touchscreen/sitron

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggered

2019-01-29 Thread Heiko Carstens
seems to be something different. > > Moo. I ran the test loop all night (simply because I forgot to stop it) and > of course this does not trigger here. Could you try to gather a bit more > information with lightweight tracing? Yes, sure. However ;) I reproduced the above with v5.0-r

[PATCHv3 1/2] ARM64: dts: meson-gxbb-odroidc2: Fix usb phy reset warning

2019-01-29 Thread Anand Moon
Add missing vin-supply node 5.0V regulator setting to power to usb ports, changes help fix the usb reset warning. [ 795.380156] usb 1-1.2: reset high-speed USB device number 3 using dwc2 [ 798.356073] usb 1-1.2: reset high-speed USB device number 3 using dwc2 [ 801.331999] usb 1-1.2: reset high

[PATCHv3 0/2] Odroid c2 usb fixs

2019-01-29 Thread Anand Moon
This is follow up on my previous patches. Changes rebase on mainline: 5.0-rc4 [0] https://lore.kernel.org/patchwork/patch/1031243/ [1] https://lore.kernel.org/patchwork/patch/1031243/ changes depend on phy patch [2] https://patchwork.kernel.org/patch/10777359/ As per Martin's suggestion and inp

[PATCHv3 2/2] ARM64: dts: meson-gxbb-odroidc2: Fix usb phy regulator power failed warning

2019-01-29 Thread Anand Moon
Override the dr_mode from "host" to "otg" for USB_HOST controller (usb0) changes help usb_phy0->usb0 initialization of OTG bus port. Changes fix the below warning. [1.183681] dwc2 c900.usb: c900.usb supply vusb_d not found, using dummy regulator [1.190627] dwc2 c900.usb: Link

Re: [PATCH] thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs

2019-01-29 Thread Phil Elwell
Hi Stefan, On 29/01/2019 09:44, Stefan Wahren wrote: > Hi Phil, > > Am 29.01.2019 um 10:10 schrieb Phil Elwell: >> "cat /sys/kernel/debug/bcm2835_thermal/regset" causes a NULL pointer >> dereference in bcm2835_thermal_debugfs. The driver makes use of the >> implementation details of the thermal f

Re: [PATCH v5 0/4] Reduce NUMA related overhead in perf record profiling on large server systems

2019-01-29 Thread Alexey Budankov
Hi, On 29.01.2019 12:14, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 22, 2019 at 08:45:12PM +0300, Alexey Budankov escreveu: >> >> It has been observed that trace reading thread runs on the same hw thread >> most of the time during perf record sampling collection. This scheduling >> layout leads

Re: ipmi_msghandler crashes in 4.19

2019-01-29 Thread Greg KH
On Tue, Jan 15, 2019 at 10:36:42AM -0800, Ivan Babrou wrote: > Hey, > > We've upgraded some machines from 4.14 to 4.19 and started seeing rare > crashes like these: > > [75855.909507] BUG: unable to handle kernel NULL pointer dereference > at 0d00 > [75855.925667] PGD 0 P4D 0 > [75855

Re: [PATCH v2 09/21] memblock: drop memblock_alloc_base()

2019-01-29 Thread Michael Ellerman
Mike Rapoport writes: > The memblock_alloc_base() function tries to allocate a memory up to the > limit specified by its max_addr parameter and panics if the allocation > fails. Replace its usage with memblock_phys_alloc_range() and make the > callers check the return value and panic in case of e

Re: [PATCHv5 0/7] Add coresight support for SDM845, MSM8998 and MSM8996

2019-01-29 Thread Marc Gonzalez
On 28/01/2019 20:13, Sai Prakash Ranjan wrote: > This patch series adds support for coresight on SDM845, MSM8998, and MSM8996. > > Patch 2 adds device tree nodes for MSM8998 coresight components. > > Patch 2 depends on MSM8998 rpm clocks and rpmcc nodes: > > https://lore.kernel.org/lkml/154509

Re: [PATCH V2 2/6] clocksource: tegra: add Tegra210 timer driver

2019-01-29 Thread Thierry Reding
On Tue, Jan 29, 2019 at 10:41:55AM +0200, Peter De Schrijver wrote: > On Mon, Jan 28, 2019 at 04:09:08PM +0100, Thierry Reding wrote: > > ... > > > > > Up to here this is a duplicate of timer-tegra20.c. And a lot of > > tegra210_timer_init() is the same as tegra20_timer_init() as well. Can't > >

Re: [PATCH] input: goodix - support Goodix gt5688

2019-01-29 Thread Bastien Nocera
On Tue, 2019-01-29 at 10:16 +0100, Guido Günther wrote: > Hi, > On Mon, Jan 28, 2019 at 07:24:33PM +0100, Bastien Nocera wrote: > > On Mon, 2019-01-28 at 18:03 +0100, Guido Günther wrote: > > > From what I've seen in vendor trees it's fine to treat this as > > > gt1x¹. > > > > > > [1]: > > > http

[PATCH 0/2] Fix TSC issues on (some) AMD Ryzen based systems

2019-01-29 Thread Jan H . Schönherr
My newly acquired AMD Ryzen Threadripper based system seems to have some TSC quirks, which go away once the system is up. Given the discussion in https://lkml.org/lkml/2019/1/28/1356 I don't seem to be the only one, and it does not seem to be Threadripper specific. The first patch addresses pres

[PATCH 2/5 v10] regulator: fixed/gpio: Pull inversion/OD into gpiolib

2019-01-29 Thread Linus Walleij
This pushes the handling of inversion semantics and open drain settings to the GPIO descriptor and gpiolib. All affected board files are also augmented. This is especially nice since we don't have to have any confusing flags passed around to the left and right littering the fixed and GPIO regulato

[PATCH 5/5 v10] regulator: core: Only support passing enable GPIO descriptors

2019-01-29 Thread Linus Walleij
Now that we changed all providers to pass descriptors into the core for enable GPIOs instead of a global GPIO number, delete the support for passing GPIO numbers in, and we get a cleanup and size reduction in the core, and from a GPIO point of view we use the modern, cleaner interface. Tested-by:

[PATCH 4/5 v10] regulator: gpio: Simplify probe path

2019-01-29 Thread Linus Walleij
Use devm_* managed device resources and create a local struct device *dev variable to simplify the code inside probe(). Tested-by: Marek Szyprowski Signed-off-by: Linus Walleij --- ChangeLog v9->v10: - Properly change &pdev->dev to local dev pointer in this patch, this was acccidentally exploi

[PATCH 1/5 v10] regulator: gpio: Convert to use descriptors

2019-01-29 Thread Linus Walleij
This converts the GPIO regulator driver to use decriptors only. We have to let go of the array gpio handling: the fetched descriptors are handled individually anyway, and the array retrieveal function does not make it possible to retrieve each GPIO descriptor with unique flags. Instead get them on

[PATCH 3/5 v10] regulator: fixed/gpio: Update device tree bindings

2019-01-29 Thread Linus Walleij
Deprecate the open drain binding for fixed regulator and indicate that we prefer this to be passed in the GPIO phandle flags. Clarify that the line inversion semantics for fixed and GPIO regulators completely overrides the active low flags in the phandle flags. Unfortunately this can not be chang

[PATCH 2/2] cpu/hotplug: Unfreeze sibling CPU first on resume from S3

2019-01-29 Thread Jan H . Schönherr
At least one system declares the TSC unstable after resume from S3, because the TSC is observed going backwards up to roughly 500 cycles every now and then, when bringing secondary CPUs back online. The system in question is an AMD Ryzen Threadripper 2950X, microcode 0x800820b, on an ASRock Fatal1

[PATCH 1/2] x86/tsc: Allow quick PIT calibration despite interruptions

2019-01-29 Thread Jan H . Schönherr
Some systems experience regular interruptions (60 Hz SMI?), that prevent the quick PIT calibration from succeeding: individual interruptions can be so long, that the PIT MSB is observed to decrement by 2 or 3 instead of 1. The existing code cannot recover from this. The system in question is an AM

Re: [PATCH v3] oom, oom_reaper: do not enqueue same task twice

2019-01-29 Thread Tetsuo Handa
Johannes Weiner wrote: > On Sun, Jan 27, 2019 at 11:57:38PM +0900, Tetsuo Handa wrote: > > This bug existed since the OOM reaper became invokable from > > task_will_free_mem(current) path in out_of_memory() in Linux 4.7, > > but memcg's group oom killing made it easier to trigger this bug by > > ca

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggered

2019-01-29 Thread Peter Zijlstra
On Tue, Jan 29, 2019 at 11:24:09AM +0100, Heiko Carstens wrote: > Yes, sure. However ;) I reproduced the above with v5.0-rc4 + your > patch. And now I am trying to reproduce with linux-next 20190129 + > your patch and it doesn't trigger. Did I miss a patch which is only in >

Re: [PATCH] perf mem/c2c: Fix perf_mem_events to support powerpc

2019-01-29 Thread Ravi Bangoria
On 1/29/19 3:23 PM, Arnaldo Carvalho de Melo wrote: > I think its just a tooling side, I haven't processed it because I'm > waiting for Ravi to address Jiri's comment, after that I'm happy to put > it in my perf/urgent branch that I'm brewing to push to Ingo today or > tomorrow. Ah.. Will try to

Re: [PATCH V3] sched/cpufreq: calculate util / cap in advance in map_util_freq()

2019-01-29 Thread Peter Zijlstra
On Mon, Jan 28, 2019 at 02:27:21PM +0800, Chunyan Zhang wrote: > From: "vincent.wang" > > When a task that is in_iowait state is enqueued, cpufreq_update_util() > will be invoked with SCHED_CPUFREQ_IOWAIT flag. In this case,the value > of util and cap, which are parameters used in map_util_freq()

Re: [PATCH 2/2] iommu/arm-smmu: Add support for non-coherent page table mappings

2019-01-29 Thread Vivek Gautam
Hi Will, On Tue, Jan 22, 2019 at 11:14 AM Will Deacon wrote: > > On Mon, Jan 21, 2019 at 11:35:30AM +0530, Vivek Gautam wrote: > > On Sun, Jan 20, 2019 at 5:31 AM Will Deacon wrote: > > > On Thu, Jan 17, 2019 at 02:57:18PM +0530, Vivek Gautam wrote: > > > > Adding a device tree option for arm sm

Re: possible deadlock in __do_page_fault

2019-01-29 Thread Tetsuo Handa
On 2019/01/29 1:45, Joel Fernandes wrote: >> freed += range_size(range); >> +mutex_unlock(&ashmem_mutex); >> +f->f_op->fallocate(f, >> + FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, >> + start, end - sta

Re: [PATCH v3 5/5] psi: introduce psi monitor

2019-01-29 Thread Peter Zijlstra
On Thu, Jan 24, 2019 at 01:15:18PM -0800, Suren Baghdasaryan wrote: > static void psi_update_work(struct work_struct *work) > { > struct delayed_work *dwork; > struct psi_group *group; > + bool first_pass = true; > + u64 next_update; > + u32 change_mask; > + int pollin

Re: [PATCH v2 0/4] perf: enable compression of record mode trace to save storage space

2019-01-29 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 28, 2019 at 09:40:28AM +0300, Alexey Budankov escreveu: > The patch set implements runtime trace compression for record mode and > trace file decompression for report mode. Zstandard API [1] is used for > compression/decompression of data that come from perf_events kernel Interestin

[PATCH 0/5] introduce unaligned access under a Kconfig option

2019-01-29 Thread Eugeniy Paltsev
As of today we enable unaligned access unconditionally on ARCv2. Lets move it under Kconfig option and use it actively in SW if it is enabled. While I'm at it fix and optimise ARCv2 memcpy implementaion. Eugeniy Paltsev (5): ARCv2: lib: memcpy: fix doing prefetchw outside of buffer ARCv2: int

[PATCH 5/5] ARCv2: LIB: MEMCPY: fixed and optimised routine

2019-01-29 Thread Eugeniy Paltsev
Optimise code to use efficient unaligned memory access which is available on ARCv2. This allows us to really simplify memcpy code and speed up the code one and a half times (in case of unaligned source or destination). Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 4

[PATCH 4/5] ARCv2: use unaligned access in SW

2019-01-29 Thread Eugeniy Paltsev
Select HAVE_EFFICIENT_UNALIGNED_ACCESS and allow GCC to generate unaligned data if we enable enable unaligned access in HW. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 1 + arch/arc/Makefile | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig

[PATCH 1/5] ARCv2: lib: memcpy: fix doing prefetchw outside of buffer

2019-01-29 Thread Eugeniy Paltsev
ARCv2 optimized memcpy uses PREFETCHW instruction for prefetching the next cache line but doesn't ensure that the line is not past the end of the buffer. PRETECHW changes the line ownership and marks it dirty, which can cause data corruption if this area is used for DMA IO. Fix the issue by avoidi

[PATCH 2/5] ARCv2: introduce unaligned access under a Kconfig option

2019-01-29 Thread Eugeniy Paltsev
As of today we enable unaligned access unconditionally on ARCv2. Lets move it under Kconfig option so we can disable it in case of using HW configuration which lacks of it. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 8 arch/arc/include/asm/irqflags-arcv2.

[PATCH 3/5] ARCv2: Enable unaligned access in early ASM code

2019-01-29 Thread Eugeniy Paltsev
Even though we do enable AD bit in arc_init_IRQ() we need to do it in early ASM code otherwise we may face unaligned data until we reach arc_init_IRQ() because GCC starting from v8.1.0 actively generates unaligned data as it assumes that: * ARCv2 always has support of unaliged data * This support

Re: [PATCH] qcom: apr: Make apr callbacks in non-atomic context

2019-01-29 Thread Srinivas Kandagatla
Hi Andy, Could you queue this up for 5.1 cycle! We would need this to get the audio working on 820c along with WCD9335 slimbus codec! thanks, srini On 15/11/2018 18:49, Srinivas Kandagatla wrote: APR communication with DSP is not atomic in nature. Its request-response type. Trying to preten

Re: [PATCH v2 0/4] perf: enable compression of record mode trace to save storage space

2019-01-29 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 29, 2019 at 11:45:43AM +0100, Arnaldo Carvalho de Melo escreveu: > Em Mon, Jan 28, 2019 at 09:40:28AM +0300, Alexey Budankov escreveu: > > The patch set implements runtime trace compression for record mode and > > trace file decompression for report mode. Zstandard API [1] is used for

RE: [PATCH v2 1/1] arm64: Add workaround for Fujitsu A64FX erratum 010001

2019-01-29 Thread Zhang, Lei
Hi Catalin, > -Original Message- > From: linux-arm-kernel > [mailto:linux-arm-kernel-boun...@lists.infradead.org] On Behalf Of > Catalin Marinas > Sent: Saturday, January 26, 2019 3:08 AM > To: Zhang, Lei/張 雷 > Cc: 'Mark Rutland'; 'will.dea...@arm.com'; > 'linux-kernel@vger.kernel.org'; > '

[PATCH] devres: always use dev_name() in devm_ioremap_resource()

2019-01-29 Thread Sergei Shtylyov
devm_ioremap_resource() prefers calling devm_request_mem_region() with a resource name instead of a device name -- this looks pretty iff a resource name isn't specified via a device tree with a "reg-names" property (in this case, a resource name is set to a device node's full name), but if it is, i

[PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init

2019-01-29 Thread Colin King
From: Colin Ian King The call to meson_chip_buffer_init is not assigning ret, however, ret is being checked for failure. Fix this by adding in the missing assignment. Fixes: 2d570b34b41a ("mtd: rawnand: meson: add support for Amlogic NAND flash controller") Signed-off-by: Colin Ian King --- d

Re: [PATCH] lightnvm: pblk: prevent stall due to wb threshold

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 11.15, Hans Holmberg > wrote: > > On Fri, Jan 25, 2019 at 2:08 PM Matias Bjørling wrote: >> On 1/25/19 11:09 AM, Javier González wrote: >>> In order to respect mw_cuinits, pblk's write buffer maintains a >>> backpointer to protect data not yet persisted; when writing to th

[PATCH v3] HID: debug: fix the ring buffer implementation

2019-01-29 Thread Vladis Dronov
Ring buffer implementation in hid_debug_event() and hid_debug_events_read() is strange allowing lost or corrupted data. After commit 717adfdaf147 ("HID: debug: check length before copy_to_user()") it is possible to enter an infinite loop in hid_debug_events_read() by providing 0 as count, this lock

Re: [PATCH 07/10] soc: mediatek: add cmdq_dev_get_event function

2019-01-29 Thread CK Hu
Hi, Bibby: On Tue, 2019-01-29 at 15:32 +0800, Bibby Hsieh wrote: > When client ask gce to clear or wait for event, > client need to pass event number to the API. > We suggest client store the event information in device node, > so we provide an API for client parse the event property. > > Signed-

Re: [PATCH v2] HID: debug: fix the ring buffer implementation

2019-01-29 Thread Vladis Dronov
> > I still think that > > > > __set_current_state(TASK_RUNNING); > > > > will look a bit better, but this is really minor. > > Would you mind sending a v3 with this change? I'll apply it ASAP. Done, please, see inbox. Best regards, Vladis Dronov | Red Hat, Inc. | Product Sec

Re: [PATCH 10/13] gpio: max77650: add GPIO support

2019-01-29 Thread Bartosz Golaszewski
czw., 24 sty 2019 o 11:30 Linus Walleij napisał(a): > > On Mon, Jan 21, 2019 at 6:07 PM Bartosz Golaszewski wrote: > > > Thank you for your review. While I think you're right about the issue > > being present in this driver, I'm not sure it's really a problem. Do > > we actually require every gpi

Re: [PATCH v2 3/9] irq/irq_sim: provide irq_sim_fire_type()

2019-01-29 Thread Bartosz Golaszewski
wt., 29 sty 2019 o 10:07 Uwe Kleine-König napisał(a): > > Hello Bartosz, > > On Tue, Jan 29, 2019 at 09:44:05AM +0100, Bartosz Golaszewski wrote: > > -void irq_sim_fire(struct irq_sim *sim, unsigned int offset) > > +void irq_sim_fire_type(struct irq_sim *sim, > > +unsigned int

[PATCH BUGFIX IMPROVEMENT 14/14] block, bfq: fix in-service-queue check for queue merging

2019-01-29 Thread Paolo Valente
When a new I/O request arrives for a bfq_queue, say Q, bfq checks whether that request is close to (a) the head request of some other queue waiting to be served, or (b) the last request dispatched for the in-service queue (in case Q itself is not the in-service queue) If a queue, say Q2, is found

[PATCH BUGFIX IMPROVEMENT 00/14] batch of patches for next linux release

2019-01-29 Thread Paolo Valente
Hi, this batch of patches provides fixes and improvements for throughput and latency. Every patch has been under test for at least one month, some patches for much longer. Thanks, Paolo Paolo Valente (14): block, bfq: do not consider interactive queues in srt filtering block, bfq: avoid selec

[PATCH BUGFIX IMPROVEMENT 01/14] block, bfq: do not consider interactive queues in srt filtering

2019-01-29 Thread Paolo Valente
The speed at which a bfq_queue receives I/O is one of the parameters by which bfq decides whether the queue is soft real-time (i.e., whether the queue contains the I/O of a soft real-time application). In particular, when a bfq_queue remains without outstanding I/O requests, bfq computes the minimu

[PATCH BUGFIX IMPROVEMENT 06/14] block, bfq: split function bfq_better_to_idle

2019-01-29 Thread Paolo Valente
This is a preparatory commit for commits that need to check only one of the two main reasons for idling. This change should also improve the quality of the code a little bit, by splitting a function that contains very long, non-trivial and little related comments. Signed-off-by: Paolo Valente ---

[PATCH BUGFIX IMPROVEMENT 02/14] block, bfq: avoid selecting a queue w/o budget

2019-01-29 Thread Paolo Valente
To boost throughput on devices with internal queueing and in scenarios where device idling is not strictly needed, bfq immediately starts serving a new bfq_queue if the in-service bfq_queue remains without pending I/O, even if new I/O may arrive soon for the latter queue. Then, if such I/O actually

[PATCH BUGFIX IMPROVEMENT 07/14] block, bfq: do not plug I/O of in-service queue when harmful

2019-01-29 Thread Paolo Valente
If the in-service bfq_queue is sync and remains temporarily idle, then I/O dispatching (from other queues) may be plugged. It may be dome for two reasons: either to boost throughput, or to preserve the bandwidth share of the in-service queue. In the first case, if the I/O of the in-service queue, w

[PATCH BUGFIX IMPROVEMENT 08/14] block, bfq: unconditionally plug I/O in asymmetric scenarios

2019-01-29 Thread Paolo Valente
bfq detects the creation of multiple bfq_queues shortly after each other, namely a burst of queue creations in the terminology used in the code. If the burst is large, then no queue in the burst is granted - either I/O-dispatch plugging when the queue remains temporarily idle while in service; -

[PATCH BUGFIX IMPROVEMENT 09/14] block, bfq: fix sequential rq detection in rate estimation

2019-01-29 Thread Paolo Valente
In bfq_update_peak_rate, to check whether an I/O request rq is sequential, only the seek distance of rq w.r.t. the last request dispatched is controlled. This is not sufficient for non-rotational storage, where the size of rq is at least as relevant. This commit adds the missing control. Signed-of

[PATCH BUGFIX IMPROVEMENT 11/14] block, bfq: reduce threshold for detecting command queueing

2019-01-29 Thread Paolo Valente
bfq borrowed from cfq a simple heuristic for detecting whether the drive performs command queueing: check whether the average number of in-flight requests is above a given threshold. Unfortunately this heuristic does fail to detect queueing (on drives with queueing) if processes doing I/O are few a

[PATCH BUGFIX IMPROVEMENT 05/14] block, bfq: consider also ioprio classes in symmetry detection

2019-01-29 Thread Paolo Valente
In asymmetric scenarios, i.e., when some bfq_queue or bfq_group needs to be guaranteed a different bandwidth than other bfq_queues or bfq_groups, these service guaranteed can be provided only by plugging I/O dispatch, completely or partially, when the queue in service remains temporarily empty. A c

[PATCH BUGFIX IMPROVEMENT 13/14] block, bfq: do not overcharge writes in asymmetric scenarios

2019-01-29 Thread Paolo Valente
Writes tend to starve reads. bfq counters this problem by overcharging writes with an inflated service w.r.t. the actual service (number of sector written) they receive. Yet his overcharging is useless, and actually causes unfairness in the opposite direction, when bfq happens to be enforcing stro

[PATCH BUGFIX IMPROVEMENT 12/14] block, bfq: port commit "cfq-iosched: improve hw_tag detection"

2019-01-29 Thread Paolo Valente
The original commit is commit 1a1238a7dd48 ("cfq-iosched: improve hw_tag detection") and has the following commit message. If active queue hasn't enough requests and idle window opens, cfq will not dispatch sufficient requests to hardware. In such situation, current code will zero hw_tag. But this

[PATCH BUGFIX IMPROVEMENT 04/14] block, bfq: remove case of redirected bic from insert_request

2019-01-29 Thread Paolo Valente
Before commit 18e5a57d7987 ("block, bfq: postpone rq preparation to insert or merge"), the destination queue for a request was chosen by a different hook than the one that then inserted the request. So, between the execution of the two hooks, the bic of the process generating the request could happ

[PATCH BUGFIX IMPROVEMENT 10/14] block, bfq: fix queue removal from weights tree

2019-01-29 Thread Paolo Valente
bfq maintains an ordered list, through a red-black tree, of unique weights of active bfq_queues. This list is used to detect whether there are active queues with differentiated weights. The weight of a queue is removed from the list when both the following two conditions become true: (1) the bfq_qu

[PATCH BUGFIX IMPROVEMENT 03/14] block, bfq: make sure queue budgets are not below service received

2019-01-29 Thread Paolo Valente
With some unlucky sequences of events, the function bfq_updated_next_req updates the current budget of a bfq_queue to a lower value than the service received by the queue using such a budget. Unfortunately, if this happens, then the return value of the function bfq_bfqq_budget_left becomes inconsis

[PATCH] XArray tests: allocation has to be GFP_ATOMIC under rcu_read_lock

2019-01-29 Thread Li RongQing
Signed-off-by: Li RongQing --- lib/test_xarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_xarray.c b/lib/test_xarray.c index c596a957f764..5b671c83b73d 100644 --- a/lib/test_xarray.c +++ b/lib/test_xarray.c @@ -108,7 +108,7 @@ static noinline void check_xas_ret

[PATCH v2] input: goodix - support Goodix gt5688

2019-01-29 Thread Guido Günther
>From what I've seen in vendor trees it's fine to treat this as gt1x¹. Tested on the Purism Librem 5 Devkit (Rocktech JH057N00900 panel). [1]: https://github.com/TadiT7/android_kernel_mtk-4.4/tree/master/drivers/input/touchscreen/mediatek/GT5688 Signed-off-by: Guido Günther --- Changes from v1:

Re: [PATCH 09/10] soc: mediatek: change the argument of write and write_mask API

2019-01-29 Thread CK Hu
Hi, Bibby: On Tue, 2019-01-29 at 15:32 +0800, Bibby Hsieh wrote: > In order to enhance the convienience of client usage, > we change the input argument from subsys and offset to > struct cmdq_base and dma_addr_t. > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 24

Re: [PATCH] lightnvm: pblk: extend line wp balance check

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 09.47, h...@owltronix.com wrote: > > From: Hans Holmberg > > pblk stripes writes of minimal write size across all non-offline chunks > in a line, which means that the maximum write pointer delta should not > exceed the minimal write size. Extend the line write pointer balan

Re: [PATCH V3 2/3] i2c: tegra: Update transfer timeout

2019-01-29 Thread Dmitry Osipenko
В Tue, 29 Jan 2019 11:16:52 +0100 Thierry Reding пишет: > On Tue, Jan 29, 2019 at 11:15:05AM +0100, Thierry Reding wrote: > > On Tue, Jan 29, 2019 at 01:27:09AM +0300, Dmitry Osipenko wrote: > > > 29.01.2019 1:15, Sowjanya Komatineni пишет: > > > > > > > > > > > > Update I2C transfer

[PATCH 1/2] mfd: sec-core: Cleanup formatting to a consistent style

2019-01-29 Thread Krzysztof Kozlowski
Cleanup the formatting to have consistent style across the file (only white-space issues). No expected difference in code. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/sec-core.c

[PATCH 2/2] mfd: sec-core: Return gracefully instead of BUG() if device cannot match

2019-01-29 Thread Krzysztof Kozlowski
Replace impossible BUG() in probe with a proper return. This can be triggered only in case of a clear bug (e.g. adding broken half-support for new S2MPSXX flavor) but BUG() is discouraged and the boot process can actually try to continue. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-c

Re: [PATCH] perf tools: Filter out hidden symbols from labels

2019-01-29 Thread Nick Clifton
Hi Arnaldo, >> there were no objections for rfc, sending patch > > I don't see a problem, Nick, can you provide an Acked-by, or better yet, > a Reviewed-by so that Jiri can collect in this patch and I can push it > to perf/urgent? Sorry - I do not think that I have the authority to do that. I a

Question on handling managed IRQs when hotplugging CPUs

2019-01-29 Thread John Garry
Hi, I have a question on $subject which I hope you can shed some light on. According to commit c5cb83bb337c25 ("genirq/cpuhotplug: Handle managed IRQs on CPU hotplug"), if we offline the last CPU in a managed IRQ affinity mask, the IRQ is shutdown. The reasoning is that this IRQ is thought t

Re: ipu3-imgu 0000:00:05.0: required queues are disabled

2019-01-29 Thread Bingbu Cao
On 01/28/2019 11:45 PM, Kai Heng Feng wrote: Hi Kieran, On Jan 28, 2019, at 4:48 PM, Kieran Bingham wrote: Hi Kai-Heng, On 27/01/2019 05:56, Kai-Heng Feng wrote: Hi, We have a bug report [1] that the ipu3 doesn’t work. Does ipu3 need special userspace to work? Yes, it will need furthe

Re: [RESEND PATCH v2 8/8] Input: sx8654 - convert #defined flags to BIT(x)

2019-01-29 Thread Richard Leitner
Hi Joe, On 29/01/2019 06:40, Joe Perches wrote: On Mon, 2019-01-28 at 16:25 -0800, Dmitry Torokhov wrote: On Tue, Dec 18, 2018 at 09:40:02AM +0100, Richard Leitner wrote: Some of the #defined register values are one-bit flags. Convert them to use the BIT(x) macro instead of 1 byte hexadecimal

Re: [PATCH v9 20/26] irqchip/gic-v3: Handle pseudo-NMIs

2019-01-29 Thread Julien Thierry
On 28/01/2019 11:59, Marc Zyngier wrote: > On Mon, 21 Jan 2019 15:33:39 +, > Julien Thierry wrote: >> >> Provide a higher priority to be used for pseudo-NMIs. When such an >> interrupt is received, keep interrupts fully disabled at CPU level to >> prevent receiving other pseudo-NMIs while h

Re: WARNING in apparmor_secid_to_secctx

2019-01-29 Thread Tetsuo Handa
On 2018/09/06 19:59, Dmitry Vyukov wrote: > On Wed, Sep 5, 2018 at 7:37 PM, Casey Schaufler > wrote: >> On 9/5/2018 4:08 AM, Dmitry Vyukov wrote: >>> Thanks! I've re-enabled selinux on syzbot: >>> https://github.com/google/syzkaller/commit/196410e4f5665d4d2bf6c818d06f1c8d03cfa8cc >>> Now we will

[PATCH v2 0/2] USB SS PHY for Qualcomm's QCS404

2019-01-29 Thread Jorge Ramirez-Ortiz
This set adds USB SS PHY support to Qualcomm's QCS404 SoC The PHY is implemented using Synopsys SS PHY 1.0.0 IP The code is losely based on Sriharsha Allenki's original implementation. v2: enable OTG mode detection move vdd voltage levels to driver use bulk_ control interfaces ss-phy-bin

[PATCH v2 2/2] phy: qualcomm: usb: Add Super-Speed PHY driver

2019-01-29 Thread Jorge Ramirez-Ortiz
Driver to control the Synopsys SS PHY 1.0.0 implemeneted in QCS404 Based on Sriharsha Allenki's original code. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/phy/qualcomm/Kconfig | 11 ++ drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-usb-ss.c | 347 +++

[PATCH v2 1/2] dt-bindings: Add Qualcomm USB Super-Speed PHY bindings

2019-01-29 Thread Jorge Ramirez-Ortiz
Binding description for Qualcomm's Synopsys 1.0.0 super-speed PHY controller embedded in QCS404. Based on Sriharsha Allenki's original definitions. Signed-off-by: Jorge Ramirez-Ortiz --- .../devicetree/bindings/usb/qcom,usb-ssphy.txt | 73 ++ 1 file changed, 73 insertio

Re: [PATCH v9 21/26] irqchip/gic: Add functions to access irq priorities

2019-01-29 Thread Julien Thierry
On 28/01/2019 12:04, Marc Zyngier wrote: > On Mon, 21 Jan 2019 15:33:40 +, > Julien Thierry wrote: >> >> Add accessors to the GIC distributor/redistributors priority registers. >> >> Signed-off-by: Julien Thierry >> Cc: Thomas Gleixner >> Cc: Jason Cooper >> Cc: Marc Zyngier >> --- >>

Re: [PATCH v3] mfd: tqmx86: IO controller with i2c, wachdog and gpio

2019-01-29 Thread Lee Jones
On Sat, 12 Jan 2019, Andrew Lunn wrote: > The QMX86 is a PLD present on some TQ-Systems ComExpress modules. It > provides 1 or 2 I2C bus masters, 8 GPIOs and a watchdog timer. Add an > MFD which will instantiate the individual drivers. > > Signed-off-by: Andrew Lunn > --- > v2: > > Drop setting

Re: [PATCH v2] input: goodix - support Goodix gt5688

2019-01-29 Thread Bastien Nocera
On Tue, 2019-01-29 at 12:11 +0100, Guido Günther wrote: > From what I've seen in vendor trees it's fine to treat this as gt1x¹. > Tested on the Purism Librem 5 Devkit (Rocktech JH057N00900 panel). > > [1]: > https://github.com/TadiT7/android_kernel_mtk-4.4/tree/master/drivers/input/touchscreen/me

[PATCH 4.20 014/117] mlxsw: pci: Ring CQs doorbell before RDQs

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel When a packet should be trapped to the CPU the device consumes a WQE (work queue element) from an RDQ (receive descriptor queue) and copies the packet to the address specified in t

[PATCH 4.20 016/117] udp: with udp_segment release on error path

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn [ Upstream commit 0f149c9fec3cd720628ecde83bfc6f64c1e7dcb6 ] Failure __ip_append_data triggers udp_flush_pending_frames, but these tests happen later. The skb must be freed di

[PATCH 4.20 013/117] mlxsw: spectrum_fid: Update dummy FID index

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Nir Dotan [ Upstream commit a11dcd6497915ba79d95ef4fe2541aaac27f6201 ] When using a tc flower action of egress mirred redirect, the driver adds an implicit FID setting action. This implicit ac

[PATCH 4.20 011/117] mlxsw: pci: Increase PCI SW reset timeout

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Nir Dotan [ Upstream commit d2f372ba0914e5722ac28e15f2ed2db61bcf0e44 ] Spectrum-2 PHY layer introduces a calibration period which is a part of the Spectrum-2 firmware boot process. Hence incre

[PATCH 4.20 010/117] vhost: log dirty page correctly

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Jason Wang [ Upstream commit cc5e710759470bc7f3c61d11fd54586f15fdbdf4 ] Vhost dirty page logging API is designed to sync through GPA. But we try to log GIOVA when device IOTLB is enabled. This

[PATCH 4.20 012/117] net: ipv4: Fix memory leak in network namespace dismantle

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit f97f4dd8b3bb9d0993d2491e0f22024c68109184 ] IPv4 routing tables are flushed in two cases: 1. In response to events in the netdev and inetaddr notification chains

[PATCH 4.20 001/117] amd-xgbe: Fix mdio access for non-zero ports and clause 45 PHYs

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: "Lendacky, Thomas" [ Upstream commit 5ab3121beeb76aa6090195b67d237115860dd9ec ] The XGBE hardware has support for performing MDIO operations using an MDIO command request. The driver mistakenl

[PATCH 4.20 020/117] ip6_gre: update version related info when changing link

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 80b3671e9377916bf2b02e56113fa7377ce5705a ] We forgot to update ip6erspan version related info when changing link, which will cause setting new hwid failed. Repor

[PATCH 4.20 002/117] net: bridge: Fix ethernet header pointer before check skb forwardable

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Yunjian Wang [ Upstream commit 28c1382fa28f2e2d9d0d6f25ae879b5af2ecbd03 ] The skb header should be set to ethernet header before using is_skb_forwardable. Because the ethernet header length ha

[PATCH 4.20 019/117] net: phy: marvell: Fix deadlock from wrong locking

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Andrew Lunn [ Upstream commit e0a7328fad9979104f73e19bedca821ef3262ae1 ] m88e1318_set_wol() takes the lock as part of phy_select_page(). Don't take the lock again with phy_read(), use the unlo

[PATCH 4.20 018/117] erspan: build the header with the right proto according to erspan_ver

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 20704bd1633dd5afb29a321d3a615c9c8e9c9d05 ] As said in draft-foschiano-erspan-03#section4: Different frame variants known as "ERSPAN Types" can be distinguishe

[PATCH 4.20 004/117] net: phy: marvell: Errata for mv88e6390 internal PHYs

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Andrew Lunn [ Upstream commit 8cbcdc1a51999ca81db2956608b917aacd28d837 ] The VOD can be out of spec, unless some magic value is poked into an undocumented register in an undocumented page. Fi

[PATCH 4.20 024/117] mei: me: mark LBG devices as having dma support

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Usyskin commit 173436ba800d01178a8b19e5de4a8cb02c0db760 upstream. The LBG server platform sports DMA support. Cc: #v5.0+ Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Wink

[PATCH 4.20 006/117] net: phy: phy driver features are mandatory

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Camelia Groza [ Upstream commit 3e64cf7a435ed0500e3adaa8aada2272d3ae8abc ] Since phy driver features became a link_mode bitmap, phy drivers that don't have a list of features configured will c

[PATCH 4.20 007/117] net/sched: act_tunnel_key: fix memory leak in case of action replace

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Davide Caratti [ Upstream commit 9174c3df1cd181c14913138d50ccbe539bb08335 ] running the following TDC test cases: 7afc - Replace tunnel_key set action with all parameters 364d - Replace tun

[PATCH 4.20 003/117] net: Fix usage of pskb_trim_rcsum

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Ross Lagerwall [ Upstream commit 6c57f0458022298e4da1729c67bd33ce41c14e7a ] In certain cases, pskb_trim_rcsum() may change skb pointers. Reinitialize header pointers afterwards to avoid potent

[PATCH 4.20 021/117] tcp: allow MSG_ZEROCOPY transmission also in CLOSE_WAIT state

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn [ Upstream commit 13d7f46386e060df31b727c9975e38306fa51e7a ] TCP transmission with MSG_ZEROCOPY fails if the peer closes its end of the connection and so transitions this sock

[PATCH 4.20 023/117] SUNRPC: Address Kerberos performance/behavior regression

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit deaa5c96c2f7e8b934088a1e70a0fe8797bd1149 ] When using Kerberos with v4.20, I've observed frequent connection loss on heavy workloads. I traced it down to the client underrunning the

[PATCH 4.20 037/117] clk: socfpga: stratix10: fix naming convention for the fixed-clocks

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Dinh Nguyen commit b488517b28a47d16b228ce8dcf07f5cb8e5b3dc5 upstream. The fixed clocks in the DTS file have a hyphen, but the clock driver has the fixed clocks using underbar. Thus the clock d

[PATCH 4.20 008/117] net_sched: refetch skb protocol for each filter

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit cd0c4e70fc0ccfa705cdf55efb27519ce9337a26 ] Martin reported a set of filters don't work after changing from reclassify to continue. Looking into the code, it looks l

[PATCH 4.20 035/117] clk: zynqmp: Fix memory allocation in zynqmp_clk_setup

2019-01-29 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Gustavo A. R. Silva commit 4f340efcb21220b7a0afcea3884e66f79e6f2306 upstream. Fix memory allocation and use struct_size() in kzalloc(). This also fixes the allocation size to be correct, and s

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