[PATCH 2/5] USB: serial: f81232: add high baud rate support

2018-01-21 Thread Ji-Ze Hong (Peter Hong)
The F81232 had 4 clocksource 1.846/18.46/14.77/24MHz and baud rates can be up to 1.5Mbits with 24MHz. F81232 Clock registers (106h) Bit1-0: Clock source selector 00: 1.846MHz. 01: 18.46MHz. 10: 24MHz. 11: 14.77MHz

[PATCH 5/5] USB: serial: f81232: fix bulk_in/out size

2018-01-21 Thread Ji-Ze Hong (Peter Hong)
Fix Fintek F81232 bulk_in/out size to 64/16 according to the spec. http://html.alldatasheet.com/html-pdf/406315/FINTEK/F81232/1762/8/F81232.html Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/us

[PATCH 4/5] USB: serial: f81232: implement break control

2018-01-21 Thread Ji-Ze Hong (Peter Hong)
Implement Fintek F81232 break on/off with LCR register. It's the same with 16550A LCR register layout. Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/usb/serial/f81232.c b/drive

[PATCH] nvme-pci: ensure nvme_timeout complete before initializing procedure

2018-01-21 Thread Jianchao Wang
There could be a nvme_timeout running with nvme_dev_disable in parallel. The requests held by timeout path cannot be canceled by nvme_dev_disable. Consequently, the nvme_timeout maybe still running after nvme_dev_disable completes. Then there could be a race between nvme_dev_disable in nvme_timeout

[PATCH TRIVIAL] bsg: use pr_debug instead of hand crafted macros

2018-01-21 Thread Johannes Thumshirn
Use pr_debug instead of hand crafted macros. This way it is not needed to re-compile the kernel to enable bsg debug outputs and it's possible to selectively enable specific prints. Signed-off-by: Johannes Thumshirn --- block/bsg.c | 35 +-- 1 file changed, 13 inse

Re: [PATCH v2 1/5] powerpc/mm: Enhance 'slice' for supporting PPC32

2018-01-21 Thread Christophe LEROY
Le 20/01/2018 à 18:56, Segher Boessenkool a écrit : Hi! On Sat, Jan 20, 2018 at 09:22:50AM +0100, christophe leroy wrote: On PPC32, the address space is limited to 4Gbytes, hence only the low slices will be used. As of today, the code uses SLICE_LOW_TOP (0x1ul) and compares it with ad

Re: [PATCH 4.4 100/115] scsi: hpsa: destroy sas transport properties before scsi_host

2018-01-21 Thread Greg Kroah-Hartman
On Sun, Jan 21, 2018 at 11:05:42PM +, Ben Hutchings wrote: > On Mon, 2017-12-18 at 16:49 +0100, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.  If anyone has any objections, please let me know. > > > > -- > > > > From: Martin Wilck > > > > > > [ Upstream commit dfb2

[PATCH] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-21 Thread Yang Shunyong
The type of arg passed to dmatest_callback is struct dmatest_done. It refers to test_done in struct dmatest_thread, not done_wait. Fixes: 6f6a23a213be ("dmaengine: dmatest: move callback wait ...") Signed-off-by: Yang Shunyong --- drivers/dma/dmatest.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet

2018-01-21 Thread Ley Foon Tan
On Fri, 2018-01-19 at 21:26 -0600, Gustavo A. R. Silva wrote: > Bool initializations should use true and false. > > This issue was detected with the help of Coccinelle. > > Fixes: eaa6111b70a7 ("PCI: altera: Add Altera PCIe host controller > driver") > Signed-off-by: Gustavo A. R. Silva > --- >

Re: [PATCH] mmc: davinci: suppress error message on EPROBE_DEFER

2018-01-21 Thread Ulf Hansson
On 21 January 2018 at 21:28, David Lechner wrote: > This suppresses printing an error message during probe of the TI DaVinci > MMC driver when the error is EPROBE_DEFER. > > Cc: Ulf Hansson > Signed-off-by: David Lechner Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/da

Re: [PATCH] mmc: davinci: dont' use module_platform_driver_probe()

2018-01-21 Thread Ulf Hansson
On 21 January 2018 at 21:09, David Lechner wrote: > This changes module_platform_driver_probe() to module_platform_driver() > in the TI DaVinci MMC driver. > > On device tree systems, we can get a -EPROBE_DEFER when using a pinmux > for the CD GPIO, which results in the driver never loading becaus

Re: [PATCH] mmc: tmio: hide unused tmio_mmc_clk_disable/tmio_mmc_clk_enable functions

2018-01-21 Thread Ulf Hansson
On 19 January 2018 at 15:54, Arnd Bergmann wrote: > When CONFIG_PM is disabled, we get a warning about the clock handling > being unused: > > drivers/mmc/host/tmio_mmc_core.c:937:13: error: 'tmio_mmc_clk_disable' > defined but not used [-Werror=unused-function] > static void tmio_mmc_clk_disable

Re: Re: ACPI: sbshc: remove raw pointer from printk message

2018-01-21 Thread Greg Kroah-Hartman
On Mon, Jan 22, 2018 at 11:19:36AM +0800, wang_q...@venustech.com.cn wrote: > > I has recvied a cve-id from mitre.org for this security bug . > should this cve-id( CVE-2018-5750) be mentioned in kernel change log? Only if Rafael wants to hand-edit the patch, it's not really needed for a kernel l

Re: [PATCH][next] staging: ccree: fix memory leaks in cc_ivgen_init

2018-01-21 Thread Gilad Ben-Yossef
On Fri, Jan 12, 2018 at 6:10 PM, Colin King wrote: > From: Colin Ian King > > The current error exit path in function cc_ivgen_init via label > 'out' free's resources from the drvdata->ivgen_handle context. > However, drvdata->ivgen_handle has not been assigned to the > context ivgen_ctx at this

[RFC PATCH net-next] net: aquantia: aq_fw2x_get_mac_permanent() can be static

2018-01-21 Thread kbuild test robot
Fixes: a57d3929b838 ("net: aquantia: Introduce support for new firmware on AQC cards") Signed-off-by: Fengguang Wu --- hw_atl_utils_fw2x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c b/drivers/net/ethe

Re: [Intel-wired-lan] [RFC PATCH] e1000e: Remove Other from EIAC.

2018-01-21 Thread Benjamin Poirier
On 2018/01/20 09:21, Alexander Duyck wrote: > On Fri, Jan 19, 2018 at 2:55 PM, Benjamin Poirier > wrote: > > On 2018/01/20 07:45, Benjamin Poirier wrote: > > [...] > >> > > >> > I'm of the mind that we need to cut down on the code thrash. This > >> > driver is supposed to have been in a "maintena

[PATCH] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-01-21 Thread Amit Nischal
Add support for the global clock controller found on SDM845 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Signed-off-by: Taniya Das Signed-off-by: Amit Nischal --- This patch is dependent on below changes: 1. https://patchwork.kernel.org/

Re: [PATCH 3/7] crypto: ccree: add ablkcipher support

2018-01-21 Thread Gilad Ben-Yossef
On Thu, Jan 11, 2018 at 12:03 PM, Stephan Mueller wrote: > Am Donnerstag, 11. Januar 2018, 10:17:10 CET schrieb Gilad Ben-Yossef: > > Hi Gilad, > >> + // verify weak keys >> + if (ctx_p->flow_mode == S_DIN_to_DES) { >> + if (!des_ekey(tmp, key) && >> + (crypto_t

Re: [PATCH 3/7] crypto: ccree: add ablkcipher support

2018-01-21 Thread Gilad Ben-Yossef
Hi Corentin, On Thu, Jan 11, 2018 at 12:01 PM, Corentin Labbe wrote: > On Thu, Jan 11, 2018 at 09:17:10AM +, Gilad Ben-Yossef wrote: >> Add CryptoCell ablkcipher support >> > > Hello > > I have some minor comments: > > ablkcipher is deprecated, so you need to use skcipher instead. Fixed in

Re: [PATCH 2/2] Input: sur40: Improve a size determination in sur40_probe()

2018-01-21 Thread Martin Kepplinger
On 2018-01-20 22:30, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 20 Jan 2018 22:16:14 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer according

Re: [PATCH] Input: edt-ft5x06: Delete an error message for a failed memory allocation in edt_ft5x06_ts_probe()

2018-01-21 Thread Martin Kepplinger
On 2018-01-21 20:19, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 21 Jan 2018 20:10:03 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-by: Ma

Re: [PATCH 1/2] Input: sur40: Delete an error message for a failed memory allocation in sur40_probe()

2018-01-21 Thread Martin Kepplinger
On 2018-01-20 22:28, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 20 Jan 2018 22:11:24 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-by: Ma

Re: [PATCH v2 07/11] arm64: Add skeleton to harden the branch predictor against aliasing attacks

2018-01-21 Thread Li Kun
On 2018/1/19 22:28, Will Deacon Wrote: On Fri, Jan 19, 2018 at 11:37:24AM +0800, Li Kun wrote: 在 2018/1/17 18:07, Will Deacon 写道: On Wed, Jan 17, 2018 at 12:10:33PM +0800, Yisheng Xie wrote: On 2018/1/5 21:12, Will Deacon wrote: diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c

[RFC PATCH net-next] net: aquantia: hw_atl_utils_mpi_set_speed() can be static

2018-01-21 Thread kbuild test robot
Fixes: 0c58c35f02c2 ("net: aquantia: Introduce firmware ops callbacks") Signed-off-by: Fengguang Wu --- hw_atl_utils.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/ethernet/aquantia/atlantic/hw_

[PATCH 5/6] x86/jailhouse: Allow to use PCI_MMCONFIG without ACPI

2018-01-21 Thread Jan Kiszka
From: Jan Kiszka Jailhouse does not use ACPI, but it does support MMCONFIG. Make sure the latter can be built without having to enable ACPI as well. Primarily, we need to make the AMD mmconf-fam10h_64 depend upon MMCONFIG and ACPI, instead of just the former. Saves some bytes in the Jailhouse no

[PATCH 6/6] MAINTAINERS: Add entry for Jailhouse

2018-01-21 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 426ba037d943..dd51a2012b36 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7468,6 +7468,13 @@ Q: http://patchwork.linuxtv.org/project/linux

[PATCH 0/6] jailhouse: Enhance secondary Jailhouse guest support /wrt PCI

2018-01-21 Thread Jan Kiszka
Basic x86 support [1] for running Linux as secondary Jailhouse [2] guest is currently pending in the tip tree. This builds on top and enhances the PCI support for x86 and also ARM guests (ARM[64] does not require platform patches and works already). Key elements of this series are: - detection of

[PATCH 4/6] x86: Consolidate PCI_MMCONFIG configs

2018-01-21 Thread Jan Kiszka
From: Jan Kiszka Not sure if those two worked by design or just by chance so far. In any case, it's at least cleaner and clearer to express this in a single config statement. Signed-off-by: Jan Kiszka --- arch/x86/Kconfig | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --g

[PATCH 3/6] x86/jailhouse: Enable PCI mmconfig access in inmates

2018-01-21 Thread Jan Kiszka
From: Otavio Pontes Use the PCI mmconfig base address exported by jailhouse in boot parameters in order to access the memory mapped PCI configuration space. Signed-off-by: Otavio Pontes [Jan: rebased, fixed !CONFIG_PCI_MMCONFIG] Signed-off-by: Jan Kiszka --- arch/x86/include/asm/pci_x86.h | 2

[PATCH v1 1/1] perf/x86/amd/power: do not load amd power module in intel platform

2018-01-21 Thread Xiao Liang
"power" module can be loaded if it is not amd processor. And user cannot unload it after loaded it. The following call trace generated when tried to unload it. BUG: unable to handle kernel NULL pointer dereference at (null) IP: __list_del_entry_valid+0x29/0x90 PGD 0 P4D 0 Oops:

[PATCH 2/6] pci: Scan all functions when probing while running over Jailhouse

2018-01-21 Thread Jan Kiszka
From: Jan Kiszka PCI and PCIBIOS probing only scans devices at function number 0/8/16/... Subdevices (e.g. multiqueue) have function numbers which are not a multiple of 8. The simple hypervisor Jailhouse passes subdevices directly w/o providing a virtual PCI topology like KVM. As a consequence a

[PATCH 1/6] jailhouse: Provide detection for non-x86 systems

2018-01-21 Thread Jan Kiszka
From: Jan Kiszka Implement jailhouse_paravirt() via device tree probing on architectures != x86. Will be used by the PCI core. CC: Rob Herring CC: Mark Rutland Signed-off-by: Jan Kiszka --- Documentation/devicetree/bindings/jailhouse.txt | 8 arch/x86/include/asm/jailhouse_para.h

[PATCH] arm: Initialize hrtimer-based broadcast clockevent

2018-01-21 Thread Jan Kiszka
Analogously to 9358d755bd5c, this registers a broadcast clockevent in case no hardware broadcast timer is available and the per-CPU timers can be stopped in deep power states. Partitions of the Jailhouse hypervisor fall in this category. Registering the workaround timer allows to enter high-resolu

[ANNOUNCE] Git v2.16.1

2018-01-21 Thread Junio C Hamano
The latest maintenance release Git v2.16.1 is now available at the usual places. This is solely to fix a brown-paper bag bug that broke "git clone" on case insensitive filesystems of certain projects. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following publ

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-21 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing ano

[PATCH v2 6/6] powerpc: wii.dts: Add GPIO line names

2018-01-21 Thread Jonathan Neuschäfer
These are the GPIO line names on a Nintendo Wii, as documented in: https://wiibrew.org/wiki/Hardware/Hollywood_GPIOs Signed-off-by: Jonathan Neuschäfer --- v2: - no change --- arch/powerpc/boot/dts/wii.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/boot/dts/wii.dts

[PATCH v2 5/6] powerpc: wii.dts: Add ngpios property

2018-01-21 Thread Jonathan Neuschäfer
The Hollywood GPIO controller supports 32 GPIOs, but on the Wii, only 24 are used. Signed-off-by: Jonathan Neuschäfer --- v2: - no change --- arch/powerpc/boot/dts/wii.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts index 40b

Re: [PATCH 02/13] powerpc/powernv: Set correct configuration space size for opencapi devices

2018-01-21 Thread Andrew Donnellan
On 20/01/18 20:52, Michael Ellerman wrote:> On my Power8 PowerVM LPAR: Will fix... -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

[PATCH v2 1/6] resource: Extend the PPC32 reserved memory hack

2018-01-21 Thread Jonathan Neuschäfer
On the Nintendo Wii, there are two ranges of physical memory, and MMIO in between, but Linux on ppc32 doesn't support discontiguous memory. Therefore a hack was introduced in commit c5df7f775148 ("powerpc: allow ioremap within reserved memory regions") and commit de32400dd26e ("wii: use both mem1 a

[PATCH v2 4/6] dt-bindings: gpio: Add binding for Wii GPIO controller

2018-01-21 Thread Jonathan Neuschäfer
The Nintendo Wii game console has a GPIO controller, which is used for the optical disk slot LED, buttons, poweroff, etc. This patch adds a binding for this GPIO controller. Signed-off-by: Jonathan Neuschäfer Reviewed-by: Rob Herring --- v2: - Drop the leading zero in the example, as suggested

[PATCH v2 3/6] gpio: Add GPIO driver for Nintendo Wii

2018-01-21 Thread Jonathan Neuschäfer
The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller that supports a configurable number of pins (up to 32), interrupts, and some special mechanisms to share the controller between the system's security processor (an ARM926) and the PowerPC CPU. Pin multiplexing is not supported.

[PATCH v2 2/6] powerpc: wii: Explicitly configure GPIO owner for poweroff pin

2018-01-21 Thread Jonathan Neuschäfer
The Hollywood chipset's GPIO controller has two sets of registers: One for access by the PowerPC CPU, and one for access by the ARM coprocessor (but both are accessible from the PPC because the memory firewall (AHBPROT) is usually disabled when booting Linux, today). The wii_power_off function cur

[PATCH v2 0/6] Nintendo Wii GPIO driver

2018-01-21 Thread Jonathan Neuschäfer
This series adds a driver for the GPIO controller used in the Nintendo Wii game console. The driver itself, and the related devicetree work should be pretty uncontroversial, but due to the system architecture of the Wii, I also had to extend an old resource allocation hack to kernel/resource.c: On

[PATCH v3] vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAs

2018-01-21 Thread Suravee Suthikulpanit
VFIO IOMMU type1 currently upmaps IOVA pages synchronously, which requires IOTLB flushing for every unmapping. This results in large IOTLB flushing overhead when handling pass-through devices has a large number of mapped IOVAs (e.g. GPUs). This could also cause IOTLB invalidate time-out issue on AM

Re: [PATCH v4 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-21 Thread JeffyChen
Hi Randy, On 01/22/2018 10:15 AM, JeffyChen wrote: Hi Randy, On 01/22/2018 09:18 AM, Randy Li wrote: Also the power domain driver could manage the clocks as well, I would suggest to use pm_runtime_*. actually the clocks required by pm domain may not be the same as what we want to control h

Re: [RFC PATCH v2 2/2] iommu/amd: Add support for fast IOTLB flushing

2018-01-21 Thread Suravee Suthikulpanit
Hi Joerg, Do you have any feedback regarding this patch for AMD IOMMU? I'm re-sending the patch 1/2 separately per Alex's suggestion. Thanks, Suravee On 12/27/17 4:20 PM, Suravee Suthikulpanit wrote: Implement the newly added IOTLB flushing interface for AMD IOMMU. Signed-off-by: Suravee Sut

Re: [v3, 3/6] dt: booting-without-of: DT fix s/#interrupt-cell/#interrupt-cells/

2018-01-21 Thread Michael Ellerman
On Fri, 2017-06-02 at 12:38:46 UTC, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > Acked-by: Rob Herring Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/4be4119d1fbd93c44d5c639735c312 cheers

Re: powerpc: dts: Remove leading 0x and 0s from bindings notation

2018-01-21 Thread Michael Ellerman
On Thu, 2017-12-14 at 16:54:00 UTC, Mathieu Malaterre wrote: > Improve the DTS files by removing all the leading "0x" and zeros to fix the > following dtc warnings: > > Warning (unit_address_format): Node /XXX unit name should not have leading > "0x" > > and > > Warning (unit_address_format): N

Re: [RESEND] powerpc: mpic_timer: avoid struct timeval

2018-01-21 Thread Michael Ellerman
On Tue, 2018-01-16 at 17:01:50 UTC, Arnd Bergmann wrote: > In an effort to remove all instances of 'struct timeval' > from the kernel, I'm changing the powerpc mpic_timer interface > to use plain seconds instead. There is only one user of this > interface, and that doesn't use the microseconds port

Re: [RESEND] spufs: use timespec64 for timestamps

2018-01-21 Thread Michael Ellerman
On Tue, 2018-01-16 at 17:00:35 UTC, Arnd Bergmann wrote: > The switch log prints the tv_sec portion of timespec as a 32-bit > number, while overflows in 2106. It also uses the timespec type, > which is safe on 64-bit architectures, but deprecated because > it causes overflows in 2038 elsewhere. >

Re: powerpc: restore alphabetic order in Kconfig

2018-01-21 Thread Michael Ellerman
On Thu, 2018-01-04 at 15:35:25 UTC, Christophe Leroy wrote: > This patch restores the alphabetic order which was broken by > commit 1e0fc9d1eb2b0 ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX > for some configs") > > Fixes: 1e0fc9d1eb2b0 ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some > config

Re: [v10,03/27] powerpc: initial pkey plumbing

2018-01-21 Thread Michael Ellerman
On Fri, 2018-01-19 at 01:50:24 UTC, Ram Pai wrote: > Basic plumbing to initialize the pkey system. > Nothing is enabled yet. A later patch will enable it > once all the infrastructure is in place. > > Signed-off-by: Ram Pai Patches 3-27 applied to powerpc next, thanks. https://git.kerne

Re: powerpc/pseries: Don't give a warning when HPT resizing isn't available

2018-01-21 Thread Michael Ellerman
On Fri, 2017-03-17 at 01:11:19 UTC, David Gibson wrote: > As of 438cc81a41 "powerpc/pseries: Automatically resize HPT for memory hot > add/remove" when running on the pseries platform, we always attempt to > use the PAPR extension to resize the hashed page table (HPT) when we add > or remove memory

Re: [1/2] powerpc/lib/code-patching: refactor patch_instruction()

2018-01-21 Thread Michael Ellerman
On Fri, 2017-11-24 at 07:31:07 UTC, Christophe Leroy wrote: > patch_instruction() uses almost the same sequence as > __patch_instruction() > > This patch refactor it so that patch_instruction() uses > __patch_instruction() instead of duplicating code. > > Signed-off-by: Christophe Leroy > Acked-

Re: powerpc/perf: Change the data type for the variable 'ncpu' in IMC code

2018-01-21 Thread Michael Ellerman
On Tue, 2017-10-31 at 09:52:00 UTC, Anju T Sudhakar wrote: > Change the data type for the variable 'ncpu' in ppc_core_imc_cpu_offline(), > since cpumask_any_but() returns an 'int' value. > > Signed-off-by: Anju T Sudhakar > Reported-by: David Binderman Applied to powerpc next, thanks. https://

[PATCH net-next] tun: add missing rcu annotation

2018-01-21 Thread Jason Wang
This patch fixes the following sparse warnings: drivers/net/tun.c:2241:15: error: incompatible types in comparison expression (different address spaces) Fixes: cd5681d7d890 ("tuntap: rename struct tun_steering_prog to struct tun_prog") Cc: Daniel Borkmann Signed-off-by: Jason Wang --- driver

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-21 Thread jianchao.wang
Hi Eric On 01/22/2018 12:43 AM, Eric Dumazet wrote: > On Sun, 2018-01-21 at 18:24 +0200, Tariq Toukan wrote: >> >> On 21/01/2018 11:31 AM, Tariq Toukan wrote: >>> >>> >>> On 19/01/2018 5:49 PM, Eric Dumazet wrote: On Fri, 2018-01-19 at 23:16 +0800, jianchao.wang wrote: > Hi Tariq > >>

Re: [RFC PATCH 00/16] PTI support for x86-32

2018-01-21 Thread hpa
On January 21, 2018 6:11:07 PM PST, Linus Torvalds wrote: >On Sun, Jan 21, 2018 at 3:46 PM, Nadav Amit >wrote: >> I wanted to see whether segments protection can be a replacement for >PTI >> (yes, excluding SMEP emulation), or whether speculative execution >“ignores” >> limit checks, similarly t

Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

2018-01-21 Thread Byungchul Park
On 1/19/2018 12:27 PM, Steven Rostedt wrote: On Fri, 19 Jan 2018 11:37:13 +0900 Byungchul Park wrote: On 1/19/2018 12:21 AM, Steven Rostedt wrote: On Thu, 18 Jan 2018 13:01:46 +0900 Byungchul Park wrote: I disagree. It is like a spinlock. You can say a spinlock() that is blocked is also

Re: [RFC PATCH 00/16] PTI support for x86-32

2018-01-21 Thread Nadav Amit
Linus Torvalds wrote: > On Sun, Jan 21, 2018 at 3:46 PM, Nadav Amit wrote: >> I wanted to see whether segments protection can be a replacement for PTI >> (yes, excluding SMEP emulation), or whether speculative execution “ignores” >> limit checks, similarly to the way paging protection is skipped

Re: [PATCH v3 1/5] bindings: regulator: added support for suspend states

2018-01-21 Thread Chunyan Zhang
On 20 January 2018 at 06:11, Rob Herring wrote: > On Fri, Jan 12, 2018 at 06:18:21PM +0800, Chunyan Zhang wrote: >> Some systems need to set regulators to specific states when they enter >> low power modes, especially around CPUs. There are many of these modes >> depending on the particular runtim

RE: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-21 Thread 李書帆
Dear Heikki and Guenter, Because there are still other controls of RT1711H that are different from standard TCPCI, e.x. flow of drp toggling. Is the suggestion to customize the difference based on tcpci.c for RT1711H? Best Regards, * Shu-Fan Lee Richtek Technolog

Re: [PATCH v4 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-21 Thread JeffyChen
Hi Randy, On 01/22/2018 09:18 AM, Randy Li wrote: Also the power domain driver could manage the clocks as well, I would suggest to use pm_runtime_*. actually the clocks required by pm domain may not be the same as what we want to control here, there might be some clocks only be needed when

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-21 Thread jianchao.wang
Hi Tariq and all Many thanks for your kindly and detailed response and comment. On 01/22/2018 12:24 AM, Tariq Toukan wrote: > > > On 21/01/2018 11:31 AM, Tariq Toukan wrote: >> >> >> On 19/01/2018 5:49 PM, Eric Dumazet wrote: >>> On Fri, 2018-01-19 at 23:16 +0800, jianchao.wang wrote: Hi T

Re: [RFC PATCH 00/16] PTI support for x86-32

2018-01-21 Thread Linus Torvalds
On Sun, Jan 21, 2018 at 3:46 PM, Nadav Amit wrote: > I wanted to see whether segments protection can be a replacement for PTI > (yes, excluding SMEP emulation), or whether speculative execution “ignores” > limit checks, similarly to the way paging protection is skipped. > > It does seem that segme

[PATCH v6 3/4] vfs: Add timestamp_truncate() api

2018-01-21 Thread Deepa Dinamani
timespec_trunc() function is used to truncate a filesystem timestamp to the right granularity. But, the function does not clamp tv_sec part of the timestamps according to the filesystem timestamp limits. Also, timespec_trunc() is exclusively used for filesystem timestamps. Move the api to be part

[PATCH v6 2/4] ext4: Initialize timestamps limits

2018-01-21 Thread Deepa Dinamani
ext4 has different overflow limits for max filesystem timestamps based on the extra bytes available. Signed-off-by: Deepa Dinamani Cc: "Theodore Ts'o" Cc: Andreas Dilger Cc: linux-e...@vger.kernel.org --- fs/ext4/ext4.h | 4 fs/ext4/super.c | 7 ++- 2 files changed, 10 insertions(+),

[PATCH v6 4/4] utimes: Clamp the timestamps before update

2018-01-21 Thread Deepa Dinamani
POSIX.1 section for futimens, utimensat and utimes says: The file's relevant timestamp shall be set to the greatest value supported by the file system that is not greater than the specified time. Clamp the timestamps accordingly before assignment. Note that the clamp_t macro is used for clamping

(v2. forward to qemu )-Panic with ext4,nbd,qemu-img,block

2018-01-21 Thread Hongzhi, Song
Hello, I create a virtual disk-image using qemu-img. And then I use /dev/nbd to map the image. I mount the /dev/nbd to a local dir with ext4-format Finally, I have some trouble about ext4-filesystem and block device, with using demand of rsync or dd to write the image. Reproduce :     qemu

[PATCH v6 1/4] vfs: Add file timestamp range support

2018-01-21 Thread Deepa Dinamani
Add fields to the superblock to track the min and max timestamps supported by filesystems. Initially, when a superblock is allocated, initialize it to the max and min values the fields can hold. Individual filesystems override these to match their actual limits. Pseudo filesystems are assumed to

[PATCH v6 0/4]

2018-01-21 Thread Deepa Dinamani
The series is aimed at adding support to maintain individual timestamp ranges for filesystems. This helps futimens, utimensat and utimes syscalls to conform to POSIX defined behavior when the time being set is outside of the corresponding filesystem's supported limits. The series was developed wit

Re: [PATCHv2] mm, page_vma_mapped: Drop faulty pointer arithmetics in check_pte()

2018-01-21 Thread Linus Torvalds
On Sun, Jan 21, 2018 at 3:49 PM, Tetsuo Handa wrote: > > As far as I tested, using helper function made no difference. Unless I > explicitly insert barriers like cpu_relax() or smp_mb() between these, > the object side does not change. Ok, thanks for checking. > You can apply with > > Acked-by

Re: [PATCH v2 1/1] mm: page_alloc: skip over regions of invalid pfns on UMA

2018-01-21 Thread Matthew Wilcox
I like the patch. I think it could be better. > +++ b/mm/page_alloc.c > @@ -5344,7 +5344,7 @@ void __meminit memmap_init_zone(unsigned long size, int > nid, unsigned long zone, > goto not_early; > > if (!early_pfn_valid(pfn)) { > -#ifdef CONFIG_HAVE_MEMBLOC

RE: [PATCH v3 3/7] x86/hyper-v: reenlightenment notifications support

2018-01-21 Thread Michael Kelley (EOSG)
On Fri, 19 Jan 2018, Thomas Gleixner wrote: > -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Friday, January 19, 2018 11:48 PM > To: Vitaly Kuznetsov > Cc: kbuild test robot ; kbuild-...@01.org; > k...@vger.kernel.org; > x...@kernel.org; Stephen Hemminger

Re: [PATCH v4 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-21 Thread Randy Li
On 01/18/2018 10:25 PM, JeffyChen wrote: Hi Robin, On 01/18/2018 08:27 PM, Robin Murphy wrote: Is it worth using the clk_bulk_*() APIs for this? At a glance, most of the code being added here appears to duplicate what those functions already do (but I'm no clk API expert, for sure). right,

Re: [PATCH v6 3/9] v4l: platform: Add Renesas CEU driver

2018-01-21 Thread Laurent Pinchart
Hi Hans, On Friday, 19 January 2018 14:25:39 EET Hans Verkuil wrote: > On 01/19/18 13:20, Laurent Pinchart wrote: > > On Friday, 19 January 2018 13:20:19 EET Hans Verkuil wrote: > >> On 01/16/18 22:44, Jacopo Mondi wrote: > >>> Add driver for Renesas Capture Engine Unit (CEU). > >>> > >>> The CEU

Re: [PATCH] arch/cris: use get_user_pages_fast()

2018-01-21 Thread Davidlohr Bueso
On Sun, 21 Jan 2018, Al Viro wrote: On Sun, Jan 21, 2018 at 02:59:29PM -0800, Davidlohr Bueso wrote: Since we currently hold mmap_sem across both gup calls (and nothing more), we can substitute it with two _fast() alternatives and possibly avoid grabbing the lock. This was found while adding m

Re: [RFC PATCH 00/16] PTI support for x86-32

2018-01-21 Thread Nadav Amit
I wanted to see whether segments protection can be a replacement for PTI (yes, excluding SMEP emulation), or whether speculative execution “ignores” limit checks, similarly to the way paging protection is skipped. It does seem that segmentation provides sufficient protection from Meltdown. The “re

Re: [PATCH] arch/cris: use get_user_pages_fast()

2018-01-21 Thread Al Viro
On Sun, Jan 21, 2018 at 02:59:29PM -0800, Davidlohr Bueso wrote: > Since we currently hold mmap_sem across both gup calls (and > nothing more), we can substitute it with two _fast() > alternatives and possibly avoid grabbing the lock. > > This was found while adding mmap_sem wrappers, and was also

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-01-21 Thread Mark Salter
On Thu, 2018-01-18 at 10:09 -0500, Prarit Bhargava wrote: > Note on testing: I've tested this on several ARM64 and x86 boxes (only > earlycon, console=ttyS0,115200, and with both options), verified that > functionality on ARM64 has not changed (ie, CONFIG_ACPI_SPCR_TABLE is > always =y), and verif

[PATCH] scsi: arcmsr: avoid do_gettimeofday

2018-01-21 Thread Arnd Bergmann
The arcmsr uses its own implementation of time_to_tm(), along with do_gettimeofday() to read the current time. While the algoritm used here is fine in principle, it suffers from two problems: - it assigns the seconds portion of the timeval to a 32-bit unsigned integer that overflows in 2106 ev

[PATCH] gpio: davinci: add support for pinmux gpio ranges

2018-01-21 Thread David Lechner
This adds support for the pinmux gpio ranges feature to the DaVinci gpio driver. Only device tree is supported since the non-DT boards don't use a generic pinmux controller. Cc: Keerthy Cc: Linus Walleij Signed-off-by: David Lechner --- drivers/gpio/gpio-davinci.c | 6 ++ 1 file changed, 6

[PATCH] arch/cris: use get_user_pages_fast()

2018-01-21 Thread Davidlohr Bueso
Since we currently hold mmap_sem across both gup calls (and nothing more), we can substitute it with two _fast() alternatives and possibly avoid grabbing the lock. This was found while adding mmap_sem wrappers, and was also previously reported by Al: https://lkml.org/lkml/2017/11/17/777 Signed-of

Re: [PATCH 4.4 39/63] net: reevalulate autoflowlabel setting after sysctl setting

2018-01-21 Thread Ben Hutchings
On Mon, 2018-01-01 at 15:24 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Shaohua Li > > > [ Upstream commit 513674b5a2c9c7a67501506419da5c3c77ac6f08 ] [...] > Note, this changes behavior a little

Re: [PATCH 4.4 100/115] scsi: hpsa: destroy sas transport properties before scsi_host

2018-01-21 Thread Ben Hutchings
On Mon, 2017-12-18 at 16:49 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Martin Wilck > > > [ Upstream commit dfb2e6f46b3074eb85203d8f0888b71ec1c2e37a ] > > This patch cleans up a lot of warning

[PATCH] pinctrl: pinctrl-single: Fix pcs_request_gpio() when bits_per_mux != 0

2018-01-21 Thread David Lechner
This fixes pcs_request_gpio() in the pinctrl-single driver when bits_per_mux != 0. It appears this was overlooked when the multiple pins per register feature was added. Fixes: 4e7e8017a80e ("pinctrl: pinctrl-single: enhance to configure multiple pins of different modules") Cc: Tony Lindgren Cc:

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-21 Thread Linus Torvalds
On Sun, Jan 21, 2018 at 2:00 PM, David Woodhouse wrote: >> >> The patches do things like add the garbage MSR writes to the kernel >> entry/exit points. That's insane. That says "we're trying to protect >> the kernel". We already have retpoline there, with less overhead. > > You're looking at IBRS

Re: [RFC 04/10] x86/mm: Only flush indirect branches when switching into non dumpable process

2018-01-21 Thread Woodhouse, David
On Sun, 2018-01-21 at 17:21 +0100, Ingo Molnar wrote: > > Because putting something like this into an ELF flag raises the question of > who is  > allowed to set the flag - does a user-compiled binary count? If yes then it > would  > be a trivial thing for local exploits to set the flag and turn

[PATCH] ASoC: intel: clean up CONFIG_SND_SST_IPC handling

2018-01-21 Thread Arnd Bergmann
In a configuration with SND_SST_ATOM_HIFI2_PLATFORM_PCI=y and SND_SST_ATOM_HIFI2_PLATFORM=m, we get this module link failure: ERROR: "sst_context_init" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined! ERROR: "sst_context_cleanup" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefi

Re: [PATCH 3/5] ALSA: emu10k1: add optional debug printouts with DMA addresses

2018-01-21 Thread kbuild test robot
Hi Maciej, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on sound/for-next] [also build test WARNING on v4.15-rc8 next-20180119] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-

[PATCH v3] input: bcm5974 - Add driver for Apple Magic Trackpad 2

2018-01-21 Thread Stephan Müller
Hi, Changes v3: * port to 4.15-rc8 * small code cleanups (isolation of type casts to functions pertaining to the Apple Magic Trackpad 2 * clean up all checkpatch.pl errors and warnings (except those where the patch uses the structure of existing code fragments) * updated horizontal and vertica

*Not* final 4.15 this weekend

2018-01-21 Thread Linus Torvalds
I really really wanted to just release 4.15 today, but things haven't calmed down enough for me to feel comfy about it, and Davem tells me he still has some networking fixes pending. Laura Abbott found and fixed a very subtle boot bug introduced this development cycle only yesterday, and it just di

Re: [RFC PATCH v2 1/1] of: introduce event tracepoints for dynamic device_node lifecyle

2018-01-21 Thread Steven Rostedt
On Sun, 21 Jan 2018 15:31:17 +0100 Wolfram Sang wrote: > From: Tyrel Datwyler > > This patch introduces event tracepoints for tracking a device_nodes > reference cycle as well as reconfig notifications generated in response > to node/property manipulations. > > With the recent upstreaming of t

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-21 Thread David Woodhouse
On Sun, 2018-01-21 at 13:35 -0800, Linus Torvalds wrote: > On Sun, Jan 21, 2018 at 12:28 PM, David Woodhouse wrote: > > As a hack for existing CPUs, it's just about tolerable — as long as it > > can die entirely by the next generation. > > That's part of the big problem here. The speculation contr

Re: [PATCH] rtl8xxxu: Fix trailing semicolon

2018-01-21 Thread Jes Sorensen
On 01/17/2018 05:56 AM, Luis de Bethencourt wrote: > The trailing semicolon is an empty statement that does no operation. > Removing it since it doesn't do anything. > > Signed-off-by: Luis de Bethencourt > --- > > Hi, > > After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches >

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-21 Thread Linus Torvalds
On Sun, Jan 21, 2018 at 12:28 PM, David Woodhouse wrote: > On Sun, 2018-01-21 at 11:34 -0800, Linus Torvalds wrote: >> All of this is pure garbage. >> >> Is Intel really planning on making this shit architectural? Has >> anybody talked to them and told them they are f*cking insane? >> >> Please, a

Re: [PATCH 0/2] Input: auo-pixcir-ts: Adjustments for two function implementations

2018-01-21 Thread Heiko Stübner
Am Sonntag, 21. Januar 2018, 22:14:15 CET schrieb SF Markus Elfring: > From: Markus Elfring > Date: Sun, 21 Jan 2018 22:10:44 +0100 > > Two update suggestions were taken into account > from static source code analysis. > > Markus Elfring (2): > Delete an error message for a failed memory alloc

[PATCH] Input: atmel_mxt_ts: Delete error messages for a failed memory allocation in two functions

2018-01-21 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 21 Jan 2018 22:25:31 +0100 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/input/touchscreen/atmel_mxt_ts.c | 9 ++--- 1 file changed

Re: [PATCH v2 5/8] x86/speculation: Add basic support for IBPB

2018-01-21 Thread David Woodhouse
On Sun, 2018-01-21 at 20:19 +, Andrew Cooper wrote: > On 21/01/2018 20:04, David Woodhouse wrote: > > For the specific case of IBPB, knowing what we do about non- > > architectural behaviour, that's probably true. > > This IBPB case is an attacker trying to attack a new piece of userspace > us

Re: [PATCH v6 00/41] ARM: davinci: convert to common clock framework​

2018-01-21 Thread Adam Ford
On Sat, Jan 20, 2018 at 11:13 AM, David Lechner wrote: > This series converts mach-davinci to use the common clock framework. > > The series works like this, the first 19 patches create new clock drivers > using the common clock framework. There are basically 3 groups of clocks - > PLL, PSC and CF

  1   2   3   >