Re: [PATCH v2] crypto: AF_ALG - limit mask and type

2017-12-21 Thread Herbert Xu
On Fri, Dec 22, 2017 at 08:41:10AM +0100, Stephan Mueller wrote: > > Shouldn't we then rather use a white list instead of a black list? > > > > Most other problems however would be bugs in the template code. > > The first thing a template does when it creates an instance is > > to check whether th

Re: proc_flush_task oops

2017-12-21 Thread Eric W. Biederman
Dave Jones writes: > On Thu, Dec 21, 2017 at 07:31:26PM -0600, Eric W. Biederman wrote: > > Dave Jones writes: > > > > > On Thu, Dec 21, 2017 at 12:38:12PM +0200, Alexey Dobriyan wrote: > > > > > > > > with proc_mnt still set to NULL is a mystery to me. > > > > > > > > > > Is there

Re: linux-next: build failure after merge of the net-next tree

2017-12-21 Thread Ido Schimmel
Hi Stephen, On Fri, Dec 22, 2017 at 11:45:19AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: [...] > I have added the following merge fix patch for today (I am guessing > a bit here): > > From

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2017-12-21 Thread Peter Zijlstra
On Thu, Dec 21, 2017 at 05:23:27PM +0100, Vincent Guittot wrote: > Hi Peter, > > I think that part of the proposal is missing. > > One goal of the patchset was to kick an update of the stats of idle > cpu when a task wake up on a cpu but the statistic has not been > updated for a while. > > That

Re: [PATCH] usb: dwc3: gadget:Core consumes a trb software to fill a trb, in ISO

2017-12-21 Thread Felipe Balbi
Hi, Lipengcheng writes: > Iso transmission, the current process is that all trb(HWO=1) is handled. > Then core generate DWC3_DEPEVT_XFERNOTREADY event, Software begin refill > trb, this will produce 0 length package, the patch is to achieve the core > consumes a trb, and then the software fill

Re: [PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread Shrikant Maurya
On Friday 22 December 2017 12:43 PM, Greg KH wrote: > On Fri, Dec 22, 2017 at 11:19:24AM +0530, shrikant.mau...@techveda.org wrote: >> From: Shrikant Maurya >> >> As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): >> API's are using GFP_KERNEL to allocate memory, which may sleep.

Re: [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb

2017-12-21 Thread Greg KH
On Fri, Dec 22, 2017 at 03:43:15PM +0800, lpc.li wrote: > Hi, > Ethernet Gadget (with CDC Ethernet support) and RNDIS support, device > is Hisilicon asic and host is PC Windows. Howerver, it has one > warning. In the rndis_add_header of the file f_rndis.c, > dev_kfree_skb_irq replaces dev_kfree_skb

Re: [RFC 2/2] pci: dwc: pci-exynos: add the codes to support the exynos5433

2017-12-21 Thread Jingoo Han
On Thursday, December 21, 2017 9:21 PM, Jaehoon Chung wrote: > On 12/22/2017 01:12 AM, Jingoo Han wrote: > > On Thursday, December 21, 2017 7:14 AM, Jaehoon Chung wrote: > >> > >> Exynos5433 has the PCIe for WiFi. > >> Added the codes relevant to PCIe for supporting the exynos5433. > >> Also change

Re: pinctrl-amd: What hardware does it apply to?

2017-12-21 Thread Linus Walleij
On Fri, Dec 22, 2017 at 2:17 AM, Andrew Cooks wrote: > On 21/12/17 23:02, Christian Lamparter wrote: >> Just a FYI: due to these difficulties with getting a gpio driver >> upstream, Alan Mizrahi upstreamed an in-kernel led-apu.c driver [0] >> that sort of bypasses the whole pinctrl vs gpio issue.

Re: [PATCH 4.4 009/115] Bluetooth: btusb: driver to enable the usb-wakeup feature

2017-12-21 Thread gre...@linuxfoundation.org
On Thu, Dec 21, 2017 at 01:39:41PM -0800, Guenter Roeck wrote: > On Thu, Dec 21, 2017 at 09:50:57PM +0100, gre...@linuxfoundation.org wrote: > > On Thu, Dec 21, 2017 at 09:46:18PM +0100, gre...@linuxfoundation.org wrote: > > > On Thu, Dec 21, 2017 at 12:04:57PM -0800, Guenter Roeck wrote: > > > > O

Re: [PATCH v2] crypto: AF_ALG - limit mask and type

2017-12-21 Thread Stephan Mueller
Am Freitag, 22. Dezember 2017, 08:36:07 CET schrieb Herbert Xu: Hi Herbert, > On Tue, Dec 19, 2017 at 07:25:04AM +0100, Stephan Müller wrote: > > The user space interface allows specifying the type and the mask field > > used to allocate the cipher. As user space can precisely select the > > desi

Re: [PATCH] PCI: designware: add a check of msi_desc in irqchip

2017-12-21 Thread Cao Zou
On 12/22/2017 03:38 PM, Cao Zou wrote: On 12/22/2017 11:04 AM, Cao Zou wrote: On 12/20/2017 12:20 AM, Lorenzo Pieralisi wrote: On Mon, Dec 18, 2017 at 10:02:20AM +0800, Cao Zou wrote: On 12/16/2017 01:20 AM, Marc Zyngier wrote: On 15/12/17 16:17, Lorenzo Pieralisi wrote: [+Marc] On T

Re: linux-next: build failure after merge of the spi tree

2017-12-21 Thread Rasmus Villemoes
it's private to gpiolib. There's no public declaration in include/, but there's a public gpiod_put, which is nothing but a wrapper for gpiod_free. gpiod_put is declared in linux/gpio/consumer.h, which is already #included, so s/gpiod_free/gpiod_put/ should fix it. Want a foll

Re: [PATCH] PCI: designware: add a check of msi_desc in irqchip

2017-12-21 Thread Cao Zou
On 12/22/2017 11:04 AM, Cao Zou wrote: On 12/20/2017 12:20 AM, Lorenzo Pieralisi wrote: On Mon, Dec 18, 2017 at 10:02:20AM +0800, Cao Zou wrote: On 12/16/2017 01:20 AM, Marc Zyngier wrote: On 15/12/17 16:17, Lorenzo Pieralisi wrote: [+Marc] On Thu, Dec 14, 2017 at 10:21:23AM +0800, cao.

Re: [PATCH v2] crypto: AF_ALG - limit mask and type

2017-12-21 Thread Herbert Xu
On Tue, Dec 19, 2017 at 07:25:04AM +0100, Stephan Müller wrote: > The user space interface allows specifying the type and the mask field > used to allocate the cipher. As user space can precisely select the > desired cipher by using either the name or the driver name, additional > selection options

[PATCH 2/7] PM / OPP: Implement of_dev_pm_opp_find_required_opp()

2017-12-21 Thread Viresh Kumar
A device's DT node or its OPP nodes can contain a phandle to other device's OPP node, in the "required-opp" property. This patch implements a routine to find that required OPP from the node that contains the "required-opp" property. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 4 +-

[PATCH 1/7] PM / OPP: Implement dev_pm_opp_of_add_table_indexed()

2017-12-21 Thread Viresh Kumar
The "operating-points-v2" property can contain a list of phandles now, specifically for the power domain providers that provide multiple domains. Add support to parse that. Signed-off-by: Viresh Kumar --- drivers/opp/of.c | 50 +- include/li

[PATCH 4/7] PM / Domain: Add support to parse domain's OPP table

2017-12-21 Thread Viresh Kumar
Parse the OPP table for power domains if they have their set_performance_state() callback set. Signed-off-by: Viresh Kumar --- drivers/base/power/domain.c | 78 +++-- 1 file changed, 62 insertions(+), 16 deletions(-) diff --git a/drivers/base/power/domain

[PATCH 6/7] PM / OPP: Get performance state using genpd helper

2017-12-21 Thread Viresh Kumar
The genpd core provides an API now to retrieve the performance state from DT, use that instead of the ->get_pstate() callback. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 3 --- drivers/opp/of.c | 20 +++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git

[PATCH 3/7] PM / Domain: Add struct device to genpd

2017-12-21 Thread Viresh Kumar
The power-domain core would be using the OPP core going forward and the OPP core has the basic requirement of a device structure for its working. Add a struct device to the genpd structure and also add a genpd bus type for the devices. Signed-off-by: Viresh Kumar --- drivers/base/power/domain.c

[PATCH 5/7] PM / Domain: Implement of_dev_pm_genpd_get_performance_state()

2017-12-21 Thread Viresh Kumar
This implements of_dev_pm_genpd_get_performance_state() which can be used from the device drivers or the OPP core to find the performance state encoded in the "required-opp" property of a node. Different platforms may encode the performance state differently using the OPP table (they may simply ret

[PATCH 7/7] PM / OPP: Remove dev_pm_opp_{un}register_get_pstate_helper()

2017-12-21 Thread Viresh Kumar
These helpers aren't used anymore, remove them. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 75 -- drivers/opp/opp.h | 2 -- include/linux/pm_opp.h | 10 --- 3 files changed, 87 deletions(-) diff --git a/drivers/opp/core.c b

[PATCH 0/7] PM /Domain/OPP: Add support to get performance state from DT

2017-12-21 Thread Viresh Kumar
Hi, Now that the DT bindings [1] are already Reviewed/Acked by respective maintainers, here is the code to start using them. The first two patches provide helpers in the OPP core, [3-5]/7 update the PM domain core to start supporting domain OPP tables, etc, 6/7 updates the OPP core to use the new

[no subject]

2017-12-21 Thread Intl
Hello Dear, All data(s) concerning this will be disclosed to you on your acknowledgment of this mail for security reasons(to avoid copyright violations). Your beneficiary sum are ready to be transferred to your bank account, this is very urgent. The sum which was formerly own to late Mr. Thomas, P

Re: [RFC] MIPS memblock: Remove bootmem code and switch to NO_BOOTMEM

2017-12-21 Thread Marcin Nowakowski
Hi Serge, On 19.12.2017 21:14, Serge Semin wrote: Hello folks, Almost a year ago I sent a patchset to the Linux MIPS community. The main target of the patchset was to get rid from the old bootmem allocator usage at the MIPS architecture. Additionally I had a problem with CMA usage on my MIPS

Re: [PATCH] scsi: lpfc: don't dereference localport before it has been null checked

2017-12-21 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG N

Re: [PATCH][next] soundwire: intel: fix missing assignment to ret

2017-12-21 Thread Greg KH
On Fri, Dec 22, 2017 at 09:01:49AM +0530, Vinod Koul wrote: > On Thu, Dec 21, 2017 at 11:32:10PM +, Colin King wrote: > > From: Colin Ian King > > > > Currently the return status ret is being checked but it has not been > > updated since the previous check on ret. It appears that assignment o

Re: [PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread Greg KH
On Fri, Dec 22, 2017 at 11:19:24AM +0530, shrikant.mau...@techveda.org wrote: > From: Shrikant Maurya > > As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): > API's are using GFP_KERNEL to allocate memory, which may sleep. > To ensure atomicity such allocations must be avoided in c

Re: [PATCH] ARM: realview: remove eb-mp clcd IRQ

2017-12-21 Thread Arnd Bergmann
On Thu, Dec 21, 2017 at 11:08 PM, Linus Walleij wrote: > On Thu, Dec 21, 2017 at 10:31 PM, Arnd Bergmann wrote: > >> We get a dtc warning about the CLCD interrupt being invalid: >> >> arch/arm/boot/dts/arm-realview-eb-11mp-ctrevb.dtb: Warning >> (interrupts_property): interrupts size is (8), exp

Re: [PATCH net] RDS: Check cmsg_len before dereferencing CMSG_DATA

2017-12-21 Thread santosh.shilim...@oracle.com
On 12/21/17 8:17 PM, Avinash Repaka wrote: RDS currently doesn't check if the length of the control message is large enough to hold the required data, before dereferencing the control message data. This results in following crash: BUG: KASAN: stack-out-of-bounds in rds_rdma_bytes net/rds/send.c:

Re: [PATCH RFC 1/4] crypto: engine - Permit to enqueue all async requests

2017-12-21 Thread Herbert Xu
On Wed, Nov 29, 2017 at 09:41:18AM +0100, Corentin Labbe wrote: > The crypto engine could actually only enqueue hash and ablkcipher request. > This patch permit it to enqueue any type of crypto_async_request. > > Signed-off-by: Corentin Labbe This is going the wrong way. We do not want to expos

[GIT PULL] xen: fixes for 4.15-rc5

2017-12-21 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.15-rc5-tag xen: fixes for 4.15-rc5 It contains two fixes for running under Xen: - a fix avoiding resource conflicts between adding mmio areas and memory hotplug - a fix setting N

Re: [RESEND PATCH v11 0/2] Make find_later_rq() choose a closer cpu in topology

2017-12-21 Thread Byungchul Park
Hello, shall I stop sending this? Let me know if so. On Tue, Dec 19, 2017 at 10:20:13AM +0900, Byungchul Park wrote: > Change from v10 >-. modify a comment a bit as Steven suggested > > Change from v9 >-. modify a comment a bit so to be more clear as Juri suggested > > Change from v8 >

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

2017-12-21 Thread Byungchul Park
On Tue, Dec 19, 2017 at 10:19:23AM +0900, Byungchul Park wrote: > Changes from v2 > - Run spellchecker over the text and fix typos > - Add acked-by Daniel > > Changes from v1 > - Enhance commit msg > - Prevent WARN in cpumask_test_cpu() in cpudl_find() when best_cpu == -1 Hello, shall I stop

Crypto Fixes for 4.15

2017-12-21 Thread Herbert Xu
Hi Linus: This push fixes the following issues: - Fix chacha20 crash on zero-length input due to unset IV. - Fix potential race conditions in mcryptd with spinlock. - Only wait once at top of algif recvmsg to avoid inconsistencies. - Fix potential use-after-free in algif_aead/algif_skcipher. P

Re: [PATCH v6 4/5] clk: aspeed: Register gated clocks

2017-12-21 Thread Benjamin Herrenschmidt
On Thu, 2017-12-21 at 15:39 -0800, Stephen Boyd wrote: > On 11/28, Joel Stanley wrote: > > diff --git a/drivers/clk/clk-aspeed.c b/drivers/clk/clk-aspeed.c > > index 839243691b26..b5dc3e298693 100644 > > --- a/drivers/clk/clk-aspeed.c > > +++ b/drivers/clk/clk-aspeed.c > > @@ -202,6 +202,107 @@ sta

Re: [PATCH RFC 2/3] crypto: Implement a generic crypto statistics

2017-12-21 Thread Herbert Xu
On Wed, Dec 20, 2017 at 08:09:26PM +, Corentin Labbe wrote: > This patch implement a generic way to get statistics about all crypto > usages. > > Signed-off-by: Corentin Labbe Please don't use sysfs. We already have crypto_user and this should be exposed through that. Thanks, -- Email: He

Re: [PATCH] arm: dts: mt7623: enable all four available UARTs on bananapi-r2

2017-12-21 Thread Sean Wang
On Fri, 2017-12-22 at 14:06 +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > On bpi-r2 board, totally there're four uarts which we usually called > uart[0-3] helpful to extend slow I/O devices. Among those ones, uart2 has > dedicated pin slot which is used to conolse log. uart[0-1] appe

Re: linux-next: manual merge of the omap tree with the keystone tree

2017-12-21 Thread Kishon Vijay Abraham I
On Friday 22 December 2017 04:42 AM, Tony Lindgren wrote: > * Stephen Rothwell [171221 21:48]: >> Hi Tony, >> >> Today's linux-next merge of the omap tree got a conflict in: >> >> arch/arm/configs/multi_v7_defconfig >> >> between commit: >> >> d3b15c54ed7e ("ARM: config: sync multi-v7 config

Re: [PATCH v2] IPI performance benchmark

2017-12-21 Thread Yury Norov
On Wed, Dec 20, 2017 at 02:44:25PM +0800, Wanpeng Li wrote: > Hi Yury, > 2017-12-19 16:50 GMT+08:00 Yury Norov : > > This benchmark sends many IPIs in different modes and measures > > time for IPI delivery (first column), and total time, ie including > > time to acknowledge the receive by sender (s

[PATCH] arm: dts: mt7623: enable all four available UARTs on bananapi-r2

2017-12-21 Thread sean.wang
From: Sean Wang On bpi-r2 board, totally there're four uarts which we usually called uart[0-3] helpful to extend slow I/O devices. Among those ones, uart2 has dedicated pin slot which is used to conolse log. uart[0-1] appear at the 40-pins connector and uart3 has no pinout, but just has test poin

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

2017-12-21 Thread Chunyan Zhang
Hi Rob, On 22 December 2017 at 07:26, Rob Herring wrote: > On Thu, Dec 21, 2017 at 02:25:02PM +0800, Chunyan Zhang wrote: >> Documented a few new added properties which are used for supporting >> regulator suspend states. > > Your commit message should answer why you need this. What problem do yo

Re: pinctrl-amd: What hardware does it apply to?

2017-12-21 Thread Mika Westerberg
On Fri, Dec 22, 2017 at 10:37:32AM +1000, Andrew Cooks wrote: > > > On 21/12/17 22:12, Mika Westerberg wrote: > > On Thu, Dec 21, 2017 at 11:11:18AM +0100, Linus Walleij wrote: > >>> In contrast, the pinctrl-amd driver only mentions the newer KERNCZ > >>> platform > >>> name and uses ACPI for pr

Re: [PATCH v2 2/3] dt-bindings: PCI: dra7xx: Add properties to enable x2 lane in dra7

2017-12-21 Thread Kishon Vijay Abraham I
Hi Rob, On Thursday 21 December 2017 12:27 AM, Rob Herring wrote: > On Tue, Dec 19, 2017 at 02:28:22PM +0530, Kishon Vijay Abraham I wrote: >> Add syscon properties required for configuring PCIe in x2 lane mode. >> >> Signed-off-by: Kishon Vijay Abraham I >> Signed-off-by: Sekhar Nori >> --- >>

[PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread shrikant . maurya
From: Shrikant Maurya As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): API's are using GFP_KERNEL to allocate memory, which may sleep. To ensure atomicity such allocations must be avoided in critical sections under spinlock. Fixed by moving part of the code which is using GFP_KER

[PATCH v4 1/2] PCI: mediatek: Clear IRQ status after IRQ dispatched to avoid reentry

2017-12-21 Thread honghui.zhang
From: Honghui Zhang There maybe a same IRQ reentry scenario after IRQ received in current IRQ handle flow: EP device PCIe host driverEP driver 1. issue an IRQ 2. received IRQ 3. clear IRQ status

[PATCH v4 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code

2017-12-21 Thread honghui.zhang
From: Honghui Zhang Two fixups for mediatek's host bridge: The first patch fixup the IRQ handle routine to avoid IRQ reentry which may exist for both MT2712 and MT7622. The second patch fixup class type for MT7622. Change since v3: - Setup the class type and vendor ID at the beginning of startu

[PATCH v4 2/2] PCI: mediatek: Set up class type and vendor ID for MT7622

2017-12-21 Thread honghui.zhang
From: Honghui Zhang The hardware default value of IDs and class type is not correct, fix that by setup the correct values before start up. Signed-off-by: Honghui Zhang --- drivers/pci/host/pcie-mediatek.c | 12 include/linux/pci_ids.h | 3 +++ 2 files changed, 15 inserti

linux-next: Tree for Dec 22

2017-12-21 Thread Stephen Rothwell
Hi all, News: The next release will be on January 2nd. Changes since 20171221: New tree: mips (the old mips tree has been renamed to mips-james) The aspeed tree gained conflicts against the arm-soc tree. The omap tree gained a conflict against the keystone tree. The xfs tree gained a

Re: [PATCH V7 12/12] arm64: dts: add clocks for SC9860

2017-12-21 Thread Chunyan Zhang
+ a...@kernel.org On 7 December 2017 at 20:57, Chunyan Zhang wrote: > Some clocks on SC9860 are in the same address area with syscon devices, > those are what have a property of 'sprd,syscon' which would refer to > syscon devices, others would have a reg property indicated their address > ranges.

Re: BUG: unable to handle kernel NULL pointer dereference in sctp_stream_free

2017-12-21 Thread Xin Long
On Thu, Dec 21, 2017 at 9:13 PM, Marcelo Ricardo Leitner wrote: > On Wed, Dec 20, 2017 at 12:51:01PM -0800, syzbot wrote: > > from the log: > [ 89.451366] FAULT_INJECTION: forcing a failure.^M > [ 89.451366] name failslab, interval 1, probability 0, space 0, > times 0^M > [ 89.451374] CPU: 0

Re: [PATCH V7 11/12] arm64: dts: add syscon for whale2 platform

2017-12-21 Thread Chunyan Zhang
On 22 December 2017 at 07:03, Stephen Boyd wrote: > On 12/07, Chunyan Zhang wrote: >> Some clocks on SC9860 are in the same address area with syscon >> devices, the proper syscon node will be quoted under the >> definitions of those clocks in DT. >> >> Signed-off-by: Chunyan Zhang >> --- > > Thes

Re: [PATCH V8 2/3] OPP: Introduce "required-opp" property

2017-12-21 Thread Viresh Kumar
On 18-12-17, 15:51, Viresh Kumar wrote: > Devices have inter-dependencies some times. For example a device that > needs to run at 800 MHz, needs another device (e.g. Its power domain) to > be configured at a particular operating performance point. > > This patch introduces a new property "required

[PATCH 3/3] x86/tsc: Print tsc_khz, when it differs from cpu_khz

2017-12-21 Thread Len Brown
From: Len Brown When Linux detects the CPU and TSC rate are the same tsc: Detected 2900.000 MHz processor tells us both. But if Linux detects a TSC rate that differs from the CPU rate, print that also: tsc: Detected 2904.000 MHz TSC Signed-off-by: Len Brown --- arch/x86/kernel/tsc.c | 5 ++

[PATCH 2/3] x86/tsc: Fix erroneous TSC rate on Skylake Xeon

2017-12-21 Thread Len Brown
From: Len Brown Linux-4.9 added INTEL_FAM6_SKYLAKE_X to native_calibrate_tsc(): commit 6baf3d61821f ("x86/tsc: Add additional Intel CPU models to the crystal quirk list") There are several problems with doing this. The first is that while SKX servers use a 25 MHz crystal, SKX workstations (wit

[PATCH 1/3] x86/tsc: Future-proof native_calibrate_tsc()

2017-12-21 Thread Len Brown
From: Len Brown If native_calibrate_tsc() can not discover the TSC frequency, via CPUID or via built-in table, it must return without setting X86_FEATURE_TSC_KNOWN_FREQ. Otherwise, X86_FEATURE_TSC_KNOWN_FREQ will prevent TSC refined calibration. This patch allows Linux to correctly support futu

Re: Regression with a0747a859ef6 ("bdi: add error handle for bdi_debug_register")

2017-12-21 Thread Bruno Wolff III
On Thu, Dec 21, 2017 at 17:16:03 -0600, Bruno Wolff III wrote: Enforcing mode alone isn't enough as I tested that one one machine at home and it didn't trigger the problem. I'll try another machine late tonight. I got the problem to occur on my i686 machine when booting in enforcing mode.

Re: [PATCH] arm64: defconfig: Select schedutil as default cpufreq governor

2017-12-21 Thread Viresh Kumar
On 21-12-17, 16:32, Arnd Bergmann wrote: > On Mon, Dec 18, 2017 at 5:29 AM, Viresh Kumar wrote: > > On 15-12-17, 15:50, Catalin Marinas wrote: > >> On Thu, Nov 16, 2017 at 11:51:36AM +0530, Viresh Kumar wrote: > >> > Currently performance governor is getting selected by default, which is > >> > su

Re: powerpc/perf: Dereference bhrb entries safely

2017-12-21 Thread Michael Ellerman
On Tue, 2017-12-12 at 12:29:15 UTC, Ravi Bangoria wrote: > It may very well happen that branch instructions recorded by > bhrb entries already get unmapped before they get processed by > the kernel. Hence, trying to dereference such memory location > will endup in a crash. Ex, > > Unable to ha

Re: powerpc/perf: Fix nest-imc cpuhotplug callback failure

2017-12-21 Thread Michael Ellerman
On Tue, 2017-12-05 at 05:30:38 UTC, Anju T Sudhakar wrote: > Call trace observed during boot: > > > > Faulting instruction address: 0xc0248340

Re: [PATCH 1/2] [media] Add Rockchip RK1608 driver

2017-12-21 Thread Jacob Chen
Hi leo, 2017-12-12 14:28 GMT+08:00 Leo Wen : > Rk1608 is used as a PreISP to link on Soc, which mainly has two functions. > One is to download the firmware of RK1608, and the other is to match the > extra sensor such as camera and enable sensor by calling sensor's s_power. > > use below v4l2-ctl

[git pull] drm fixes for Xmas (4.15-rc5)

2017-12-21 Thread Dave Airlie
Hi Linus, I've got most of two weeks worth of fixes here due to being on holidays last week. The main things are: Core: Syncobj fd reference count fix Leasing ioctl misuse fix nouveau regression fixes further amdgpu DC fixes sun4i regression fixes I'm not sure I'll see many fixes over next coup

Re: [PATCH 2/2] Introduce __cond_lock_err

2017-12-21 Thread Josh Triplett
On Thu, Dec 21, 2017 at 05:10:00PM -0800, Matthew Wilcox wrote: > On Thu, Dec 21, 2017 at 02:48:10PM -0700, Ross Zwisler wrote: > > > +++ b/include/linux/compiler_types.h > > > @@ -16,6 +16,7 @@ > > > # define __acquire(x)__context__(x,1) > > > # define __release(x)__context__(x,-1) > > >

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-21 Thread Steven Rostedt
On Thu, 21 Dec 2017 16:09:32 -0800 Tejun Heo wrote: > > I tried your v4 patch and ran the test module and could easily > reproduce RCU stall and other issues stemming from a CPU getting > pegged down by printk flushing. I'm attaching the test module code at > the end. Thanks, I'll take a look.

[PATCH net] RDS: Check cmsg_len before dereferencing CMSG_DATA

2017-12-21 Thread Avinash Repaka
RDS currently doesn't check if the length of the control message is large enough to hold the required data, before dereferencing the control message data. This results in following crash: BUG: KASAN: stack-out-of-bounds in rds_rdma_bytes net/rds/send.c:1013 [inline] BUG: KASAN: stack-out-of-bounds

Re: Prototype patch for Linux-kernel memory model

2017-12-21 Thread afzal mohammed
Hi, On Thu, Dec 21, 2017 at 08:15:02AM -0800, Paul E. McKenney wrote: > On Thu, Dec 21, 2017 at 09:00:55AM +0530, afzal mohammed wrote: > > Since it is now mentioned that r1 can have final value of 0, though it > > is understood, it might make things crystal clear and for the sake of > > complete

Re: [PATCH v6 4/5] clk: aspeed: Register gated clocks

2017-12-21 Thread Benjamin Herrenschmidt
On Fri, 2017-12-22 at 13:36 +1100, Benjamin Herrenschmidt wrote: > > > No you can't sleep here. It needs to delay because this is inside > > spinlock_irqsave. > > Additionally you really don't want to delay for 10ms with interrupts > off :-( > > Sadly, it looks like the clk framework already cal

Re: [PATCH 5/7] blk-mq: remove REQ_ATOM_COMPLETE usages from blk-mq

2017-12-21 Thread jianchao.wang
Sorry for my non-detailed description. On 12/21/2017 09:50 PM, Tejun Heo wrote: > Hello, > > On Thu, Dec 21, 2017 at 11:56:49AM +0800, jianchao.wang wrote: >> It's worrying that even though the blk_mark_rq_complete() here is intended >> to synchronize with >> timeout path, but it indeed give th

[PATCH V5 net-next 11/17] net: hns3: fix for getting auto-negotiation state in hclge_get_autoneg

2017-12-21 Thread Peng Li
From: Fuyun Liang When phy exists, we use the value of phydev.autoneg to represent the auto-negotiation state of hardware. Otherwise, we use the value of mac.autoneg to represent it. This patch fixes for getting a error value of auto-negotiation state in hclge_get_autoneg(). Fixes: 46a3df9f9718

[PATCH V5 net-next 16/17] net: hns3: Increase the default depth of bucket for TM shaper

2017-12-21 Thread Peng Li
Burstiness of a flow is determined by the depth of a bucket, When the upper rate of shaper is large, the current depth of a bucket is not enough. The default upper rate of shaper is 100G, so increase the depth of a bucket according to UM. Signed-off-by: Peng Li Signed-off-by: Yunsheng Lin ---

[PATCH V5 net-next 08/17] net: hns3: add ethtool related offload command

2017-12-21 Thread Peng Li
This patch adds offload command related to "ethtool -K". Signed-off-by: Peng Li Signed-off-by: Jian Shen --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 16 drivers/net/ethernet/hisilicon/hns3/hns3p

[PATCH V5 net-next 06/17] net: hns3: add a mask initialization for mac_vlan table

2017-12-21 Thread Peng Li
This patch sets vlan masked, in order to avoid the received packets being filtered. Signed-off-by: Peng Li Signed-off-by: Jian Shen --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 39 +- 2 files changed

[PATCH V5 net-next 09/17] net: hns3: add handling vlan tag offload in bd

2017-12-21 Thread Peng Li
This patch deals with the vlan tag information between sk_buff and rx/tx bd. Signed-off-by: Peng Li Signed-off-by: Jian Shen --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hi

[PATCH V5 net-next 01/17] net: hns3: add support to query tqps number

2017-12-21 Thread Peng Li
This patch adds the support to query tqps number for PF driver by using ehtool -l command. Signed-off-by: Peng Li Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 10 ++ .../net/ethernet/hi

[PATCH V5 net-next 07/17] net: hns3: add vlan offload config command

2017-12-21 Thread Peng Li
This patch adds vlan offload config commands, initializes the rules of tx/rx vlan tag handle for hw. Signed-off-by: Peng Li Signed-off-by: Jian Shen --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 158

[PATCH V5 net-next 04/17] net: hns3: free the ring_data structrue when change tqps

2017-12-21 Thread Peng Li
This patch fixes a memory leak problems in change tqps process, the function hns3_uninit_all_ring and hns3_init_all_ring may be called many times. Signed-off-by: Peng Li Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 1 file changed, 4 insertions(+) di

[PATCH V5 net-next 17/17] net: hns3: change TM sched mode to TC-based mode when SRIOV enabled

2017-12-21 Thread Peng Li
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This patch change the TM sched mode to TC-based mode in initialization process. Fixes: cc9bb43ab394 ("net: hns3: Add tc-based TM support for sriov enabled port") Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/

[PATCH V5 net-next 14/17] net: hns3: add Asym Pause support to phy default features

2017-12-21 Thread Peng Li
From: Fuyun Liang commit c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization") adds default supported features for phy, but our hardware also supports Asym Pause. This patch adds Asym Pause support to phy default features to prevent Asym Pause can not be advertised when t

[PATCH V5 net-next 15/17] net: hns3: add support for querying advertised pause frame by ethtool ethx

2017-12-21 Thread Peng Li
This patch adds support for querying advertised pause frame by using ethtool command(ethtool ethx). Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver") Signed-off-by: Peng Li Signed-off-by: Fuyun Liang --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ driver

[PATCH V5 net-next 03/17] net: hns3: change the returned tqp number by ethtool -x

2017-12-21 Thread Peng Li
This patch modifies the return data of get_rxnfc, it will return the current handle's rss_size but not the total tqp number. because the tc_size has been change to the log2 of roundup power of two of rss_size. Signed-off-by: Peng Li Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon

[PATCH V5 net-next 12/17] net: hns3: add support for set_pauseparam

2017-12-21 Thread Peng Li
This patch adds set_pauseparam support for ethtool cmd. Signed-off-by: Peng Li Signed-off-by: Fuyun Liang --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 83 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclg

[PATCH V5 net-next 02/17] net: hns3: add support to modify tqps number

2017-12-21 Thread Peng Li
This patch adds the support to change tqps number for PF driver by using ehtool -L command. Signed-off-by: Peng Li Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 122 + drivers/

[PATCH V5 net-next 05/17] net: hns3: get rss_size_max from configuration but not hardcode

2017-12-21 Thread Peng Li
Add configuration for rss_size_max in hdev but not hardcode it. Signed-off-by: Peng Li Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/h

[PATCH V5 net-next 10/17] net: hns3: cleanup mac auto-negotiation state query

2017-12-21 Thread Peng Li
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes the mac auto-ne

[PATCH V5 net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-21 Thread Peng Li
This patchset adds some new feature support and fixes some bugs: [Patch 1/17 - 5/17] add the support to modify/query the tqp number through ethtool -L/l command, and also fix some related bugs for change tqp number. [Patch 6/17 - 9-17] add support vlan tag offload on tx&&rx direction for pf, and fi

[PATCH V5 net-next 13/17] net: hns3: add support to update flow control settings after autoneg

2017-12-21 Thread Peng Li
When auto-negotiation is enabled, the MAC flow control settings is based on the flow control negotiation result. And it should be configured after a valid link has been established. This patch adds support to update flow control settings after auto-negotiation has completed. Signed-off-by: Peng Li

Re: [PATCH V2 01/10] clk: clk-divider: add CLK_DIVIDER_ZERO_GATE clk support

2017-12-21 Thread Dong Aisheng
On Thu, Dec 21, 2017 at 05:24:01PM -0800, Stephen Boyd wrote: > On 12/20, Dong Aisheng wrote: > > On Thu, Nov 02, 2017 at 12:50:39AM -0700, Stephen Boyd wrote: > > > On 07/13, Dong Aisheng wrote: > > > > diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c > > > > index 9bb472c..55f8c

Re: correctness of BPF stack size checking logic for multi-function programs?

2017-12-21 Thread Alexei Starovoitov
On Fri, Dec 22, 2017 at 02:14:45AM +0100, Jann Horn wrote: > Hi! > > I saw the recently-added support for multiple functions in a single > program in BPF. I've stumbled over something that looks like it might > be a bug; I haven't verified it yet, but I thought I should give you a > heads-up befor

Re: proc_flush_task oops

2017-12-21 Thread Dave Jones
On Thu, Dec 21, 2017 at 07:31:26PM -0600, Eric W. Biederman wrote: > Dave Jones writes: > > > On Thu, Dec 21, 2017 at 12:38:12PM +0200, Alexey Dobriyan wrote: > > > > > > with proc_mnt still set to NULL is a mystery to me. > > > > > > > > Is there any chance the idr code doesn't alway

Re: [RFC] syzbot process

2017-12-21 Thread Eric Biggers
On Thu, Dec 21, 2017 at 01:52:40PM +0100, Dmitry Vyukov wrote: > However, the cost is that it needs to understand statuses of bugs: > most importantly, what commit fixes what bug. It also has support for > marking a bug as "invalid", e.g. happened once but most likely was > caused by a previous sil

Re: [PATCH] clk: fix spin_lock/unlock imbalance on bad clk_enable() reentrancy

2017-12-21 Thread David Lechner
On 12/21/2017 07:39 PM, Stephen Boyd wrote: On 12/20, Stephen Boyd wrote: On 12/20, David Lechner wrote: On 12/20/2017 02:33 PM, David Lechner wrote: So, the question I have is: what is the actual "correct" behavior of spin_trylock_irqsave()? Is it really supposed to always return true when C

Re: [PATCH][next] soundwire: intel: fix missing assignment to ret

2017-12-21 Thread Vinod Koul
On Thu, Dec 21, 2017 at 11:32:10PM +, Colin King wrote: > From: Colin Ian King > > Currently the return status ret is being checked but it has not been > updated since the previous check on ret. It appears that assignment of > ret from return status of the call to sdw_cdns_enable_interrupt wa

Re: [PATCH/RFC] NFS: add nostatflush mount option.

2017-12-21 Thread Trond Myklebust
On Fri, 2017-12-22 at 09:35 +1100, NeilBrown wrote: > On Thu, Dec 21 2017, Trond Myklebust wrote: > > > On Fri, 2017-12-22 at 07:59 +1100, NeilBrown wrote: > > > On Thu, Dec 21 2017, Trond Myklebust wrote: > > > > > > > On Thu, 2017-12-21 at 10:39 -0500, Chuck Lever wrote: > > > > > Hi Neil- > >

Re: [PATCH v2 2/2] PCI: mediatek: Fixup class type for MT7622

2017-12-21 Thread Bjorn Helgaas
On Fri, Dec 22, 2017 at 08:56:34AM +0800, Honghui Zhang wrote: > There's an internal control register that control the Vendor ID and > device ID values, our designer leave the default value un-touched. I > will set these values in that way for the next version of fix. Then there's no problem. The

[PATCH 2/2] sched/wait: add wait_event_idle_exclusive_lifo()

2017-12-21 Thread NeilBrown
wait_event_*_exclusive() adds new waiters to the end of the quest, while non-exclusive wait_event adds to the head. This ensures that a wake_up will wake all non-exclusive waiters and at most one exclusive wait, but it means that exclusive waiters are woken in a FIFO order, so the task woken is th

[PATCH 0/2] Add new wait_event macros to support lustre

2017-12-21 Thread NeilBrown
Lustre has its own l_wait_event() macro to support waiting. Some uses can be converted to current wait_event macros, but others cannot. Particularly it needs to be able to wait in TASK_IDLE state, and needs exclusive waiters to be placed at the head of the queue. These two patches add required fun

[PATCH 1/2] sched/wait: add wait_event_idle() functions.

2017-12-21 Thread NeilBrown
The new TASK_IDLE state (TASK_UNINTERRUPTIBLE | __TASK_NOLOAD) is not much used. One way to make it easier to use is to add wait_event*() family functions that make use of it. This patch adds: wait_event_idle() wait_event_idle_timeout() wait_event_idle_exclusive() This set were chosen becau

Re: [PATCH] PCI: designware: add a check of msi_desc in irqchip

2017-12-21 Thread Cao Zou
On 12/20/2017 12:20 AM, Lorenzo Pieralisi wrote: On Mon, Dec 18, 2017 at 10:02:20AM +0800, Cao Zou wrote: On 12/16/2017 01:20 AM, Marc Zyngier wrote: On 15/12/17 16:17, Lorenzo Pieralisi wrote: [+Marc] On Thu, Dec 14, 2017 at 10:21:23AM +0800, cao@windriver.com wrote: From: Zou Cao

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-21 Thread Anshuman Khandual
On 12/14/2017 07:40 AM, Ross Zwisler wrote: > Quick Summary > > Platforms exist today which have multiple types of memory attached to a > single CPU. These disparate memory ranges have some characteristics in > common, such as CPU cache coherence, but they can have wide ranges of > perf

[PATCH] perf tool: Return all events as auto-completions after comma

2017-12-21 Thread Jin Yao
It's a follow up patch for one previous patch "perf tool: Improve bash command line auto-complete for multiple events with comma." It fixes an issue that no events are displayed when is directly typed after comma. With this patch, now the result is: root@skl:/tmp# perf stat -e cpu-cycles, Displ

  1   2   3   4   5   6   7   8   9   10   >