Re: [PATCH 1/1] driver:garmin gps: use setup_timer

2017-10-09 Thread Johan Hovold
On Mon, Oct 09, 2017 at 09:34:05AM -0700, Kees Cook wrote: > On Mon, Oct 9, 2017 at 6:59 AM, Johan Hovold wrote: > > On Thu, Sep 21, 2017 at 04:54:24PM +0530, Allen Pais wrote: > >> Use setup_timer function instead of initializing timer with the > >> function and data fields. > > > > Why t

[RESEND PATCH v2 2/2] lockdep: Remove unnecessary acquisitions wrt workqueue flush

2017-10-09 Thread Byungchul Park
The workqueue added manual acquisitions to catch deadlock cases. Now crossrelease was introduced, some of those are redundant, since wait_for_completion() already includes the acquisition for itself. Removed it. Signed-off-by: Byungchul Park --- include/linux/workqueue.h | 4 ++-- kernel/workqu

[RESEND PATCH v2 1/2] completion: Add support for initializing completion with lockdep_map

2017-10-09 Thread Byungchul Park
Chagnes from v1 - Add a completion initialization function with a lockdep map - Enhance readability of the workqueue code ->8- >From e148617e20ebc9c9eefe7bb222b9bba07cb963bc Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Fri, 8 Sep 2017 17:39:48 +0900 Subject: [RESEND PATCH v2 1/2]

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

2017-10-09 Thread Byungchul Park
Changes from v1 - Enhance commit msg - Prevent WARN in cpumask_test_cpu() in cpudl_find() when best_cpu == -1 -8<- >From 7735382d07ae6a61d740ae39ba2ecf169d43b8a2 Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Wed, 22 Mar 2017 14:25:56 +0900 Subject: [RESEND PATCH v2 1/2] sched/dead

[RESEND PATCH v2 2/2] sched/deadline: Initialize cp->elements[].cpu to an invalid value

2017-10-09 Thread Byungchul Park
Currently, migrating tasks to cpu0 unconditionally happens when the heap is empty, since cp->elements[].cpu was initialized to 0(=cpu0). We have to distinguish between the empty case and cpu0 to avoid the unnecessary migrantions. Therefore, it has to return an invalid value e.i. -1 in that case. S

[RESEND PATCH v11 2/2] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()

2017-10-09 Thread Byungchul Park
It would be better to try to check other siblings first if SD_PREFER_SIBLING is flaged when pushing tasks - migration. Suggested-by: Peter Zijlstra Signed-off-by: Byungchul Park Reviewed-by: Steven Rostedt (VMware) --- kernel/sched/rt.c | 80

[RESEND PATCH v11 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-10-09 Thread Byungchul Park
It would be better to try to check other siblings first if SD_PREFER_SIBLING is flaged when pushing tasks - migration. Suggested-by: Peter Zijlstra Signed-off-by: Byungchul Park Acked-by: Juri Lelli --- kernel/sched/deadline.c | 82 - 1 file chan

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

2017-10-09 Thread Byungchul Park
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 -. add suggested-by Peterz -. add several comments Change from v7 -. fix a trivial typo -. modify commit messages to expla

[PATCH v5 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-09 Thread AKASHI Takahiro
arch_kexec_kernel_*() and arch_kimage_file_post_load_cleanup can now be duplicated among some architectures, so let's factor them out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He Cc: Michael Ellerman Cc: Thiago Jung Bauermann --- arch/powerpc/include/asm/kex

[PATCH v5 07/10] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-10-09 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. arch_kimage_kernel_post_load_cleanup() is meant to free arm64-specific data allocated for loadi

[PATCH v5 04/10] kexec_file: factor out crashdump elf header function from x86

2017-10-09 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 v5 06/10] arm64: kexec_file: create purgatory

2017-10-09 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

[PATCH v5 09/10] arm64: enable KEXEC_FILE config

2017-10-09 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 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4.

[PATCH v5 02/10] resource: add walk_system_ram_res_rev()

2017-10-09 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 v5 01/10] include: pe.h: remove message[] from mz header definition

2017-10-09 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 v5 10/10] arm64: kexec_file: add Image format support

2017-10-09 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 v5 08/10] arm64: kexec_file: set up for crash dump adding elf core header

2017-10-09 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 v5 05/10] asm-generic: add kexec_file_load system call to unistd.h

2017-10-09 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 v5 00/10] arm64: kexec: add kexec_file_load() support

2017-10-09 Thread AKASHI Takahiro
This is the fifth 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 * o

Re: [PATCH] bcache: mark expected switch fall-throughs in STRTO_H

2017-10-09 Thread Coly Li
On 2017/10/10 上午5:54, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Cc: Kent Overstreet > Cc: Shaohua Li > Cc: linux-bca...@vger.kernel.org > Cc: linux-r...@vger.kernel.org > Signed-off-by: Gustavo

Re: [PATCH] i2c: imx: fix misleading bus recovery debug message

2017-10-09 Thread Uwe Kleine-König
On Mon, Oct 09, 2017 at 09:26:14PM +0200, Clemens Gruber wrote: > The arguments for SDA and SCL were swapped. Fix it. > > Signed-off-by: Clemens Gruber Acked-by: Uwe Kleine-König Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solution

Re: [RFC v5 4/8] platform: x86: Add generic Intel IPC driver

2017-10-09 Thread Christoph Hellwig
On Mon, Oct 09, 2017 at 05:27:21PM -0700, sathyanarayanan kuppuswamy wrote: > Hi, > > > On 10/09/2017 12:11 AM, Christoph Hellwig wrote: > > What does IPC stand for in this device? > Inter processor communication Id would suggest to explain that, as it's not how we usually use the term in Linux?

Re: [RFC 1/2] ARM: dts: exynos: update the usbdrd phy and ref clk

2017-10-09 Thread Vivek Gautam
On 10/08/2017 06:06 PM, Anand Moon wrote: Hi Krzysztof, On 6 October 2017 at 12:08, Krzysztof Kozlowski wrote: On Fri, Oct 6, 2017 at 6:36 AM, Anand Moon wrote: update the usbdrd link control and phy contol clks. The commit title and especially commit message should explain why you are do

[PATCH -mm] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-09 Thread Huang, Ying
From: Huang Ying When the VMA based swap readahead was introduced, a new knob /sys/kernel/mm/swap/vma_ra_max_order was added as the max window of VMA swap readahead. This is to make it possible to use different max window for VMA based readahead and original physical readahead. But Minchan

Re: [PATCH 1/2] crypto: lrw - Fix an error handling path in 'create()'

2017-10-09 Thread Christophe JAILLET
Le 09/10/2017 à 23:22, walter harms a écrit : Am 08.10.2017 11:39, schrieb Christophe JAILLET: All error handling paths 'goto err_drop_spawn' except this one. In order to avoid some resources leak, we should do it as well here. Fixes: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher") Signed-of

[PATCH v4 1/4] phy: rcar-gen3-usb2: check dr_mode for otg mode

2017-10-09 Thread Yoshihiro Shimoda
The previous code assumed a channel has otg capability if a channel has interrupt property. But, it is not good because: - Battery charging feature also needs interrupt property. - Some R-Car Gen3 SoCs (e.g. R-Car D3) don't have OTG capability. So, this patch checks whether usb 2.0 host node has

[PATCH v4 2/4] phy: rcar-gen3-usb2: cleanup the role_{store,show}()

2017-10-09 Thread Yoshihiro Shimoda
This patch cleanups the role_{store,show}() and replaces the local "bool" for host/device mode selection with the "enum phy_mode" in the role_store(). Signed-off-by: Yoshihiro Shimoda --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 58 ++-- 1 file changed, 40 insertion

[PATCH v4 4/4] phy: rcar-gen3-usb2: add binding for r8a77995

2017-10-09 Thread Yoshihiro Shimoda
This patch adds binding for r8a77995 (R-Car D3). Since r8a77995 doesn't have dedicated pins (ID, VBUS), this will match against the generic fallback on R-Car D3. For now, this driver doesn't support usb role swap for r8a77995. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Simon Horman --- Docu

[PATCH v4 3/4] phy: rcar-gen3-usb2: add SoC-specific parameter for dedicated pins

2017-10-09 Thread Yoshihiro Shimoda
This patch adds SoC-specific parameter to avoid reading/writing specific registers wrongly if this driver runs on a SoC which doesn't have dedicated pins (e.g. R-Car D3). This patch also changes the value "has_otg" to "has_otg_pins" for slightly easier reading of the code. Signed-off-by: Yoshihiro

[PATCH v4 0/4] phy: rcar-gen3-usb2: add support for r8a77995

2017-10-09 Thread Yoshihiro Shimoda
This patch set is based on the latest phy.git / next branch (the commit id = 415060b21f318e009d865b4bcbf8f220ebc36964) After this patch set is applied, a usb 2.0 host node that is combined with usb 2.0 peripheral needs 'dr_mode = "otg";' property. Changes from v3: - Use enum phy_mode in patch 2.

[PATCH v7 3/3] eeprom: at24: enable runtime pm support

2017-10-09 Thread Divagar Mohandass
Currently the device is kept in D0, there is an opportunity to save power by enabling runtime pm. Device can be daisy chained from PMIC and we can't rely on I2C core for auto resume/suspend. Driver will decide when to resume/suspend. Reviewed-by: Sakari Ailus Signed-off-by: Divagar Mohandass --

[PATCH v7 0/3] enable eeprom "size" property and runtime pm

2017-10-09 Thread Divagar Mohandass
This series adds support for eeprom "size" property which will be read by the driver for eeprom size. The existing ACPI has a different default size which can be overridden with a DSD property value provided by the platform FW. This series also adds support for runtime PM. The eeprom driver curren

[PATCH v7 2/3] eeprom: at24: add support to fetch eeprom device property "size"

2017-10-09 Thread Divagar Mohandass
Obtain the size of the EEPROM chip from DT if the "size" property is specified for the device. Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Reviewed-by: Sakari Ailus Signed-off-by: Divagar Mohandass --- drivers/misc/eeprom/at24.c | 4 1 file changed, 4 insertions(+) diff -

[PATCH v7 1/3] dt-bindings: add eeprom "size" property

2017-10-09 Thread Divagar Mohandass
This adds eeprom "size" as optional property for i2c eeproms. The "size" property allows explicitly specifying the size of the EEPROM chip in bytes. Acked-by: Rob Herring Reviewed-by: Sakari Ailus Signed-off-by: Divagar Mohandass --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 2 ++

RE: [PATCH v3 2/4] phy: rcar-gen3-usb2: split the two meaning of "has_otg"

2017-10-09 Thread Yoshihiro Shimoda
Hi, Thank you for the comment! I will submit v4 patch soon. But, I wrote some comments below. > From: Kishon Vijay Abraham I, Sent: Monday, October 9, 2017 7:07 PM > > Hi, > > On Friday 01 September 2017 08:11 AM, Yoshihiro Shimoda wrote: > > The has_otg on previous code has the two meaning: >

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-09 Thread Byungchul Park
On Wed, Oct 04, 2017 at 10:34:30AM +0200, Peter Zijlstra wrote: > Right, and print_circular_bug() uses @trace before it ever can be set, > although I suspect the intention is that that only ever gets called from > commit_xhlock() where we pass in an initialized @trace. A comment > would've been goo

Re: [PATCH v3] mm, sysctl: make NUMA stats configurable

2017-10-09 Thread kemi
On 2017年10月10日 13:49, Michal Hocko wrote: > On Mon 09-10-17 09:55:49, Michal Hocko wrote: >> I haven't checked closely but what happens (or should happen) when you >> do a partial read? Should you get an inconsistent results? Or is this >> impossible? > > Well, after thinking about it little bit

Re: [PATCH v2 15/18] powerpc: Emulate paste instruction

2017-10-09 Thread Michael Ellerman
Michael Neuling writes: > @ -1924,6 +1987,7 @@ struct ppc_emulated ppc_emulated = { >>  WARN_EMULATED_SETUP(mfdscr), >>  WARN_EMULATED_SETUP(mtdscr), >>  WARN_EMULATED_SETUP(lq_stq), >> +WARN_EMULATED_SETUP(paste), > > You'll need to rebase this on powerpc/next as this has changed

Re: [RFC] a question about mlockall() and mprotect()

2017-10-09 Thread Michal Hocko
On Tue 10-10-17 09:22:20, Xishi Qiu wrote: > On 2017/10/10 2:26, Michal Hocko wrote: > > > On Wed 27-09-17 13:51:09, Xishi Qiu wrote: > >> On 2017/9/26 19:00, Michal Hocko wrote: > >> > >>> On Tue 26-09-17 11:45:16, Vlastimil Babka wrote: > On 09/26/2017 11:22 AM, Xishi Qiu wrote: > > On

Re: [PATCH v3] mm, sysctl: make NUMA stats configurable

2017-10-09 Thread Michal Hocko
On Mon 09-10-17 09:55:49, Michal Hocko wrote: > I haven't checked closely but what happens (or should happen) when you > do a partial read? Should you get an inconsistent results? Or is this > impossible? Well, after thinking about it little bit more, partial reads are always inconsistent so this

[PATCH v2 2/2] ARM: cpuidle: Refactor rollback operations if init fails

2017-10-09 Thread Leo Yan
If init fails, we need execute two levels rollback operations: the first level is for the failed CPU rollback operations, the second level is to iterate all succeeded CPUs to cancel their registration; currently the code uses one function to finish these two levels rollback operations. This commit

[PATCH v2 1/2] ARM: cpuidle: Correct driver unregistration if init fails

2017-10-09 Thread Leo Yan
If cpuidle init fails, the code misses to unregister the driver for current CPU. Furthermore, we also need to rollback to cancel all previous CPUs registration; but the code retrieves driver handler by using function cpuidle_get_driver(), this function returns back current CPU driver handler but no

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-09 Thread Byungchul Park
On Tue, Oct 03, 2017 at 09:57:02AM -0700, Linus Torvalds wrote: > On Tue, Oct 3, 2017 at 9:54 AM, Linus Torvalds > wrote: > > > > Can we consider just reverting the crossrelease thing? > > > > The apparent stack corruption really worries me [...] > > Side note: I also think the thing is just brok

Re: Which came first, hard kernel lockup or SATA errors?

2017-10-09 Thread Ed Swierk
On Fri, Oct 6, 2017 at 6:25 PM, Ed Swierk wrote: > I'm trying to untangle a series of problems that suddenly occurred on > a dual-socket Xeon server system that had been running a bunch of KVM > workloads just fine for over 6 weeks (4.4.52-grsec kernel, > Debian-derived userspace). I think I've n

Re: [PATCH v2] mm/page_alloc.c: inline __rmqueue()

2017-10-09 Thread Aaron Lu
On Mon, Oct 09, 2017 at 10:19:52PM -0700, Dave Hansen wrote: > On 10/09/2017 07:56 PM, Aaron Lu wrote: > > This patch adds inline to __rmqueue() and vmlinux' size doesn't have any > > change after this patch according to size(1). > > > > without this patch: > >textdata bss dec

[RFC][PATCH 2/3] of: overlay_mgr: Add ability to apply through sysfs entry

2017-10-09 Thread John Stultz
From: Dmitry Shmidt Allow pre-defined overlay_mgr DT fragments to be enabled on the fly by writing to: /sys/devices/platform/overlay_mgr/current_overlay Cc: Rob Herring Cc: Mark Rutland Cc: Frank Rowand Cc: Dmitry Shmidt Cc: devicet...@vger.kernel.org Signed-off-by: Dmitry Shmidt [jstultz

[RFC][PATCH 1/3] of: overlay_mgr: Add overlay manager driver

2017-10-09 Thread John Stultz
From: Dmitry Shmidt This patch adds a driver to manage applying pre-defined DT overlay fragments at bootup. The pre-defined DT fragments are specified via the main overlay_mng entry which includes all the possible HW config setups. Then kernel command line option is used to choose between them.

[RFC][PATCH 3/3] of: overlay_mgr: Add ability to apply several hardware configurations

2017-10-09 Thread John Stultz
From: Dmitry Shmidt This adds the ability to specify multiple DT overlay configurations, which are predefined in the overlay_mgr entry, at once via the boot arguments. Example: overlay_mgr.overlay_dt_entry=hardware_cfg_0,hardware_cfg_1,... Cc: Rob Herring Cc: Mark Rutland Cc: Frank Rowand

Re: [PATCH v7 1/6] lib/dlock-list: Distributed and lock-protected lists

2017-10-09 Thread Boqun Feng
On Thu, Oct 05, 2017 at 06:43:23PM +, Waiman Long wrote: [...] > +/* > + * As all the locks in the dlock list are dynamically allocated, they need > + * to belong to their own special lock class to avoid warning and stack > + * trace in kernel log when lockdep is enabled. Statically allocated l

[RFC][PATCH 0/3] Overlay manager for predefined DT overlay fragments

2017-10-09 Thread John Stultz
In working with the HiKey and HiKey960 as targets for AOSP, Dmitry developed the following overlay manager driver, which allows a number of pre-determined DT overlay configurations to be defined, and the configurations to be enabled at boot time via a kernel boot argument. This has been submitted

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-09 Thread Byungchul Park
On Tue, Oct 03, 2017 at 07:18:24PM +0200, Ingo Molnar wrote: > > * Linus Torvalds wrote: > > > On Tue, Oct 3, 2017 at 7:06 AM, Fengguang Wu wrote: > > > > > > This patch triggers a NULL-dereference bug at update_stack_state(). > > > Although its parent commit also has a NULL-dereference bug, ho

[PATCH v4 2/2] dma: sprd: Add Spreadtrum DMA driver

2017-10-09 Thread Baolin Wang
This patch adds the DMA controller driver for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- Changes since v3: - Remove redundant local 'mask' and 'val' variables. - Simplify sprd_dma_get_req_type() function. - Change pm_runtime_put_sync() to pm_runtime_put() in probe function. -

[PATCH v4 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller

2017-10-09 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC9860 DMA controller device. Signed-off-by: Baolin Wang Acked-by: Rob Herring --- Changes since v3: - No update. Changes since v2: - No update. Changes since v1: - Fix typos. --- Documentation/devicetree/bindings/dma/sprd-dma.txt |

Re: [PATCH v2] mm/page_alloc.c: inline __rmqueue()

2017-10-09 Thread Dave Hansen
On 10/09/2017 07:56 PM, Aaron Lu wrote: > This patch adds inline to __rmqueue() and vmlinux' size doesn't have any > change after this patch according to size(1). > > without this patch: >textdata bss dec hex filename > 9968576 5793372 17715200 33477148 1fed21c vmlinux >

Re: [PATCH] net: ftgmac100: Request clock and set speed

2017-10-09 Thread Joel Stanley
On Tue, Oct 10, 2017 at 2:34 PM, Florian Fainelli wrote: > > > On 10/09/2017 09:49 PM, Joel Stanley wrote: >> According to the ASPEED datasheet, gigabit speeds require a clock of >> 100MHz or higher. Other speeds require 25MHz or higher. >> >> Signed-off-by: Joel Stanley >> --- > >> @@ -161,6 +17

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-09 Thread Byungchul Park
On Tue, Oct 03, 2017 at 09:54:31AM -0700, Linus Torvalds wrote: > On Tue, Oct 3, 2017 at 7:06 AM, Fengguang Wu wrote: > > > > This patch triggers a NULL-dereference bug at update_stack_state(). > > Although its parent commit also has a NULL-dereference bug, however > > the call stack looks rather

Re: [PATCH] net: ftgmac100: Request clock and set speed

2017-10-09 Thread Florian Fainelli
On 10/09/2017 09:49 PM, Joel Stanley wrote: > According to the ASPEED datasheet, gigabit speeds require a clock of > 100MHz or higher. Other speeds require 25MHz or higher. > > Signed-off-by: Joel Stanley > --- > @@ -161,6 +170,9 @@ static int ftgmac100_reset_and_config_mac(struct > ftgmac100

Re: [PATCH v5 16/16] perf util: use correct IP mapping to find srcline for hist entry

2017-10-09 Thread Namhyung Kim
Hi Milian, On Mon, Oct 09, 2017 at 10:33:10PM +0200, Milian Wolff wrote: > When inline frame resolution is disabled, a bogus srcline is obtained > for hist entries: > > ~ > $ perf report -s sym,srcline --no-inline --stdio -g none > 95.21% 0.00% [.] __libc_start_main

[PATCH] net: ftgmac100: Request clock and set speed

2017-10-09 Thread Joel Stanley
According to the ASPEED datasheet, gigabit speeds require a clock of 100MHz or higher. Other speeds require 25MHz or higher. Signed-off-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgmac100.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/ethernet/f

[PATCH] vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister()

2017-10-09 Thread Dexuan Cui
Without the patch, vmbus_hvsock_device_unregister() can destroy the device prematurely when close() is called, and can cause NULl dereferencing or potential data loss (the last portion of the data stream may be dropped prematurely). Signed-off-by: Dexuan Cui Cc: K. Y. Srinivasan Cc: Haiyang Zha

[PATCH] i2c: aspeed: Deassert reset in probe

2017-10-09 Thread Joel Stanley
In order to use i2c from a cold boot, the i2c peripheral must be taken out of reset. We request a shared reset controller each time a bus driver is loaded, as the reset is shared between the 14 i2c buses. On remove the reset is asserted, which only touches the hardware once the last i2c bus is rem

Re: ce07a9415f ("locking/lockdep: Make check_prev_add() able to .."): BUG: unable to handle kernel NULL pointer dereference at 00000020

2017-10-09 Thread Byungchul Park
On Tue, Oct 03, 2017 at 11:32:37AM +0200, Ingo Molnar wrote: > > Any progress with fixing this crash? > > I'll have to revert this commit otherwise. I am sorry for late. It was the biggest traditional holiday until yesterday. I will reply it in another thread. Thank you. > Thanks, > > I

Re: [PATCH] thermal/intel_powerclamp: pr_err()/pr_info() strings should end with newlines

2017-10-09 Thread Joe Perches
On Mon, 2017-10-09 at 14:33 +0200, Daniel Lezcano wrote: > On 09/10/2017 13:51, Arvind Yadav wrote: > > pr_err()/pr_info() messages should end with a new-line to avoid > > other messages being concatenated. [] > > diff --git a/drivers/thermal/intel_powerclamp.c > > b/drivers/thermal/intel_powercla

Re: [PATCH v2] Userfaultfd: Add description for UFFD_FEATURE_SIGBUS

2017-10-09 Thread Mike Rapoport
On Mon, Oct 09, 2017 at 03:45:51PM -0700, Prakash Sangappa wrote: > Userfaultfd feature UFFD_FEATURE_SIGBUS was merged recently and should > be available in Linux 4.14 release. This patch is for the manpage > changes documenting this API. > > Documents the following commit: > > commit 2d6d6f5a09a

Re: [PATCH v3] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-09 Thread Wei-Ning Huang
Hi Benjamin, Thanks for the review. I've fixed according to your comments and sent the v4 patch: https://patchwork.kernel.org/patch/9995003/ Wei-Ning On Fri, Oct 6, 2017 at 4:13 PM, Benjamin Tissoires wrote: > Hi, > > On Oct 05 2017 or thereabouts, Jiri Kosina wrote: >> >> [ adding Benjamin to

Re: [PATCH 1/3] net/atm: Delete an error message for a failed memory allocation in five functions

2017-10-09 Thread Joe Perches
On Mon, 2017-10-09 at 22:49 +0200, SF Markus Elfring wrote: > Omit extra messages for a memory allocation failure in these functions. [] > diff --git a/net/atm/mpc.c b/net/atm/mpc.c > @@ -184,10 +184,8 @@ struct atm_mpoa_qos *atm_mpoa_add_qos(__be32 dst_ip, > struct atm_qos *qos) > } > >

[PATCH v4] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-09 Thread Wei-Ning Huang
From: Wei-Ning Huang The current hid-multitouch driver only allow the report of two orientations, vertical and horizontal. We use the Azimuth orientation usage 0x3F under the Digitizer usage page to report orientation if the device supports it. Changelog: v1 -> v2: - Fix commit message.

Re: [PATCH v6 3/3] eeprom: at24: enable runtime pm support

2017-10-09 Thread Tomasz Figa
On Tue, Oct 3, 2017 at 11:23 PM, sakari.ai...@iki.fi wrote: > On Wed, Sep 20, 2017 at 11:45:20AM +0300, sakari.ai...@iki.fi wrote: >> > >> @@ -743,11 +770,17 @@ static int at24_probe(struct i2c_client *client, >> > >> const >> > >> struct i2c_device_id *id) >> > >> >> > >> i2c_set_clientdat

Re: [PATCH v6 3/3] eeprom: at24: enable runtime pm support

2017-10-09 Thread Tomasz Figa
On Mon, Oct 9, 2017 at 12:14 PM, Mohandass, Divagar wrote: > Hi Tomasz, > >>-Original Message- >>From: sakari.ai...@iki.fi [mailto:sakari.ai...@iki.fi] >>Sent: Tuesday, October 03, 2017 7:21 PM >>To: Tomasz Figa >>Cc: Mani, Rajmohan ; Mohandass, Divagar >>; robh...@kernel.org; >>mark.rutl

Re: [PATCH] Input: synaptics - Disable kernel tracking on SMBus devices

2017-10-09 Thread Dmitry Torokhov
On Fri, Sep 29, 2017 at 10:08:44AM +0200, Benjamin Tissoires wrote: > On Sep 28 2017 or thereabouts, Andrew Duggan wrote: > > In certain situations kernel tracking seems to be getting confused > > and incorrectly reporting the slot of a contact. On example is when > > the user does a three finger c

Re: [PATCH v2 0/5] Simplify panel bridge cleanup

2017-10-09 Thread Archit Taneja
On 10/02/2017 03:02 PM, Benjamin Gaignard wrote: The goal of this series is to simplify driver code when they need to clean up a previously allocated panel bridge. Few drivers have "is_panel_bridge" flag to be able to distinguish a drm_panel_bridge from "simple" drm_bridge. To remove this flag

Re: [musl] Re: [PATCHv3] uapi libc compat: add fallback for unsupported libcs

2017-10-09 Thread Florian Fainelli
Le 10/01/17 à 03:37, Hauke Mehrtens a écrit : > On 07/29/2017 04:02 PM, Felix Janda wrote: >> libc-compat.h aims to prevent symbol collisions between uapi and libc >> headers for each supported libc. This requires continuous coordination >> between them. >> >> The goal of this commit is to improve

Re: [PATCH net-next] once: switch to new jump label API

2017-10-09 Thread David Miller
From: Eric Biggers Date: Mon, 9 Oct 2017 14:30:52 -0700 > From: Eric Biggers > > Switch the DO_ONCE() macro from the deprecated jump label API to the new > one. The new one is more readable, and for DO_ONCE() it also makes the > generated code more icache-friendly: now the one-time initializa

Re: [PATCH] cpufreq: dt-platdev: drop socionext,uniphier-ld6b from whitelist

2017-10-09 Thread Viresh Kumar
On 14-09-17, 14:26, Viresh Kumar wrote: > On 30-08-17, 00:37, Masahiro Yamada wrote: > > As you see arch/arm/boot/dts/uniphier-ld6b.dtsi, it includes > > uniphier-pxs2.dtsi, which uses "operating-points-v2" property > > and whose cpufreq device is automatically created. > > > > Signed-off-by: Masa

Re: [PATCH v2] usb: musb: sunxi: Explicitly release USB PHY on exit

2017-10-09 Thread Bin Liu
On Tue, Oct 10, 2017 at 01:45:25PM +1100, Jonathan Liu wrote: > This fixes a kernel oops when unloading the driver due to usb_put_phy > being called after usb_phy_generic_unregister when the device is > detached. Calling usb_phy_generic_unregister causes x->dev->driver to > be NULL in usb_put_phy a

[PATCH v4 00/11] drm/sun4i: hdmi: Support HDMI controller on A31

2017-10-09 Thread Chen-Yu Tsai
Hi everyone, This is v4 of my A31 HDMI support series. The DTS patches depend on the patch "clk: sunxi-ng: sun6i: Export video PLLs" alreay merged. The DRM patches depend on "regmap: add iopoll-like polling macro for regmap_field" already merged on a topic branch in the regmap repository. Changes

[PATCH v4 01/11] drm/sun4i: tcon: Add variant callback for TCON output muxing

2017-10-09 Thread Chen-Yu Tsai
Different SoCs have different muxing options and values for the TCON outputs. Instead of stuffing every possibility in sun4i_tcon_set_mux(), add a callback pointer to sun4i_tcon_quirks that each TCON variant can use to provide muxing support. The current muxing options in sun4i_tcon_set_mux() for

[PATCH v4 03/11] drm/sun4i: hdmi: Disable clks in bind function error path and unbind function

2017-10-09 Thread Chen-Yu Tsai
The HDMI driver enables the bus and mod clocks in the bind function, but does not disable them if it then bails our due to any errors. Neither does it disable the clocks in the unbind function. Fix this by adding a proper error path to the bind function, and clk_disable_unprepare calls to the unbi

[PATCH v4 06/11] dt-bindings: display: sun4i: Add binding for A31 HDMI controller

2017-10-09 Thread Chen-Yu Tsai
The HDMI controller in the A31 SoC is slightly different from the earlier version. In addition to the TMDS clock and DDC controls, this version now takes a second DDC clock input. Add a compatible string for it, and add the DDC clock input to the list of clocks required. Signed-off-by: Chen-Yu Ts

[PATCH v4 10/11] ARM: dts: sun6i: Add device node for HDMI controller

2017-10-09 Thread Chen-Yu Tsai
Now that we support the HDMI controller on the A31 SoC, we can add it to the device tree. This adds a device node for the HDMI controller, and the of_graph nodes connecting it to the 2 TCONs. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 55 +

[PATCH v4 05/11] drm/sun4i: hdmi: Allow using second PLL as TMDS clk parent

2017-10-09 Thread Chen-Yu Tsai
On SoCs with two display pipelines, it is possible that the two pipelines are active at the same time, with potentially incompatible dot clocks. Let the HDMI encoder's TMDS clock go through all of its parents when calculating possible clock rates. This allows usage of the second video PLL as its p

[PATCH v4 11/11] ARM: dts: sun6i: Enable HDMI support on some A31/A31s devices

2017-10-09 Thread Chen-Yu Tsai
All the A31/A31s devices I own have some kind of HDMI connector wired to the dedicated HDMI pins on the SoC: - A31 Hummingbird (standard HDMI connector, display already enabled) - Sinlinx SinA31s (standard HDMI connector) - MSI Primo81 tablet (micro HDMI connector) Enable the display pipeli

[PATCH v4 08/11] drm/sun4i: hdmi: Add A31 specific DDC register definitions

2017-10-09 Thread Chen-Yu Tsai
The DDC block for the HDMI controller is different on the A31. This patch adds the register definitions. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/d

[PATCH v4 04/11] drm/sun4i: hdmi: create a regmap for later use

2017-10-09 Thread Chen-Yu Tsai
The HDMI driver is written with readl/writel I/O to the registers. However, to support the A31 variant, which has a different layout for the DDC registers, it was recommended to use regfields to have a cleaner implementation. To use regfields, we need to create an underlying regmap. This patch onl

[PATCH v4 02/11] drm/sun4i: tcon: Add support for demuxing TCON output on A31

2017-10-09 Thread Chen-Yu Tsai
On systems with 2 TCONs such as the A31, it is possible to demux the output of the TCONs to one encoder. Add support for this for the A31. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 47 ++ 1 file changed, 47 insertions(+) diff --git

[PATCH v4 07/11] drm/sun4i: hdmi: Add support for controller hardware variants

2017-10-09 Thread Chen-Yu Tsai
The HDMI controller found in earlier Allwinner SoCs have slight differences between the A10, A10s, and the A31: - Need different initial values for the PLL related registers - Different behavior of the DDC and TMDS clocks - Different register layout for the DDC portion - Separate DDC pa

[PATCH v4 09/11] drm/sun4i: hdmi: Add support for A31's HDMI controller

2017-10-09 Thread Chen-Yu Tsai
The HDMI controller found in the A31 SoCs is slightly different from the one already supported, which is found in the A10s: - Need different initial values for the PLL related registers - Different behavior of the DDC and TMDS clocks - Different register layout for the DDC portion - Sep

Re: [PATCH] watchdog: hpwdt: change maintainer.

2017-10-09 Thread Guenter Roeck
On 10/09/2017 08:05 PM, Vance, Jimmy wrote: Yes, Jerry is taking over as maintainer of hpwdt Just a note ... if you send such a note as official Acked-by: tag, patchwork picks it up automatically, and you save the maintainer a couple of minutes of work. Guenter -Original Message- Fr

Re: [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-09 Thread Chen-Yu Tsai
On Wed, Oct 4, 2017 at 3:35 PM, Quentin Schulz wrote: > Hi Chen-Yu, Linus, > > On 03/10/2017 17:08, Chen-Yu Tsai wrote: >> On Tue, Oct 3, 2017 at 10:47 PM, Maxime Ripard >> wrote: >>> Hi Linus, >>> >>> On Tue, Oct 03, 2017 at 09:27:17AM +, Linus Walleij wrote: On Mon, Oct 2, 2017 at 2:08

RE: [PATCH] watchdog: hpwdt: change maintainer.

2017-10-09 Thread Vance, Jimmy
Yes, Jerry is taking over as maintainer of hpwdt -Original Message- From: Guenter Roeck [mailto:groe...@gmail.com] On Behalf Of Guenter Roeck Sent: Monday, October 9, 2017 7:27 PM To: Hoemann, Jerry ; linux-watch...@vger.kernel.org Cc: linux-kernel@vger.kernel.org; Vance, Jimmy Subject: R

[PATCH v3 02/12] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-10-09 Thread Chaotian Jing
Change the comptiable for support of multi-platform Make compatible explicit Add description for reg Add description for source_cg Add description for mediatek,latch-ck Note that source_cg and mediatek,latch-ck are optional for some projects, eg, MT2701 do not have source_cg, and MT2712 do not need

[PATCH v3 04/12] mmc: mediatek: make hs400_tune_response only for mt8173

2017-10-09 Thread Chaotian Jing
the origin design of hs400_tune_response is for mt8173 because of mt8173 has a special design. for doing that, we add a new member "compatible", by now it's only for mt8173. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(

[PATCH v3 07/12] mmc: mediatek: add busy_check support

2017-10-09 Thread Chaotian Jing
bit7 of PATCH_BIT1 has different meaning in new design, to compatible with previous platform, clear this bit in new platform. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.

[PATCH v3 10/12] mmc: mediatek: add latch-ck support

2017-10-09 Thread Chaotian Jing
some platform(eg.mt2701) does not support "stop clk fix", in this case, need set correct latch-ck to avoid crc error caused by stop clock block-internally. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/mtk-sd

[PATCH v3 12/12] mmc: mediatek: perfer to use rise edge latching for cmd line

2017-10-09 Thread Chaotian Jing
data lines have applied to perfer to use rise edge, also need apply it to cmd line. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 4cffc04..731574e 100644

[PATCH v3 11/12] mmc: mediatek: improve eMMC hs400 mode read performance

2017-10-09 Thread Chaotian Jing
enlarge outstanding value to improve read performance Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 3a1756a..4cffc04 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/

[PATCH v3 03/12] arm64: dts: mt8173: remove "mediatek,mt8135-mmc" from mmc nodes

2017-10-09 Thread Chaotian Jing
devicetree bindings has been updated to support multi-platforms, so that each platform has its owns compatible name. And, this compatible name may used in driver to distinguish with other platform. Signed-off-by: Chaotian Jing --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 12 1 fil

[PATCH v3 06/12] mmc: mediatek: add async fifo and data tune support

2017-10-09 Thread Chaotian Jing
mt2701/mt2712 supports async fifo & data tune, which can improve host stability. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 52 +-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc

[PATCH v3 08/12] mmc: mediatek: add stop_clk fix and enhance_rx support

2017-10-09 Thread Chaotian Jing
mt2712 supports stop_clk fix and enhance_rx, which can improve host stability. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 47 +++ 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/h

[PATCH v3 09/12] mmc: mediatek: add support of source_cg clock

2017-10-09 Thread Chaotian Jing
source clock need an independent cg to control, when doing clk mode switch, need gate source clock to avoid hw issue(multi-bit sync hw hang) Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/driv

  1   2   3   4   5   6   7   8   9   10   >