Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-14 Thread Alexei Starovoitov
On Thu, Jun 13, 2019 at 11:50:37PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 09:28:48PM -0500, Josh Poimboeuf wrote: > > On Thu, Jun 13, 2019 at 08:58:48PM -0500, Josh Poimboeuf wrote: > > > On Thu, Jun 13, 2019 at 06:42:45PM -0700, Alexei Starovoitov wrote: > > > > On Thu, Jun 13,

[PATCH] kernel/memremap.c: use ALIGN/ALIGN_DOWN to calculate align_start/end

2019-06-14 Thread Wei Yang
The purpose of align_start/end is to expand to SECTION boundary. Use ALIGN/ALIGN_DOWN directly is more self-explain and clean. Signed-off-by: Wei Yang --- kernel/memremap.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/memremap.c b/kernel/memremap.c index

Re: [PATCH] kernel/memremap.c: use ALIGN/ALIGN_DOWN to calculate align_start/end

2019-06-14 Thread Dan Williams
On Thu, Jun 13, 2019 at 11:02 PM Wei Yang wrote: > > The purpose of align_start/end is to expand to SECTION boundary. Use > ALIGN/ALIGN_DOWN directly is more self-explain and clean. I'm actively trying to kill this code [1] so I don't see the need for this patch. [1]:

Re: [PATCH] gsmi: replace printk with relevant dev_

2019-06-14 Thread Greg KH
On Fri, Jun 14, 2019 at 12:27:05AM +0530, Saiyam Doshi wrote: > Replace printk() with dev_* macros for logging consistency. > In process of replacing printk with dev_err, dev_info etc., > removed unnecessary "out of memory" debug message. That is multiple things done in the same patch, please

[PATCH] mips: Remove q-accessors from non-64bit platforms

2019-06-14 Thread Serge Semin
There are some generic drivers in the kernel, which make use of the q-accessors or their derivatives. While at current asm/io.h the accessors are defined, their implementation is only applicable either for 64bit systems, or for systems with cpu_has_64bits flag set. Obviously there are MIPS systems

[PATCH v3 04/10] powerpc/8xx: refactor writing of CPM microcode arrays

2019-06-14 Thread Christophe Leroy
Create a function to refactor the writing of CPM microcode arrays. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 35 - 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c

[PATCH v3 08/10] powerpc/8xx: replace #ifdefs by IS_ENABLED() in microcode.c

2019-06-14 Thread Christophe Leroy
Reduce #ifdef mess by using IS_ENABLED() instead. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c

[PATCH v3 01/10] powerpc/8xx: move CPM1 related files from sysdev/ to platforms/8xx

2019-06-14 Thread Christophe Leroy
Only 8xx selects CPM1 and related CONFIG options are already in platforms/8xx/Kconfig Move the related C files to platforms/8xx/. Signed-off-by: Christophe Leroy --- v3: cpm_gpio is also used by CPM2, so it has to remain in sysdev for now ; no change to other patches of the series. v2: added

[PATCH v3 07/10] powerpc/8xx: refactor programming of microcode CPM params.

2019-06-14 Thread Christophe Leroy
The CPM registers RCCR and CPMCR1..4 registers has to be set in accordance with the microcode patch beeing programmed. Lets define them as part of the patch set and refactor their programming from that definition. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 45

[PATCH v3 10/10] powerpc/8xx: Add microcode patch to move SMC parameter RAM.

2019-06-14 Thread Christophe Leroy
Some SCC functions like the QMC requires an extended parameter RAM. On modern 8xx (ie 866 and 885), SPI area can already be relocated, allowing the use of those functions on SCC2. But SCC3 and SCC4 parameter RAM collide with SMC1 and SMC2 parameter RAMs. This patch adds microcode to allow the

[PATCH v3 09/10] powerpc/8xx: Use IO accessors in microcode programming.

2019-06-14 Thread Christophe Leroy
Change microcode functions to use IO accessors and get rid of volatile attributes. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 34 - 1 file changed, 16 insertions(+), 18 deletions(-) diff --git

[PATCH v3 06/10] powerpc/8xx: refactor printing of microcode patch name.

2019-06-14 Thread Christophe Leroy
Define patch name together with the patch code, and refactor the associated printk() while replacing it by a pr_info() Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH v3 05/10] powerpc/8xx: Refactor microcode write

2019-06-14 Thread Christophe Leroy
Add empty microcode tables so that all tables are defined all the time. Regroup the writing of the 3 tables regardless of the selected microcode. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-)

[PATCH v3 03/10] powerpc/8xx: compact microcode arrays

2019-06-14 Thread Christophe Leroy
Compact obscure microcode arrays by putting 4 values per line in order to reduce number of lines in the file to increase readability. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 699 +++- 1 file changed, 140 insertions(+), 559

[PATCH v3 02/10] powerpc/8xx: drop verify_patch()

2019-06-14 Thread Christophe Leroy
verify_patch() has been opted out since many years, and the comment suggests it doesn't work. So drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 40 - 1 file changed, 40 deletions(-) diff --git

Re: [PATCH 5.1 000/155] 5.1.10-stable review

2019-06-14 Thread Jiunn Chang
On Fri, Jun 14, 2019 at 07:50:40AM +0200, Greg Kroah-Hartman wrote: > On Thu, Jun 13, 2019 at 03:08:49PM -0500, Jiunn Chang wrote: > > On Thu, Jun 13, 2019 at 10:31:52AM +0200, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 5.1.10 release. > > > There are 155

Re: [PATCH 1/8] platform: x86: acer-wmi: no need to check return value of debugfs_create functions

2019-06-14 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 3:13 PM Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Also, because there is no need to save the

Re: [PATCH 5.1 000/155] 5.1.10-stable review

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 01:44:56AM -0500, Jiunn Chang wrote: > On Fri, Jun 14, 2019 at 07:50:40AM +0200, Greg Kroah-Hartman wrote: > > On Thu, Jun 13, 2019 at 03:08:49PM -0500, Jiunn Chang wrote: > > > On Thu, Jun 13, 2019 at 10:31:52AM +0200, Greg Kroah-Hartman wrote: > > > > This is the start of

[PATCH v2] usb: dwc2: Force 8bit UTMI width for Samsung Exynos SoCs

2019-06-14 Thread Marek Szyprowski
Samsung Exynos SoCs require to force UTMI width to 8bit, otherwise the host side of the shared USB2 PHY doesn't work. Reported-by: Krzysztof Kozlowski Fixes: 707d80f0a3c5 ("usb: dwc2: gadget: Replace phyif with phy_utmi_width") Signed-off-by: Marek Szyprowski Acked-by: Minas Harutyunyan

Re: [PATCH 1/8] platform: x86: acer-wmi: no need to check return value of debugfs_create functions

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 09:48:04AM +0300, Andy Shevchenko wrote: > On Wed, Jun 12, 2019 at 3:13 PM Greg Kroah-Hartman > wrote: > > > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do

Re: [PATCH v7 18/18] x86/fsgsbase/64: Add documentation for FSGSBASE

2019-06-14 Thread Thomas Gleixner
On Wed, 8 May 2019, Chang S. Bae wrote: > Subject: x86/fsgsbase/64: Add documentation for FSGSBASE The proper prefix is Documentation/x86: > From: Andi Kleen > > v2: Minor updates to documentation requested in review. > v3: Update for new gcc and various improvements. > v4: Address the typos

[PATCH v2] PCI: aardvark: Fix PCI_EXP_RTCTL conf register writing

2019-06-14 Thread Remi Pommarel
PCI_EXP_RTCTL is used to activate PME interrupt only, so writing into it should not modify other interrupts' mask. The ISR mask polarity was also inverted, when PCI_EXP_RTCTL_PMEIE is set PCIE_MSG_PM_PME_MASK mask bit should actually be cleared. Fixes: 6302bf3ef78d ("PCI: Init PCIe feature bits

[PATCH] Input: cros_ec_keyb: mask out extra flags in event_type

2019-06-14 Thread Ting Shen
http://crosreview.com/1341159 added a EC_MKBP_HAS_MORE_EVENTS flag to the event_type field, the receiver side should mask out this extra bit when processing the event. Signed-off-by: Ting Shen --- drivers/input/keyboard/cros_ec_keyb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

DMI: support for non-EFI platforms with non-standard SMBIOS entrypoint?

2019-06-14 Thread WANG Xuerui
Hi, There are several MIPS platforms floating around with firmware SMBIOS support, primarily Loongson 3-series, but their SMBIOS entrypoint is non-standard. According to the SMBIOS spec the non-EFI platforms should have the tables in the 000F_h-000F_h physical range, however these boards

Documentation: Remove duplicate x86 index entry

2019-06-14 Thread Thomas Gleixner
x86 got added twice to the index via the RST conversion and the MDS documentation changes. Remove one instance. Signed-off-by: Thomas Gleixner --- Documentation/index.rst |1 - 1 file changed, 1 deletion(-) --- a/Documentation/index.rst +++ b/Documentation/index.rst @@ -112,7 +112,6 @@

Re: [PATCH] arm64: Allow user selection of ARM64_MODULE_PLTS

2019-06-14 Thread Ard Biesheuvel
On Fri, 14 Jun 2019 at 04:59, Florian Fainelli wrote: > > Make ARM64_MODULE_PLTS a selectable Kconfig symbol, since some people > might have very big modules spilling out of the dedicated module area > into vmalloc. Help text is copied from the ARM 32-bit counterpart. > > Signed-off-by: Florian

Re: [PATCHv5 10/20] PCI: mobiveil: Fix the INTx process errors

2019-06-14 Thread Karthikeyan Mitran
Hi Lorenzo and Hou Zhiqiang PAB_INTP_AMBA_MISC_STAT does have other status in the higher bits, it should have been masked before checking for the status Acked-by: Karthikeyan Mitran On Wed, Jun 12, 2019 at 8:38 PM Lorenzo Pieralisi wrote: > > On Fri, Apr 12, 2019 at 08:36:12AM +, Z.q. Hou

Re: [PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-14 Thread Peter Zijlstra
On Thu, Jun 13, 2019 at 08:20:30PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 13, 2019 at 01:57:11PM -0700, Alexei Starovoitov wrote: > > and to patches 8 and 9. > > Well, it's your code, but ... can I ask why? AT syntax is the > standard for Linux, which is in fact the OS we are developing

Re: [RFC] Disable lockref on arm64

2019-06-14 Thread Jayachandran Chandrasekharan Nair
On Wed, Jun 12, 2019 at 10:31:53AM +0100, Will Deacon wrote: > Hi JC, > > On Wed, Jun 12, 2019 at 04:10:20AM +, Jayachandran Chandrasekharan Nair > wrote: > > On Wed, May 22, 2019 at 05:04:17PM +0100, Will Deacon wrote: > > > On Sat, May 18, 2019 at 12:00:34PM +0200, Ard Biesheuvel wrote: >

Re: [PATCH v3 0/9] Multicolor Framework update

2019-06-14 Thread Alexander Dahl
Hello Dan, Am Donnerstag, 23. Mai 2019, 14:08:11 CEST schrieb Dan Murphy: > leds: multicolor: Add sysfs interface definition > dt: bindings: Add multicolor class dt bindings documention > documention: leds: Add multicolor class documentation > dt-bindings: leds: Add multicolor ID to the

[RFC 2/3] ata: make qc_prep return an int

2019-06-14 Thread Jiri Slaby
In case a driver wants to return an error. sata_mv is one of those -- see the next patch. Signed-off-by: Jiri Slaby Cc: Jens Axboe Cc: linux-...@vger.kernel.org --- Documentation/driver-api/libata.rst | 2 +- drivers/ata/acard-ahci.c| 6 -- drivers/ata/libahci.c

[RFC 3/3] ata: sata_mv, avoid trigerrable BUG_ON

2019-06-14 Thread Jiri Slaby
There are several reports that the BUG_ON on unsupported command in mv_qc_prep can be triggered under some circumstances: https://bugzilla.suse.com/show_bug.cgi?id=1110252 https://serverfault.com/questions/97/raid-problems-after-power-outage

[RFC 1/3] ata: Documentation, fix function names

2019-06-14 Thread Jiri Slaby
ata_qc_prep no longer exists, there are ata_bmdma_qc_prep and ata_bmdma_dumb_qc_prep instead. And most drivers do not use them, so reword the paragraph. ata_qc_issue_prot was renamed to ata_sff_qc_issue. ->tf_load is now ->sff_tf_load. Fix them. And fix spelling supercede -> supersede.

[PATCH] nfc: Ensure presence of required attributes in the deactivate_target handler

2019-06-14 Thread Young Xiao
Check that the NFC_ATTR_TARGET_INDEX attributes (in addition to NFC_ATTR_DEVICE_INDEX) are provided by the netlink client prior to accessing them. This prevents potential unhandled NULL pointer dereference exceptions which can be triggered by malicious user-mode programs, if they omit one or both

Re: [PATCH] mtd: cfi_cmdset_0002: dynamically determine the max sectors

2019-06-14 Thread Joakim Tjernlund
On Fri, 2019-06-14 at 03:23 +, Chris Packham wrote: > > > Hi All, > > I think this may have got lost in the change of maintainer for mtd. We need this too, ATM we have a local hack that just changes MAX_SECTORS to 1024 > > On 22/05/19 12:06 PM, Chris Packham wrote: > > Because PPB

Re: [Xen-devel] [RFC PATCH 04/16] x86/xen: hypercall support for xenhost_t

2019-06-14 Thread Ankur Arora
On 2019-06-12 2:15 p.m., Andrew Cooper wrote: On 09/05/2019 18:25, Ankur Arora wrote: Allow for different hypercall implementations for different xenhost types. Nested xenhost, which has two underlying xenhosts, can use both simultaneously. The hypercall macros (HYPERVISOR_*) implicitly use

Re: [PATCH 3/4] media: vimc: stream: add missing function documentation

2019-06-14 Thread Hans Verkuil
On 6/13/19 5:06 PM, André Almeida wrote: > Add comments at vimc_streamer_s_stream and vimc_streamer_thread, making > the vimc-stream totally documented. > > Signed-off-by: André Almeida > --- > drivers/media/platform/vimc/vimc-streamer.c | 22 + > 1 file changed, 22

[PATCH 2/3] Bluetooth: hci_mrvl: Wait for final ack before switching baudrate

2019-06-14 Thread Sascha Hauer
For the Marvell HCI UART we have to upload two firmware files. The first one is only for switching the baudrate of the device to a higher baudrate. After the baudrate switching firmware has been uploaded the device waits for a final ack (0x5a) before actually switching the baudrate. To send this

[PATCH 1/3] Bluetooth: hci_ldisc: Add function to wait for characters to be sent

2019-06-14 Thread Sascha Hauer
The hci UART line discipline sends its characters in a workqueue. Some devices like the Marvell Bluetooth chips need to make sure that all queued characters are sent before switching the baudrate. This adds a function to synchronize with the workqueue. Signed-off-by: Sascha Hauer ---

[PATCH 3/3] Bluetooth: hci_mrvl: Add serdev support

2019-06-14 Thread Sascha Hauer
This adds serdev support to the Marvell hci uart driver. Only basic serdev support, none of the fancier features like regulator or enable GPIO support is added for now. Signed-off-by: Sascha Hauer --- .../bindings/net/marvell-bluetooth.txt| 25 +++ drivers/bluetooth/Kconfig

Re: [PATCH] powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

2019-06-14 Thread Mathieu Malaterre
On Thu, Jun 13, 2019 at 10:27 AM Christoph Hellwig wrote: > > With the strict dma mask checking introduced with the switch to > the generic DMA direct code common wifi chips on 32-bit powerbooks > stopped working. Add a 30-bit ZONE_DMA to the 32-bit pmac builds > to allow them to reliably

[PATCH 0/3] Marvell HCI fixes and serdev support

2019-06-14 Thread Sascha Hauer
First two patches are a fix for the Marvell HCI driver which fails to properly upload the firmware. Third patch adds simple serdev support to the driver. Sascha Sascha Hauer (3): Bluetooth: hci_ldisc: Add function to wait for characters to be sent Bluetooth: hci_mrvl: Wait for final ack

Re: [RFC][Patch v10 1/2] mm: page_hinting: core infrastructure

2019-06-14 Thread David Hildenbrand
On 03.06.19 19:03, Nitesh Narayan Lal wrote: > This patch introduces the core infrastructure for free page hinting in > virtual environments. It enables the kernel to track the free pages which > can be reported to its hypervisor so that the hypervisor could > free and reuse that memory as per its

Re: [PATCH 4/4] media: docs: create vimc documentation

2019-06-14 Thread Hans Verkuil
Hi André, Thanks for working one this, very nice to have this documentation. Some comments below: On 6/13/19 5:06 PM, André Almeida wrote: > Create vimc documentation file to explain it basics features, it's > topology, how to configure it and to document vimc's subdevices. > > Signed-off-by:

Re: pagecache locking (was: bcachefs status update) merged)

2019-06-14 Thread Dave Chinner
On Thu, Jun 13, 2019 at 04:30:36PM -1000, Linus Torvalds wrote: > On Thu, Jun 13, 2019 at 1:56 PM Dave Chinner wrote: > > > > That said, the page cache is still far, far slower than direct IO, > > Bullshit, Dave. > > You've made that claim before, and it's been complete bullshit before > too,

Re: [PATCH net-next v3 2/2] hinic: add support for rss parameters with ethtool

2019-06-14 Thread Michal Kubecek
On Thu, Jun 13, 2019 at 01:58:02AM +, Xue Chaojing wrote: > This patch adds support rss parameters with ethtool, > user can change hash key, hash indirection table, hash > function by ethtool -X, and show rss parameters by ethtool -x. > > Signed-off-by: Xue Chaojing > --- If you are going

Re: [PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-14 Thread Alexei Starovoitov
On Fri, Jun 14, 2019 at 09:08:52AM +0200, Peter Zijlstra wrote: > On Thu, Jun 13, 2019 at 08:20:30PM -0500, Josh Poimboeuf wrote: > > On Thu, Jun 13, 2019 at 01:57:11PM -0700, Alexei Starovoitov wrote: > > > > and to patches 8 and 9. > > > > Well, it's your code, but ... can I ask why? AT

Re: [Xen-devel] [RFC PATCH 04/16] x86/xen: hypercall support for xenhost_t

2019-06-14 Thread Juergen Gross
On 14.06.19 09:20, Ankur Arora wrote: On 2019-06-12 2:15 p.m., Andrew Cooper wrote: On 09/05/2019 18:25, Ankur Arora wrote: Allow for different hypercall implementations for different xenhost types. Nested xenhost, which has two underlying xenhosts, can use both simultaneously. The hypercall

Re: [PATCH] mtd: cfi_cmdset_0002: dynamically determine the max sectors

2019-06-14 Thread Vignesh Raghavendra
On 14/06/19 8:53 AM, Chris Packham wrote: > Hi All, > > I think this may have got lost in the change of maintainer for mtd. > I do have this in my queue of patches for mtd/next and will forward to Miquel once he is back. > On 22/05/19 12:06 PM, Chris Packham wrote: >> Because PPB unlocking

Re: [PATCH 1/6] ARM: dts: STi: Switch to SPDX header

2019-06-14 Thread Patrice CHOTARD
Hi Lubomir On 6/11/19 9:29 AM, Lubomir Rintel wrote: > The original license text had a typo ("publishhed") which would be > likely to confuse automated licensing auditing tools. Let's just switch > to SPDX instead of fixing the wording. > > Signed-off-by: Lubomir Rintel > --- >

[PATCH 1/2] tracing/uprobe: Fix NULL pointer dereference in trace_uprobe_create()

2019-06-14 Thread Eiichi Tsukata
Just like the case of commit 8b05a3a7503c ("tracing/kprobes: Fix NULL pointer dereference in trace_kprobe_create()"), writing an incorrectly formatted string to uprobe_events can trigger NULL pointer dereference. Reporeducer: # echo r > /sys/kernel/debug/tracing/uprobe_events dmesg: BUG:

[PATCH 2/2] tracing/uprobe: Fix obsolete comment on trace_uprobe_create()

2019-06-14 Thread Eiichi Tsukata
Commit 0597c49c69d5 ("tracing/uprobes: Use dyn_event framework for uprobe events") cleaned up the usage of trace_uprobe_create(), and the function has been no longer used for removing uprobe/uretprobe. Signed-off-by: Eiichi Tsukata --- kernel/trace/trace_uprobe.c | 2 -- 1 file changed, 2

Re: [PATCH 7/9] x86/unwind/orc: Fall back to using frame pointers for generated code

2019-06-14 Thread Peter Zijlstra
On Thu, Jun 13, 2019 at 11:00:09PM -0700, Alexei Starovoitov wrote: > There is something wrong with > commit d15d356887e7 ("perf/x86: Make perf callchains work without > CONFIG_FRAME_POINTER") It assumes we can always unwind stack, which is, imo, not a weird thing. > If I simply revert it and

[PATCH] thermal: imx: skip registering legacy cooling on i.MX7

2019-06-14 Thread Andrey Smirnov
i.MX7 doesn't have a mainline cpufreq driver, so imx_thermal_register_legacy_cooling() will always return -EPROBE_DEFER preventing the driver probe from finishing. No-op imx_thermal_register_legacy_cooling() on i.MX7 to avoid that problem. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas

RE: [EXT] [PATCH v3 2/3] scsi: ufs-qcom: Implement device_reset vops

2019-06-14 Thread Bean Huo (beanhuo)
Hi, Bjorn Sorry just saw your message. You can use UIC command,through function ufshcd_send_uic_cmd( ) with UIC_CMD_DME_END_PT_RST command. DME_ENDPOINTRESET: It is used when UFS host wants the UFS device to perform a reset. //bean >On Tue 11 Jun 09:08 PDT 2019, Bean Huo (beanhuo) wrote: >

Re: [PATCH 8/9] x86/bpf: Convert asm comments to AT syntax

2019-06-14 Thread Peter Zijlstra
On Thu, Jun 13, 2019 at 06:52:24PM +, Song Liu wrote: > > On Jun 13, 2019, at 6:21 AM, Josh Poimboeuf wrote: > > @@ -403,11 +403,11 @@ static void emit_mov_imm64(u8 **pprog, u32 dst_reg, > > * For emitting plain u32, where sign bit must not be > > * propagated LLVM

[PATCH 2/2] powercap/rapl: Add Ice Lake NNPI support to RAPL driver

2019-06-14 Thread Rajneesh Bhardwaj
Enables support for ICL-NNPI, neural network processor for deep learning inference. From RAPL point of view it is same as Ice Lake Mobile processor. Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Link: https://lkml.org/lkml/2019/6/5/1034 Signed-off-by: Rajneesh Bhardwaj ---

[PATCH 1/2] tools/power turbostat: Add Ice Lake NNPI support

2019-06-14 Thread Rajneesh Bhardwaj
This enables turbostat utility on Ice Lake NNPI SoC. Cc: Len Brown Cc: Linux PM Link: https://lkml.org/lkml/2019/6/5/1034 Signed-off-by: Rajneesh Bhardwaj --- tools/power/x86/turbostat/turbostat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/x86/turbostat/turbostat.c

[PATCH 2/2] ARM: dts: imx7d-zii-rpu2: Drop unused pinmux entries

2019-06-14 Thread Andrey Smirnov
Neither pinctrl_i2c1_gpio nor pinctrl_i2c2_gpio are used anywhere in the file, drop them. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Lucas Stach Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org ---

[PATCH 1/2] ARM: dts: imx7d-zii-rpu2: Fix incorrrect 'stdout-path'

2019-06-14 Thread Andrey Smirnov
RPU2 uses UART2 as a serial console and UART1 is not used at all. Fix incorrrectly specified 'stdout-path' to reflect that. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Lucas Stach Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org

Re: remove asm-generic/ptrace.h v2

2019-06-14 Thread Christoph Hellwig
On Tue, Jun 04, 2019 at 09:02:05AM +0200, Christoph Hellwig wrote: > Is anyone going to pick this series up? ping? Arnd, this might be asm-generic tree material?

Re: [PATCH 2/2] powercap/rapl: Add Ice Lake NNPI support to RAPL driver

2019-06-14 Thread Bhardwaj, Rajneesh
Hi Rafael On 14-Jun-19 1:09 PM, Rajneesh Bhardwaj wrote: Enables support for ICL-NNPI, neural network processor for deep learning inference. From RAPL point of view it is same as Ice Lake Mobile processor. Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Link:

RE: [PATCH v2 4/5] HID: hv: Remove dependencies on PAGE_SIZE for ring buffer

2019-06-14 Thread Vitaly Kuznetsov
Michael Kelley writes: > From: Vitaly Kuznetsov Sent: Wednesday, June 12, 2019 > 3:40 AM >> Maya Nakamura writes: >> >> > Define the ring buffer size as a constant expression because it should >> > not depend on the guest page size. >> > >> > Signed-off-by: Maya Nakamura >> > --- >> >

Re: [PATCH v4] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-06-14 Thread Jessica Yu
+++ YueHaibing [11/06/19 23:00 +0800]: In module_add_modinfo_attrs if sysfs_create_file fails, we forget to free allocated modinfo_attrs and roll back the sysfs files. Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") Signed-off-by: YueHaibing Applied, thanks.

[PATCH v2] media: mtk-vcodec: remove unneeded proxy functions

2019-06-14 Thread Alexandre Courbot
We were getting the codec interface through a proxy function that does not bring anything compared to just accessing the interface definition directly, so just do that. Also make the decoder interfaces const. Signed-off-by: Alexandre Courbot --- Changes since v1: * Fix checkpatch warnings.

[PATCH v2] media: mtk-vcodec: avoid unneeded pointer-to-long conversions

2019-06-14 Thread Alexandre Courbot
The interface used to communicate with the firmware casts pointers into unsigned longs and back again in order to store private references, all of this for pointers that remain purely in the kernel. Replace these unsigned longs with void pointers to make the code a bit sturdier and easier to

Re: memory leak in vhost_net_ioctl

2019-06-14 Thread Jeremy Sowden
On 2019-06-13, at 20:04:01 -0700, syzbot wrote: > syzbot has tested the proposed patch but the reproducer still > triggered crash: memory leak in batadv_tvlv_handler_register There's already a fix for this batman leak: https://lore.kernel.org/netdev/17d64c058965f...@google.com/

Re: [Xen-devel] [RFC PATCH 04/16] x86/xen: hypercall support for xenhost_t

2019-06-14 Thread Andrew Cooper
On 14/06/2019 08:35, Juergen Gross wrote: > On 14.06.19 09:20, Ankur Arora wrote: >> On 2019-06-12 2:15 p.m., Andrew Cooper wrote: >>> On 09/05/2019 18:25, Ankur Arora wrote: Allow for different hypercall implementations for different xenhost types. Nested xenhost, which has two

Re: [PATCH v3 1/3] thermal: sun8i: add thermal driver for h6

2019-06-14 Thread Maxime Ripard
Hi, On Thu, Jun 13, 2019 at 11:35:15PM +0800, Frank Lee wrote: > On Thu, Jun 13, 2019 at 9:26 PM Maxime Ripard > wrote: > > > > On Fri, Jun 07, 2019 at 09:34:44PM +0800, Frank Lee wrote: > > > On Mon, May 27, 2019 at 8:27 PM Maxime Ripard > > > wrote: > > > > > + ret =

[PATCH 1/2] ARM: dts: Add ZII support for ZII i.MX7 RMU2 board

2019-06-14 Thread Andrey Smirnov
Add support for ZII's i.MX7 based Remote Modem Unit 2 (RMU2) board. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Rob Herring Cc: Chris Healy Cc: Lucas Stach Cc: Fabio Estevam Cc: Bob Langer Cc: Liang Pan Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc:

[PATCH 2/2] dt-bindings: arm: fsl: Add support for ZII i.MX7 RMU2 board

2019-06-14 Thread Andrey Smirnov
Add support for ZII i.MX7 RMU2 board. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Rob Herring Cc: Chris Healy Cc: Lucas Stach Cc: Fabio Estevam Cc: Bob Langer Cc: Liang Pan Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org ---

[PATCH V2 2/2] soc: imx8: Use existing of_root directly

2019-06-14 Thread Anson . Huang
From: Anson Huang There is common of_root for reference, no need to find it from DT again, use of_root directly to make driver simple. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No changes. --- drivers/soc/imx/soc-imx8.c | 9 ++--- 1 file changed, 2 insertions(+), 7

[PATCH V2 1/2] soc: imx8: Fix potential kernel dump in error path

2019-06-14 Thread Anson . Huang
From: Anson Huang When SoC's revision value is 0, SoC driver will print out "unknown" in sysfs's revision node, this "unknown" is a static string which can NOT be freed, this will caused below kernel dump in later error path which calls kfree: kernel BUG at mm/slub.c:3942! Internal error: Oops

Re: [PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-14 Thread Vitaly Kuznetsov
Thomas Gleixner writes: > On Wed, 12 Jun 2019, Vitaly Kuznetsov wrote: >> Dmitry Safonov writes: >> > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c >> > index 1608050e9df9..0bdd79ecbff8 100644 >> > --- a/arch/x86/hyperv/hv_init.c >> > +++ b/arch/x86/hyperv/hv_init.c >> > @@

Re: [PATCH] kernel/memremap.c: use ALIGN/ALIGN_DOWN to calculate align_start/end

2019-06-14 Thread Wei Yang
On Thu, Jun 13, 2019 at 11:06:13PM -0700, Dan Williams wrote: >On Thu, Jun 13, 2019 at 11:02 PM Wei Yang >wrote: >> >> The purpose of align_start/end is to expand to SECTION boundary. Use >> ALIGN/ALIGN_DOWN directly is more self-explain and clean. > >I'm actively trying to kill this code [1] so

[PATCH 2/2] powercap/rapl: Add Ice Lake NNPI support to RAPL driver

2019-06-14 Thread Rajneesh Bhardwaj
Enables support for ICL-NNPI, which is a neural network processor for deep learning inference. From RAPL point of view it is same as Ice Lake Mobile processor. Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Link: https://lkml.org/lkml/2019/6/5/1034 Signed-off-by: Rajneesh Bhardwaj ---

Re: [PATCH 2/9] objtool: Fix ORC unwinding in non-JIT BPF generated code

2019-06-14 Thread Peter Zijlstra
On Fri, Jun 14, 2019 at 12:35:38AM -0700, Alexei Starovoitov wrote: > On Fri, Jun 14, 2019 at 09:08:52AM +0200, Peter Zijlstra wrote: > > On Thu, Jun 13, 2019 at 08:20:30PM -0500, Josh Poimboeuf wrote: > > > On Thu, Jun 13, 2019 at 01:57:11PM -0700, Alexei Starovoitov wrote: > > > > > > and to

[PATCH 0/2] Add support for DSP IPC protocol driver

2019-06-14 Thread daniel . baluta
From: Daniel Baluta Hifi4 DSP can be found on some i.MX8 platforms (e.g i.MX8QXP, i.MX8QM). This patch series introduces the layer that allows Host CPU to communicate with DSP. This layer provides a doorbell and clients can used that to notify DSP that a message is placed somewhere in the

[PATCH 1/2] firmware: imx: Add DSP IPC protocol driver

2019-06-14 Thread daniel . baluta
From: Daniel Baluta Some of i.MX8 processors (e.g i.MX8QM, i.MX8QXP) contain the Tensilica HiFi4 DSP for advanced pre- and post-audio processing. The communication between Host CPU and DSP firmware is taking place using a shared memory area for message passing and a dedicated Messaging Unit for

[PATCH] platform/x86: intel_pmc_core: Add ICL-NNPI support to PMC Core

2019-06-14 Thread Rajneesh Bhardwaj
Ice Lake Neural Network Processor for deep learning inference a.k.a. ICL-NNPI can re-use Ice Lake Mobile regmap to enable Intel PMC Core driver on it. Cc: Darren Hart Cc: Andy Shevchenko Cc: platform-driver-...@vger.kernel.org Link: https://lkml.org/lkml/2019/6/5/1034 Signed-off-by: Rajneesh

[PATCH 2/2] dt-bindings: arm: fsl: Add DSP IPC binding support

2019-06-14 Thread daniel . baluta
From: Daniel Baluta DSP IPC is the layer that allows the Host CPU to communicate with DSP firmware. DSP is part of some i.MX8 boards (e.g i.MX8QM, i.MX8QXP) Signed-off-by: Daniel Baluta --- .../bindings/arm/freescale/fsl,dsp.yaml | 43 +++ 1 file changed, 43

Re: [PATCH 19/20] drm: rcar-du: crtc: Register GAMMA_LUT properties

2019-06-14 Thread Jacopo Mondi
Hi Laurent, thanks for review On Fri, Jun 07, 2019 at 03:03:04PM +0300, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Thu, Jun 06, 2019 at 04:22:19PM +0200, Jacopo Mondi wrote: > > Enable the GAMMA_LUT KMS property using the framework helpers to > > register the

[PATCH v4 0/6] add edma2 for i.mx7ulp

2019-06-14 Thread yibin . gong
From: Robin Gong This patch set add new version of edma for i.mx7ulp, the main changes are as belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels For the first change, need modify

[PATCH v4 3/6] dmaengine: fsl-edma-common: version check for v2 instead

2019-06-14 Thread yibin . gong
From: Robin Gong The next v3 i.mx7ulp edma is based on v1, so change version check logic for v2 instead. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git

[PATCH v4 5/6] dmaengine: fsl-edma: add i.mx7ulp edma2 version support

2019-06-14 Thread yibin . gong
From: Robin Gong Add edma2 for i.mx7ulp by version v3, since v2 has already been used by mcf-edma. The big changes based on v1 are belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. Signed-off-by:

[PATCH v4 6/6] ARM: dts: imx7ulp: add edma device node

2019-06-14 Thread yibin . gong
From: Robin Gong Add edma device node in dts. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 8fb9559..2221c95 100644 ---

[PATCH v4 1/6] dmaengine: fsl-edma: add drvdata for fsl-edma

2019-06-14 Thread yibin . gong
From: Robin Gong There are some differences between vf610 and next i.mx7ulp. Put such differences into static driver data for distiguish easily at driver level. Change mcf-edma accordingly. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 29 +++--

[PATCH v4 2/6] dmaengine: fsl-edma-common: move dmamux register to another single function

2019-06-14 Thread yibin . gong
From: Robin Gong Prepare for edmav2 on i.mx7ulp whose dmamux register is 32bit. No function impacted. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/dma/fsl-edma-common.c

[PATCH v4 4/6] dt-bindings: dma: fsl-edma: add new i.mx7ulp-edma

2019-06-14 Thread yibin . gong
From: Robin Gong More channel interrupts, one more clock, and only one dmamux on i.mx7ulp-edma. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 44 +++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git

Re: [RFC 2/7] tee: enable support to register kernel memory

2019-06-14 Thread Jens Wiklander
On Thu, Jun 13, 2019 at 04:00:28PM +0530, Sumit Garg wrote: > Enable support to register kernel memory reference with TEE. This change > will allow TEE bus drivers to register memory references. > > Signed-off-by: Sumit Garg Reviewed-by: Jens Wiklander Thanks, Jens

Re: [PATCH 1/1] Address regression in inet6_validate_link_af

2019-06-14 Thread Jonas Bonn
On 13/06/2019 16:13, Maxim Mikityanskiy wrote: On 2019-06-13 09:45, Jonas Bonn wrote: Hi Max, On 12/06/2019 12:42, Maxim Mikityanskiy wrote: On 2019-06-11 13:03, Jonas Bonn wrote: Patch 7dc2bccab0ee37ac28096b8fcdc390a679a15841 introduces a regression with systemd 241.  In that revision,

[PATCH] perf/x86: add Intel Ice Lake NNPI uncore support

2019-06-14 Thread Rajneesh Bhardwaj
Intel Ice Lake uncore support already included IMC PCI ID but ICL-NNPI CPUID is missing so add it to fix probe. Cc: Borislav Petkov Cc: Dave Hansen Cc: Andy Shevchenko Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Kan Liang Cc: Peter Zijlstra Cc: Qiuxu Zhuo Cc: Srinivas Pandruvada Cc: Len

Re: [RFC 3/3] ata: sata_mv, avoid trigerrable BUG_ON

2019-06-14 Thread Sergei Shtylyov
Hello! On 14.06.2019 10:11, Jiri Slaby wrote: There are several reports that the BUG_ON on unsupported command in mv_qc_prep can be triggered under some circumstances: https://bugzilla.suse.com/show_bug.cgi?id=1110252 https://serverfault.com/questions/97/raid-problems-after-power-outage

[PATCH] af_key: Fix memory leak in key_notify_policy.

2019-06-14 Thread Young Xiao
We leak the allocated out_skb in case pfkey_xfrm_policy2msg() fails. Fix this by freeing it on error. Signed-off-by: Young Xiao <92siuy...@gmail.com> --- net/key/af_key.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/key/af_key.c b/net/key/af_key.c index 4af1e1d..ec414f6 100644 ---

[PATCH v1] mmc: sdhci-of-esdhc: use 1/2 periperhal clock for ls1028a

2019-06-14 Thread Yinbo Zhu
From: Yangbo Lu LS1028A used 1/2 periperhal clock as one reference clock. Signed-off-by: Yangbo Lu --- drivers/mmc/host/sdhci-of-esdhc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index

[PATCH v1] mmc: sdhci-of-esdhc: set the sd clock divisor value above 3

2019-06-14 Thread Yinbo Zhu
From: Yangbo Lu This patch is to set the sd clock divisor value above 3 in tuning mode Signed-off-by: Yinbo Zhu Signed-off-by: Yangbo Lu --- drivers/mmc/host/sdhci-of-esdhc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c

Re: [PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-14 Thread Peter Zijlstra
On Wed, Jun 12, 2019 at 12:17:24PM +0200, Vitaly Kuznetsov wrote: > Dmitry Safonov writes: > > > KVM support may be compiled as dynamic module, which triggers the > > following splat on modprobe: > > > > KVM: vmx: using Hyper-V Enlightened VMCS > > BUG: using smp_processor_id() in preemptible

INQUIRY #0059BHA..

2019-06-14 Thread info
Hello dear, We are in the market for your products after meeting at your stand during last expo. Please kindly send us your latest catalog and price list so as to start a new project/order as promised during the exhibition. I would appreciate your response about the above details required

Re: Regression post "HID: core: move Usage Page concatenation to Main item"

2019-06-14 Thread Nicolas Saenz Julienne
On Fri, 2019-06-14 at 09:01 +0900, Jean-Baptiste Théou wrote: > Hi, > > This patch (58e75155009cc85629955d3482f36a1e0eec) is triggering a > regression with the following descriptor (report not working as > expected) > >

Re: [PATCH v4 0/7] Allwinner H6 SPDIF support

2019-06-14 Thread Clément Péron
Hi, On Mon, 27 May 2019 at 22:10, Clément Péron wrote: > > *H6 DMA support IS REQUIRED* DMA has been merged, so this series can be merge when ASoC maintainers have reviewed it. Regards, Clément > > Allwinner H6 SoC has a SPDIF controller called One Wire Audio (OWA) which > is different from

  1   2   3   4   5   6   7   8   9   10   >