Re: [PATCH 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-11 Thread Alan Kao
On Wed, Jan 10, 2018 at 11:36:43AM -0500, Steven Rostedt wrote: > On Wed, 10 Jan 2018 15:38:10 +0800 > Alan Kao wrote: > > > +static int __ftrace_modify_call(unsigned long hook_pos, unsigned long > > target, > > + bool enable) > > +{ > > + unsigned int offset = (unsig

Re: [PATCH] ARM: dts: s5pv210: add interrupt-parent for ohci

2018-01-11 Thread Krzysztof Kozlowski
On Wed, Jan 10, 2018 at 5:10 PM, Arnd Bergmann wrote: > The ohci-hcd node has an interrupt number but no interrupt-parent, > leading to a warning with current dtc versions: > > arch/arm/boot/dts/s5pv210-aquila.dtb: Warning (interrupts_property): Missing > interrupt-parent for /soc/ohci@ec30 >

Re: [PATCH v3 RESEND] cpufreq: pxa: convert to clock API

2018-01-11 Thread Robert Jarzmik
Robert Jarzmik writes: > As the clock settings have been introduced into the clock pxa drivers, > which are now available to change the CPU clock by themselves, remove > the clock handling from this driver, and rely on pxa clock drivers. > > Signed-off-by: Robert Jarzmik > Acked-by: Viresh Kumar

syzkaller support for AF_CAN

2018-01-11 Thread Dmitry Vyukov
On Wed, Jan 10, 2018 at 8:35 PM, Oliver Hartkopp wrote: > Hi Dmitry, > > I'm the maintainer of the CAN bus networking subsystem in linux/net/can/ and > I'm following the interesting bugs the syzkaller is posting on netdev > mailing list. > > We already had a CAN issue here: > https://groups.google

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2018-01-11 Thread Felipe Balbi
Hi, Manu Gautam writes: >> On 27/09/17 14:19, Manu Gautam wrote: >>> Driver powers-off PHYs and reinitializes DWC3 core and gadget on >>> resume. While this works fine for gadget mode but in host >>> mode there is not re-initialization of host stack. Also, resetting >>> bus as part of bus_suspen

[PATCH 1/9] iommu/of: Drop early initialisation hooks

2018-01-11 Thread Jeffy Chen
With the probe-deferral mechanism, early initialisation hooks are no longer needed. Suggested-by: Robin Murphy Signed-off-by: Jeffy Chen --- drivers/iommu/arm-smmu-v3.c | 2 +- drivers/iommu/arm-smmu.c | 12 ++-- drivers/iommu/exynos-iommu.c | 2 +- drivers/iommu/ipmmu-vmsa.c

[PATCH 0/9] iommu/rockchip: Use OF_IOMMU

2018-01-11 Thread Jeffy Chen
This series fixes some issues in rockchip iommu driver, and add of_iommu support in it. Also drop of_iommu early initialisation hooks as Robin suggested. Jeffy Chen (5): iommu/of: Drop early initialisation hooks iommu/rockchip: Fix error handling in probe iommu/rockchip: Fix error handlin

[PATCH 3/9] iommu/rockchip: Fix error handling in probe

2018-01-11 Thread Jeffy Chen
Add missing iommu_device_sysfs_remove in error path. Signed-off-by: Jeffy Chen --- drivers/iommu/rockchip-iommu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index ee805e1dfba7..a05844cabb45 100644 ---

[PATCH 5/9] iommu/rockchip: Use iopoll helpers to wait for hardware

2018-01-11 Thread Jeffy Chen
From: Tomasz Figa This patch converts the rockchip-iommu driver to use the in-kernel iopoll helpers to wait for certain status bits to change in registers instead of an open-coded custom macro. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen --- drivers/iommu/rockchip-iommu.c | 68 +

[PATCH 2/9] iommu/rockchip: Fix error handling in attach

2018-01-11 Thread Jeffy Chen
From: Tomasz Figa Currently if the driver encounters an error while attaching device, it will leave the IOMMU in an inconsistent state. Even though it shouldn't really happen in reality, let's just add proper error path to keep things consistent. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy

[PATCH 6/9] iommu/rockchip: Fix TLB flush of secondary IOMMUs

2018-01-11 Thread Jeffy Chen
From: Tomasz Figa Due to the bug in current code, only first IOMMU has the TLB lines flushed in rk_iommu_zap_lines. This patch fixes the inner loop to execute for all IOMMUs and properly flush the TLB. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen --- drivers/iommu/rockchip-iommu.c |

[PATCH 4/9] iommu/rockchip: Fix error handling in init

2018-01-11 Thread Jeffy Chen
It's hard to undo bus_set_iommu() in the error path, so move it to the end of init call. Signed-off-by: Jeffy Chen --- drivers/iommu/rockchip-iommu.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-i

[PATCH 8/9] iommu/rockchip: Use IOMMU device for dma mapping operations

2018-01-11 Thread Jeffy Chen
Use the first registered IOMMU device for dma mapping operations, and drop the domain platform device. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen --- drivers/iommu/rockchip-iommu.c | 96 -- 1 file changed, 28 insertions(+), 68 dele

[PATCH 9/9] iommu/rockchip: Use OF_IOMMU to attach devices automatically

2018-01-11 Thread Jeffy Chen
Converts the rockchip-iommu driver to use the OF_IOMMU infrastructure, which allows attaching master devices to their IOMMUs automatically according to DT properties. Signed-off-by: Jeffy Chen --- drivers/iommu/rockchip-iommu.c | 13 + 1 file changed, 13 insertions(+) diff --git a/

Re: scsi: memory leak in sg_start_req

2018-01-11 Thread Dmitry Vyukov
On Thu, Jan 11, 2018 at 7:04 AM, Douglas Gilbert wrote: > On 2018-01-09 11:05 AM, Dmitry Vyukov wrote: >> >> Hello, >> >> syzkaller has found the following memory leak: >> >> unreferenced object 0x88004c19 (size 8328): >>comm "syz-executor", pid 4627, jiffies 4294749150 (age 45.507s) >

[PATCH 7/9] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-11 Thread Jeffy Chen
From: Tomasz Figa IOMMU drivers are supposed to call this function instead of manually creating a group in their .add_device callback. This behavior is not strictly required by ARM DMA mapping implementation, but ARM64 already relies on it. This patch fixes the rockchip-iommu driver to comply wit

Re: [PATCH] usb: dwc3: core: Don't try to get PHYs during suspend/resume

2018-01-11 Thread Felipe Balbi
Hi, Roger Quadros writes: - ret = dwc3_core_soft_reset(dwc); + ret = dwc3_core_get_phy(dwc); >>> >>> we can get_phy in dwc3_core_init() as it will get called on resume(). >>> This was the $subject of this patch. >> >> indeed. thanks :-) >> > > oops sorry. I meant we can't call dwc3

Re: [PATCH 03/32] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-01-11 Thread Christoph Hellwig
On Thu, Jan 11, 2018 at 05:22:00AM +, Al Viro wrote: > Whee... The very first ->poll() instance in alphabetic order on pathnames: > in arch/cris/arch-v10/drivers/gpio.c > > static __poll_t gpio_poll(struct file *file, poll_table *wait) > { > __poll_t mask = 0; > struct gpio_pr

RE: [PATCH net-next v2] xfrm: Add ESN support for IPSec HW offload

2018-01-11 Thread Yossi Kuperman
> From: Shannon Nelson [mailto:shannon.nel...@oracle.com] > Sent: Thursday, January 11, 2018 5:21 AM > > On 1/10/2018 3:09 PM, Yossi Kuperman wrote: > >> On 10 Jan 2018, at 19:36, Shannon Nelson wrote: > >> > >>> On 1/10/2018 2:34 AM, yoss...@mellanox.com wrote: > >>> From: Yossef Efraim > >>> T

Re: [PATCH linux dev-4.10 0/6] Add support PECI and PECI hwmon drivers

2018-01-11 Thread Joel Stanley
On Wed, Jan 10, 2018 at 11:30 PM, Greg KH wrote: > On Wed, Jan 10, 2018 at 01:46:34PM -0800, Jae Hyun Yoo wrote: >> Thanks for your pointing it out and I totally agree with you. Actually, we >> are preparing 4.13 update for now and an another update will be followed up. >> As I answered above, I'l

[PATCH v3] PCI: endpoint: Use EPC's device in dma_alloc_coherent/dma_free_coherent

2018-01-11 Thread Kishon Vijay Abraham I
After commit 723288836628bc1c08 ("of: restrict DMA configuration"), of_dma_configure doesn't configure the coherent_dma_mask/dma_mask of endpoint function device (since it doesn't have a dt node associated with and hence no dma-ranges property), resulting in dma_alloc_coherent (used in pci_epf_allo

Re: [PATCH v2] PCI: endpoint: Use EPC's device in dma_alloc_coherent/dma_free_coherent

2018-01-11 Thread Kishon Vijay Abraham I
On Wednesday 10 January 2018 04:41 PM, Lorenzo Pieralisi wrote: > On Tue, Dec 19, 2017 at 02:06:27PM +0530, Kishon Vijay Abraham I wrote: >> After commit 723288836628bc1c08 ("of: restrict DMA configuration"), >> of_dma_configure doesn't configure the coherent_dma_mask/dma_mask >> of endpoint func

Re: [PATCH V2 0/3] sysfs: allow user-space request for devcoredump

2018-01-11 Thread Arend van Spriel
On Wed, Jan 10, 2018 at 2:53 PM, Arend van Spriel wrote: > Since commit 833c95456a70 ("device coredump: add new device coredump class") > device drivers have a unified way to provide binary data obtained from a > failing_device to user-space. However, there may be use-cases in which the > driver h

Re: [PATCH v3 RESEND] cpufreq: pxa: convert to clock API

2018-01-11 Thread Viresh Kumar
On 11-01-18, 09:10, Robert Jarzmik wrote: > Robert Jarzmik writes: > > > As the clock settings have been introduced into the clock pxa drivers, > > which are now available to change the CPU clock by themselves, remove > > the clock handling from this driver, and rely on pxa clock drivers. > > > >

[PATCH V3 1/3] sysfs: add attribute specification for /sysfs/devices/.../coredump

2018-01-11 Thread Arend van Spriel
This patch adds the specification for /sysfs/devices/.../coredump which allows user-space to trigger a device coredump obtaining binary data from the device for (fault) analysis. It relies on CONFIG_DEV_COREDUMP being enabled. Signed-off-by: Arend van Spriel --- V2: - no changes. V3: - changed

[RFC V2 3/3] brcmfmac: pcie: implement .coredump() driver callback

2018-01-11 Thread Arend van Spriel
This implements the .coredump() driver callback obtaining binary data from the device and using devcoredump function to expose it in sysfs. Signed-off-by: Arend van Spriel --- V2: - no changes --- .../wireless/broadcom/brcm80211/brcmfmac/pcie.c| 22 ++ 1 file changed, 22

[PATCH V3 2/3] drivers: base: add coredump driver ops

2018-01-11 Thread Arend van Spriel
This adds the coredump driver operation. When the driver defines it a coredump file is added in the sysfs folder of the device upon driver binding. The file is removed when the driver is unbound. User-space can trigger a coredump for this device by echo'ing to the coredump file. Signed-off-by: Are

Re: [PATCH] ARM64: dts: meson-axg: add RMII pins for ethernet controller

2018-01-11 Thread Jerome Brunet
On Thu, 2018-01-11 at 11:04 +0800, Yixun Lan wrote: > Comparing to RGMII interface, the RMII interface require few pins. > So it's worth describing them here. > > Signed-off-by: Yixun Lan The only axg platform we have upstream is the s400 and is using rgmii. May I ask how this was tested ?

[PATCH] gpio: winbond: fix ISA_BUS_API dependency

2018-01-11 Thread Arnd Bergmann
The newly added GPIO driver for winbond chipsets causes a circular dependency warning in Kconfig: drivers/gpio/Kconfig:13:error: recursive dependency detected! drivers/gpio/Kconfig:13:symbol GPIOLIB is selected by STX104 drivers/iio/adc/Kconfig:699:symbol STX104 depends on ISA_BUS_API

[PATCH V3 0/3] sysfs: allow user-space request for devcoredump

2018-01-11 Thread Arend van Spriel
Since commit 833c95456a70 ("device coredump: add new device coredump class") device drivers have a unified way to provide binary data obtained from a failing_device to user-space. However, there may be use-cases in which the driver has no reason to obtain the data, but user-space wants to initiate

Re: [PATCH linux dev-4.10 0/6] Add support PECI and PECI hwmon drivers

2018-01-11 Thread Greg KH
On Thu, Jan 11, 2018 at 12:28:48AM -0800, Joel Stanley wrote: > On Wed, Jan 10, 2018 at 11:30 PM, Greg KH wrote: > > On Wed, Jan 10, 2018 at 01:46:34PM -0800, Jae Hyun Yoo wrote: > >> Thanks for your pointing it out and I totally agree with you. Actually, we > >> are preparing 4.13 update for now

Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

2018-01-11 Thread Peter Zijlstra
On Thu, Jan 11, 2018 at 12:04:35AM +, Woodhouse, David wrote: > On Wed, 2018-01-10 at 15:47 -0800, Tim Chen wrote: > > > > > + > > > + asm volatile (ALTERNATIVE("", > > > +   __stringify(__FILL_RETURN_BUFFER(%0, %1, > > > _%=)), > > > + 

Re: [RFC PATCH 09/12] mmc: sdhci: Use software timer when timeout greater than hardware capablility

2018-01-11 Thread Adrian Hunter
On 04/01/18 14:59, Kishon Vijay Abraham I wrote: > Hi Adrian, > > On Wednesday 20 December 2017 07:41 PM, Adrian Hunter wrote: >> On 14/12/17 15:09, Kishon Vijay Abraham I wrote: >>> Errata i834 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 >>> (SPRZ429K July 2014–Revised March 2017 [1]) m

Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

2018-01-11 Thread Peter Zijlstra
On Wed, Jan 10, 2018 at 10:51:22PM +, David Woodhouse wrote: > This implements the most pressing of the RSB stuffing documented > by dhansen (based our discussions) in https://goo.gl/pXbvBE Only took me 3 readings to find interrupts/traps were in fact enumerated. Could we plretty please separa

Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

2018-01-11 Thread Boris Petkov
On January 11, 2018 9:42:38 AM GMT+01:00, Peter Zijlstra wrote: >Or we teach the alternative thing to patch in a jmp to end instead of >NOP padding the entire thing as soon as the jmp (3 bytes) fits ? Or, even better: use alternative_call() to call functions instead of patching gazillion bytes.

Re: [PATCH RFC v1] arm64: Handle traps from accessing CNTVCT/CNTFRQ for CONFIG_COMPAT

2018-01-11 Thread Marc Zyngier
On 11/01/18 04:43, Nicolin Chen wrote: > CONFIG_COMPAT allows ARM64 machine to run 32-bit instructions. > Since the ARCH_TIMER_USR_VCT_ACCESS_EN might be disabled if a > timer workaround is detected, accessing cntvct via mrrc will > also trigger a trap. > > So this patch adds support to handle thi

[PATCH] mm, THP: vmf_insert_pfn_pud depends on CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD

2018-01-11 Thread Alexandre Ghiti
The only definition of vmf_insert_pfn_pud depends on CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD being defined. Then its declaration in include/linux/huge_mm.h should have the same restriction so that we do not expose this function if CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD is not defined. Signed-

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2018-01-11 Thread Manu Gautam
Hi Felipe, On 1/11/2018 1:44 PM, Felipe Balbi wrote: > Hi, > > Manu Gautam writes: >>> On 27/09/17 14:19, Manu Gautam wrote: Driver powers-off PHYs and reinitializes DWC3 core and gadget on resume. While this works fine for gadget mode but in host mode there is not re-initializati

Re: [PATCH linux dev-4.10 0/6] Add support PECI and PECI hwmon drivers

2018-01-11 Thread Benjamin Herrenschmidt
On Thu, 2018-01-11 at 08:30 +0100, Greg KH wrote: > 4.13? Why that kernel? It too is obsolete and insecure and > unsupported. Haha, it's n-1. come on :-) > What keeps you all from just always tracking the latest tree from Linus? > What is in your tree that is not upstream that requires you to

[PATCH] ASoC: sgtl5000: fix powerup/down of micbias-voltage

2018-01-11 Thread fischerc
From: Christian Fischer The mic-bias-voltage should get powered up/down automatically. Added missing DAPM_PRE and DAPM_POST widgets to fire up the mic_bias_event function. Signed-off-by: Christian Fischer --- sound/soc/codecs/sgtl5000.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/s

Re: KASLR may break some kernel features (was Re: [PATCH v5 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory)

2018-01-11 Thread Baoquan He
Hi Luiz, On 01/04/18 at 11:21am, Luiz Capitulino wrote: > Having a generic kaslr parameter to control where the kernel is extracted > is one solution for this problem. > > The general problem statement is that KASLR may break some kernel features > depending on where the kernel is extracted. Two

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2018-01-11 Thread Felipe Balbi
Hi, Manu Gautam writes: On 27/09/17 14:19, Manu Gautam wrote: > Driver powers-off PHYs and reinitializes DWC3 core and gadget on > resume. While this works fine for gadget mode but in host > mode there is not re-initialization of host stack. Also, resetting > bus as part of

Re: [PATCH linux dev-4.10 3/6] drivers/misc: Add driver for Aspeed PECI and generic PECI headers

2018-01-11 Thread Benjamin Herrenschmidt
On Wed, 2018-01-10 at 11:18 +0100, Greg KH wrote: > On Tue, Jan 09, 2018 at 02:31:23PM -0800, Jae Hyun Yoo wrote: > > This commit adds driver implementation for Aspeed PECI. Also adds > > generic peci.h and peci_ioctl.h files to provide compatibility > > to peci drivers that can be implemented late

Re: [PATCH 2/3] ARM: dts: mvebu: add sdram controller node to Armada-38x

2018-01-11 Thread Gregory CLEMENT
Hi Chris, On mer., janv. 10 2018, Chris Packham wrote: > On 10/01/18 21:31, Gregory CLEMENT wrote: >> Hi Chris, >> >> On mar., janv. 09 2018, Chris Packham >> wrote: >> >>> The Armada-38x uses an SDRAM controller that is compatible with the >>> Armada-XP. The key difference is the wid

Re: [RESEND PATCH v3 1/2] sched/deadline: Add cpudl_maximum_dl() for clean-up

2018-01-11 Thread Peter Zijlstra
Sorry for the huge delay on this, but I'll have to postpone further. Still busy with meltdown/spectre stuff.

Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

2018-01-11 Thread Woodhouse, David
On Thu, 2018-01-11 at 09:49 +0100, Boris Petkov wrote: > On January 11, 2018 9:42:38 AM GMT+01:00, Peter Zijlstra wrote: > >Or we teach the alternative thing to patch in a jmp to end instead of > >NOP padding the entire thing as soon as the jmp (3 bytes) fits ? > > Or, even better: use alternativ

Re: [PATCH v13 0/7] cgroup-aware OOM killer

2018-01-11 Thread Michal Hocko
On Wed 10-01-18 11:33:45, Andrew Morton wrote: > On Wed, 10 Jan 2018 05:11:44 -0800 Roman Gushchin wrote: > > > Hello, David! > > > > On Tue, Jan 09, 2018 at 04:57:53PM -0800, David Rientjes wrote: > > > On Thu, 30 Nov 2017, Andrew Morton wrote: > > > > > > > > This patchset makes the OOM kille

Re: [PATCH linux dev-4.10 3/6] drivers/misc: Add driver for Aspeed PECI and generic PECI headers

2018-01-11 Thread Benjamin Herrenschmidt
On Tue, 2018-01-09 at 14:31 -0800, Jae Hyun Yoo wrote: > +struct peci_rd_ia_msr_msg { > + unsigned char target; > + unsigned char thread_id; > + unsigned short address; > + unsigned long value; > +}; Those types are representing messages on the wire ? In that case those ty

Re: [PATCH] usb: dwc3: core: Don't try to get PHYs during suspend/resume

2018-01-11 Thread Roger Quadros
+Heikki On 11/01/18 10:25, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: > - ret = dwc3_core_soft_reset(dwc); > + ret = dwc3_core_get_phy(dwc); we can get_phy in dwc3_core_init() as it will get called on resume(). This was the $subject of this patch. >>> >>> indee

Re: [PATCH] ARM64: dts: meson-axg: add RMII pins for ethernet controller

2018-01-11 Thread Yixun Lan
Hi Jerome: On 01/11/18 16:37, Jerome Brunet wrote: > On Thu, 2018-01-11 at 11:04 +0800, Yixun Lan wrote: >> Comparing to RGMII interface, the RMII interface require few pins. >> So it's worth describing them here. >> >> Signed-off-by: Yixun Lan > > The only axg platform we have upstream is the s

Re: mmc0: Unexpected interrupt 0x04000000.

2018-01-11 Thread Adrian Hunter
On 05/01/18 14:44, Mathieu Malaterre wrote: > Hi there, > > I am trying to get sdhci-pci driver to work with the following hardware: > > $ sudo lspci -s 03:00.1 -v -nn > 03:00.1 SD Host controller [0805]: Broadcom Limited BCM57765/57785 > SDXC/MMC Card Reader [14e4:16bc] (rev 10) (prog-if 01) > S

Re: perf: perf_fuzzer quickly locks up on 4.15-rc7

2018-01-11 Thread Peter Zijlstra
On Tue, Jan 09, 2018 at 08:44:23AM -0500, Vince Weaver wrote: > On Tue, 9 Jan 2018, Peter Zijlstra wrote: > > > So remind me again, how are you running that fuzzer? I'm running > > ./fast_repro99.sh as root. > > I'm running ./fast_repro98.sh on a regular haswell machine with paranoid > set to "0

Re: 4.14: WARNING: CPU: 4 PID: 2895 at block/blk-mq.c:1144 with virtio-blk (also 4.12 stable)

2018-01-11 Thread Ming Lei
On Wed, Dec 20, 2017 at 04:47:21PM +0100, Christian Borntraeger wrote: > On 12/18/2017 02:56 PM, Stefan Haberland wrote: > > On 07.12.2017 00:29, Christoph Hellwig wrote: > >> On Wed, Dec 06, 2017 at 01:25:11PM +0100, Christian Borntraeger wrote: > >> t > commit 11b2025c3326f7096ceb588c3117c7883850

Re: [PATCH v2 0/3] ARM: mvebu: dts: updates to enable EDAC

2018-01-11 Thread Gregory CLEMENT
Hi Chris, On jeu., janv. 11 2018, Chris Packham wrote: > I've split this off from my earlier series[1] this is just the dts changes > that > will enable support for the EDAC series when it lands. > > The Armada 38x as well as the 98dx3236 and similar switch chips with > integrated > CPUs us

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2018-01-11 Thread Roger Quadros
Felipe, On 11/01/18 11:04, Felipe Balbi wrote: > > Hi, > > Manu Gautam writes: > On 27/09/17 14:19, Manu Gautam wrote: >> Driver powers-off PHYs and reinitializes DWC3 core and gadget on >> resume. While this works fine for gadget mode but in host >> mode there is not re-initial

[PATCH] Kbuild: suppress packed-not-aligned warning for default setting only

2018-01-11 Thread Xiongfeng Wang
From: Xiongfeng Wang gcc-8 reports many -Wpacked-not-aligned warnings. The below are some examples. ./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct ceph_entity_addr' is less than 8 [-Wpacked-not-aligned] } __attribute__ ((packed)); ./include/linux/ceph/msgr.h:67:1: warning: a

[PATCH V2] thermal: Add cooling device's statistics in sysfs

2018-01-11 Thread Viresh Kumar
This extends the sysfs interface for thermal cooling devices and exposes some pretty useful statistics. These statistics have proven to be quite useful specially while doing benchmarks related to the task scheduler, where we want to make sure that nothing has disrupted the test, specially the cooli

[PATCH 0/7] Introduce Arm TrustZone CryptoCell

2018-01-11 Thread Gilad Ben-Yossef
Arm TrustZone CryptoCell is a security hardware IP that includes support for hardware based hash, digest, cipher and AEAD operations. This driver provides support for these as part of the Linux Crypto sub-system. The driver spent some time now in the staging tree being cleaned up and is now submit

[PATCH 1/7] staging: ccree: remove ccree from staging tree

2018-01-11 Thread Gilad Ben-Yossef
Remove the ccree driver from the staging tree in preparation to introducing it in the crypto tree. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/Kconfig|2 - drivers/staging/Makefile |1 - .../devicetree/bindings/crypto/arm-cryp

[PATCH 4/7] crypto: ccree: add ahash support

2018-01-11 Thread Gilad Ben-Yossef
Add CryptoCell async. hash and HMAC support. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/Makefile|2 +- drivers/crypto/ccree/cc_buffer_mgr.c | 257 drivers/crypto/ccree/cc_driver.c | 13 + drivers/crypto/ccree/cc_driver.h |1 + drivers/crypto/ccree/cc

[PATCH 7/7] MAINTAINERS: update ccree entry

2018-01-11 Thread Gilad Ben-Yossef
Update Arm TrustZone CryptoCell driver entry move into drivers/crypto/ Signed-off-by: Gilad Ben-Yossef --- MAINTAINERS | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1082846..560e068 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3273,12

[PATCH 2/7] crypto: ccree: introduce CryptoCell driver

2018-01-11 Thread Gilad Ben-Yossef
Introduce basic low level Arm TrustZone CryptoCell HW support. This first patch doesn't actually register any Crypto API transformations, these will follow up in the next patch. This first revision supports the CC 712 REE component. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/Kconfig

Re: [PATCH linux dev-4.10 0/6] Add support PECI and PECI hwmon drivers

2018-01-11 Thread Arnd Bergmann
On Thu, Jan 11, 2018 at 9:41 AM, Greg KH wrote: > On Thu, Jan 11, 2018 at 12:28:48AM -0800, Joel Stanley wrote: >> On Wed, Jan 10, 2018 at 11:30 PM, Greg KH wrote: >> > On Wed, Jan 10, 2018 at 01:46:34PM -0800, Jae Hyun Yoo wrote: >> >> Thanks for your pointing it out and I totally agree with you

[PATCH 5/7] crypto: ccree: add AEAD support

2018-01-11 Thread Gilad Ben-Yossef
Add CryptoCell AEAD support Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/Makefile|2 +- drivers/crypto/ccree/cc_aead.c | 2702 ++ drivers/crypto/ccree/cc_aead.h | 109 ++ drivers/crypto/ccree/cc_buffer_mgr.c | 882 +++

Re: [PATCH] gpio: winbond: fix ISA_BUS_API dependency

2018-01-11 Thread Linus Walleij
On Thu, Jan 11, 2018 at 9:35 AM, Arnd Bergmann wrote: > The newly added GPIO driver for winbond chipsets causes a > circular dependency warning in Kconfig: > > drivers/gpio/Kconfig:13:error: recursive dependency detected! > drivers/gpio/Kconfig:13:symbol GPIOLIB is selected by STX104 > dr

[PATCH 6/7] crypto: ccree: add FIPS support

2018-01-11 Thread Gilad Ben-Yossef
Add FIPS mode support to CryptoCell driver Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/Makefile| 1 + drivers/crypto/ccree/cc_driver.c | 29 +- drivers/crypto/ccree/cc_driver.h | 1 + drivers/crypto/ccree/cc_fips.c | 112 +++ dr

Re: linux-next: build warning after merge of the gpio tree

2018-01-11 Thread Linus Walleij
On Thu, Jan 11, 2018 at 5:06 AM, Stephen Rothwell wrote: > Hi Linus, > > After merging the gpio tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/gpio/Kconfig:13:error: recursive dependency detected! > drivers/gpio/Kconfig:13:symbol GPIOLIB is se

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

2018-01-11 Thread Gilad Ben-Yossef
Add CryptoCell ablkcipher support Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/Makefile|2 +- drivers/crypto/ccree/cc_buffer_mgr.c | 125 drivers/crypto/ccree/cc_buffer_mgr.h | 10 + drivers/crypto/ccree/cc_cipher.c | 1167 ++ d

Re: [PATCH linux dev-4.10 0/6] Add support PECI and PECI hwmon drivers

2018-01-11 Thread Benjamin Herrenschmidt
On Thu, 2018-01-11 at 09:41 +0100, Greg KH wrote: > On Thu, Jan 11, 2018 at 12:28:48AM -0800, Joel Stanley wrote: > > On Wed, Jan 10, 2018 at 11:30 PM, Greg KH > > wrote: > > > On Wed, Jan 10, 2018 at 01:46:34PM -0800, Jae Hyun Yoo wrote: > > > > Thanks for your pointing it out and I totally agre

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2018-01-11 Thread Felipe Balbi
Hi, Roger Quadros writes: >>> In host mode runtime suspend/resume could happen very often with >>> device connected, and resetting h/w on every runtime_resume might not >>> be desired. And PHYs drivers can also support runtime_suspend which >>> would be preferred instead of shutting down phy. >>

Re: [PATCH] usb: dwc3: core: Don't try to get PHYs during suspend/resume

2018-01-11 Thread Roger Quadros
On 11/01/18 11:09, Roger Quadros wrote: > +Heikki > > On 11/01/18 10:25, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: >> -ret = dwc3_core_soft_reset(dwc); >> +ret = dwc3_core_get_phy(dwc); > > we can get_phy in dwc3_core_init() as it will get called

Re: [PATCH v2 1/5] pinctrl: imx: use struct imx_pinctrl_soc_info as a const

2018-01-11 Thread Linus Walleij
On Sat, Jan 6, 2018 at 3:25 PM, Stefan Agner wrote: > For some SoCs the struct imx_pinctrl_soc_info is passed through > of_device_id.data which is const. Most variables are already const > or otherwise not written. However, some fields are modified at > runtime. Move those fields to the dynamical

Re: [PATCH v2 2/5] pinctrl: imx7d: simplify imx7d_pinctrl_probe

2018-01-11 Thread Linus Walleij
On Sat, Jan 6, 2018 at 3:25 PM, Stefan Agner wrote: > Using of_device_get_match_data in imx7d_pinctrl_probe simplifies > the function. Also get rid of the void pointer cast since > imx_pinctrl_probe now accepts const struct imx_pinctrl_soc_info. > > Cc: Arvind Yadav > Signed-off-by: Stefan Agner

Re: [PATCH v2 3/5] pinctrl: imx: constify struct imx_pinctrl_soc_info

2018-01-11 Thread Linus Walleij
On Sat, Jan 6, 2018 at 3:25 PM, Stefan Agner wrote: > Now that imx_pinctrl_probe accepts const struct imx_pinctrl_soc_info > we can constify all declarations of struct imx_pinctrl_soc_info. > > Signed-off-by: Stefan Agner Patch applied. Yours, Linus Walleij

Re: 4.14: WARNING: CPU: 4 PID: 2895 at block/blk-mq.c:1144 with virtio-blk (also 4.12 stable)

2018-01-11 Thread Stefan Haberland
On 11.01.2018 10:13, Ming Lei wrote: On Wed, Dec 20, 2017 at 04:47:21PM +0100, Christian Borntraeger wrote: On 12/18/2017 02:56 PM, Stefan Haberland wrote: On 07.12.2017 00:29, Christoph Hellwig wrote: On Wed, Dec 06, 2017 at 01:25:11PM +0100, Christian Borntraeger wrote: t > commit 11b2025c33

Re: [PATCH v2 4/5] pinctrl: imx7ulp: constify struct imx_cfg_params_decode

2018-01-11 Thread Linus Walleij
On Sat, Jan 6, 2018 at 3:25 PM, Stefan Agner wrote: > The decode parameters are constant mark them const. > > Cc: Dong Aisheng > Signed-off-by: Stefan Agner Patch applied. Yours, Linus Walleij

[PATCH] genksyms: drop *.hash.c from .gitignore

2018-01-11 Thread Masahiro Yamada
This is a left-over of commit bb3290d91695 ("Remove gperf usage from toolchain"). We do not generate a hash function any more. Signed-off-by: Masahiro Yamada --- scripts/genksyms/.gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/genksyms/.gitignore b/scripts/genksyms/.gitig

Re: general protection fault in sctp_v6_get_dst

2018-01-11 Thread Xin Long
On Thu, Jan 11, 2018 at 2:15 AM, syzbot wrote: > syzkaller has found reproducer for the following crash on > 61ad64080e039dce99a7f8d89b729bbea995e2f7 > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console o

Re: [PATCH] usb: dwc3: core: Don't try to get PHYs during suspend/resume

2018-01-11 Thread Felipe Balbi
Hi, Roger Quadros writes: >> Roger Quadros writes: >> -ret = dwc3_core_soft_reset(dwc); >> +ret = dwc3_core_get_phy(dwc); > > we can get_phy in dwc3_core_init() as it will get called on resume(). > This was the $subject of this patch. indeed. thanks

Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

2018-01-11 Thread Peter Zijlstra
On Thu, Jan 11, 2018 at 09:07:09AM +, Woodhouse, David wrote: > On Thu, 2018-01-11 at 09:49 +0100, Boris Petkov wrote: > > On January 11, 2018 9:42:38 AM GMT+01:00, Peter Zijlstra wrote: > > >Or we teach the alternative thing to patch in a jmp to end instead of > > >NOP padding the entire thin

Re: [PATCH] ARM64: dts: meson-axg: add RMII pins for ethernet controller

2018-01-11 Thread Neil Armstrong
On 11/01/2018 10:11, Yixun Lan wrote: > Hi Jerome: > > On 01/11/18 16:37, Jerome Brunet wrote: >> On Thu, 2018-01-11 at 11:04 +0800, Yixun Lan wrote: >>> Comparing to RGMII interface, the RMII interface require few pins. >>> So it's worth describing them here. >>> >>> Signed-off-by: Yixun Lan >>

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-11 Thread Petr Mladek
On Thu 2018-01-11 13:58:17, Sergey Senozhatsky wrote: > On (01/10/18 13:05), Steven Rostedt wrote: > > The solution is simple, everyone at KS agreed with it, there should be > > no controversy here. > > frankly speaking, that's not what I recall ;) To be honest, I do not longer remember the detai

[PATCH V3] thermal: Add cooling device's statistics in sysfs

2018-01-11 Thread Viresh Kumar
This extends the sysfs interface for thermal cooling devices and exposes some pretty useful statistics. These statistics have proven to be quite useful specially while doing benchmarks related to the task scheduler, where we want to make sure that nothing has disrupted the test, specially the cooli

[PATCH 0/2] Fix a couple of crashes in netfront

2018-01-11 Thread Ross Lagerwall
Here are a couple of patches to fix two crashes in netfront. Ross Lagerwall (2): xen/grant-table: Use put_page instead of free_page xen-netfront: Fix race between device setup and open drivers/net/xen-netfront.c | 46 -- drivers/xen/grant-table.c

[PATCH 1/2] xen/grant-table: Use put_page instead of free_page

2018-01-11 Thread Ross Lagerwall
The page given to gnttab_end_foreign_access() to free could be a compound page so use put_page() instead of free_page() since it can handle both compound and single pages correctly. This bug was discovered when migrating a Xen VM with several VIFs and CONFIG_DEBUG_VM enabled. It hits a BUG usually

[PATCH] bus: omap: add MODULE_LICENSE tags

2018-01-11 Thread Arnd Bergmann
linux-4.15 warns about missing MODULE_LICENSE tags such as these WARNING: modpost: missing MODULE_LICENSE() in drivers/bus/omap_l3_noc.o WARNING: modpost: missing MODULE_LICENSE() in drivers/bus/omap_l3_smx.o For completeness, I'm also adding MODULE_AUTHOR and MODULE_DESCRIPTION tags, but I decid

Re: [PATCH 0/7] Initial Allwinner H6 support

2018-01-11 Thread Linus Walleij
On Sat, Jan 6, 2018 at 5:18 AM, Icenowy Zheng wrote: > This patchset adds initial support for the Allwinner H6 SoC. Can I apply the pin control patches without the clock patches? Also waiting for Maxime and/or Chen-Yu to provide some review before merging this. Yours, Linus Walleij

[PATCH 2/2] xen-netfront: Fix race between device setup and open

2018-01-11 Thread Ross Lagerwall
When a netfront device is set up it registers a netdev fairly early on, before it has set up the queues and is actually usable. A userspace tool like NetworkManager will immediately try to open it and access its state as soon as it appears. The bug can be reproduced by hotplugging VIFs until the VM

Re: [linux-sunxi] Re: [PATCH 0/7] Initial Allwinner H6 support

2018-01-11 Thread Icenowy Zheng
在 2018年1月11日星期四 CST 下午5:36:39,Linus Walleij 写道: > On Sat, Jan 6, 2018 at 5:18 AM, Icenowy Zheng wrote: > > This patchset adds initial support for the Allwinner H6 SoC. > > Can I apply the pin control patches without the clock patches? I think it's OK. Note: on H6 now the pin controller do not d

Re: [PATCH 1/9] iommu/of: Drop early initialisation hooks

2018-01-11 Thread Marek Szyprowski
Hi Jeffy, On 2018-01-11 09:22, Jeffy Chen wrote: With the probe-deferral mechanism, early initialisation hooks are no longer needed. Suggested-by: Robin Murphy Signed-off-by: Jeffy Chen --- drivers/iommu/arm-smmu-v3.c | 2 +- drivers/iommu/arm-smmu.c | 12 ++-- drivers/iomm

Re: [PATCH] pinctrl: uniphier: refactor drive strength get/set functions

2018-01-11 Thread Linus Walleij
On Wed, Jan 10, 2018 at 9:34 AM, Masahiro Yamada wrote: > There is code duplication between uniphier_conf_pin_drive_get() and > uniphier_conf_pin_drive_set(). Factor out the common code into > uniphier_conf_get_drvctrl_data(). > > Signed-off-by: Masahiro Yamada Patch applied. Yours, Linus Wal

Re: [PATCH 1/2] pinctrl: mediatek: mt7622: fix potential uninitialized value being returned

2018-01-11 Thread Linus Walleij
On Tue, Jan 9, 2018 at 5:28 PM, wrote: > From: Sean Wang > > commit d6ed93551320 ("pinctrl: mediatek: add pinctrl driver for MT7622 > SoC") leads to the following static checker warning: Patch applied. Yours, Linus Walleij

Re: [PATCH 2/2] pinctrl: mediatek: mt7622: align error handling of mtk_hw_get_value call

2018-01-11 Thread Linus Walleij
On Tue, Jan 9, 2018 at 5:28 PM, wrote: > From: Sean Wang > > Make consistent error handling of all mtk_hw_get_value occurrences using > propagating error code from the internal instead of creating a new one. > > Signed-off-by: Sean Wang Patch applied. Yours, Linus Walleij

Re: [PATCH] usb: dwc3: core: Don't try to get PHYs during suspend/resume

2018-01-11 Thread Roger Quadros
On 11/01/18 11:31, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >>> Roger Quadros writes: >>> - ret = dwc3_core_soft_reset(dwc); >>> + ret = dwc3_core_get_phy(dwc); >> >> we can get_phy in dwc3_core_init() as it will get called on resume(). >> This was t

Re: [PATCH 0/2] pinctrl: meson: use one uniform 'function' name

2018-01-11 Thread Linus Walleij
On Mon, Jan 8, 2018 at 8:33 AM, Yixun Lan wrote: > These two patches are general improvement for meson pinctrl driver. > It make the two pinctrl trees (ee/ao) to share one uniform 'function' name for > one hardware block even its pin groups live inside two differet hardware > domains, > which fo

Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

2018-01-11 Thread Borislav Petkov
On Thu, Jan 11, 2018 at 10:32:31AM +0100, Peter Zijlstra wrote: > can't you do lovely things like: > > volatile asm ("call __fill_rsb_thunk_%1" : : "r" (dummy)) > > which would still let gcc select the register ? Calling a function from asm is nasty because you need to pay attention to clo

Re: [PATCH V5 00/13] drivers: Boot Constraint core

2018-01-11 Thread Viresh Kumar
On 10-01-18, 10:54, Olof Johansson wrote: > The SoC-specific pieces should preferrably go under drivers/soc > instead, to reduce cross-tree dependencies when introducing new SoC > variants. > > They're more related to the SoC than to the boot_constraint framework anyway. Hmm, okay. > Bikeshed: W

Re: [f2fs-dev] [PATCH] f2fs: prevent newly created inode from being dirtied incorrectly

2018-01-11 Thread Chao Yu
On 2018/1/11 10:26, Daeho Jeong wrote: > Now, we invoke f2fs_mark_inode_dirty_sync() to make an inode dirty in > advance of creating a new node page for the inode. By this, some inodes > whose node page is not created yet can be linked into the global dirty > list. > > If the checkpoint is execute

Re: [PATCH 00/18] prevent bounds-check bypass via speculative execution

2018-01-11 Thread Jiri Kosina
On Tue, 9 Jan 2018, Josh Poimboeuf wrote: > On Tue, Jan 09, 2018 at 11:44:05AM -0800, Dan Williams wrote: > > On Tue, Jan 9, 2018 at 11:34 AM, Jiri Kosina wrote: > > > On Fri, 5 Jan 2018, Dan Williams wrote: > > > > > > [ ... snip ... ] > > >> Andi Kleen (1): > > >> x86, barrier: stop specu

Re: [PATCH v2] f2fs: handle newly created page when revoking inmem pages

2018-01-11 Thread Chao Yu
On 2018/1/11 14:50, Yunlong Song wrote: > Should it be "When committing inmem pages is not successful" ? I guess Daeho want to say "Partially successful"? Thanks,

  1   2   3   4   5   6   7   8   9   10   >