Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-07 Thread Dave Chinner
[Your email is full of wacky symbols and needs line wrapping at 72 columns] On Thu, Sep 07, 2017 at 06:22:22PM +, Lu, Qian wrote: > Recently we received a bug report in the XFS filesystem with > 'discard' option. I have been able to reproduce this issue. I used > XFS filesystem to format NVMe

Re: [PATCH v2 27/40] tracing: Add support for 'synthetic' events

2017-09-07 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:39 -0500 Tom Zanussi wrote: > +static int synth_field_string_size(char *type) > +{ > + char buf[4], *end, *start; > + unsigned int len; > + int size, err; > + > + start = strstr(type, "char["); > + if (start == NULL) > + return -EINVAL; >

Re: [PATCH v2 28/40] tracing: Add support for 'field variables'

2017-09-07 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:40 -0500 Tom Zanussi wrote: > Users should be able to directly specify event fields in hist trigger > 'actions' rather than being forced to explicitly create a variable for > that purpose. > > Add support allowing fields to be used directly in actions, which > essential

Re: [PATCH v2] Add driver to force WMI Thunderbolt controller power status

2017-09-07 Thread Darren Hart
On Thu, Sep 07, 2017 at 08:09:28PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Bernat, Yehezkel [mailto:yehezkel.ber...@intel.com] > > Sent: Thursday, September 7, 2017 2:15 PM > > To: dvh...@infradead.org; Limonciello, Mario > > Cc: mika.westerb...@linux.inte

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Guenter Roeck
On 09/07/2017 08:22 AM, Andrew Jeffery wrote: On Thu, 2017-09-07 at 06:40 -0700, Guenter Roeck wrote: On 09/06/2017 04:32 PM, Andrew Jeffery wrote: Guess I need to dig up my eval board and see if I can reproduce the problem. Seems you are saying that the problem is always seen when issuing

[PATCH] block: tolerate tracing of NULL bio

2017-09-07 Thread Greg Thelen
__get_request() can call trace_block_getrq() with bio=NULL which causes block_get_rq::TP_fast_assign() to deref a NULL pointer and panic. Syzkaller fuzzer panics with linux-next (1d53d908b79d7870d89063062584eead4cf83448): kasan: GPF could be caused by NULL-ptr deref or user memory access gener

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-07 Thread Nicolin Chen
On Fri, Sep 08, 2017 at 01:10:12AM +0200, Łukasz Majewski wrote: > >Just add a property to this cpu node like: > > clock = <&clks IMX6QDL_CLK_SSI2>; > > This doesn't solve the issue: I have a patch locally that should be able to solve your problem. But I need to first verify on my board toni

Re: [PATCH RFC 1/6] The file ksz_common.c will be used by other KSZ switch drivers.

2017-09-07 Thread Andrew Lunn
On Thu, Sep 07, 2017 at 09:08:58PM +, tristram...@microchip.com wrote: > From: Tristram Ha Hi Tristram Another process thing you are missing. Patch subject should follow a pattern: git log --oneline drivers/net/dsa/mv88e6xxx bb0a2675f72b net: dsa: mv88e6xxx: Enable CMODE config support for

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-07 Thread महेश बंडेवार
On Thu, Sep 7, 2017 at 4:09 PM, Nikolay Aleksandrov wrote: > On 7.09.2017 01:47, Kosuke Tatsukawa wrote: >> Commit cbf5ecb30560 ("net: bonding: Fix transmit load balancing in >> balance-alb mode") tried to fix transmit dynamic load balancing in >> balance-alb mode, which wasn't working after comm

RE: [PATCH v5 0/3] TPS68470 PMIC drivers

2017-09-07 Thread Mani, Rajmohan
Hi Rafael, > Subject: RE: [PATCH v5 0/3] TPS68470 PMIC drivers > > Hi Rafael, > > > >> > >> > This is the patch series for TPS68470 PMIC that works as a > > >> > >> > camera > > PMIC. > > >> > >> > > > >> > >> > The patch series provide the following 3 drivers, to help > > >> > >> > configure th

Re: [PATCH RFC 2/6] Create new file ksz9477.c from KSZ9477 code in ksz_common.c

2017-09-07 Thread Andrew Lunn
> +static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 > bits, > + bool set) Hi Tristram As you move these functions around, it would be good to change the prefix to ksz9477_ You have similar functions in the KSZ8795 driver. It is good to keep the name

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-07 Thread महेश बंडेवार
On Thu, Sep 7, 2017 at 5:39 PM, Mahesh Bandewar (महेश बंडेवार) wrote: > On Thu, Sep 7, 2017 at 4:09 PM, Nikolay Aleksandrov > wrote: >> On 7.09.2017 01:47, Kosuke Tatsukawa wrote: >>> Commit cbf5ecb30560 ("net: bonding: Fix transmit load balancing in >>> balance-alb mode") tried to fix transmit

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Andrew Jeffery
On Thu, 2017-09-07 at 17:27 -0700, Guenter Roeck wrote: > On 09/07/2017 08:22 AM, Andrew Jeffery wrote: > > On Thu, 2017-09-07 at 06:40 -0700, Guenter Roeck wrote: > > > On 09/06/2017 04:32 PM, Andrew Jeffery wrote: > > > > > > > >     > > > > > Guess I need to dig up my eval board and see if I ca

Re: iov_iter_pipe warning.

2017-09-07 Thread Al Viro
On Thu, Sep 07, 2017 at 09:46:17AM +1000, Dave Chinner wrote: > On Wed, Sep 06, 2017 at 04:03:37PM -0400, Dave Jones wrote: > > On Mon, Aug 28, 2017 at 09:25:42PM -0700, Darrick J. Wong wrote: > > > On Mon, Aug 28, 2017 at 04:31:30PM -0400, Dave Jones wrote: > > > > I'm still trying to narrow dow

Re: [PATCH RFC 3/6] The file ksz_common.c contains common code shared by all KSZ switch drivers

2017-09-07 Thread Andrew Lunn
Hi Tristram You patches are so badly mangled that they won't apply. So i'm guessing a bit here... What i think is you can do this in three patches: 1) Straight rename of ksz_common.c to ksz9477.c. Makefile changes to fit, no code changes. 2) Move common code back into ksz_common.c. Makefile c

Re: [PATCH] ACPI / PMIC: Add code reviewers to MAINTAINERS

2017-09-07 Thread Joe Perches
On Fri, 2017-09-08 at 01:21 +0200, Rafael J. Wysocki wrote: > On Thu, Sep 7, 2017 at 1:51 PM, Joe Perches wrote: > > On Thu, 2017-09-07 at 13:18 +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Andy and Mika review code changes under drivers/acpi/pmic/ on > > > a regular

Re: [PATCH v8 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-09-07 Thread Mark yao
On 2017年09月07日 20:09, Heiko Stübner wrote: Hi Mark, Am Donnerstag, 7. September 2017, 18:16:29 CEST schrieb Mark yao: Looks good for me, so: Reviewed-by: Mark Yao I'd like to apply these lvds patches tomorrow if there is no more doubts. Rob had some minor comments on v7 of the dt-binding, so

Re: [PATCH 1/2] x86/mm: Reinitialize TLB state on hotplug and resume

2017-09-07 Thread Andy Lutomirski
> On Sep 7, 2017, at 12:55 PM, Jiri Kosina wrote: > > On Thu, 7 Sep 2017, Ingo Molnar wrote: > When Linux brings a CPU down and back up, it switches to init_mm and then loads swapper_pg_dir into CR3. With PCID enabled, this has the side effect of masking off the ASID bits in CR

Re: [PATCH] block: tolerate tracing of NULL bio

2017-09-07 Thread Ming Lei
On Fri, Sep 8, 2017 at 8:36 AM, Greg Thelen wrote: > __get_request() can call trace_block_getrq() with bio=NULL which causes > block_get_rq::TP_fast_assign() to deref a NULL pointer and panic. > > Syzkaller fuzzer panics with > linux-next (1d53d908b79d7870d89063062584eead4cf83448): > kasan: GPF

[PATCH 2/2] staging: typec: tcpm: Only request matching pdos

2017-09-07 Thread Badhri Jagan Sridharan
At present, TCPM code assumes that local device supports variable/batt pdos and always selects the pdo with highest possible power within the board limit. This assumption might not hold good for all devices. To overcome this, this patch makes TCPM only accept a source_pdo when there is a matching s

[PATCH 1/2] staging: typec: tcpm: Validate source and sink caps

2017-09-07 Thread Badhri Jagan Sridharan
The source and sink caps should follow the following rules. This patch validates whether the src_caps/snk_caps adheres to it. 6.4.1 Capabilities Message A Capabilities message (Source Capabilities message or Sink Capabilities message) shall have at least one Power Data Object for vSafe5V. The Capa

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Guenter Roeck
On 09/07/2017 06:02 PM, Andrew Jeffery wrote: On Thu, 2017-09-07 at 17:27 -0700, Guenter Roeck wrote: On 09/07/2017 08:22 AM, Andrew Jeffery wrote: On Thu, 2017-09-07 at 06:40 -0700, Guenter Roeck wrote: On 09/06/2017 04:32 PM, Andrew Jeffery wrote: Guess I need to dig up my eval board a

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-07 Thread महेश बंडेवार
On Thu, Sep 7, 2017 at 5:47 PM, Mahesh Bandewar (महेश बंडेवार) wrote: > On Thu, Sep 7, 2017 at 5:39 PM, Mahesh Bandewar (महेश बंडेवार) > wrote: >> On Thu, Sep 7, 2017 at 4:09 PM, Nikolay Aleksandrov >> wrote: >>> On 7.09.2017 01:47, Kosuke Tatsukawa wrote: Commit cbf5ecb30560 ("net: bondin

Re: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation

2017-09-07 Thread Baolin Wang
On 7 September 2017 at 19:44, Mark Brown wrote: > On Thu, Sep 07, 2017 at 07:03:18PM +0800, Baolin Wang wrote: >> On 7 September 2017 at 17:54, Mark Brown wrote: >> > On Thu, Sep 07, 2017 at 11:29:05AM +0800, Baolin Wang wrote: > >> >> The hwspinlock name should be "adi", and I will make it clear

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-07 Thread Bob Liu
On 2017/9/8 1:27, Jerome Glisse wrote: >> On 2017/9/6 10:12, Jerome Glisse wrote: >>> On Wed, Sep 06, 2017 at 09:25:36AM +0800, Bob Liu wrote: On 2017/9/6 2:54, Ross Zwisler wrote: > On Mon, Sep 04, 2017 at 10:38:27PM -0400, Jerome Glisse wrote: >> On Tue, Sep 05, 2017 at 09:13:24AM +0

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Andrew Jeffery
On Thu, 2017-09-07 at 18:26 -0700, Guenter Roeck wrote: > On 09/07/2017 06:02 PM, Andrew Jeffery wrote: > > On Thu, 2017-09-07 at 17:27 -0700, Guenter Roeck wrote: > > > On 09/07/2017 08:22 AM, Andrew Jeffery wrote: > > > > On Thu, 2017-09-07 at 06:40 -0700, Guenter Roeck wrote: > > > > > On 09/06/

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-07 Thread Kosuke Tatsukawa
Hi, > On 7.09.2017 01:47, Kosuke Tatsukawa wrote: >> Commit cbf5ecb30560 ("net: bonding: Fix transmit load balancing in >> balance-alb mode") tried to fix transmit dynamic load balancing in >> balance-alb mode, which wasn't working after commit 8b426dc54cf4 >> ("bonding: remove hardcoded value").

Re: [PATCH] cgroup/cpuset: remove circular dependency deadlock

2017-09-07 Thread Prateek Sood
On 09/07/2017 11:15 PM, Peter Zijlstra wrote: > On Thu, Sep 07, 2017 at 07:26:23PM +0530, Prateek Sood wrote: >> Remove circular dependency deadlock in a scenario where hotplug of CPU is >> being done while there is updation in cgroup and cpuset triggered from >> userspace. >> >> Process A => kthre

[PATCH] netfilter: xt_hashlimit: fix build error caused by 64bit division

2017-09-07 Thread Vishwanath Pai
64bit division causes build/link errors on 32bit architectures. It prints out error messages like: ERROR: "__aeabi_uldivmod" [net/netfilter/xt_hashlimit.ko] undefined! The value of avg passed through by userspace in BYTE mode cannot exceed U32_MAX. Which means 64bit division in user2rate_bytes is

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Guenter Roeck
On 09/07/2017 07:06 PM, Andrew Jeffery wrote: On Thu, 2017-09-07 at 18:26 -0700, Guenter Roeck wrote: On 09/07/2017 06:02 PM, Andrew Jeffery wrote: On Thu, 2017-09-07 at 17:27 -0700, Guenter Roeck wrote: On 09/07/2017 08:22 AM, Andrew Jeffery wrote: On Thu, 2017-09-07 at 06:40 -0700, Guenter

Re: [PATCH 3/3] drm/exynos/gsc: Add rotation hardware limits of gscaler

2017-09-07 Thread Hoegeun Kwon
On 09/07/2017 08:25 PM, Marek Szyprowski wrote: Hi Hoegeun, On 2017-09-07 07:16, Hoegeun Kwon wrote: On 09/04/2017 03:19 PM, Hoegeun Kwon wrote: On 09/01/2017 04:31 PM, Marek Szyprowski wrote: Hi Hoegeun, On 2017-09-01 03:47, Hoegeun Kwon wrote: The gscaler has hardware rotation limits that

[patch net-next] team: fall back to hash if table entry is empty

2017-09-07 Thread Jim Hanko
If the hash to port mapping table does not have a valid port (i.e. when a port goes down), fall back to the simple hashing mechanism to avoid dropping packets. Signed-off-by: Jim Hanko --- drivers/net/team/team_mode_loadbalance.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

Re: [PATCH 05/14] kexec_file: factor out crashdump elf header function from x86

2017-09-07 Thread AKASHI Takahiro
On Fri, Aug 25, 2017 at 01:47:49PM +0800, Dave Young wrote: > On 08/24/17 at 05:18pm, AKASHI Takahiro wrote: > > prepare_elf_headers() can also be useful for other architectures, > > including arm64. So let it factored out. > > > > Signed-off-by: AKASHI Takahiro > > Cc: Dave Young > > Cc: Vivek

Re: [PATCH 03/14] resource: add walk_system_ram_res_rev()

2017-09-07 Thread AKASHI Takahiro
On Thu, Aug 31, 2017 at 08:04:51AM +0530, Pratyush Anand wrote: > > > On Thursday 24 August 2017 01:48 PM, AKASHI Takahiro wrote: > >This function, being a variant of walk_system_ram_res() introduced in > >commit 8c86e70acead ("resource: provide new functions to walk through > >resources"), walks

Re: [PATCH v3 01/15] [media] v4l: Document explicit synchronization behaviour

2017-09-07 Thread Nicolas Dufresne
Le jeudi 07 septembre 2017 à 15:42 -0300, Gustavo Padovan a écrit : > From: Gustavo Padovan > > Add section to VIDIOC_QBUF about it > > v2: > - mention that fences are files (Hans) > - rework for the new API > > Signed-off-by: Gustavo Padovan > --- > Documentation/media/uapi/v4l/v

Re: [PATCH 08/14] arm64: kexec_file: create purgatory

2017-09-07 Thread AKASHI Takahiro
On Fri, Aug 25, 2017 at 01:16:06PM -0300, Thiago Jung Bauermann wrote: > > Mark Rutland writes: > > > On Fri, Aug 25, 2017 at 10:00:59AM +0900, AKASHI Takahiro wrote: > >> On Thu, Aug 24, 2017 at 05:56:17PM +0100, Mark Rutland wrote: > >> > On Thu, Aug 24, 2017 at 05:18:05PM +0900, AKASHI Takahi

Re: [PATCH v2 2/3] ARM: dts: exynos: Add clean name of compatible.

2017-09-07 Thread Hoegeun Kwon
On 09/07/2017 08:27 PM, Marek Szyprowski wrote: Hi Hoegeun, On 2017-09-07 11:39, Hoegeun Kwon wrote: Exynos 5250 and 5420 have different hardware rotation limits. However, currently it uses only one compatible - "exynos5-gsc". Since we have to distinguish between these two, we add different com

Re: [PATCH 09/14] arm64: kexec_file: add sha256 digest check in purgatory

2017-09-07 Thread AKASHI Takahiro
On Fri, Aug 25, 2017 at 11:41:33AM +0100, Mark Rutland wrote: > On Fri, Aug 25, 2017 at 10:21:06AM +0900, AKASHI Takahiro wrote: > > On Thu, Aug 24, 2017 at 06:04:40PM +0100, Mark Rutland wrote: > > > On Thu, Aug 24, 2017 at 05:18:06PM +0900, AKASHI Takahiro wrote: > > > > Most of sha256 code is ba

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

2017-09-07 Thread Stephen Rothwell
Hi all, On Thu, 07 Sep 2017 06:59:09 -0400 "Zi Yan" wrote: > > I think __pmd(0) can be used now. I fixed __pmd() in sparc32 at commit > 9157259d16a8ee8116a98d32f29b797689327e8d, which is in 4.13 now. > I should have told you this earlier, sorry about that. > > Just wonder if any other reason pre

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Andrew Jeffery
On Thu, 2017-09-07 at 19:17 -0700, Guenter Roeck wrote: > On 09/07/2017 07:06 PM, Andrew Jeffery wrote: > > On Thu, 2017-09-07 at 18:26 -0700, Guenter Roeck wrote: > > > On 09/07/2017 06:02 PM, Andrew Jeffery wrote: > > > > On Thu, 2017-09-07 at 17:27 -0700, Guenter Roeck wrote: > > > > > On 09/07/

Re: 4.13 on thinkpad x220: oops when writing to SD card

2017-09-07 Thread Shawn Lin
On 2017/9/8 4:02, Linus Walleij wrote: On Thu, Sep 7, 2017 at 9:18 AM, Ulf Hansson wrote: Even if this fixes the problem it seems like we are papering over the real issue, which earlier fixes also did during the release cycle for v4.13. I think this is the real solution to the issue. Anoth

Re: [PATCH 14/14] arm64: kexec_file: add vmlinux format support

2017-09-07 Thread AKASHI Takahiro
On Fri, Aug 25, 2017 at 02:13:53PM +0800, Dave Young wrote: > On 08/25/17 at 11:03am, AKASHI Takahiro wrote: > > On Thu, Aug 24, 2017 at 06:30:50PM +0100, Mark Rutland wrote: > > > On Thu, Aug 24, 2017 at 05:18:11PM +0900, AKASHI Takahiro wrote: > > > > The first PT_LOAD segment, which is assumed t

Re: [PATCH] thermal/drivers/generic-iio-adc: Switch tz request to devm version

2017-09-07 Thread Eduardo Valentin
Hey Daniel, On Thu, Sep 07, 2017 at 08:17:10PM +0200, Daniel Lezcano wrote: > Everything mentionned here: > https://lkml.org/lkml/2016/4/20/850 > > This driver was added before the devm_iio_channel_get() function version was > merged. The sensor should be released before the iio channel, thus we

Re: [PATCH][thermal-next] thermal: brcmstb: remove two redundant integer range checks

2017-09-07 Thread Eduardo Valentin
Hello, On Wed, Sep 06, 2017 at 11:40:46AM -0700, Brian Norris wrote: > Hi, > > On Sun, Sep 03, 2017 at 02:16:19PM +0100, Colin King wrote: > > From: Colin Ian King > > > > The comparisons for integer low on low > INT_MAX and also > > integer high > INT_MAX are never going to be true since an >

[PATCH] net:netfilter alloc xt_byteslimit_htable with wrong size

2017-09-07 Thread zhizhou . tian
From: Zhizhou Tian struct xt_byteslimit_htable used hlist_head, but alloc memory with sizeof(struct list_head) Change-Id: I75bc60e47e0823700d4303c9d763b7995e3b7bb3 Signed-off-by: Zhizhou Tian --- net/netfilter/xt_hashlimit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] isdn: isdnloop: fix logic error in isdnloop_sendbuf

2017-09-07 Thread David Miller
From: Arnd Bergmann Date: Wed, 6 Sep 2017 15:38:58 +0200 > gcc-7 found an ancient bug in the loop driver, leading to a condition that > is always false, meaning we ignore the contents of 'card->flags' here: > > drivers/isdn/isdnloop/isdnloop.c:412:37: error: ?: using integer constants in > boo

Re: [PATCH] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-09-07 Thread Eduardo Valentin
On Wed, Sep 06, 2017 at 08:58:46AM +0200, Daniel Lezcano wrote: > There is a particular situation when the cooling device is cpufreq and the > heat > dissipation is not efficient enough where the temperature increases little by > little until reaching the critical threshold and leading to a SoC re

Re: [PATCH 14/14] arm64: kexec_file: add vmlinux format support

2017-09-07 Thread AKASHI Takahiro
On Tue, Aug 29, 2017 at 11:01:12AM +0100, Mark Rutland wrote: > On Thu, Aug 24, 2017 at 06:30:50PM +0100, Mark Rutland wrote: > > On Thu, Aug 24, 2017 at 05:18:11PM +0900, AKASHI Takahiro wrote: > > > The first PT_LOAD segment, which is assumed to be "text" code, in vmlinux > > > will be loaded at

Re: [PATCH net v2] rds: Fix incorrect statistics counting

2017-09-07 Thread David Miller
From: Håkon Bugge Date: Wed, 6 Sep 2017 18:35:51 +0200 > In rds_send_xmit() there is logic to batch the sends. However, if > another thread has acquired the lock and has incremented the send_gen, > it is considered a race and we yield. The code incrementing the > s_send_lock_queue_raced statisti

[PATCH 0/9] kexec: add kexec_file_load() support

2017-09-07 Thread AKASHI Takahiro
This is the second round of implementing kexec_file_load() support on arm64.[1] Most of the code is based on kexec-tools (along with some kernel code from x86, which also came from kexec-tools). This patch series enables us to * load the kernel, Image, with kexec_file_load system call, and *

[PATCH 2/9] resource: add walk_system_ram_res_rev()

2017-09-07 Thread AKASHI Takahiro
This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., from higher to lower. It will be used in kexec_file implementati

[PATCH 1/9] include: pe.h: remove message[] from mz header definition

2017-09-07 Thread AKASHI Takahiro
message[] field won't be part of the definition of mz header. This change is crucial for enabling kexec_file_load on arm64 because arm64's "Image" binary, as in PE format, doesn't have any data for it and accordingly the following check in pefile_parse_binary() will fail: chkaddr(cursor,

[PATCH 6/9] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-09-07 Thread AKASHI Takahiro
load_other_segments() sets up and adds all the memory segments necessary other than kernel, including initrd, device-tree blob and purgatory. Most of the code was borrowed from kexec-tools' counterpart. In addition, arch_kexec_image_probe(), arch_kexec_image_load() and arch_kexec_kernel_verify_sig

[PATCH 3/9] kexec_file: factor out crashdump elf header function from x86

2017-09-07 Thread AKASHI Takahiro
prepare_elf_headers() can also be useful for other architectures, including arm64. So let it factored out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He --- arch/x86/kernel/crash.c | 324 --- include/linux/kexec.h |

[PATCH 4/9] asm-generic: add kexec_file_load system call to unistd.h

2017-09-07 Thread AKASHI Takahiro
The initial user of this system call number is arm64. Signed-off-by: AKASHI Takahiro Acked-by: Arnd Bergmann --- include/uapi/asm-generic/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index

[PATCH 7/9] arm64: kexec_file: set up for crash dump adding elf core header

2017-09-07 Thread AKASHI Takahiro
load_crashdump_segments() creates and loads a memory segment of elf core header for crash dump. "linux,usable-memory-range" and "linux,elfcorehdr" will add to the 2nd kernel's device-tree blob. The logic of this cod is also from kexec-tools. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc

[PATCH 9/9] arm64: kexec_file: add Image format support

2017-09-07 Thread AKASHI Takahiro
The "Image" binary will be loaded at the offset of TEXT_OFFSET from the start of system memory. TEXT_OFFSET is determined from the header of the image. Regarding kernel signature verification, it will be done through verify_pefile_signature() as arm64's "Image" binary can be seen as in PE format.

[PATCH 8/9] arm64: enable KEXEC_FILE config

2017-09-07 Thread AKASHI Takahiro
Modify arm64/Kconfig and Makefile to enable kexec_file_load support. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 22 ++ arch/arm64/kernel/Makefile | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH V2 06/13] thermal/drivers/hisi: Remove pointless lock

2017-09-07 Thread Eduardo Valentin
On Mon, Sep 04, 2017 at 09:56:05PM +0200, Daniel Lezcano wrote: > The threaded interrupt inspect the sensors structure to look in the temp > threshold field, but this field is read-only in all the code, except in the > probe function before the threaded interrupt is set. In other words there > is n

[PATCH 5/9] arm64: kexec_file: create purgatory

2017-09-07 Thread AKASHI Takahiro
This is a basic purgatory, or a kind of glue code between the two kernels, for arm64. Since purgatory is assumed to be relocatable (not executable) object by kexec generic code, arch_kexec_apply_relocations_add() is required in general. Arm64's purgatory, however, is a simple asm and all the refer

Re: [PATCH] selftests/seccomp: Support glibc 2.26 siginfo_t.h

2017-09-07 Thread Seth Forshee
On Thu, Sep 07, 2017 at 04:32:46PM -0700, Kees Cook wrote: > The 2.26 release of glibc changed how siginfo_t is defined, and the earlier > work-around to using the kernel definition are no longer needed. The old > way needs to stay around for a while, though. > > Reported-by: Seth Forshee > Cc: A

Re: [PATCH V2 09/13] thermal/drivers/hisi: Remove costly sensor inspection

2017-09-07 Thread Eduardo Valentin
On Mon, Sep 04, 2017 at 09:56:08PM +0200, Daniel Lezcano wrote: > The sensor is all setup, bind, resetted, acked, etc... every single second. > > That was the way to workaround a problem with the interrupt bouncing again and > again. > > With the following changes, we fix all in one: > > - Do t

Re: [PATCH V2 13/13] thermal/drivers/hisi: Remove mutex_lock in the code

2017-09-07 Thread Eduardo Valentin
On Mon, Sep 04, 2017 at 09:56:12PM +0200, Daniel Lezcano wrote: > The mutex is used to protect against writes in the configuration register. > > That happens at probe time, with no possible race yet. > > Then when the module is unloaded and at suspend/resume. > > When the module is unloaded, it

Re: [PATCH] selftests/seccomp: Support glibc 2.26 siginfo_t.h

2017-09-07 Thread Kees Cook
On Thu, Sep 7, 2017 at 8:19 PM, Seth Forshee wrote: > On Thu, Sep 07, 2017 at 04:32:46PM -0700, Kees Cook wrote: >> The 2.26 release of glibc changed how siginfo_t is defined, and the earlier >> work-around to using the kernel definition are no longer needed. The old >> way needs to stay around fo

linux-next: Tree for Sep 8

2017-09-07 Thread Stephen Rothwell
Hi all, Please do not add any v4.15 related material to your linux-next included branches until after v4.14-rc1 has been released. Changes since 20170907: Removed tree: wberr at maintainer's request (finished with) The akpm-current tree still had its build failure for which I applied

Re: [PATCH v15 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-09-07 Thread Michael S. Tsirkin
On Tue, Aug 29, 2017 at 11:09:18AM +0800, Wei Wang wrote: > On 08/29/2017 02:03 AM, Michael S. Tsirkin wrote: > > On Mon, Aug 28, 2017 at 06:08:31PM +0800, Wei Wang wrote: > > > Add a new feature, VIRTIO_BALLOON_F_SG, which enables the transfer > > > of balloon (i.e. inflated/deflated) pages using

Re: [patch v7 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-07 Thread Joel Stanley
Hello Oleksandr, On Sat, Sep 2, 2017 at 1:36 AM, Oleksandr Shamray wrote: > Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Looks good. I have some small comments. The most important is the compatible string. > --- a/drivers/jtag/Kconfig > +++ b/drivers/jtag/Kconfig

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Andrew Jeffery
On Fri, 2017-09-08 at 12:51 +1000, Andrew Jeffery wrote: > > I can't test with devicetree. x86 system. > >  > > 2,100+ iterations with your driver, no failures. > > Great. I really appreciate your testing here, so thanks for your > efforts. I owe you a few drinks if we ever happen to meet. Actual

Re: [patch v7 3/4] Documentation: jtag: Add bindings for Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-07 Thread Joel Stanley
On Sat, Sep 2, 2017 at 1:36 AM, Oleksandr Shamray wrote: > diff --git a/Documentation/devicetree/bindings/jtag/aspeed-jtag.txt > b/Documentation/devicetree/bindings/jtag/aspeed-jtag.txt > new file mode 100644 > index 000..f4ded49 > --- /dev/null > +++ b/Documentation/devicetree/bindings/jtag/

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

2017-09-07 Thread Stephen Rothwell
Hi all, On Fri, 8 Sep 2017 12:49:59 +1000 Stephen Rothwell wrote: > > OK, so today I have applied this instead (which is the same as dropping > mm-thp-enable-thp-migration-in-generic-path-fix-fix-fix): > > From: Stephen Rothwell > Date: Fri, 8 Sep 2017 12:40:39 +1000 > Subject: [PATCH] mm-thp-

Re: [PATCH v2 1/4] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-09-07 Thread Andrew Jeffery
On Mon, 2017-08-14 at 11:25 +0930, Andrew Jeffery wrote: > On Thu, 2017-08-10 at 11:13 -0500, Rob Herring wrote: > > On Wed, Aug 02, 2017 at 04:45:38PM +0930, Andrew Jeffery wrote: > > > > > Signed-off-by: Andrew Jeffery > > >  > > > --- > > >  .../devicetree/bindings/hwmon/pmbus/max31785.txt   |

Re: [PATCH v2 15/16] dmaengine: bcm-sba-raid: Add debugfs support

2017-09-07 Thread Vinod Koul
On Thu, Sep 07, 2017 at 09:37:32PM +0200, Greg KH wrote: > On Fri, Aug 18, 2017 at 10:56:13AM +0530, Vinod Koul wrote: > > On Fri, Aug 18, 2017 at 10:33:54AM +0530, Anup Patel wrote: > > > On Thu, Aug 17, 2017 at 1:31 PM, Vinod Koul wrote: > > > > On Tue, Aug 01, 2017 at 04:07:59PM +0530, Anup Pat

Re: [RFC 08/17] x86/asm/64: De-Xen-ify our NMI code

2017-09-07 Thread Juergen Gross
On 07/09/17 20:38, Andy Lutomirski wrote: > On Thu, Sep 7, 2017 at 2:34 AM, Juergen Gross wrote: >> On 06/09/17 23:36, Andy Lutomirski wrote: >>> Xen PV is fundamentally incompatible with our fancy NMI code: it >>> doesn't use IST at all, and Xen entries clobber two stack slots >>> below the hardw

Re: [PATCH] initramfs: Fix disabling of initramfs (and its compression)

2017-09-07 Thread Florian Fainelli
On 09/07/2017 06:19 AM, Nicholas Piggin wrote: > On Thu, 7 Sep 2017 05:50:30 -0700 > Florian Fainelli wrote: > >> On 08/28/2017 08:09 PM, Nicholas Piggin wrote: >>> On Mon, 28 Aug 2017 13:03:31 -0700 >>> Florian Fainelli wrote: >>> On 05/21/2017 07:46 PM, Nicholas Piggin wrote: >

[PATCH v3 0/3] pmbus: Expand fan support and add MAX31785 driver

2017-09-07 Thread Andrew Jeffery
Hello, These three patches lay the ground work for fan control in the pmbus core and introduce a driver for the MAX31785 Intelligent Fan Controller that makes use of the new control features. Since v2[1] I've addressed Rob's comments on the bindings, integrating the thermal support and cleaning

[PATCH v3 1/3] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-09-07 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- .../devicetree/bindings/hwmon/pmbus/max31785.txt | 158 + 1 file changed, 158 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/max31785.t

[PATCH v3 2/3] hwmon: pmbus: Add fan control support

2017-09-07 Thread Andrew Jeffery
Expose fanX_target, pwmX and pwmX_enable hwmon sysfs attributes. Fans in a PMBus device are driven by the configuration of two registers: FAN_CONFIG_x_y and FAN_COMMAND_x: FAN_CONFIG_x_y dictates how the fan and the tacho operate (if installed), while FAN_COMMAND_x sets the desired fan rate. The u

[PATCH v3 3/3] pmbus: Add driver for Maxim MAX31785 Intelligent Fan Controller

2017-09-07 Thread Andrew Jeffery
The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan management with temperature and remote voltage sensing. Various fan control features are provided, including PWM frequency control, temperature hysteresis, dual tachometer measurements, and fan health monitoring. The dri

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Guenter Roeck
On 09/07/2017 08:40 PM, Andrew Jeffery wrote: On Fri, 2017-09-08 at 12:51 +1000, Andrew Jeffery wrote: I can't test with devicetree. x86 system. 2,100+ iterations with your driver, no failures. Great. I really appreciate your testing here, so thanks for your efforts. I owe you a few drinks

[PATCH] Staging: iio: adc: Added Space around binary op.

2017-09-07 Thread Himanshi Jain
Added space around(one on each side of) binary operator(-) as preferred according to kernel coding style. Signed-off-by: Himanshi Jain --- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/a

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-07 Thread James Morris
On Thu, 7 Sep 2017, Linus Torvalds wrote: > On Mon, Sep 4, 2017 at 3:29 AM, James Morris wrote: > > > > IMA: > > - A new integrity_read file operation method, avoids races when > > calculating file hashes > > Honestly, this seems really odd. > > It documents that it needs to be called wit

Re: [PATCH v8 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-09-07 Thread Heiko Stuebner
Am Freitag, 8. September 2017, 09:23:09 CEST schrieb Mark yao: > On 2017年09月07日 20:09, Heiko Stübner wrote: > > Hi Mark, > > > > Am Donnerstag, 7. September 2017, 18:16:29 CEST schrieb Mark yao: > >> Looks good for me, so: > >> Reviewed-by: Mark Yao > >> > >> I'd like to apply these lvds patches t

Re: [PATCH v2] pci: dwc: dra7xx: Add shutdown handler to cleanly turn off clocks

2017-09-07 Thread Keerthy
On Wednesday 06 September 2017 07:26 PM, Keerthy wrote: > Add shutdown handler to cleanly turn off clocks. > > Signed-off-by: Keerthy > Acked-by: Kishon Vijay Abraham I > --- > > Changes in v2: > > * used a local dev pointer instead of dereferencing dev at multiple places. > * dra7xx_pci

[PATCH 1/2] x86/mm: Get rid of VM_BUG_ON in switch_tlb_irqs_off()

2017-09-07 Thread Andy Lutomirski
If we hit the VM_BUG_ON(), we're detecting a genuinely bad situation, but we're very unlikely to get a useful call trace. Make it a warning instead. Signed-off-by: Andy Lutomirski --- arch/x86/mm/tlb.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ar

[PATCH 2/2] x86/hibernate/64: Mask off CR3's PCID bits in the saved CR3

2017-09-07 Thread Andy Lutomirski
Jiri reported a resume-from-hibernation failure triggered by PCID. The root cause appears to be rather odd. The hibernation asm restores a CR3 value that comes from the image header. If the image kernel has PCID on, it's entirely reasonable for this CR3 value to have one of the low 12 bits set.

[PATCH 0/2] More PCID fixes

2017-09-07 Thread Andy Lutomirski
This gets rid of the problematic VM_BUG_ON and fixes hibernation. Andy Lutomirski (2): x86/mm: Get rid of VM_BUG_ON in switch_tlb_irqs_off() x86/hibernate/64: Mask off CR3's PCID bits in the saved CR3 arch/x86/mm/tlb.c | 22 +- arch/x86/power/hibernate_64.c |

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Andrew Jeffery
On Thu, 2017-09-07 at 21:43 -0700, Guenter Roeck wrote: > On 09/07/2017 08:40 PM, Andrew Jeffery wrote: > > On Fri, 2017-09-08 at 12:51 +1000, Andrew Jeffery wrote: > > > > I can't test with devicetree. x86 system. > > > >    > > > > 2,100+ iterations with your driver, no failures. > > > > > > Gre

Re: [PATCH 1/2] x86/mm: Get rid of VM_BUG_ON in switch_tlb_irqs_off()

2017-09-07 Thread Andy Lutomirski
On Thu, Sep 7, 2017 at 10:06 PM, Andy Lutomirski wrote: > If we hit the VM_BUG_ON(), we're detecting a genuinely bad situation, > but we're very unlikely to get a useful call trace. Sigh, typo below. Ingo, if you apply this version, can you fix it? > +* a global flush to minimiz

[PATCH v2] ARM: dts: Add initial Pistachio i.mx6q board support.

2017-09-07 Thread Wig Cheng
From: YuanCheng Cheng Working items: - 800/433 MHz (CPU/DDR3) - 2GB of RAM (DDR3) - 4GB of NAND FLASH - 1T1R WiFi 2.4 GHz - Power management support - 1x 10/100/1000 Mbps Ethernet WAN port - 2x USB 2.0 Host - PCIe - HDMI/VGA/LVDS display - 1x UART for RS232/422/485 - 2x UART for RS232 - 1x UART

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Guenter Roeck
On 09/07/2017 08:40 PM, Andrew Jeffery wrote: On Fri, 2017-09-08 at 12:51 +1000, Andrew Jeffery wrote: I can't test with devicetree. x86 system. 2,100+ iterations with your driver, no failures. Great. I really appreciate your testing here, so thanks for your efforts. I owe you a few drinks

[PATCH v3] pci: dwc: dra7xx: Add shutdown handler to cleanly turn off clocks

2017-09-07 Thread Keerthy
Add shutdown handler to cleanly turn off clocks. This will help in cases of kexec where in a new kernel can boot abruptly. Signed-off-by: Keerthy Acked-by: Kishon Vijay Abraham I --- Changes in v3: * Pushed the function outside #ifdef CONFIG_PM_SLEEP. * Added more details to commit log. C

Re: [PATCH] hwmon: pmbus: Make reg check and clear faults functions return errors

2017-09-07 Thread Andrew Jeffery
On Thu, 2017-09-07 at 22:14 -0700, Guenter Roeck wrote: > On 09/07/2017 08:40 PM, Andrew Jeffery wrote: > > On Fri, 2017-09-08 at 12:51 +1000, Andrew Jeffery wrote: > > > > I can't test with devicetree. x86 system. > > > >    > > > > 2,100+ iterations with your driver, no failures. > > > > > > Gre

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-09-07 Thread Greg KH
I agree you shouldn't be using debugfs for this, but in the future, if you do write debugfs code, please take the following review into account: On Mon, Aug 28, 2017 at 03:17:39PM -0400, Vivien Didelot wrote: > +static int dsa_debugfs_create_port(struct dsa_switch *ds, int port) > +{ > + struc

Re: [PATCH] ttyport: trivial fix for some typo in comments

2017-09-07 Thread Greg Kroah-Hartman
On Thu, Sep 07, 2017 at 10:51:08PM +0200, Antonio Borneo wrote: > Signed-off-by: Antonio Borneo > --- > To: Greg Kroah-Hartman > To: Jiri Slaby > Cc: Jiri Kosina > Cc: linux-kernel@vger.kernel.org > --- > drivers/tty/tty_port.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) I can

[PATCH] ASoC: fsl_ssi: Override bit clock rate based on slot number

2017-09-07 Thread Nicolin Chen
The set_sysclk() now is used to override the output bit clock rate. But this is not a common way to implement a set_dai_sysclk(). And this creates a problem when a general machine driver (simple-card for example) tries to do set_dai_sysclk() by passing an input clock rate for the baud clock instead

[PATCH] ASoC: fsl-asoc-card: Don't error out if ENOTSUPP

2017-09-07 Thread Nicolin Chen
The snd_soc_component_set_sysclk() and snd_soc_dai_set_tdm_slot() in the soc-core.c will return -ENOTSUPP if there is no function implementation for them in the dai and component drivers. So this patch tries to ignore this errno. Signed-off-by: Nicolin Chen --- sound/soc/fsl/fsl-asoc-card.c | 1

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-07 Thread Markus Trippelsdorf
On 2017.09.07 at 08:28 +0200, Markus Trippelsdorf wrote: > On 2017.09.06 at 15:15 +0200, Markus Trippelsdorf wrote: > > On 2017.09.06 at 14:52 +0200, Thomas Gleixner wrote: > > > On Tue, 5 Sep 2017, Markus Trippelsdorf wrote: > > > > On 2017.09.05 at 10:53 +0200, Peter Zijlstra wrote: > > > > > > A

[PATCH v2] netfilter: xt_hashlimit: fix build error caused by 64bit division

2017-09-07 Thread Vishwanath Pai
64bit division causes build/link errors on 32bit architectures. It prints out error messages like: ERROR: "__aeabi_uldivmod" [net/netfilter/xt_hashlimit.ko] undefined! The value of avg passed through by userspace in BYTE mode cannot exceed U32_MAX. Which means 64bit division in user2rate_bytes is

Re: [PATCH] ASoC: fsl_ssi: Override bit clock rate based on slot number

2017-09-07 Thread Nicolin Chen
On Thu, Sep 07, 2017 at 10:23:43PM -0700, Nicolin Chen wrote: > The set_sysclk() now is used to override the output bit clock rate. > But this is not a common way to implement a set_dai_sysclk(). And > this creates a problem when a general machine driver (simple-card > for example) tries to do set_

Re: [PATCH v2] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-09-07 Thread Joel Stanley
On Sat, Sep 2, 2017 at 2:36 AM, Cédric Le Goater wrote: > On 09/01/2017 07:38 AM, Andrew Jeffery wrote: >> Rework leds-pca955x so that we avoid the incorrect inversion and clarify >> the semantics with respect to GPIO. >> >> Signed-off-by: Andrew Jeffery > > Reviewed-by: Cédric Le Goater I gav

  1   2   3   4   5   6   7   8   >