[PATCH v9 03/27] dt-bindings: Add doc for the Ingenic TCU drivers

2018-12-27 Thread Paul Cercueil
Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil --- Notes: v4: New patch in this series. Corresponds to V2 patches 3-4-5 with added content. v5: - Edited PWM/watchdog DT bindings

[PATCH v9 06/27] MAINTAINERS: Add myself as maintainer for Ingenic TCU drivers

2018-12-27 Thread Paul Cercueil
Add myself as maintainer for the ingenic-timer and ingenic-ost drivers. Signed-off-by: Paul Cercueil --- Notes: v2: No change v3: No change v4: No change v5: Update with new files v6: No change v7: No change v8: No change v9: No

[PATCH v9 09/27] watchdog: jz4740: Avoid starting watchdog in set_timeout

2018-12-27 Thread Paul Cercueil
Previously the jz4740_wdt_set_timeout() function was starting the timer unconditionally, even if it was stopped when that function was entered. Now, the timer will be restarted only if it was already running before this function is called. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck

[PATCH v9 05/27] clocksource: Add driver for the Ingenic JZ47xx OST

2018-12-27 Thread Paul Cercueil
From: Maarten ter Huurne OST is the OS Timer, a 64-bit timer/counter with buffered reading. SoCs before the JZ4770 had (if any) a 32-bit OST; the JZ4770 and JZ4780 have a 64-bit OST. This driver will register both a clocksource and a sched_clock to the system. Signed-off-by: Maarten ter

[PATCH v9 11/27] pwm: jz4740: Apply configuration atomically

2018-12-27 Thread Paul Cercueil
This is cleaner, more future-proof, and incidentally it also fixes the PWM resetting its config when stopped/started several times. Signed-off-by: Paul Cercueil --- Notes: v9: New patch drivers/pwm/pwm-jz4740.c | 37 - 1 file changed, 12 insertions(+),

[PATCH v9 08/27] watchdog: jz4740: Use regmap provided by TCU driver

2018-12-27 Thread Paul Cercueil
Since we broke the ABI by changing the clock, the driver was also updated to use the regmap provided by the TCU driver. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- Notes: v6: New patch v7: No change v8: No change v9: No change

[PATCH v9 14/27] pwm: jz4740: Improve algorithm of clock calculation

2018-12-27 Thread Paul Cercueil
The previous algorithm hardcoded details about how the TCU clocks work. The new algorithm will use clk_round_rate to find the perfect clock rate for the PWM channel. Signed-off-by: Paul Cercueil --- Notes: v9: New patch drivers/pwm/pwm-jz4740.c | 26 +++--- 1 file

[PATCH v9 17/27] pwm: jz4740: Remove unused devicetree compatible strings

2018-12-27 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil Acked-by: Thierry Reding --- Notes: v5: New patch

Re: [PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-27 Thread Linus Torvalds
On Thu, Dec 27, 2018 at 9:02 AM Vincent Guittot wrote: > > In the original behavior, the cs_rq was removed from the list only > when the cgroup was removed. > patch a9e7f6544b9c (sched/fair: Fix O(nr_cgroups) in load balance > path) has added an optimization which remove the cfs_rq when there >

[PATCH v9 10/27] watchdog: jz4740: Drop dependency on MACH_JZ47xx, use COMPILE_TEST

2018-12-27 Thread Paul Cercueil
Depending on MACH_JZ47xx prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. On other architectures, this driver can still be built, thanks to COMPILE_TEST. This is used by automated tools to find bugs, for instance.

Re: [PATCH] i2c: bcm2835: Clear current message and count after a transaction

2018-12-27 Thread Eric Anholt
Stefan Wahren writes: > Hi Paul, > >> Paul Kocialkowski hat am 24. Dezember 2018 >> um 10:10 geschrieben: >> >> >> Hi, >> >> On Sat, 2018-12-22 at 13:19 +0100, Stefan Wahren wrote: >> > Hi Paul, >> > >> > > Paul Kocialkowski hat am 21. Dezember >> > > 2018 um 13:11 geschrieben: >> > >

[PATCH v9 12/27] pwm: jz4740: Use regmap from TCU driver

2018-12-27 Thread Paul Cercueil
The ingenic-timer "TCU" driver provides us with a regmap, that we can use to safely access the TCU registers. While this driver is devicetree-compatible, it is never (as of now) probed from devicetree, so this change does not introduce a ABI problem with current devicetree files. Signed-off-by:

[PATCH v9 13/27] pwm: jz4740: Use clocks from TCU driver

2018-12-27 Thread Paul Cercueil
The ingenic-timer "TCU" driver provides us with clocks, that can be (un)gated, reparented or reclocked from devicetree, instead of having these settings hardcoded in this driver. While this driver is devicetree-compatible, it is never (as of now) probed from devicetree, so this change does not

[PATCH v9 25/27] MIPS: GCW0: Reduce system timer to 750 kHz

2018-12-27 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil --- Notes: v8: New patch v9: Don't configure clock timer1, as the OS Timer is used as clocksource on this SoC arch/mips/boot/dts/ingenic/gcw0.dts | 6 ++ 1 file changed, 6

[PATCH v9 22/27] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz

2018-12-27 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Remove ingenic,clocksource-channel property v7: No change v8: No change v9: No change

[PATCH v9 26/27] MIPS: GCW0: defconfig: Enable OST, watchdog, PWM drivers

2018-12-27 Thread Paul Cercueil
The OST driver provides a clocksource and sched_clock that are much more accurate than the default ones. Signed-off-by: Paul Cercueil --- Notes: v8: New patch v9: No change arch/mips/configs/gcw0_defconfig | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-)

[PATCH v9 21/27] MIPS: qi_lb60: Move PWM devices to devicetree

2018-12-27 Thread Paul Cercueil
Probe the few drivers using PWMs from devicetree, now that we have a devicetree node for the PWM driver. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change v9: No change arch/mips/boot/dts/ingenic/qi_lb60.dts |

[PATCH v9 18/27] clk: jz4740: Add TCU clock

2018-12-27 Thread Paul Cercueil
Add the missing TCU clock to the list of clocks supplied by the CGU for the JZ4740 SoC. Signed-off-by: Paul Cercueil Acked-by: Stephen Boyd Acked-by: Rob Herring --- Notes: v5: New patch v6: No change v7: No change v8: No change v9: No change

[PATCH v9 19/27] MIPS: Kconfig: Select TCU timer driver when MACH_INGENIC is set

2018-12-27 Thread Paul Cercueil
We cannot boot to userspace (not even initramfs) if the timer driver is not present; so it makes sense to enable it unconditionally when MACH_INGENIC is set. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change v9:

[PATCH v9 23/27] MIPS: CI20: Reduce system timer to 3 MHz

2018-12-27 Thread Paul Cercueil
The default clock (48 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change v9: Don't configure clock timer1, as the OS Timer is used

[PATCH v9 24/27] MIPS: CI20: defconfig: enable OST driver

2018-12-27 Thread Paul Cercueil
The OST driver provides a clocksource and sched_clock that are much more accurate than the default ones. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change v9: No change arch/mips/configs/ci20_defconfig | 1 + 1

[PATCH v9 15/27] pwm: jz4740: Allow selection of PWM channels 0 and 1

2018-12-27 Thread Paul Cercueil
The TCU channels 0 and 1 were previously reserved for system tasks, and thus unavailable for PWM. Signed-off-by: Paul Cercueil --- Notes: v6: New patch v7: No change v8: ingenic_tcu_[request,release]_channel are dropped. We now use the memory resources provided to

[PATCH v9 04/27] clocksource: Add a new timer-ingenic driver

2018-12-27 Thread Paul Cercueil
This driver handles the TCU (Timer Counter Unit) present on the Ingenic JZ47xx SoCs, and provides the kernel with a system timer, and optionally with a clocksource and a sched_clock. It also provides clocks and interrupt handling to client drivers. Signed-off-by: Paul Cercueil --- Notes:

[PATCH v9 27/27] MIPS: jz4740: Drop obsolete code

2018-12-27 Thread Paul Cercueil
The old clocksource/timer platform code is now obsoleted by the newly introduced ingenic-timer and ingenic-ost drivers. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change v7: No change v8: No change v9: No change

[PATCH v9 20/27] MIPS: jz4740: Add DTS nodes for the TCU drivers

2018-12-27 Thread Paul Cercueil
Add DTS nodes for the JZ4780, JZ4770 and JZ4740 devicetree files. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Fix register lengths in watchdog/pwm nodes v7: No change v8: - Fix wrong start address for PWM node - Add system timer and

[PATCH v9 07/27] watchdog: jz4740: Use WDT clock provided by TCU driver

2018-12-27 Thread Paul Cercueil
Instead of requesting the "ext" clock and handling the watchdog clock divider and gating in the watchdog driver, we now request and use the "wdt" clock that is supplied by the ingenic-timer "TCU" driver. The major benefit is that the watchdog's clock rate and parent can now be specified from

[PATCH v9 16/27] pwm: jz4740: Drop dependency on MACH_INGENIC, use COMPILE_TEST

2018-12-27 Thread Paul Cercueil
Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. On other architectures, this driver can still be built, thanks to COMPILE_TEST. This is used by automated tools to find bugs, for instance.

[PATCH v9 01/27] dt-bindings: ingenic: Add DT bindings for TCU clocks

2018-12-27 Thread Paul Cercueil
This header provides clock numbers for the ingenic,tcu DT binding. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring Acked-by: Stephen Boyd --- Notes: v2: Use SPDX identifier for the license v3: No change v4: No change v5: s/JZ47*_/TCU_/ and dropped

[PATCH v9 00/27] Ingenic TCU patchset v9

2018-12-27 Thread Paul Cercueil
Hi, This is the v9 of my patchset to add support for the Timer/Counter Unit present on Ingenic JZ47xx SoCs. Changes from v8 mainly include: - The system timer and clocksource sub-nodes of the ingenic-timer driver are gone. Now, the ingenic-timer will use the (optional) property named

[PATCH v9 02/27] doc: Add doc for the Ingenic TCU hardware

2018-12-27 Thread Paul Cercueil
Add a documentation file about the Timer/Counter Unit (TCU) present in the Ingenic JZ47xx SoCs. The Timer/Counter Unit (TCU) in Ingenic JZ47xx SoCs is a multi-function hardware block. It features up to to eight channels, that can be used as counters, timers, or PWM. - JZ4725B, JZ4750, JZ4755

Re: d_off field in struct dirent and 32-on-64 emulation

2018-12-27 Thread Florian Weimer
* Adhemerval Zanella: > Also for glibc standpoint, although reverting it back to use getdents > syscall for non-LFS mode might fix this issue for architectures that > provides non-LFS getdents syscall it won't be a fix for architectures > that still provides off_t different than off64_t *and*

Re: d_off field in struct dirent and 32-on-64 emulation

2018-12-27 Thread Adhemerval Zanella
On 27/12/2018 15:18, Florian Weimer wrote: > We have a bit of an interesting problem with respect to the d_off > field in struct dirent. > > When running a 64-bit kernel on certain file systems, notably ext4, > this field uses the full 63 bits even for small directories (strace -v > output,

Re: d_off field in struct dirent and 32-on-64 emulation

2018-12-27 Thread Florian Weimer
* Andy Lutomirski: >> On Dec 27, 2018, at 10:18 AM, Florian Weimer wrote: >> >> We have a bit of an interesting problem with respect to the d_off >> field in struct dirent. >> >> When running a 64-bit kernel on certain file systems, notably ext4, >> this field uses the full 63 bits even for

[PATCH v2] csky: Don't leak device tree node reference

2018-12-27 Thread Yangtao Li
of_find_node_by_type() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. setup_smp() doesn't do that, so fix it by converting to for_each_of_cpu_node(). Signed-off-by: Yangtao Li --- arch/csky/kernel/smp.c | 2 +- 1 file changed, 1

Re: [Qemu-devel] d_off field in struct dirent and 32-on-64 emulation

2018-12-27 Thread Peter Maydell
On Thu, 27 Dec 2018 at 17:19, Florian Weimer wrote: > We have a bit of an interesting problem with respect to the d_off > field in struct dirent. > > When running a 64-bit kernel on certain file systems, notably ext4, > this field uses the full 63 bits even for small directories (strace -v >

Re: [BUG]Uncalibrated TSC is not accurate enough as a time keeper

2018-12-27 Thread Florian Weimer
* Da Shi Cao: > The cpu_khz and tsc_khz are now read directly by the cpuid > instruction, and they are deemed to be very accurate. But this is not > the case in our situation. The OS time lags behind about 8 seconds per > hour. The CPU information is as follows: Is virtualization involved? Do

d_off field in struct dirent and 32-on-64 emulation

2018-12-27 Thread Florian Weimer
We have a bit of an interesting problem with respect to the d_off field in struct dirent. When running a 64-bit kernel on certain file systems, notably ext4, this field uses the full 63 bits even for small directories (strace -v output, wrapped here for readability): getdents(3, [

[PATCH] Staging: emxx_udc: Switch to the gpio descriptor interface

2018-12-27 Thread Nishad Kamdar
Convert VBUS GPIO to use GPIO descriptors from and stop using the old GPIO API. Signed-off-by: Nishad Kamdar --- drivers/staging/emxx_udc/emxx_udc.c | 31 +++-- drivers/staging/emxx_udc/emxx_udc.h | 2 ++ 2 files changed, 18 insertions(+), 15 deletions(-) diff --git

[RFC PATCH 1/1] PM / Domains: Add multi PM domains support for attach_dev

2018-12-27 Thread Aisheng Dong
Currently attach_dev() in power domain infrastructure still does not support multi domains case as the struct device *dev passed down from genpd_dev_pm_attach_by_id() is a virtual PD device, it does not help for parsing the real device information from device tree, e.g. Device/Power IDs, Clocks

Re: [PATCH v2 0/3] x86: kprobes: Show correct blaclkist in debugfs

2018-12-27 Thread Andrea Righi
On Tue, Dec 18, 2018 at 06:24:35PM +0100, Andrea Righi wrote: > On Tue, Dec 18, 2018 at 01:50:26PM +0900, Masami Hiramatsu wrote: > ... > > > Side question: there are certain symbols in arch/x86/xen that should be > > > blacklisted explicitly, because they're non-attachable. > > > > > > More

Re: [PATCH] KVM: X86: Fix scan ioapic use-before-initialization

2018-12-27 Thread Linus Torvalds
On Thu, Dec 27, 2018 at 6:28 AM Dmitry Vyukov wrote: > > Lots of kernel bug reports routinely get lost on mailing lists, which is bad. Nobody reads the kernel mailing list directly - there's just too much traffic. And honestly, even fewer people then read the syzbot reports, because they are so

Re: [PATCH] csky: fix refcount leak in setup_smp()

2018-12-27 Thread Guo Ren
Hi Li, On Thu, Dec 27, 2018 at 11:27:11AM -0500, Yangtao Li wrote: > The of_find_node_by_type() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. > > Signed-off-by: Yangtao Li

Re: [PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-27 Thread Vincent Guittot
On Thu, 27 Dec 2018 at 17:40, Sargun Dhillon wrote: > > On Thu, Dec 27, 2018 at 5:23 AM Vincent Guittot > wrote: > > > > Adding Sargun and Dimitry who faced similar problem > > Adding Tejun > > > > On Thu, 27 Dec 2018 at 11:21, Vincent Guittot > > wrote: > > > > > > Le Thursday 27 Dec 2018 à

Re: [PATCH 1/1] mm/page_alloc: add a warning about high order allocations

2018-12-27 Thread Michal Hocko
On Thu 27-12-18 16:05:18, Konstantin Khorenko wrote: > On 12/26/2018 11:40 AM, Michal Hocko wrote: > > Appart from general comments as a reply to the cover (btw. this all > > should be in the changelog because this is the _why_ part of the > > justification which should be _always_ part of the

[PATCH] h8300: pci: Remove local declaration of pcibios_penalize_isa_irq

2018-12-27 Thread Guenter Roeck
h8300 builds fail with: In file included from drivers/of/address.c:11: include/linux/pci.h:1966:20: error: redefinition of 'pcibios_penalize_isa_irq' This is because CONFIG_PCI is not enabled, and pcibios_penalize_isa_irq() is now declared as inline static function in generic code if this is the

Re: [RFC PATCH 0/1] mm: add a warning about high order allocations

2018-12-27 Thread Michal Hocko
On Thu 27-12-18 15:18:54, Konstantin Khorenko wrote: > Hi Michal, > > thank you very much for your questions, please see my notes below. > > On 12/26/2018 11:35 AM, Michal Hocko wrote: > > On Tue 25-12-18 18:39:26, Konstantin Khorenko wrote: > >> Q: Why do we need to bother at all? > >> A: If a

Re: [PATCH] mm: compaction.c: Propagate return value upstream

2018-12-27 Thread Randy Dunlap
On 12/26/18 7:50 PM, Matthew Wilcox wrote: > On Wed, Dec 26, 2018 at 01:42:56PM -0600, Aditya Pakki wrote: >> In sysctl_extfrag_handler(), proc_dointvec_minmax() can return an >> error. The fix propagates the error upstream in case of failure. > > Why not just ... Yes, this change (below) makes

Re: [PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-27 Thread Sargun Dhillon
On Thu, Dec 27, 2018 at 5:23 AM Vincent Guittot wrote: > > Adding Sargun and Dimitry who faced similar problem > Adding Tejun > > On Thu, 27 Dec 2018 at 11:21, Vincent Guittot > wrote: > > > > Le Thursday 27 Dec 2018 à 10:21:53 (+0100), Vincent Guittot a écrit : > > > Hi Xie, > > > > > > On Thu,

Re: [PATCH v1 7/7] drm: remove include of drmP.h from drm_gem_cma_helper.h

2018-12-27 Thread David Lechner
On 12/26/18 3:03 PM, Sam Ravnborg wrote: Fix fallout in various files/drivers. What fallout is being fixed? It would be helpful if we received the full patch series for context. It would also be nice to have a more detailed description in this commit message.

[PATCH] csky: fix refcount leak in setup_smp()

2018-12-27 Thread Yangtao Li
The of_find_node_by_type() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/csky/kernel/smp.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH] bitmap: Add bitmap_valloc(), bitmap_vzalloc() and bitmap_vfree()

2018-12-27 Thread Peng Wang
Introduce bitmap alloc/free helpers when contiguous memory is not necessary. Signed-off-by: Peng Wang --- include/linux/bitmap.h | 3 +++ lib/bitmap.c | 19 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index

Re: [PATCH v4 05/13] firmware: ti_sci: Add helper apis to manage resources

2018-12-27 Thread Nishanth Menon
On 11:43-20181227, Lokesh Vutla wrote: > Each resource with in the device can be uniquely identified > by a type and subtype as defined by TISCI. Since this is generic > across the devices, resource allocation also can be made generic > instead of each client driver handling the reso

Re: [PATCH 1/1] mm/page_alloc: add a warning about high order allocations

2018-12-27 Thread Konstantin Khorenko
On 12/26/2018 11:40 AM, Michal Hocko wrote: > Appart from general comments as a reply to the cover (btw. this all > should be in the changelog because this is the _why_ part of the > justification which should be _always_ part of the changelog). Thank you, will add in the next version of the

[PATCH v2] i2c: bcm2835: Clear current buffer pointers and counts after a transfer

2018-12-27 Thread Paul Kocialkowski
The driver's interrupt handler checks whether a message is currently being handled with the curr_msg pointer. When it is NULL, the interrupt is considered to be unexpected. Similarly, the i2c_start_transfer routine checks for the remaining number of messages to handle in num_msgs. However, these

Re: [PATCH ghak90 (was ghak32) V4 09/10] audit: NETFILTER_PKT: record each container ID associated with a netNS

2018-12-27 Thread Richard Guy Briggs
On 2018-10-31 15:30, Richard Guy Briggs wrote: > On 2018-10-19 19:18, Paul Moore wrote: > > On Sun, Aug 5, 2018 at 4:33 AM Richard Guy Briggs wrote: > > > Add audit container identifier auxiliary record(s) to NETFILTER_PKT > > > event standalone records. Iterate through all potential audit

Re: [PATCH -mmotm] arm64: skip kmemleak for KASAN again

2018-12-27 Thread Andrey Konovalov
On Wed, Dec 26, 2018 at 3:06 AM Qian Cai wrote: > > Due to 871ac3d540f (kasan: initialize shadow to 0xff for tag-based > mode), kmemleak is broken again with KASAN. It needs a similar fix > from e55058c2983 (mm/memblock.c: skip kmemleak for kasan_init()). > > Signed-off-by: Qian Cai Hi Qian,

Re: [RFC PATCH 0/1] mm: add a warning about high order allocations

2018-12-27 Thread Konstantin Khorenko
Hi Michal, thank you very much for your questions, please see my notes below. On 12/26/2018 11:35 AM, Michal Hocko wrote: > On Tue 25-12-18 18:39:26, Konstantin Khorenko wrote: >> Q: Why do we need to bother at all? >> A: If a node is highly loaded and its memory is significantly fragmented >>

[PATCH 0/2] hwmon: devicetree support for hih6130

2018-12-27 Thread Andreas Kemnade
This patch set adds devicetree support for hih6130, so it can be properly auto-probed using devicetree files Andreas Kemnade (2): hwmon: (hih6130) add dtb compatibility tables devicetree: hwmon: Add bindings documentation for HIH6130 Documentation/devicetree/bindings/hwmon/hih6130.txt | 12

[PATCH 2/2] devicetree: hwmon: Add bindings documentation for HIH6130

2018-12-27 Thread Andreas Kemnade
Add bindings documentation for HIH6130 driver. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/hwmon/hih6130.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/hih6130.txt diff --git

[PATCH 1/2] hwmon: (hih6130) add dtb compatibility tables

2018-12-27 Thread Andreas Kemnade
This allows the hih6130 to be used in devicetree files and auto-probed that way. Signed-off-by: Andreas Kemnade --- drivers/hwmon/hih6130.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index

[PATCH v4 3/3] i2c: at91: added slave mode support

2018-12-27 Thread Ludovic Desroches
From: Juergen Fitschen Slave mode driver is based on the concept of i2c-designware driver. Signed-off-by: Juergen Fitschen [ludovic.desroc...@microchip.com: rework Kconfig] Signed-off-by: Ludovic Desroches --- drivers/i2c/busses/Kconfig | 13 +++ drivers/i2c/busses/Makefile

[PATCH v4 2/3] i2c: at91: split driver into core and master file

2018-12-27 Thread Ludovic Desroches
From: Juergen Fitschen The single file i2c-at91.c has been split into core code (i2c-at91-core.c) and master mode specific code (i2c-at91-master.c). This should enhance maintainability and reduce ifdeffery for slave mode related code. The code itself hasn't been touched. Shared functions only

[PATCH v4 1/3] i2c: at91: segregate master mode specific code from probe and init func

2018-12-27 Thread Ludovic Desroches
From: Juergen Fitschen In order to implement slave mode support for the at91 hardware we have to segregate all master mode specific function parts from the general parts. The upcoming slave mode patch will call its sepcific probe resp. init function instead of the master mode functions after the

[PATCH v4 0/3] i2c: at91: slave mode support

2018-12-27 Thread Ludovic Desroches
[Ludovic Desroches: see Changes section] Based on the discussion we had on the i2c-linux list [1], I wrote a patch for AT91 hardware and tried to fulfill the Linux I2C slave interface description [2] as good as possible. This enables aforementioned hardware to act as an I2C slave that can be

Re: [PATCH] i2c: bcm2835: Clear current message and count after a transaction

2018-12-27 Thread Paul Kocialkowski
Hi Stefan, On Thu, 2018-12-27 at 15:05 +0100, Stefan Wahren wrote: > Hi Paul, > > > Paul Kocialkowski hat am 24. Dezember 2018 > > um 10:10 geschrieben: > > > > > > Hi, > > > > On Sat, 2018-12-22 at 13:19 +0100, Stefan Wahren wrote: > > > Hi Paul, > > > > > > > Paul Kocialkowski hat am

Re: [PATCH 1/2] ARM: dump: Convert to use DEFINE_SHOW_ATTRIBUTE macro

2018-12-27 Thread Donglin Peng
On Wed, Jun 13, 2018 at 9:15 AM Peng Donglin wrote: > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Peng Donglin > --- > arch/arm/mm/ptdump_debugfs.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-) > > diff --git a/arch/arm/mm/ptdump_debugfs.c

Re: + proc-commit-to-genradix.patch added to -mm tree

2018-12-27 Thread Alexey Dobriyan
On Mon, Dec 17, 2018 at 12:54:58PM -0800, a...@linux-foundation.org wrote: > http://ozlabs.org/~akpm/mmots/broken-out/proc-commit-to-genradix.patch > Subject: proc: commit to genradix > > The new generic radix trees have a simpler API and implementation, and no > limitations on number of

Re: [PATCH 2/2] USB: storage: add quirk for SMI SM3350

2018-12-27 Thread Icenowy Zheng
在 2018-12-27四的 22:34 +0800,Icenowy Zheng写道: > The SMI SM3350 USB-UFS bridge controller cannot handle long sense > request > correctly and will make the chip refuse to do read/write when > requested > long sense. > > Add a bad sense quirk for it. > > Signed-off-by: Icenowy Zheng > --- I forgot

Re: [PATCH 1/2] USB: storage: don't insert sane sense for SPC3+ when bad sense specified

2018-12-27 Thread Icenowy Zheng
在 2018-12-27四的 22:34 +0800,Icenowy Zheng写道: > Currently the code will set US_FL_SANE_SENSE flag unconditionally if > device claims SPC3+, however we should allow US_FL_BAD_SENSE flag to > prevent this behavior, because SMI SM3350 UFS-USB bridge controller, > which claims SPC4, will show strange

[PATCH 1/2] USB: storage: don't insert sane sense for SPC3+ when bad sense specified

2018-12-27 Thread Icenowy Zheng
Currently the code will set US_FL_SANE_SENSE flag unconditionally if device claims SPC3+, however we should allow US_FL_BAD_SENSE flag to prevent this behavior, because SMI SM3350 UFS-USB bridge controller, which claims SPC4, will show strange behavior with 96-byte sense (put the chip into a wrong

[PATCH 2/2] USB: storage: add quirk for SMI SM3350

2018-12-27 Thread Icenowy Zheng
The SMI SM3350 USB-UFS bridge controller cannot handle long sense request correctly and will make the chip refuse to do read/write when requested long sense. Add a bad sense quirk for it. Signed-off-by: Icenowy Zheng --- drivers/usb/storage/unusual_devs.h | 12 1 file changed, 12

[PATCH 0/2] USB Storage quirk for SMI SM3350

2018-12-27 Thread Icenowy Zheng
SMI SM3350 UFS-USB bridge controller cannot handle REQUEST SENSE command with long sense (96-bytes) well, and will even trap the controller into a state that refuses to do read/write command. Currently Linux uncondintionally set US_FL_SANE_SENSE for devices claiming SPC3+, which makes simply add

[GIT PULL] MMC updates for v4.21

2018-12-27 Thread Ulf Hansson
Hi Linus, Here's the PR with MMC updates for v4.21. Details about the highlights are as usual found in the signed tag. Please pull this in! This time, the PR contains changes crossing subsystems/archs/platforms, which is mainly because of a bigger modernization of moving from legacy GPIO to GPIO

Re: [PATCH v3 7/9] drm/komeda: Attach komeda_dev to DRM-KMS

2018-12-27 Thread Liviu Dudau
On Thu, Dec 27, 2018 at 07:09:07AM +, james qian wang (Arm Technology China) wrote: > On Mon, Dec 24, 2018 at 08:32:14PM +0800, Liviu Dudau wrote: > > On Fri, Dec 21, 2018 at 10:00:33AM +, james qian wang (Arm Technology > > China) wrote: > > > Add komeda_kms abstracton to attach

Re: [PATCH] KVM: X86: Fix scan ioapic use-before-initialization

2018-12-27 Thread Dmitry Vyukov
On Sun, Nov 25, 2018 at 6:31 PM Paolo Bonzini wrote: > > On 20/11/18 09:34, Wanpeng Li wrote: > > From: Wanpeng Li > > ... > > This patch fixes it by bailing out scan ioapic if ioapic is not initialized > > in > > kernel. > > Reported-by: Wei Wu +Linus, Greg I want to point out that this was

Re: [PATCH v3 7/9] drm/komeda: Attach komeda_dev to DRM-KMS

2018-12-27 Thread Liviu Dudau
On Thu, Dec 27, 2018 at 07:09:07AM +, james qian wang (Arm Technology China) wrote: > On Mon, Dec 24, 2018 at 08:32:14PM +0800, Liviu Dudau wrote: > > On Fri, Dec 21, 2018 at 10:00:33AM +, james qian wang (Arm Technology > > China) wrote: > > > Add komeda_kms abstracton to attach

iMX6 FEC driver Linux-fslc 4.17 - IPV6 Multicast not working when unplugging/plugging ethernet cable

2018-12-27 Thread Stefano Cappa
Hi everyone, I already posted this in NXP forum as a comment (https://community.nxp.com/thread/359397), in yocto mailing list (https://lists.yoctoproject.org/pipermail/yocto/2018-December/043664.html) and in meta-freescale mailing list

Re: [PATCH] i2c: bcm2835: Clear current message and count after a transaction

2018-12-27 Thread Stefan Wahren
Hi Paul, > Paul Kocialkowski hat am 24. Dezember 2018 um > 10:10 geschrieben: > > > Hi, > > On Sat, 2018-12-22 at 13:19 +0100, Stefan Wahren wrote: > > Hi Paul, > > > > > Paul Kocialkowski hat am 21. Dezember > > > 2018 um 13:11 geschrieben: > > > > > > > > > The driver's interrupt

Re: [PATCH 00/20] drop useless LIST_HEAD

2018-12-27 Thread Dan Carpenter
On Tue, Dec 25, 2018 at 11:12:20PM +0100, Tom Psyborg wrote: > there was discussion about this just some days ago. CC 4-5 lists is > more than enough > I don't know who you were discussing this with... You should CC the 0th patch to all the mailinglists. That much is a clear rule. For the

RE: [PATCH v2 5/5] usb:cdns3 Add Cadence USB3 DRD Driver

2018-12-27 Thread Pawel Laszczak
HI, >> >> The host side of USBSS-DRD controller is compliance >> with XHCI specification, so it works with >> standard XHCI linux driver. >> > >After adding my glue layer change (with my phy part) and make one >change for this code, >the xHCI can work at my platform. I list the comments from

[PATCH 2/2] dmaengine: mediatek: Add MediaTek Command-Queue DMA controller for MT6765 SoC

2018-12-27 Thread shun-chih.yu
From: Shun-Chih Yu MediaTek Command-Queue DMA controller (CQDMA) on MT6765 SoC is dedicated to memory-to-memory transfer through queue based descriptor management. There are only 3 physical channels inside CQDMA, while the driver is extended to support 32 virtual channels for multiple dma users

[PATCH v4] add support for Mediatek Command-Queue DMA controller on MT6765 SoC

2018-12-27 Thread shun-chih.yu
Changes since v3: - simplify the ISR and management on descriptors by removing tasklet and ASYNC_TX_ENABLE_CHANNEL_SWITCH - remove useless field in mtk_cqdma_vdesc structure - change dev_info to dev_dbg - fix typos Changes since v2: - fix build warning for kernel with DMA address in 32-bit

[PATCH 1/2] dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings

2018-12-27 Thread shun-chih.yu
From: Shun-Chih Yu Document the devicetree bindings for MediaTek Command-Queue DMA controller which could be found on MT6765 SoC or other similar Mediatek SoCs. Change-Id: I9736c8cac9be160358feeab935fabaffc5730519 Signed-off-by: Shun-Chih Yu Reviewed-by: Rob Herring ---

[PATCH] media: secocec: fix ir address shift

2018-12-27 Thread Ettore Chimenti
The actual value of the RC5 System Number (address) is stored in the IR_READ_DATA common register masked with 0x1F00 so it have to be shifted by 8 bits. Signed-off-by: Ettore Chimenti --- drivers/media/platform/seco-cec/seco-cec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] drm/i915_request.h: Remove duplicate header

2018-12-27 Thread Chris Wilson
Quoting Brajeswar Ghosh (2018-12-25 13:23:40) > Remove i915_scheduler.h which is included more than once > > Signed-off-by: Brajeswar Ghosh Thanks for the patch, pushed to dinq. -Chris

Re: [PATCH] perf python: Do not force closing original perf descriptor in evlist.get_pollfd

2018-12-27 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 27, 2018 at 09:06:38AM +0100, Jiri Olsa escreveu: > On Wed, Dec 26, 2018 at 12:21:21PM +0100, Jiri Olsa wrote: > > Ondřej reported that when compiled with python3, the python > > extension regress in evlist.get_pollfd function behaviour. > > > > The evlist.get_pollfd creates file

Re: [PATCH v37 0/3] Virtio-balloon: support free page reporting

2018-12-27 Thread Christian Borntraeger
On 27.12.2018 12:59, Christian Borntraeger wrote: > On 27.12.2018 12:31, Christian Borntraeger wrote: >> This patch triggers random crashes in the guest kernel on s390 early during >> boot. >> No migration and no setting of the balloon is involved. >> > > Adding Conny and Halil, > > As the

Re: [PATCH v1 3/7] drm: move drm_can_sleep() to drm_util.h

2018-12-27 Thread Daniel Vetter
On Wed, Dec 26, 2018 at 10:03:49PM +0100, Sam Ravnborg wrote: > Move drm_can_sleep() out of drmP.h to allow users > to get rid of the drmP.h include. > > There was no header file that was a good match for this helper function. > So add this to drm_util with the relevant includes. > > Add include

Re: [PATCH v1 2/7] drm: move DRM_SWITCH_POWER defines to drm_device.h

2018-12-27 Thread Daniel Vetter
On Wed, Dec 26, 2018 at 10:03:48PM +0100, Sam Ravnborg wrote: > Move DRM_SWITCH_POWER out of drmP.h to allow users > to get rid of the drmP include. > > DRM_SWITCH_POWER defines are used in combination > with drm_device.switch_power_state. > > Move the DRM_SWITCH_POWER defines to the file where

Re: [PATCH v1 1/7] drm: move DRM_IF_VERSION to drm_internal.h

2018-12-27 Thread Daniel Vetter
On Wed, Dec 26, 2018 at 10:03:47PM +0100, Sam Ravnborg wrote: > Move DRM_IF_VERSION out of drmP.h to allow users > to get rid of the drmP include. > > Signed-off-by: Sam Ravnborg > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Sean Paul > Cc: David Airlie > Cc: Daniel Vetter Applied to

Re: [PATCH v37 1/3] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-12-27 Thread Christian Borntraeger
On 27.08.2018 03:32, Wei Wang wrote: > static int init_vqs(struct virtio_balloon *vb) > { > - struct virtqueue *vqs[3]; > - vq_callback_t *callbacks[] = { balloon_ack, balloon_ack, stats_request > }; > - static const char * const names[] = { "inflate", "deflate", "stats" }; > -

Re: [RFC PATCH 1/2] drm/fb-helper: Bring back workaround for bugs of SDL 1.2

2018-12-27 Thread Daniel Vetter
On Wed, Dec 26, 2018 at 05:11:23PM +0500, Ivan Mironov wrote: > SDL 1.2 sets all fields related to the pixel format to zero in some > cases[1]. Prior to commit db05c48197759 ("drm: fb-helper: Reject all > pixel format changing requests"), there was an unintentional workaround > for this that

Re: [PATCH v37 0/3] Virtio-balloon: support free page reporting

2018-12-27 Thread Christian Borntraeger
On 27.12.2018 12:31, Christian Borntraeger wrote: > This patch triggers random crashes in the guest kernel on s390 early during > boot. > No migration and no setting of the balloon is involved. > Adding Conny and Halil, As the QEMU provides no PAGE_HINT feature yet, this quick hack makes the

[GIT PULL] Please pull powerpc/linux.git powerpc-4.21-1 tag

2018-12-27 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Linus, Please pull powerpc updates for 4.21: The following changes since commit ccda4af0f4b92f7b4c308d3acc262f4a7e3affad: Linux 4.20-rc2 (2018-11-11 17:12:31 -0600) are available in the git repository at:

Re: [PATCH 2/3] dt-bindings: gpu: samsung-rotator: Document s5pv210 support

2018-12-27 Thread Paweł Chmiel
Dnia środa, 19 grudnia 2018 17:22:51 CET Krzysztof Kozlowski pisze: > On Wed, 19 Dec 2018 at 17:04, Paweł Chmiel > wrote: > > > > This commit documents new compatible for s5pv210 soc, > > which will be also supported by this driver. > > > > Signed-off-by: Paweł Chmiel > > --- > >

Re: [PATCH 2/3] drm/amd: validate user pitch alignment

2018-12-27 Thread Michel Dänzer
On 2018-12-23 10:44 p.m., Yu Zhao wrote: > On Fri, Dec 21, 2018 at 10:07:26AM +0100, Michel Dänzer wrote: >> On 2018-12-21 4:10 a.m., Yu Zhao wrote: >>> Userspace may request pitch alignment that is not supported by GPU. >>> Some requests 32, but GPU ignores it and uses default 64 when cpp is >>>

iommu_intel or i915 regression in 4.18, 4.19.12 and drm-tip

2018-12-27 Thread Eric Wong
I just got a used Thinkpad X201 (Core i5 M 520, Intel QM57 chipset) and hit some kernel panics while trying to view image/animation-intensive stuff in Firefox (X11) unless I use "iommu_intel=igfx_off". With Debian stable backport kernels, "linux-image-4.17.0-0.bpo.3-amd64" (4.17.17-1~bpo9+1) has

Re: [PATCH] drm/drm_drv.c: Remove duplicate header

2018-12-27 Thread Daniel Vetter
On Mon, Dec 24, 2018 at 08:06:36PM +0530, Brajeswar Ghosh wrote: > Remove drm_crtc_internal.h which is included more than once > > Signed-off-by: Brajeswar Ghosh Applied, thanks for your patch. -Daniel > --- > drivers/gpu/drm/drm_drv.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

bug report: hugetlbfs: use i_mmap_rwsem for more pmd sharing, synchronization

2018-12-27 Thread Colin Ian King
Hi, Static analysis with CoverityScan on linux-next detected a potential null pointer dereference with the following commit: >From d8a1051ed4ba55679ef24e838a1942c9c40f0a14 Mon Sep 17 00:00:00 2001 From: Mike Kravetz Date: Sat, 22 Dec 2018 10:55:57 +1100 Subject: [PATCH] hugetlbfs: use

Re: [PATCH v37 0/3] Virtio-balloon: support free page reporting

2018-12-27 Thread Christian Borntraeger
This patch triggers random crashes in the guest kernel on s390 early during boot. No migration and no setting of the balloon is involved. On 27.08.2018 03:32, Wei Wang wrote: > The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, implemented by this > series enables the virtio-balloon driver to

<    1   2   3   4   >