Re: [PATCH] vfio: fix potential memory leak in vfio_msi_cap_len

2018-09-04 Thread Alex Williamson
On Mon, 27 Aug 2018 05:47:21 -0700 Li Qiang wrote: > Free the vdev->msi_perm in error path. > > Signed-off-by: Li Qiang > --- > drivers/vfio/pci/vfio_pci_config.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/vfio/pci/vfio_pci_config.c > b/drivers/vfio/p

Re: [PATCH v2 2/3] ASoC: tlv320aic31xx: Add headphone/headset detection

2018-09-04 Thread Mark Brown
On Tue, Sep 04, 2018 at 10:36:18AM -0500, Andrew F. Davis wrote: > This device can detect the insertion/removal of headphones and headsets. > Enable reporting this status by enabling this interrupt and forwarding > this to upper-layers if a jack has been defined. This doesn't apply against current

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Stephane Eranian
Arnaldo, On Tue, Sep 4, 2018 at 6:42 AM Arnaldo Carvalho de Melo wrote: > > Em Tue, Sep 04, 2018 at 09:10:49AM +0200, Peter Zijlstra escreveu: > > On Mon, Sep 03, 2018 at 07:45:48PM -0700, Stephane Eranian wrote: > > > A few weeks ago, you had asked if I had more requests for the perf tool. > > >

Re: [PATCH] ASoC: tlv320aic31xx: Remove regulator notification handling

2018-09-04 Thread Mark Brown
On Tue, Sep 04, 2018 at 10:03:40AM -0500, Andrew F. Davis wrote: > On 09/04/2018 09:57 AM, Mark Brown wrote: > > It's there to save us having to rewrite the register cache if we asked > > for the device to be powered down but that didn't actually happen due to > > other constraints, we know all th

[PATCH] staging: most: net: make array 'broadcast' static, shrinks object size

2018-09-04 Thread Colin King
From: Colin Ian King Don't populate the array 'broadcast' on the stack but instead make it static. Makes the object code smaller by 53 bytes: Before: textdata bss dec hex filename 105111521 448 1248030c0 drivers/staging/most/net/net.o After: textdata

Re: [PATCH v2] f2fs: fix to avoid NULL pointer dereference on se->discard_map

2018-09-04 Thread Chao Yu
On 2018/9/4 23:25, Vicente Bergas wrote: > On Mon, Sep 3, 2018 at 9:52 PM, Chao Yu wrote: >> From: Chao Yu >> >> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D200951&data=02%7C01%7C%7Cc2be7ee866b04268e69f08d6127aa973%7C84df9e7fe9f640af

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-09-04 Thread Sean Christopherson
On Tue, Sep 04, 2018 at 06:38:03PM +0300, Jarkko Sakkinen wrote: > On Mon, Sep 03, 2018 at 10:02:16PM +0300, Andy Shevchenko wrote: > > On Mon, Aug 27, 2018 at 9:58 PM Jarkko Sakkinen > > wrote: > > > > > > + WARN(ret < 0, "sgx: cannot free page, reclaim in-progress"); > > > + WARN(ret

Re: [PATCH v5 07/16] x86/pci: add Hygon PCI vendor and northbridge support

2018-09-04 Thread Pu Wen
On 2018/9/4 22:52, Borislav Petkov wrote: Add Hygon support in amd_postcore_init(), early_root_info_init(). This whole commit message needs to not say *what* the patch does. Will rework the whole commit messages. +#define PCI_DEVICE_ID_HYGON_18H_ROOT 0x1450 +#define PCI_DEVICE_ID_HYGON_

Re: POSIX violation by writeback error

2018-09-04 Thread Jeff Layton
On Tue, 2018-09-04 at 22:56 +0800, 焦晓冬 wrote: > On Tue, Sep 4, 2018 at 7:09 PM Jeff Layton wrote: > > > > On Tue, 2018-09-04 at 16:58 +0800, Trol wrote: > > > On Tue, Sep 4, 2018 at 3:53 PM Rogier Wolff > > > wrote: > > > > > > ... > > > > > > > > > > Jlayton's patch is simple but wonderful i

[PATCH v2 03/03] clk: actions: Add Actions Semi S500 SoC clock support

2018-09-04 Thread Edgar Bernardi Righi
Basic clock support for S500 SoC was implemented using the Actions Semi Owl clock driver. This patch also adds custom delay support to Actions Semi OWL pll clock driver. The default delay (50us) is not enough for Actions Semi Owl S500 SoC. It needs up to 150us. A new field called "delay" was added

Re: [PATCH] mmc: omap_hsmmc: fix wakeirq handling on removal

2018-09-04 Thread Tony Lindgren
* Ulf Hansson [180904 14:39]: > On 2 September 2018 at 09:30, Andreas Kemnade wrote: > > after unbinding mmc I get things like this: > > [ 185.294067] mmc1: card 0001 removed > > [ 185.305206] omap_hsmmc 480b4000.mmc: wake IRQ with no resume: -13 > > > > The wakeirq stays in /proc-interrupts >

[PATCH v2 02/03] arm: dts: actions: Enable clock controller for Actions Semi S500 SoC

2018-09-04 Thread Edgar Bernardi Righi
Enable clock controller for Actions Semi S500 SoC on owl-s500 device tree. Set UART clock reference from CMU for Actions Semi S500 SoC. Tested on a Lemaker Guitar board. Signed-off-by: Edgar Bernardi Righi diff --git a/arch/arm/boot/dts/owl-s500-cubieboard6.dts b/arch/arm/boot/dts/owl-s500-cubi

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-09-04 Thread Jarkko Sakkinen
On Mon, Sep 03, 2018 at 10:02:16PM +0300, Andy Shevchenko wrote: > On Mon, Aug 27, 2018 at 9:58 PM Jarkko Sakkinen > wrote: > > > > Add a Enclave Page Cache (EPC) memory manager that can be used to > > allocate and free EPC pages. The swapper thread ksgxswapd reclaims pages > > on the event when t

Re: [PATCH v2] ARM: dts: imx6ul: Add DTS for ConnectCore 6UL SBC Pro

2018-09-04 Thread Fabio Estevam
On Tue, Sep 4, 2018 at 12:28 PM, Alex Gonzalez wrote: > +&lcdif { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_lcdif_dat0_17 > +&pinctrl_lcdif_clken > +&pinctrl_lcdif_hvsync>; > + lcd-supply = <&ldo4_ext>; /* BU90T82 LVDS

Re: [PATCH] rtl8xxxu: Add rtl8188ctv support

2018-09-04 Thread Jes Sorensen
On 09/04/2018 04:16 AM, Kalle Valo wrote: > Aleksei Mamlin wrote: > >> The Realtek rtl8188ctv (0x0bda:0x018a) is a highly integrated single-chip >> WLAN USB2.0 network interface controller. >> >> Currently rtl8188ctv is supported by rtlwifi driver. >> It is similar to the rtl8188cus(0x0bda:0x818a

[PATCH v2 2/3] ASoC: tlv320aic31xx: Add headphone/headset detection

2018-09-04 Thread Andrew F. Davis
This device can detect the insertion/removal of headphones and headsets. Enable reporting this status by enabling this interrupt and forwarding this to upper-layers if a jack has been defined. This jack definition and the resulting operation from a jack detection event must currently be defined by

Re: [PATCH 06/27] clk: sunxi-ng: h6: Set video PLLs limits

2018-09-04 Thread kbuild test robot
Hi Jernej, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on sunxi/sunxi/for-next] [also build test WARNING on v4.19-rc2 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

[PATCH v2 3/3] ASoC: tlv320aic31xx: Add button press detection

2018-09-04 Thread Andrew F. Davis
This device can optionally detect headset or microphone button presses. Add support for this by passing this event to the jack layer. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 17 +++-- sound/soc/codecs/tlv320aic31xx.h | 3 ++- 2 files changed, 17 inserti

[PATCH v2 01/03] dt-bindings: clock: Add Clock Management Unit for Actions Semi S500 SoC

2018-09-04 Thread Edgar Bernardi Righi
Add Clock Management Unit for Actions Semi S500 SoC. Dt-Bindings constants added. Tested on a Lemaker Guitar board. Signed-off-by: Edgar Bernardi Righi diff --git a/include/dt-bindings/clock/actions,s500-cmu.h b/include/dt-bindings/clock/actions,s500-cmu.h new file mode 100644 index

[PATCH v2 1/3] ASoC: tlv320aic31xx: Add overflow detection support

2018-09-04 Thread Andrew F. Davis
Similar to short circuit detection, when the ADC/DAC is saturated and overflows poor audio quality can result and should be reported to the user. This device support Automatic Dynamic Range Compression (DRC) to reduce this but it is not enabled currently in this driver. Signed-off-by: Andrew F. Da

Re: [PATCH] mm: slowly shrink slabs with a relatively small number of objects

2018-09-04 Thread Roman Gushchin
On Tue, Sep 04, 2018 at 09:00:05AM +0200, Michal Hocko wrote: > On Mon 03-09-18 13:28:06, Roman Gushchin wrote: > > On Mon, Sep 03, 2018 at 08:29:56PM +0200, Michal Hocko wrote: > > > On Fri 31-08-18 14:31:41, Roman Gushchin wrote: > > > > On Fri, Aug 31, 2018 at 05:15:39PM -0400, Rik van Riel wrot

[PATCH v2 00/03] Add clock driver for Actions Semi S500 SoC

2018-09-04 Thread Edgar Bernardi Righi
This patchset adds clock support for Actions Semi Owl series S500 SoC with relevant clock bindings and device tree info. Updates from v1 to v2: SoC supports were organized in alphabetical manner. "_DELAY" suffixes were removed. Patch generation format changed. Commits were rebased on top of Saravan

Re: [PATCH v13 10/13] x86/sgx: Add sgx_einit() for initializing enclaves

2018-09-04 Thread Jarkko Sakkinen
On Tue, Sep 04, 2018 at 07:54:51AM -0700, Sean Christopherson wrote: > I don't see any value in trying to rule out specific causes of > INVALID_TOKEN, but we should only retry EINIT if ret==INVALID_TOKEN > and RDMSR(HASH0) != sgx_lepubkeyhash[0]. Only the first MSR needs to > be checked for validi

[PATCH v3] regulator: fix kernel-doc for regulator_suspend()

2018-09-04 Thread Randy Dunlap
. v3: respin, v2 did not apply cleanly. drivers/regulator/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20180904.orig/drivers/regulator/core.c +++ linux-next-20180904/drivers/regulator/core.c @@ -4466,7 +4466,7 @@ EXPORT_SYMBOL_GPL(regulator_unregister); #

[PATCH v2] ARM: dts: imx6ul: Add DTS for ConnectCore 6UL SBC Pro

2018-09-04 Thread Alex Gonzalez
The ConnectCore 6UL Single Board Computer (SBC) Pro contains the ConnectCore 6UL System-On-Module. Its hardware specifications are: * 256MB DDR3 memory * On module 256MB NAND flash * Dual 10/100 Ethernet * USB Host and USB OTG * Parallel RGB display header * LVDS display header * CSI camera * GPI

[PATCH v2] ARM: dts: imx6ul: Add DTS for ConnectCore 6UL SBC Pro

2018-09-04 Thread Alex Gonzalez
This patch adds a device tree for the ConnectCore 6UL SBC Pro board, based on the ConnectCore 6UL SOM. Changes since v1 [1]: * Removed unused pinctrl nodes * Replace undocumented vendor BSP node by using GPIO hogs * Formatting changes: * Change node names to use dashes instead of undersco

Re: reboot on wandboard fails with v4.14.67 (bisected to 2059e527a6)

2018-09-04 Thread Fabio Estevam
Hi Rasmus and Greg, On Wed, Aug 29, 2018 at 10:57 AM, Fabio Estevam wrote: > Thanks for reporting. > > Commit 157bcc06094c3 ("ARM: imx_v6_v7_defconfig: Select ULPI support") > was meant to be applied for 4.18 only. > > I think we should revert it from earlier stable versions. Yes, the simplest

Re: [PATCH v13 10/13] x86/sgx: Add sgx_einit() for initializing enclaves

2018-09-04 Thread Jarkko Sakkinen
On Mon, Sep 03, 2018 at 11:45:14PM +, Huang, Kai wrote: > But INVALID_TOKEN is not only returned when MSRs are mismatched, so do > you plan to check to rule out other cases that cause INVALID_TOKEN > before retrying EINIT, or unconditionally retry EINIT? And we should > only retry once? In th

Re: [PATCH] x86/setup: Deal with "quiet" commandline option earlier

2018-09-04 Thread Hans de Goede
Hi, On 04-09-18 16:42, Hans de Goede wrote: X86's setup_arch() calls parse_early_param() somewhat late, to make sure that everything is setup correcty to deal with earlyprintk over the EHCI debug port. This means that a number of pr_info-s get done before "early_param("quiet", quiet_kernel)" fr

Re: [PATCH v2] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-09-04 Thread Vignesh R
On Tuesday 04 September 2018 07:11 PM, Menon, Nishanth wrote: > On 15:22-20180903, Kishon Vijay Abraham I wrote: > >> AM65 has two PCIe controllers and each PCIe controller has '2' address >> spaces one within the 4GB address space of the SoC and the other above >> the 4GB address space of the

[tip:x86/paravirt 13/15] arch/x86/entry/entry_64.S:624: Error: invalid operands (*UND* and *ABS* sections) for `/'

2018-09-04 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/paravirt head: 495310e4f2dd857c4d5a62806a04cb8ba53855c1 commit: 6da63eb241a05b0e676d68975e793c0521387141 [13/15] x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella config: x86_64-randconfig-g0-09032303 (attach

Re: [PATCH v12 10/12] livepatch: Atomic replace and cumulative patches documentation

2018-09-04 Thread Miroslav Benes
On Tue, 28 Aug 2018, Petr Mladek wrote: > User documentation for the atomic replace feature. It makes it easier > to maintain livepatches using so-called cumulative patches. I think the documentation should be updated due to API changes. > Signed-off-by: Petr Mladek > --- > Documentation/live

Re: [PATCH v2] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-09-04 Thread Tony Lindgren
* Kishon Vijay Abraham I [180903 09:56]: > AM65 has two PCIe controllers and each PCIe controller has '2' address > spaces one within the 4GB address space of the SoC and the other above > the 4GB address space of the SoC (cbass_main) in addition to the > register space. The size of the address sp

[PATCH v3 2/2] docs: kernel-parameters.txt: document rand_mem_physical_padding parameter

2018-09-04 Thread Masayoshi Mizuma
From: Masayoshi Mizuma This kernel parameter allows to change the padding used for the physical memory mapping section when KASLR memory is enabled. For some systems, the default value, CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING, is not enough. The option is useful to adjust the padding size to wo

[PATCH v3 1/2] x86/mm: Add an option to change the padding used for the physical memory mapping

2018-09-04 Thread Masayoshi Mizuma
From: Masayoshi Mizuma If each node of physical memory layout has huge space for hotplug, the padding used for the physical memory mapping section is not enough. For exapmle of the layout: SRAT: Node 6 PXM 4 [mem 0x1000-0x13ff] hotplug SRAT: Node 7 PXM 5 [mem 0x1400-0x

Re: [PATCH] ASoC: tlv320aic31xx: Add MICBIAS off setting

2018-09-04 Thread Andrew F. Davis
On 09/04/2018 09:55 AM, Mark Brown wrote: > On Tue, Sep 04, 2018 at 09:43:03AM -0500, Andrew F. Davis wrote: >> On 09/04/2018 09:41 AM, Mark Brown wrote: > > If we really want to pay attention to something setting this up we'd > need to completely remove the widget - what the code is doing

Hugepages mixed with stacks in process address space

2018-09-04 Thread Jacek Tomaka
Hello, I was trying to track down the performance differences of one of my applications between running it on kernel used in Centos 7.4 and the latest 4.x version. On 4.x kernels its performance depended on the run and the variability was more than 30%. Bisecting showed that my issue was i

tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h

2018-09-04 Thread kbuild test robot
Hi Alexei, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 60c1f89241d49bacf71035470684a8d7b4bb46ea commit: 819dd92b9c0bc7bce9097d8c1f14240f471bb386 bpfilter: switch to CC from HOSTCC date: 3 months ago config: al

Re: [PATCH] ASoC: tlv320aic31xx: Remove regulator notification handling

2018-09-04 Thread Andrew F. Davis
On 09/04/2018 09:57 AM, Mark Brown wrote: > On Tue, Sep 04, 2018 at 09:50:50AM -0500, Andrew F. Davis wrote: >> On 09/03/2018 06:30 AM, Mark Brown wrote: >>> On Fri, Aug 31, 2018 at 01:17:37PM -0500, Andrew F. Davis wrote: The notification handler sets the reset line but never re-enables it >>

Re: [PATCH 3/7] spi: spi-mem: Add a driver for NXP FlexSPI controller

2018-09-04 Thread Boris Brezillon
Hi Yogesh, On Fri, 31 Aug 2018 16:00:00 +0530 Yogesh Gaur wrote: > - Add a driver for NXP FlexSPI host controller > > (0) What is the FlexSPI controller? > FlexSPI is a flexsible SPI host controller which supports two SPI > channels and up to 4 external devices. > Each channel supports Singl

Re: [PATCH] ASoC: tlv320aic31xx: Remove regulator notification handling

2018-09-04 Thread Mark Brown
On Tue, Sep 04, 2018 at 09:50:50AM -0500, Andrew F. Davis wrote: > On 09/03/2018 06:30 AM, Mark Brown wrote: > > On Fri, Aug 31, 2018 at 01:17:37PM -0500, Andrew F. Davis wrote: > >> The notification handler sets the reset line but never re-enables it > >> as no one is listening for an enable event

Re: POSIX violation by writeback error

2018-09-04 Thread 焦晓冬
On Tue, Sep 4, 2018 at 7:09 PM Jeff Layton wrote: > > On Tue, 2018-09-04 at 16:58 +0800, Trol wrote: > > On Tue, Sep 4, 2018 at 3:53 PM Rogier Wolff wrote: > > > > ... > > > > > > > > Jlayton's patch is simple but wonderful idea towards correct error > > > > reporting. It seems one crucial thing

Re: [PATCH] ASoC: tlv320aic31xx: Add MICBIAS off setting

2018-09-04 Thread Mark Brown
On Tue, Sep 04, 2018 at 09:43:03AM -0500, Andrew F. Davis wrote: > On 09/04/2018 09:41 AM, Mark Brown wrote: > >>> If we really want to pay attention to something setting this up we'd > >>> need to completely remove the widget - what the code is doing at the > >>> minute is setting the voltage tha

Re: [PATCH v13 10/13] x86/sgx: Add sgx_einit() for initializing enclaves

2018-09-04 Thread Sean Christopherson
On Mon, Sep 03, 2018 at 04:45:14PM -0700, Huang, Kai wrote: > > -Original Message- > > From: linux-sgx-ow...@vger.kernel.org [mailto:linux-sgx- > > ow...@vger.kernel.org] On Behalf Of Jarkko Sakkinen > > Sent: Tuesday, September 4, 2018 7:19 AM > > To: Christopherson, Sean J > > Cc: Huang,

Re: [PATCH v5 07/16] x86/pci: add Hygon PCI vendor and northbridge support

2018-09-04 Thread Borislav Petkov
On Wed, Aug 29, 2018 at 08:44:18PM +0800, Pu Wen wrote: > As Hygon register its PCI Vendor ID as a new one "0x1d94", so add a new > definition PCI_VENDOR_ID_HYGON in include/linux/pci_ids.h. > > Also Hygon PCI Device ID(0x1450/0x1463/0x1464) for Host bridge is added > to amd_nb.c. And it need to d

Re: [PATCH] ASoC: tlv320aic31xx: Remove regulator notification handling

2018-09-04 Thread Andrew F. Davis
On 09/03/2018 06:30 AM, Mark Brown wrote: > On Fri, Aug 31, 2018 at 01:17:37PM -0500, Andrew F. Davis wrote: >> The notification handler sets the reset line but never re-enables it >> as no one is listening for an enable event, this is certainly broken >> and was most likely just copied from other

Re: [PATCH v12 09/12] livepatch: Remove Nop structures when unused

2018-09-04 Thread Miroslav Benes
> +void klp_free_objects_dynamic(struct klp_patch *patch) should be static. > +{ > + __klp_free_objects(patch, false); > +} > + Miroslav

[PATCH] ARM64: dts: meson-gxbb-wetek: add ttyAML1 uart for Bluetooth

2018-09-04 Thread chewitt
This change adds the ttyAML1 uart used by the brmcfmac sdio module in the WeTek Hub and WeTek Play 2 devices. Signed-off-by: chewitt --- arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi

[PATCH] afs: remove unused variable afs_zero_fid

2018-09-04 Thread Colin King
From: Colin Ian King Variable afs_zero_fid is defined but not used, hence it is redundant and can be removed. Cleans up clang warning: 'afs_zero_fid' defined but not used [-Wunused-const-variable=] Signed-off-by: Colin Ian King --- fs/afs/fsclient.c | 2 -- 1 file changed, 2 deletions(-) dif

Re: [PATCH] ASoC: tlv320aic31xx: Add MICBIAS off setting

2018-09-04 Thread Andrew F. Davis
On 09/04/2018 09:41 AM, Mark Brown wrote: > On Tue, Sep 04, 2018 at 08:55:06AM -0500, Andrew F. Davis wrote: >> On 09/03/2018 06:26 AM, Mark Brown wrote: > >>> If we really want to pay attention to something setting this up we'd >>> need to completely remove the widget - what the code is doing at

[PATCH v3 3/3] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-04 Thread Jiri Kosina
From: Jiri Kosina STIBP is a feature provided by certain Intel ucodes / CPUs. This feature (once enabled) prevents cross-hyperthread control of decisions made by indirect branch predictors. Enable this feature if - the CPU is vulnerable to spectre v2 - the CPU supports SMT and has SMT sibling

[PATCH v3 2/3] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-04 Thread Jiri Kosina
From: Jiri Kosina Currently, we are issuing IBPB only in cases when switching into a non-dumpable process, the rationale being to protect such 'important and security sensitive' processess (such as GPG) from data leak into a different userspace process via spectre v2. This is however completely

[PATCH] x86/setup: Deal with "quiet" commandline option earlier

2018-09-04 Thread Hans de Goede
X86's setup_arch() calls parse_early_param() somewhat late, to make sure that everything is setup correcty to deal with earlyprintk over the EHCI debug port. This means that a number of pr_info-s get done before "early_param("quiet", quiet_kernel)" from init/main.c gets processed. Until commit 37

[PATCH 4.19 regression fix 0/1] x86/setup: Deal with "quiet" commandline op

2018-09-04 Thread Hans de Goede
Hi All, While booting 4.19-rc2 for the first time I noticed that it was printing a bunch of BIOS-e820 mem init messages on the console even though I have "quiet" on the commandline. See the commit message of the patch for the cause of this. The patch is not really pretty (nor really ugly), but it

Re: [PATCH] ASoC: tlv320aic31xx: Add MICBIAS off setting

2018-09-04 Thread Mark Brown
On Tue, Sep 04, 2018 at 08:55:06AM -0500, Andrew F. Davis wrote: > On 09/03/2018 06:26 AM, Mark Brown wrote: > > If we really want to pay attention to something setting this up we'd > > need to completely remove the widget - what the code is doing at the > > minute is setting the voltage that the

[PATCH v3 1/3] ptrace: Provide ___ptrace_may_access() that can be applied on arbitrary tasks

2018-09-04 Thread Jiri Kosina
From: Jiri Kosina Current ptrace_may_access() implementation assumes that the 'source' task is always the caller (current). Expose ___ptrace_may_access() that can be used to apply the check on arbitrary tasks. Originally-by: Tim Chen Signed-off-by: Jiri Kosina --- Sorry for the resend, my pi

Re: [PATCH 2/4] ASoC: tlv320aic31xx: Add overflow detection support

2018-09-04 Thread Andrew F. Davis
On 09/03/2018 08:03 AM, Mark Brown wrote: > On Fri, Aug 31, 2018 at 01:24:32PM -0500, Andrew F. Davis wrote: >> Similar to short circuit detection, when the ADC/DAC is saturated and >> overflows poor audio quality can result and should be reported to the >> user. This device support Automatic Dynam

Re: [rfc] leds: add TI LMU backlight driver

2018-09-04 Thread Dan Murphy
Pavel On 08/31/2018 04:30 PM, Pavel Machek wrote: > Hi! > >>> Aha. I did not realize that was for same hardware... I should have >>> cc-ed you, I guess. >> >> No worries Jacek cc'd me. > > Good. > I do not like this driver. I don't like that it smashes numerous devices into some struc

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 04, 2018 at 04:17:24PM +0200, Peter Zijlstra escreveu: > On Tue, Sep 04, 2018 at 10:42:18AM -0300, Arnaldo Carvalho de Melo wrote: > > Then I need to get the DW_AT_location stuff parsed in pahole, so > > that with those offsets (second column, ending with :) with hits (first > > col

Re: [PATCH] mmc: omap_hsmmc: fix wakeirq handling on removal

2018-09-04 Thread Ulf Hansson
On 2 September 2018 at 09:30, Andreas Kemnade wrote: > after unbinding mmc I get things like this: > [ 185.294067] mmc1: card 0001 removed > [ 185.305206] omap_hsmmc 480b4000.mmc: wake IRQ with no resume: -13 > > The wakeirq stays in /proc-interrupts > > rebinding shows this: > [ 289.795959] ge

Re: [PATCH] mmc: tegra: fix inconsistent IS_ERR and PTR_ERR

2018-09-04 Thread Ulf Hansson
On 4 September 2018 at 04:59, YueHaibing wrote: > Fix inconsistent IS_ERR and PTR_ERR in tegra_sdhci_init_pinctrl_info, > the proper pointer to be passed as argument is 'pinctrl_state_1v8' > > Signed-off-by: YueHaibing Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/sdhci

[PATCH 1/3] iio: adxl372: Refactor the driver

2018-09-04 Thread Stefan Popa
This patch restructures the existing adxl372 driver by adding a module for SPI and a header file, while the baseline module deals with the chip-logic. This is a necessary step, as this driver should support in the future a similar device which differs only in the type of interface used (I2C instea

[PATCH v3 3/3] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-04 Thread Jiri Kosina
From: Jiri Kosina STIBP is a feature provided by certain Intel ucodes / CPUs. This feature (once enabled) prevents cross-hyperthread control of decisions made by indirect branch predictors. Enable this feature if - the CPU is vulnerable to spectre v2 - the CPU supports SMT and has SMT sibling

[PATCH v3 2/3] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-09-04 Thread Jiri Kosina
From: Jiri Kosina Currently, we are issuing IBPB only in cases when switching into a non-dumpable process, the rationale being to protect such 'important and security sensitive' processess (such as GPG) from data leak into a different userspace process via spectre v2. This is however completely

[PATCH v3 1/3] ptrace: Provide ___ptrace_may_access() that can be applied on arbitrary tasks

2018-09-04 Thread Jiri Kosina
From: Jiri Kosina Current ptrace_may_access() implementation assumes that the 'source' task is always the caller (current). Expose ___ptrace_may_access() that can be used to apply the check on arbitrary tasks. Originally-by: Tim Chen Signed-off-by: Jiri Kosina --- include/linux/ptrace.h | 12

[PATCH v3 0/3] Harden spectrev2 userspace-userspace protection

2018-09-04 Thread Jiri Kosina
Currently, linux kernel is basically not preventing userspace-userspace spectrev2 attack, because: - IBPB is basically unused (issued only for tasks that marked themselves explicitly non-dumpable, which is absolutely negligible minority of all software out there), therefore cross-process br

Re: [PATCH] phy: Convert to using %pOFn instead of device_node.name

2018-09-04 Thread Rob Herring
On Mon, Sep 3, 2018 at 9:24 PM Kishon Vijay Abraham I wrote: > > Hi Rob, > > On Tuesday 28 August 2018 07:22 AM, Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > > convert printf users to use the %pOFn format specifier. > > I assume it should be okay

[PATCH 1/1] coresight: etm4x: Configure EL2 exception level when kernel is running in HYP

2018-09-04 Thread Tomasz Nowicki
For non-VHE systems host kernel runs at EL1 and jumps to EL2 whenever hypervisor code should be executed. In this case ETM4x driver must restrict configuration to EL1 when it setups kernel tracing. However, there is no separate hypervisor privilege level when VHE is enabled, the host kernel runs at

[PATCH v2 2/2] ARM: dts: imx: Use new CODEC reset pin name

2018-09-04 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpios", the driver now accepts this name use this here. Signed-off-by: Andrew F. Davis --- Changes from v1: - Remove "fix" from commit message arch/arm/boot/dts/imx6qdl-gw5903.dtsi | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 1/2] ARM: dts: imx6: RDU2: Use new CODEC reset pin name

2018-09-04 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpios", the driver now accepts this name use this here. Signed-off-by: Andrew F. Davis --- Changes from v1: - Remove "fix" from commit message arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 4 ++-- 1 file changed, 2 insertions(

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Peter Zijlstra
On Tue, Sep 04, 2018 at 10:42:18AM -0300, Arnaldo Carvalho de Melo wrote: > Then I need to get the DW_AT_location stuff parsed in pahole, so > that with those offsets (second column, ending with :) with hits (first > column, there its local period, but we can ask for some specific metric > [1

Re: [PATCH v5 2/4] dt: bindings: Document ZynqMP DDRC in Synopsys documentation

2018-09-04 Thread Rob Herring
On Fri, Aug 31, 2018 at 06:57:48PM +0530, Manish Narani wrote: > Add information of ZynqMP DDRC which reports the single bit errors that > are corrected and the double bit errors that are detected. > > Signed-off-by: Manish Narani > --- > .../bindings/memory-controllers/synopsys.txt | 27

[PATCH] mfd: arizona: make array mclk_name static, shrinks object size

2018-09-04 Thread Colin King
From: Colin Ian King Don't populate the array mclk_name on the stack but instead make it static. Makes the object code smaller by 23 bytes: Before: textdata bss dec hex filename 38050 11604 64 49718c236 linux/drivers/mfd/arizona-core.o After: textdata

[PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings

2018-09-04 Thread Stefan Popa
The adxl372 is designed to communicate in either SPI or I2C protocol. This patch adds the documentation of device tree bindings for adxl372 I2C. Signed-off-by: Stefan Popa --- Documentation/devicetree/bindings/iio/accel/adxl372.txt | 15 +-- 1 file changed, 13 insertions(+), 2 deleti

[PATCH 2/3] iio: adxl372: Add support for I2C communication

2018-09-04 Thread Stefan Popa
The adxl372 is designed to communicate in either SPI or I2C protocol. It autodetects the format being used, requiring no configuration control to select the format. Signed-off-by: Stefan Popa --- MAINTAINERS | 1 + drivers/iio/accel/Kconfig | 11 drivers/iio/a

Re: [PATCH 3/4] PCI/portdrv: Check platform supported service IRQ's

2018-09-04 Thread Bjorn Helgaas
On Fri, Aug 10, 2018 at 09:09:39PM +0530, Bharat Kumar Gogada wrote: > Platforms may have dedicated IRQ lines for PCIe services like > AER/PME etc., check for such IRQ lines. > Check mask and fill legacy irq line for services other than Capitalize "IRQ" consistently in English text like this. Ins

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 04, 2018 at 03:58:35PM +0200, Jiri Olsa escreveu: > On Tue, Sep 04, 2018 at 03:53:25PM +0200, Peter Zijlstra wrote: > > On Tue, Sep 04, 2018 at 10:42:18AM -0300, Arnaldo Carvalho de Melo wrote: > > > So, use 'c2c record' to get the samples: > > IIRC that uses numa events and is complet

[RFC PATCH v2] irqchip/gic-v3: Add quirk for msm8996 secured registers

2018-09-04 Thread Srinivas Kandagatla
Access to GICR_WAKER is restricted on msm8996 SoC in Hypervisor. Its been more than 2 years of wait for this to be fixed, which has no hopes to be fixed. This change was introduced for the "lead device" on msm8996 platform. It looks like all publicly available msm8996 devices have this implementati

Re: [PATCH 0/8] gpio-addr-flash: Support for device-tree and cleanup

2018-09-04 Thread Ricardo Ribalda Delgado
Hi! Any other comment before I resubmit v2 tomorrow from https://github.com/ribalda/linux/tree/gpio-addr-flash-v2 So far the diff for v2 I have >From Boris Brezillon: -Add Fixes and cc:stable >From kbuild: - Fix warnings - Rebase Thanks! On Tue, Aug 21, 2018 at 4:31 PM Ricardo Ribalda Delga

Re: [PATCH v5 06/16] x86/nops: init ideal_nops for Hygon

2018-09-04 Thread Borislav Petkov
On Wed, Aug 29, 2018 at 08:44:07PM +0800, Pu Wen wrote: > The ideal_nops for Dhyana processors should be p6_nops. > > Signed-off-by: Pu Wen > --- > arch/x86/kernel/alternative.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternat

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-09-04 Thread Jerome Glisse
On Mon, Sep 03, 2018 at 07:56:54AM +0200, Michal Hocko wrote: > On Thu 30-08-18 14:39:44, Jerome Glisse wrote: > > On Thu, Aug 30, 2018 at 11:05:16AM -0700, Mike Kravetz wrote: > > > On 08/30/2018 09:57 AM, Jerome Glisse wrote: > > > > On Thu, Aug 30, 2018 at 06:19:52PM +0200, Michal Hocko wrote: >

Re: [PATCH] mm: hugepage: mark splitted page dirty when needed

2018-09-04 Thread Zi Yan
On 4 Sep 2018, at 4:01, Kirill A. Shutemov wrote: > On Tue, Sep 04, 2018 at 03:55:10PM +0800, Peter Xu wrote: >> When splitting a huge page, we should set all small pages as dirty if >> the original huge page has the dirty bit set before. Otherwise we'll >> lose the original dirty bit. > > We don

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Jiri Olsa
On Tue, Sep 04, 2018 at 03:53:25PM +0200, Peter Zijlstra wrote: > On Tue, Sep 04, 2018 at 10:42:18AM -0300, Arnaldo Carvalho de Melo wrote: > > So, use 'c2c record' to get the samples: > > IIRC that uses numa events and is completely useless. I guess perf record on any other event would work in A

Re: [PATCH 3/3] ASoC: qdsp6: q6asm-dai: Add support to compress offload

2018-09-04 Thread Vinod
On 03-09-18, 13:34, Srinivas Kandagatla wrote: > +static void compress_event_handler(uint32_t opcode, uint32_t token, > +uint32_t *payload, void *priv) > +{ > + struct q6asm_dai_rtd *prtd = priv; > + struct snd_compr_stream *substream = prtd->cstream; > +

Re: [PATCH] ASoC: tlv320aic31xx: Add MICBIAS off setting

2018-09-04 Thread Andrew F. Davis
On 09/03/2018 06:26 AM, Mark Brown wrote: > On Fri, Aug 31, 2018 at 01:05:07PM -0500, Andrew F. Davis wrote: >> Leaving microphone bias off is a valid setting and even used in the DT >> binding document example. Add this setting here and document the same. >> Although it may not make much sense to

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Peter Zijlstra
On Tue, Sep 04, 2018 at 10:42:18AM -0300, Arnaldo Carvalho de Melo wrote: > So, use 'c2c record' to get the samples: IIRC that uses numa events and is completely useless.

Re: [PATCH 4/4] PCI: xilinx-nwl: Add method to setup_platform_service_irq hook

2018-09-04 Thread Bjorn Helgaas
On Fri, Aug 10, 2018 at 09:09:40PM +0530, Bharat Kumar Gogada wrote: > Add nwl_setup_service_irqs hook to setup_platform_service_irq IRQs to > register platform provided IRQ number to kernel AER service. > > Signed-off-by: Bharat Kumar Gogada > --- > drivers/pci/controller/pcie-xilinx-nwl.c |

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-04 Thread Juri Lelli
Hi, On 28/08/18 14:53, Patrick Bellasi wrote: > The number of clamp groups supported is limited and defined at compile > time. However, a malicious user can currently ask for many different Even if not malicious.. :-) > clamp values thus consuming all the available clamp groups. > > Since on pr

Re: REGRESSION: boot stalls on several old dual core Intel CPUs

2018-09-04 Thread Niklas Cassel
On Mon, Sep 03, 2018 at 11:33:05AM +0200, Peter Zijlstra wrote: > On Mon, Sep 03, 2018 at 10:54:23AM +0200, Peter Zijlstra wrote: > > On Mon, Sep 03, 2018 at 09:38:15AM +0200, Thomas Gleixner wrote: > > > On Mon, 3 Sep 2018, Peter Zijlstra wrote: > > > > On Sat, Sep 01, 2018 at 11:51:26AM +0930, Ke

Re: [RFC] perf tool improvement requests

2018-09-04 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 04, 2018 at 09:10:49AM +0200, Peter Zijlstra escreveu: > On Mon, Sep 03, 2018 at 07:45:48PM -0700, Stephane Eranian wrote: > > A few weeks ago, you had asked if I had more requests for the perf tool. > I have one long standing one; that is IP based data structure > annotation. > Whe

Re: [PATCH v2] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-09-04 Thread Nishanth Menon
On 15:22-20180903, Kishon Vijay Abraham I wrote: > AM65 has two PCIe controllers and each PCIe controller has '2' address > spaces one within the 4GB address space of the SoC and the other above > the 4GB address space of the SoC (cbass_main) in addition to the > register space. The size of the ad

Re: [PATCH 1/2] ARM: dts: imx6: RDU2: Fix the audio CODEC's reset pin

2018-09-04 Thread Andrew F. Davis
On 09/02/2018 11:54 PM, Shawn Guo wrote: > On Fri, Aug 31, 2018 at 02:17:31PM -0500, Andrew F. Davis wrote: >> The correct DT property for specifying a GPIO used for reset >> is "reset-gpios", fix this here. >> >> Fixes: d763762e3b58 ("ARM: dts: imx6: add ZII RDU2 boards") > > This Fixes tag and w

Re: [PATCH] Partially revert "HID: generic: create one input report per application type"

2018-09-04 Thread Benjamin Tissoires
On Tue, Sep 4, 2018 at 1:55 PM Benjamin Tissoires wrote: > > On Fri, Aug 31, 2018 at 11:36 AM Benjamin Tissoires > wrote: > > > > This partially reverts commit f07b3c1da92db108662f99417a212fc1eddc44d1. > > > > It looks like some mice are not correctly treated by > > HID_QUIRK_INPUT_PER_APP. Those

Re: [PATCH 1/3] ASoC: q6asm-dai: dt-bindings: Add support to compress dais

2018-09-04 Thread Vinod
On 03-09-18, 13:34, Srinivas Kandagatla wrote: > This patch adds board specific bindings required for dais, In particular > for compressed dais and dai direction. > > Board specific setup involves setting up some of dais as compressed dais > and also specify direction of any dai. Some of the dais

Re: [PATCH v5 05/16] x86/pmu: enable Hygon support to PMU infrastructure

2018-09-04 Thread Pu Wen
On 2018/9/4 18:48, Borislav Petkov wrote: On Wed, Aug 29, 2018 at 08:43:54PM +0800, Pu Wen wrote: Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the initialization flow for it just call amd_pmu_init() and change PMU name That sentence reads funny. Will rewrite this senten

[PATCH 3/4] HID: core: fix grouping by application

2018-09-04 Thread Benjamin Tissoires
commit f07b3c1da92d ("HID: generic: create one input report per application type") was effectively the same as MULTI_INPUT: hidinput->report was never set, so hidinput_match_application() always returned null. Fix that by testing against the real application. Note that this breaks some old eGalax

[PATCH 2/4] HID: input: do not append a suffix if the name already has it

2018-09-04 Thread Benjamin Tissoires
Or it creates some weird input names like: "MI Dongle MI Wireless Mouse Mouse" Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-input.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index ac201817a2dd..1

[PATCH 1/4] HID: multitouch: fix Elan panels with 2 input modes declaration

2018-09-04 Thread Benjamin Tissoires
When implementing commit 7f81c8db5489 ("HID: multitouch: simplify the settings of the various features"), I wrongly removed a test that made sure we never try to set the second InputMode feature to something else than 0. This broke badly some recent Elan panels that now forget to send the click bu

[PATCH 4/4] HID: multitouch: simplify the application retrieval

2018-09-04 Thread Benjamin Tissoires
Now that the application is simply stored in struct hid_input, we can overwrite it in mt_input_mapping() for the faulty egalax and have a simpler suffix processing in mt_input_configured() Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 72 ---

[PATCH 0/4] HID fixes

2018-09-04 Thread Benjamin Tissoires
Hi Jiri, there is no real link between those 4 commit but the fact that I wrote them today ;) 2 patches should at least be scheduled for v4.19: 1/4 and 3/4 Both are stable fixes for mistakes I made in v4.18. Patch 2 and 4 are just nice to have, so v4.20 should be fine. Cheers, Benjamin Benjami

<    1   2   3   4   5   6   >