[PATCH 4.14 045/183] iommu/vt-d: Use domain instead of cache fetching

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Peter Xu [ Upstream commit 9d2e6505f6d6934e681aed502f566198cb25c74a ] after commit a1ddcbe93010 ("iommu/vt-d: Pass dmar_domain directly into iommu_flush_iotlb_psi", 2015-08-12), we have domai

[PATCH 4.14 043/183] iommu/exynos: Dont unconditionally steal bus ops

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Robin Murphy [ Upstream commit dc98b8480d8a68c2ce9aa28b9f0d714fd258bc0b ] Removing the early device registration hook overlooked the fact that it only ran conditionally on a compatible device

[PATCH 4.14 042/183] perf record: Fix failed memory allocation for get_cpuid_str

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Richter [ Upstream commit 81fccd6ca507d3b2012eaf1edeb9b1dbf4bd22db ] In x86 architecture dependend part function get_cpuid_str() mallocs a 128 byte buffer, but does not check if the me

[PATCH 4.14 041/183] tools lib traceevent: Fix get_field_str() for dynamic strings

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (VMware)" [ Upstream commit d777f8de99b05d399c0e4e51cdce016f26bd971b ] If a field is a dynamic string, get_field_str() returned just the offset/size value and not the string.

[PATCH 4.14 044/183] powerpc: System reset avoid interleaving oops using die synchronisation

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Piggin [ Upstream commit 4552d128c26e0f0f27a5bd2fadc24092b8f6c1d7 ] The die() oops path contains a serializing lock to prevent oops messages from being interleaved. In the case of a

[PATCH] powerpc/xics: add missing of_node_put() in error path

2018-04-25 Thread YueHaibing
The device node obtained with of_find_compatible_node() should be released by calling of_node_put(). But it was not released when of_get_property() failed. Signed-off-by: YueHaibing --- arch/powerpc/sysdev/xics/xics-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/sy

Re: [PATCH] p9caps: add Plan9 capability devices

2018-04-25 Thread Enrico Weigelt
On 17.02.2018 23:11, Richard Weinberger wrote: Hi, +static LIST_HEAD(caphash_writers); >> +>> +static DEFINE_MUTEX(lock);>> +>> +struct crypto_ahash *hmac_tfm = NULL;>> +>> +static int caphash_open(struct inode *inode, struct file *filp)>> +{>> + struct caphash_writer *tmp = NULL;>> + s

[PATCH 4.14 039/183] tools lib traceevent: Simplify pointer print logic and fix %pF

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (VMware)" [ Upstream commit 38d70b7ca1769f26c0b79f3c08ff2cc949712b59 ] When processing %pX in pretty_print(), simplify the logic slightly by incrementing the ptr to the format

[PATCH 4.14 037/183] scsi: qla2xxx: Fix warning in qla2x00_async_iocb_timeout()

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: "himanshu.madh...@cavium.com" [ Upstream commit 7ac0c332f96bb9688560726f5e80c097ed8de59a ] This patch fixes following Smatch warning: drivers/scsi/qla2xxx/qla_init.c:130 qla2x00_async_iocb_t

[PATCH 4.14 036/183] i40iw: Zero-out consumer key on allocate stag for FMR

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Shiraz Saleem [ Upstream commit 6376e926af1a8661dd1b2e6d0896e07f84a35844 ] If the application invalidates the MR before the FMR WR, HW parses the consumer key portion of the stag and returns

[PATCH 4.14 038/183] perf unwind: Do not look just at the global callchain_param.record_mode

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo [ Upstream commit eabad8c6856f185f876b54c426c2cc69fe0f0a7d ] When setting up DWARF callchains on specific events, without using 'record' or 'trace' --call-graph, but

[PATCH 4.14 040/183] perf callchain: Fix attr.sample_max_stack setting

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo [ Upstream commit 249d98e567e25dd03e015e2d31e1b7b9648f34df ] When setting the "dwarf" unwinder for a specific event and not specifying the max-stack, the attr.sample_

Re: [REVIEW][PATCH 09/22] signal/nds32: Use force_sig_fault where appropriate

2018-04-25 Thread Vincent Chen
2018-04-20 22:37 GMT+08:00 Eric W. Biederman : > Filling in struct siginfo before calling force_sig_info a tedious and > error prone process, where once in a great while the wrong fields > are filled out, and siginfo has been inconsistently cleared. > > Simplify this process by using the helper for

[PATCH 4.14 000/183] 4.14.37-stable review

2018-04-25 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.37 release. There are 183 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Apr 27 10:32:04 UTC 2018. Anything recei

[PATCH 4.14 008/183] drm/i915/audio: Fix audio detection issue on GLK

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Gaurav K Singh commit b4615730530be85fc45ab4631c2ad6d8e2d0b97d upstream. On Geminilake, sometimes audio card is not getting detected after reboot. This is a spurious issue happening on Geminil

[PATCH 4.14 025/183] netfilter: ipv6: nf_defrag: Pass on packets to stack per RFC2460

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Subash Abhinov Kasiviswanathan [ Upstream commit 83f1999caeb14e15df205e80d210699951733287 ] ipv6_defrag pulls network headers before fragment header. In case of an error, the netfilter layer

[PATCH 4.14 006/183] drm/vc4: Fix memory leak during BO teardown

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Daniel J Blueman commit c0db1b677e1d584fab5d7ac76a32e1c0157542e0 upstream. During BO teardown, an indirect list 'uniform_addr_offsets' wasn't being freed leading to leaking many 128B allocatio

[PATCH 4.14 004/183] clocksource/imx-tpm: Correct -ETIME return condition check

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Anson Huang commit 7407188489c62a7b5694bc75a6db2b82af94c9a5 upstream. The additional brakects added to tpm_set_next_event's return value computation causes (int) forced type conversion NOT tak

[PATCH 4.14 021/183] ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read()

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 123af9043e93cb6f235207d260d50f832cdb5439 ] The loop timeout doesn't work because it's a post op and ends with "tmo" set to -1. I changed it from a post-op to

[PATCH 4.14 019/183] ACPI / LPSS: Do not instiate platform_dev for devs without MMIO resources

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede [ Upstream commit e1681599345b8466786b6e54a2db2a00a068a3f3 ] acpi_lpss_create_device() skips handling LPSS devices which do not have a mmio resources in their resource list (typ

[PATCH 4.14 024/183] KVM: PPC: Book3S HV: Enable migration of decrementer register

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras [ Upstream commit 5855564c8ab2d9cefca7b2933bd19818eb795e40 ] This adds a register identifier for use with the one_reg interface to allow the decrementer expiry time to be read

[PATCH 4.14 016/183] firewire-ohci: work around oversized DMA reads on JMicron controllers

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hector Martin [ Upstream commit 188775181bc05f29372b305ef96485840e351fde ] At least some JMicron controllers issue buggy oversized DMA reads when fetching context descriptors, always fetching

[PATCH 4.14 018/183] NFSv4: always set NFS_LOCK_LOST when a lock is lost.

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown [ Upstream commit dce2630c7da73b0634686bca557cc8945cc450c8 ] There are 2 comments in the NFSv4 code which suggest that SIGLOST should possibly be sent to a process. In these cases

[PATCH 4.14 015/183] powerpc/eeh: Fix race with driver un/bind

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Michael Neuling commit f0295e047fcf52ccb42561fb7de6942f5201b676 upstream. The current EEH callbacks can race with a driver unbind. This can result in a backtraces like this: EEH: Frozen PHB

[PATCH 1/1] ocfs2: eliminate a misreported warning

2018-04-25 Thread Zhen Lei
Below warning can not be happened, because the parameter chunksize passed from ocfs2_info_freefrag_scan_chain-->ocfs2_info_update_ffg is guaranteed to be positive. So __ilog2_u32 is impossible return -1. fs/ocfs2/ioctl.c: In function 'ocfs2_info_update_ffg': fs/ocfs2/ioctl.c:411:17: warning: array

[PATCH 4.16 21/26] netfilter: compat: reject huge allocation requests

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit 7d7d7e02111e9a4dc9d0658597f528f815d820fd upstream. no need to bother even trying to allocating huge compat offset arrays, such ruleset is rejected later on anyway becau

[PATCH 4.16 19/26] netfilter: x_tables: add counters allocation wrapper

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit c84ca954ac9fa67a6ce27f91f01e4451c74fd8f6 upstream. allows to have size checks in a single spot. This is supposed to reduce oom situations when fuzz-testing xtables. Si

[PATCH 4.14 013/183] usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers

2018-04-25 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Merlijn Wajer commit df6b074dbe248d8c43a82131e8fd429e401841a5 upstream. Without pm_runtime_{get,put}_sync calls in place, reading vbus status via /sys causes the following error: Unhandled fa

[PATCH 4.16 02/26] cifs: do not allow creating sockets except with SMB1 posix exensions

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Steve French commit 1d0cffa674cfa7d185a302c8c6850fc50b893bed upstream. RHBZ: 1453123 Since at least the 3.10 kernel and likely a lot earlier we have not been able to create unix domain socket

Re: [RFC 00/13] arm64: allwinner: Add A64 DE2 pipeline support

2018-04-25 Thread Jagan Teki
On Tue, Apr 24, 2018 at 9:02 PM, Jernej Škrabec wrote: > Hi, > > Dne torek, 24. april 2018 ob 15:34:12 CEST je Jagan Teki napisal(a): >> Allwinner A64 has display engine pipeline like other Allwinner SOC's >> A83T/H3/H5. >> >> A64 DE2 behaviour similar to Allwinner A83T where mixer0, connected to

[PATCH 4.16 18/26] netfilter: x_tables: cap allocations at 512 mbyte

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit 19926968ea86a286aa6fbea16ee3f2e7442f10f0 upstream. Arbitrary limit, however, this still allows huge rulesets (> 1 million rules). This helps with automated fuzzer as i

[PATCH 4.16 16/26] alarmtimer: Init nanosleep alarm timer on stack

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit bd03143007eb9b03a7f2316c677780561b68ba2a upstream. syszbot reported the following debugobjects splat: ODEBUG: object is on stack, but not annotated WARNING: CPU: 0 PI

[PATCH 4.16 17/26] mm,vmscan: Allow preallocating memory for register_shrinker().

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Tetsuo Handa commit 8e04944f0ea8b838399049bdcda920ab36ae3b04 upstream. syzbot is catching so many bugs triggered by commit 9ee332d99e4d5a97 ("sget(): handle failures of register_shrinker()").

[PATCH 4.16 01/26] cifs: smbd: Check for iov length on sending the last iov

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Long Li commit ab60ee7bf9a84954f50a66a3d835860e80f99b7f upstream. When sending the last iov that breaks into smaller buffers to fit the transfer size, it's necessary to check if this is the la

[PATCH 4.16 13/26] drm/i915/audio: Fix audio detection issue on GLK

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Gaurav K Singh commit b4615730530be85fc45ab4631c2ad6d8e2d0b97d upstream. On Geminilake, sometimes audio card is not getting detected after reboot. This is a spurious issue happening on Geminil

[PATCH v3 2/2] x86/mce: add CMCI support for Centaur CPUs

2018-04-25 Thread David Wang
Newer Centaur support CMCI mechnism, which is compatible with INTEL CMCI. Signed-off-by: David Wang --- arch/x86/kernel/cpu/mcheck/mce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 38ccab8..f9a7295 100644 --- a/a

[PATCH 4.16 14/26] drm/i915: Do no use kfree() to free a kmem_cache_alloc() return value

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Xidong Wang commit fcf1fadf4c65eea6c519c773d2d9901e8ad94f5f upstream. Along the eb_lookup_vmas() error path, the return value from kmem_cache_alloc() was freed using kfree(). Fix it to use the

[PATCH 4.16 10/26] drm/i915/gvt: throw error on unhandled vfio ioctls

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Gerd Hoffmann commit 9f591ae60e1be026901398ef99eede91237aa3a1 upstream. On unknown/unhandled ioctls the driver should return an error, so userspace knows it tried to use something unsupported.

[PATCH v3 1/2] x86/mce: new Centaur CPU support MCE broadcasting

2018-04-25 Thread David Wang
Newer Centaur multi-core CPU also support MCE broadcasting to all cores. But no Centaur special code tell this truth to kernel. Signed-off-by: David Wang --- arch/x86/kernel/cpu/mcheck/mce.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/x86/kernel/cpu/mcheck/mce

[PATCH 4.16 11/26] drm/i915/gvt: Add drm_format_mod update

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Tina Zhang commit 10996f802109c83421ca30556cfe36ffc3bebae3 upstream. Add drm_format_mod update, which is omitted. Fixes: e546e281("drm/i915/gvt: Dmabuf support for GVT-g") Cc: sta...@vger.ker

Re: [PATCH 0/6] soc: qcom: smem: bug fixes

2018-04-25 Thread Alex Elder
On 04/24/2018 11:07 PM, Andy Gross wrote: > On Fri, Apr 20, 2018 at 07:11:41AM -0500, Alex Elder wrote: >> On 04/10/2018 05:25 PM, Alex Elder wrote: >>> This series contains mostly bug fixes to the Qualcomm shared memory >>> ("smem") code. Although the bugs are real, they have most likely >>> neve

Re: [PATCH v2 1/2] clk: meson: gxbb: expose VDEC_1 and VDEC_HEVC clocks

2018-04-25 Thread Jerome Brunet
On Tue, 2018-04-24 at 20:48 +0200, Maxime Jourdan wrote: > Signed-off-by: Maxime Jourdan Even if the change is trivial, please add commit description. I'll do it for you this time. Applied to next/headers Thx > --- > include/dt-bindings/clock/gxbb-clkc.h | 2 ++ > 1 file changed, 2 insertions(

[PATCH 4.16 12/26] drm/i915/bios: filter out invalid DDC pins from VBT child devices

2018-04-25 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit a3520b8992e57bc94ab6ec9f95f09c6c932555fd upstream. The VBT contains the DDC pin to use for specific ports. Alas, sometimes the field appears to contain bogus data, and while

[PATCH] f2fs: fix potential overflow

2018-04-25 Thread Chao Yu
From: Chao Yu In build_sit_entries(), if valid_blocks in SIT block is smaller than valid_blocks in journal, for below calculation: sbi->discard_blks += old_valid_blocks - se->valid_blocks; There will be two times potential overflow: - old_valid_blocks - se->valid_blocks will overflow, and be a

Re: [PATCH net 3/3] ARM64: dts: marvell: armada-cp110: Add clocks for the xmdio node

2018-04-25 Thread Gregory CLEMENT
Hi Maxime, On mer., avril 25 2018, Maxime Chevallier wrote: > The Marvell XSMI controller needs 3 clocks to operate correctly : > - The MG clock (clk 5) > - The MG Core clock (clk 6) > - The GOP clock (clk 18) > > This commit adds them, to avoid system hangs when using these > interfaces

Re: [PATCH net 2/3] net: mvpp2: Fix clock resource by adding missing mg_core_clk

2018-04-25 Thread Gregory CLEMENT
Hi Maxime, On mer., avril 25 2018, Maxime Chevallier wrote: > Marvell's PPv2.2 IP needs an additional clock named "MG Core clock". > This is required on Armada 7K and 8K. > > This commit adds the required clock, updates the devicetree and its > documentation accordingly, also fixing a small t

Re: [PATCH v5 04/11] vsprintf: Do not check address of well-known strings

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > We are going to check the address using probe_kernel_address(). It > will > be more expensive and it does not make sense for well known address. > > This patch splits the string() function. The variant without the check > is then used on loca

Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device

2018-04-25 Thread no-reply
Hi, This series failed docker-build@min-glib build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180425112415.12327-4-pagu...@redhat.com Subject: [Qemu-devel] [RFC v2] qemu: Add virti

Re: [PATCH v3 5/5] drm/arm/malidp: Added the late system pm functions

2018-04-25 Thread Daniel Vetter
On Wed, Apr 25, 2018 at 1:26 PM, Liviu Dudau wrote: > On Wed, Apr 25, 2018 at 09:17:22AM +0200, Daniel Vetter wrote: >> On Tue, Apr 24, 2018 at 07:12:47PM +0100, Ayan Kumar Halder wrote: >> > malidp_pm_suspend_late checks if the runtime status is not suspended >> > and if so, invokes malidp_runtim

Re: [PATCH net 2/3] net: mvpp2: Fix clock resource by adding missing mg_core_clk

2018-04-25 Thread Maxime Chevallier
Hi Gregory, On Wed, 25 Apr 2018 13:43:14 +0200 Gregory CLEMENT wrote: >Hi Maxime, > > On mer., avril 25 2018, Maxime Chevallier > wrote: > >> Marvell's PPv2.2 IP needs an additional clock named "MG Core clock". >> This is required on Armada 7K and 8K. >> >> This commit adds the required clock,

Re: [PATCH 0/8] Fix year 2038 issue for sound subsystem

2018-04-25 Thread Mark Brown
On Wed, Apr 25, 2018 at 01:26:23PM +0200, Arnd Bergmann wrote: > On Wed, Apr 25, 2018 at 9:23 AM, Jaroslav Kysela wrote: > > We have almost everything hidden in the alsa-lib code for the > > applications and there is the protocol versioning, so we can detect the > > changes easily and handle the

Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device

2018-04-25 Thread Pankaj Gupta
Hi, Compile failures are because Qemu 'Memory-Device changes' are not yet in qemu master. As mentioned in Qemu patch message patch is dependent on 'Memeory-device' patches by 'David Hildenbrand'. Already picked up by maintainer. > Hi, > > This series failed build test on s390x host. Please find

Re: azx_probe() called twice

2018-04-25 Thread Takashi Iwai
On Wed, 25 Apr 2018 13:48:27 +0200, Paul Menzel wrote: > > Dear Linux folks, > > > With the attached debug patch, `azx_probe()` seems to have been called > twice on the ASRock E350M1. Is that expected? It also differs, that > it’s only called once during some boots, and twice during others. How

Re: [PATCH v2 2/2] clk: meson: gxbb: add the video decoder clocks

2018-04-25 Thread Jerome Brunet
On Tue, 2018-04-24 at 20:48 +0200, Maxime Jourdan wrote: > Add the SEL/DIV/GATE for VDEC_1 and VDEC_HEVC. > > Signed-off-by: Maxime Jourdan Applied to next/drivers Thx

Re: [RFC 09/10] usb: host: exynos: Remove support for Exynos5440

2018-04-25 Thread Greg Kroah-Hartman
On Tue, Apr 24, 2018 at 10:32:38PM +0200, Krzysztof Kozlowski wrote: > The Exynos5440 is not actively developed, there are no development > boards available and probably there are no real products with it. > Remove wide-tree support for Exynos5440. > > Signed-off-by: Krzysztof Kozlowski > --- >

Re: [RFC PATCH RESEND 1/3] mfd: upboard: Add UP2 platform controller driver

2018-04-25 Thread Javier Arteaga
Hi Mika, On Wed, Apr 25, 2018 at 12:51:41PM +0300, Mika Westerberg wrote: > On Sat, Apr 21, 2018 at 09:50:07AM +0100, Javier Arteaga wrote: > > +static const struct acpi_device_id upboard_acpi_match[] = { > > + { "AANT0F01", (kernel_ulong_t) &upboard_up2_data }, > > No space after cast so write

Re: [PATCH net 1/3] net: mvpp2: Fix clk error path in mvpp2_probe

2018-04-25 Thread Gregory CLEMENT
Hi Maxime, On mer., avril 25 2018, Maxime Chevallier wrote: > When clk_prepare_enable fails for the axi_clk, the mg_clk isn't properly > cleaned up. Add another jump label to handle that case, and make sure we > jump to it in the later error cases. > > Fixes: 4792ea04bcd0 ("net: mvpp2: Fix cl

[PATCH v4 01/12] mmc: sdhci-omap: Fix when capabilities are obtained from SDHCI_CAPABILITIES reg

2018-04-25 Thread Kishon Vijay Abraham I
sdhci_omap_config_iodelay_pinctrl_state() requires caps and caps2 to be initialized (speed mode capabilities like UHS/HS200) before it is invoked. While mmc_of_parse() initializes caps/caps2 if capabilities is populated in device tree, it will remain uninitialized for capabilities obtained from SDH

[PATCH v4 00/12] mmc: sdhci-omap: Add UHS/HS200 mode support

2018-04-25 Thread Kishon Vijay Abraham I
Add UHS/HS200 mode support in sdhci-omap. The programming sequence for voltage switching, tuning is followed from AM572x TRM http://www.ti.com/lit/ug/spruhz6j/spruhz6j.pdf (Similar to all AM57x/DRA7x SoCs). The patch series also implements workaround for errata published in http://www.ti.com/lit/er

[PATCH v4 11/12] mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC

2018-04-25 Thread Kishon Vijay Abraham I
Add support for the new compatible added specifically to support k2g's MMC/SD controller. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-omap

[PATCH v4 10/12] dt-bindings: sdhci-omap: Add K2G specific binding

2018-04-25 Thread Kishon Vijay Abraham I
Add binding for the TI's sdhci-omap controller present in K2G. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring Acked-by: Tony Lindgren --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v4 05/12] mmc: sdhci: Disable HS200/HS400 mode if controller can't support 1.8v

2018-04-25 Thread Kishon Vijay Abraham I
Though MMC controller can indicate HS200/HS400 mode capability (by using "mmc-hs200-1_8v"/"mmc-hs400-1_8v" dt property), if the IO lines in the board is connected to 3.3v supply, HS200/HS400 mode cannot be supported. Such boards have "no-1-8-v" property in their dts file. Disable HS200/HS400 mode f

[PATCH v4 09/12] mmc: sdhci-omap: Workaround for Errata i834

2018-04-25 Thread Kishon Vijay Abraham I
Errata i834 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 (SPRZ429L July 2014–Revised April 2018 [1]) mentions the maximum obtainable timeout through MMC host controller is 700ms. And for commands taking longer than 700ms, hardware timeout should be disabled and software timeout should be u

[PATCH v4 12/12] mmc: sdhci-omap: Add sdhci_omap specific ops for enable_sdio_irq

2018-04-25 Thread Kishon Vijay Abraham I
Add sdhci_omap_enable_sdio_irq to set CTPL and CLKEXTFREE bits in MMCHS_CON register required to detect asynchronous card interrupt on DAT[1]. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 19 +++ 1 fil

Re: [REVIEW][PATCH 05/17] signal/nds32: Use force_sig(SIGILL) in do_revisn

2018-04-25 Thread Vincent Chen
2018-04-20 9:03 GMT+08:00 Eric W. Biederman : > As originally committed do_revisn would deliver a siginfo for SIGILL > with an si_code composed of random stack contents. That makes no > sense and is not something userspace can depend on. So simplify > the code and just use "force_sig(SIG_ILL, cur

[PATCH] drm: rcar-du: Use drm_dev_put

2018-04-25 Thread Vaishali Thakkar
As specified in drm_drv.c, drm_dev_unref is a compatibility alias for drm_dev_put and shouldn't be used in new code. So, use drm_dev_put instead. Signed-off-by: Vaishali Thakkar --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH v4 08/12] mmc: sdhci: Program a relatively accurate SW timeout value

2018-04-25 Thread Kishon Vijay Abraham I
sdhci has a 10 second timeout to catch devices that stop responding. In the case of quirk SDHCI_QUIRK2_DISABLE_HW_TIMEOUT, instead of programming 10 second arbitrary value, calculate the total time it would take for the entire transfer to happen and program the timeout value accordingly. Signed-of

[PATCH v4 06/12] mmc: sdhci: Add quirk to disable HW timeout

2018-04-25 Thread Kishon Vijay Abraham I
From: Adrian Hunter Add quirk to disable HW timeout if the requested timeout is more than the maximum obtainable timeout. Also, if the quirk is set and ->get_max_timeout_count() is not implemented, max_busy_timeout is set to zero. Based-on-patch-by: Kishon Vijay Abraham I Signed-off-by: Adrian

[PATCH v4 07/12] mmc: sdhci: Factor out target_timeout calculation

2018-04-25 Thread Kishon Vijay Abraham I
From: Adrian Hunter Factor out the target_timeout calculation so it can be re-used. Signed-off-by: Adrian Hunter Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/sdhci.c | 48 +--- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/dr

[PATCH v4 04/12] mmc: sdhci-omap: Invoke sdhci_get_of_property to read sdhci dt properties

2018-04-25 Thread Kishon Vijay Abraham I
Invoke sdhci_get_of_property defined in sdhci-pltfm.c to read sdhci specific properties from dt node. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdh

[PATCH v4 02/12] mmc: sdhci-omap: Remove setting ADMA capability in driver

2018-04-25 Thread Kishon Vijay Abraham I
sdhci can directly get ADMA capability from MMCHS_CAPA register. Remove explicitly setting ADMA here as some instances might not have ADMA enabled. (sdhci_read_caps() is also removed from here since sdhci_setup_host() invokes it). Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Ack

[PATCH v4 03/12] mmc: sdhci-omap: Workaround for Errata i843

2018-04-25 Thread Kishon Vijay Abraham I
Errata i843 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 (SPRZ429L July 2014–Revised April 2018 [1]) mentions PG 1.0/1.1 silicon has limitations w.r.t frequencies at which MMC1/2/3 can operate. Use soc_device_match() to identify rev 1.0/1.1 silicon and override mmc->f_max according to the

Re: testing io.low limit for blk-throttle

2018-04-25 Thread Joseph Qi
Hi Paolo, On 18/4/24 20:12, Paolo Valente wrote: > > >> Il giorno 23 apr 2018, alle ore 11:01, Joseph Qi ha >> scritto: >> >> >> >> On 18/4/23 15:35, Paolo Valente wrote: >>> >>> Il giorno 23 apr 2018, alle ore 08:05, Joseph Qi ha scritto: Hi Paolo, >>> >>> Hi Joseph, >>>

Re: [REVIEW][PATCH 04/17] signal/nds32: Use force_sig in unhandled_interruption and unhandled_exceptions

2018-04-25 Thread Vincent Chen
2018-04-20 9:03 GMT+08:00 Eric W. Biederman : > Neither unhandled_interrupt nor unhandled_exceptions fills in any of the > siginfo fields whend sending SIGKILL. Further because it is SIGKILL > even if all of the fields were filled out appropriately it would be impossible > for the process to read

[PATCH v7 00/16] tracing: probeevent: Improve fetcharg features

2018-04-25 Thread Masami Hiramatsu
Hi, This is the 7th version of the fetch-arg improvement series. This includes variable changes on fetcharg framework like, - Add fetcharg testcases (syntax, argN, symbol, string and array) and probepoint testcase. - Rewrite fetcharg framework with fetch_insn, switch-case based instead of fun

[PATCH v7 01/16] tracing: probeevent: Cleanup print argument functions

2018-04-25 Thread Masami Hiramatsu
Cleanup the print-argument function to decouple it into print-name and print-value, so that it can support more flexible expression, like array type. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 20 ++-- kernel/trace/trace_probe.c | 12 +--- kern

[PATCH v7 02/16] tracing: probeevent: Cleanup argument field definition

2018-04-25 Thread Masami Hiramatsu
Cleanup event argument definition code in one place for maintenancability. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 32 kernel/trace/trace_probe.c | 21 + kernel/trace/trace_probe.h |2 ++ kernel/trace/trace_

[PATCH v7 03/16] tracing: probeevent: Remove NOKPROBE_SYMBOL from print functions

2018-04-25 Thread Masami Hiramatsu
Remove unneeded NOKPROBE_SYMBOL from print functions since the print functions are only used when printing out the trace data, and not from kprobe handler. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_probe.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ker

[PATCH v7 04/16] tracing: probeevent: Introduce new argument fetching code

2018-04-25 Thread Masami Hiramatsu
Replace {k,u}probe event argument fetching framework with switch-case based. Currently that is implemented with structures, macros and chain of function-pointers, which is more complicated than necessary and may get a performance penalty by retpoline. This simplify that with an array of "fetch_ins

[PATCH v7 05/16] tracing: probeevent: Unify fetch type tables

2018-04-25 Thread Masami Hiramatsu
Unify {k,u}probe_fetch_type_table to probe_fetch_type_table because the main difference of those type tables (fetcharg methods) are gone. Now we can consolidate it. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 27 +- kernel/trace/trace_probe.c | 54 +

[PATCH v7 06/16] tracing: probeevent: Return consumed bytes of dynamic area

2018-04-25 Thread Masami Hiramatsu
Cleanup string fetching routine so that returns the consumed bytes of dynamic area and store the string information as data_loc format instead of data_rloc. This simplifies the fetcharg loop. Signed-off-by: Masami Hiramatsu --- Changes in v7: - Fix to return an error if failed to fetch string

[PATCH v7 07/16] tracing: probeevent: Append traceprobe_ for exported function

2018-04-25 Thread Masami Hiramatsu
Append traceprobe_ for exported function set_print_fmt() as same as other functions. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c |4 ++-- kernel/trace/trace_probe.c |2 +- kernel/trace/trace_probe.h |2 +- kernel/trace/trace_uprobe.c |4 ++-- 4 files changed

[PATCH v7 08/16] tracing: probeevent: Unify fetch_insn processing common part

2018-04-25 Thread Masami Hiramatsu
Unify the fetch_insn bottom process (from stage 2: dereference indirect data) from kprobe and uprobe events, since those are mostly same. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 47 + kernel/trace/trace_probe_tmpl.h | 55 +

Re: [PATCH v2 1/2] dt-bindings/display/bridge: sii902x: add optional power supplies

2018-04-25 Thread Philippe CORNU
Hi Laurent & Rob :-) On 04/25/2018 11:01 AM, Laurent Pinchart wrote: > Hi Philippe, > > Thank you for the patch. > > On Wednesday, 25 April 2018 10:53:13 EEST Philippe Cornu wrote: >> Add optional power supplies using the description found in >> "SiI9022A/SiI9024A HDMI Transmitter Data Sheet (Au

[PATCH v7 09/16] tracing: probeevent: Add symbol type

2018-04-25 Thread Masami Hiramatsu
Add "symbol" type to probeevent, which is an alias of u32 or u64 (depends on BITS_PER_LONG). This shows the result value in symbol+offset style. This type is only available with kprobe events. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Add symbol type to README file. --- Documentati

[PATCH v7 10/16] x86: ptrace: Add function argument access API

2018-04-25 Thread Masami Hiramatsu
Add regs_get_argument() which returns N th argument of the function call. Note that this chooses most probably assignment, in some case it can be incorrect (e.g. passing data structure or floating point etc.) This is expected to be called from kprobes or ftrace with regs where the top of stack is

[PATCH v7 11/16] tracing: probeevent: Add $argN for accessing function args

2018-04-25 Thread Masami Hiramatsu
Add $argN special fetch variable for accessing function arguments. This allows user to trace the Nth argument easily at the function entry. Note that this returns most probably assignment of registers and stacks. In some case, it may not work well. If you need to access correct registers or stacks

[PATCH v7 12/16] tracing: probeevent: Add array type support

2018-04-25 Thread Masami Hiramatsu
Add array type support for probe events. This allows user to get arraied types from memory address. The array type syntax is TYPE[N] Where TYPE is one of types (u8/16/32/64,s8/16/32/64, x8/16/32/64, symbol, string) and N is a fixed value less than 64. The string array type is a bit diffe

[PATCH v7 13/16] selftests: ftrace: Add a testcase for symbol type

2018-04-25 Thread Masami Hiramatsu
Add a testcase for symbol type with kprobe event. This tests good/bad syntax combinations and also the traced data. If the kernel doesn't support symbol type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- Changes in v3: - Use IP/PC register to test the symbol type ---

Re: [PATCH 1/7] gnss: add GNSS receiver subsystem

2018-04-25 Thread Johan Hovold
On Wed, Apr 25, 2018 at 12:56:45PM +0200, Johan Hovold wrote: > On Wed, Apr 25, 2018 at 10:56:49AM +0200, Greg Kroah-Hartman wrote: > > On Tue, Apr 24, 2018 at 06:34:52PM +0200, Johan Hovold wrote: > > > +static int gnss_open(struct inode *inode, struct file *file) > > > +{ > > > + struct gnss_dev

Re: [PATCH] p9caps: add Plan9 capability devices

2018-04-25 Thread Richard Weinberger
Am Mittwoch, 25. April 2018, 12:38:02 CEST schrieb Enrico Weigelt: > >> + list_for_each_safe(pos, q, &(caphash_writers)) { > >> + tmp = list_entry(pos, struct caphash_entry, list); > > > > list_for_each_entry. > > what's the exact difference ? Whoops, I meant list_for_each_en

[PATCH v7 14/16] selftests: ftrace: Add a testcase for $argN with kprobe_event

2018-04-25 Thread Masami Hiramatsu
Add a testcase for $argN with kprobe event. This tests whether the traced data is correct or not. If the kernel doesn't support $argN (depends on arch), it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- Changes in v5: - Fix description. (Thanks Namhyung!) --- .../ftrace/te

[PATCH v7 15/16] selftests: ftrace: Add a testcase for array type with kprobe_event

2018-04-25 Thread Masami Hiramatsu
Add a testcase for array type with kprobe event. This tests good/bad syntax combinations and also the traced data is correct in several way. If the kernel doesn't support array type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- Changes in v7: - Fix README test. --- ..

[PATCH v7 16/16] perf-probe: Add array argument support

2018-04-25 Thread Masami Hiramatsu
Since kprobes events support an array argument, perf-probe can also support dumping array now. The syntax are [] or [] where the is ... e.g. array[0..5]. This can also be available with string type. In this case, the string array should be "char *array[]" or "char **array_ptr". Note that this

Re: Regression 4.17-rc1: SSD doesn properly resume causing system hang (NULL pointer dereference)

2018-04-25 Thread Bart Van Assche
On Wed, 2018-04-25 at 07:37 +0200, Paul Menzel wrote: > Am 24.04.2018 um 23:17 schrieb Bart Van Assche: > > On Tue, 2018-04-24 at 23:04 +0200, Paul Menzel wrote: > > > I applied your change, and rebuilt the Linux kernel. Unfortunately, it > > > looks like, it didn’t make a difference. > > > > In t

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-25 Thread Greentime Hu
2018-04-25 14:40 GMT+08:00 Christoph Hellwig : > On Wed, Apr 25, 2018 at 09:43:43AM +0800, Greentime Hu wrote: >> Hi Crhistoph, >> >> The ftmac100 works if I revert this commit. > > Thanks. ftmac100 only use dma_map_page, which in the old nds32 code > is just doing a plain page_address and never k

Re: [PATCH 4/5] perf parse-events: Specially handle uncore event alias in small groups

2018-04-25 Thread Liang, Kan
On 4/24/2018 3:29 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Apr 24, 2018 at 03:23:06PM -0400, Liang, Kan escreveu: On 4/24/2018 3:17 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Apr 24, 2018 at 11:20:13AM -0700, kan.li...@linux.intel.com escreveu: From: Kan Liang Perf stat doesn't count t

Re: [PATCHv3 11/11] arm64: docs: document pointer authentication

2018-04-25 Thread Catalin Marinas
On Tue, Apr 17, 2018 at 07:37:35PM +0100, Mark Rutland wrote: > +Basic support > +- > + > +When CONFIG_ARM64_PTR_AUTH is selected, and relevant HW support is > +present, the kernel will assign a random APIAKey value to each process > +at exec*() time. This key is shared by all threads w

Re: [PATCH net 3/3] ARM64: dts: marvell: armada-cp110: Add clocks for the xmdio node

2018-04-25 Thread Gregory CLEMENT
Hi agin, On mer., avril 25 2018, Gregory CLEMENT wrote: > Hi Maxime, > > On mer., avril 25 2018, Maxime Chevallier > wrote: > >> The Marvell XSMI controller needs 3 clocks to operate correctly : >> - The MG clock (clk 5) >> - The MG Core clock (clk 6) >> - The GOP clock (clk 18) >> >>

Re: [PATCH v8 0/6] typec: tcpm: Add sink side support for PPS

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Apr 25, 2018 at 01:26:33AM +0200, Sebastian Reichel wrote: > Hi Greg, > > On Tue, Apr 24, 2018 at 03:57:49PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Apr 23, 2018 at 03:10:55PM +0100, Adam Thomson wrote: > > > This patch set adds sink side support for the PPS feature introduced in > >

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