[PATCH] x86/pci: Add a break condition when enabling BAR

2017-12-07 Thread Bandan Das
On an old flaky system with AMD Opteron 6320, boot hangs with the following trace since commit fa564ad9: [ 28.181012] Hardware name: HP ProLiant DL385p Gen8, BIOS A28 09/03/2014 [ 28.184022] RIP: 0010:lock_acquire+0xd5/0x1e0 [ 28.185010] RSP: 0018:b7ad818c39a8 EFLAGS: 0246 ORIG_RAX:

Re: [tip:x86/mpx] x86/insn-eval: Add utility function to get segment descriptor

2017-12-07 Thread Borislav Petkov
On Wed, Dec 06, 2017 at 11:26:05PM -0800, Ricardo Neri wrote: > At the moment MPX and UMIP are using the insn-eval decoder to determine > linear addresses. If we're keeping a whole instruction decoder in the kernel, it better be designed generically enough and usable (and used) by everything that

Re: [tip:x86/mpx] x86/insn-eval: Add utility function to get segment descriptor

2017-12-07 Thread Borislav Petkov
On Wed, Dec 06, 2017 at 11:23:59PM -0800, Ricardo Neri wrote: > In UMIP emulation we can potentially access the LDT twice. Once when > determining the base address of the code segment and again when determining > the base address and limit of the segment in which the result of the > emulation is wr

Re: [PATCH 0/2] [RFC] Ktest: add email support

2017-12-07 Thread Steven Rostedt
Unfortunately not, and my internet at the hotel is dismissal. I can't get any work done this week. -- Steve On December 6, 2017 10:35:16 PM GMT+01:00, Tim Tianyang Chen wrote: > > >On 12/01/2017 03:55 PM, Steven Rostedt wrote: >> On Tue, 21 Nov 2017 10:53:27 -0800 >> Tim Tianyang Chen wrote:

Re: [PATCH v3 2/3] clk: hisilicon: Add support for Hi3660 stub clocks

2017-12-07 Thread Leo Yan
On Wed, Dec 06, 2017 at 11:05:50PM -0800, Stephen Boyd wrote: > On 11/17, Xu YiPing wrote: > > From: Kaihua Zhong > > + > > +static struct clk_hw *hi3660_stub_clk_hw_get(struct of_phandle_args > > *clkspec, > > +void *data) > > +{ > > + unsigned int idx =

Re: [patch 40/60] x86: PMD align entry text

2017-12-07 Thread Borislav Petkov
On Mon, Dec 04, 2017 at 03:07:46PM +0100, Thomas Gleixner wrote: > From: Thomas Gleixner > > The (irq)entry text must be visible in the user space page tables. To allow > simple PMD based sharing, make the entry text PMD aligned. > > Signed-off-by: Thomas Gleixner > > --- > arch/x86/kernel/vm

Re: general protection fault in lockdep_invariant_state (2)

2017-12-07 Thread Dmitry Vyukov
On Wed, Dec 6, 2017 at 5:31 PM, Dmitry Vyukov wrote: >>> > R13: 00402260 R14: 004022f0 R15: >>> > kasan: CONFIG_KASAN_INLINE enabled >>> > kasan: GPF could be caused by NULL-ptr deref or user memory access >>> > general protection fault: [#

Re: [PATCH V6 01/12] drivers: move clock common macros out from vendor directories

2017-12-07 Thread Chunyan Zhang
On 7 December 2017 at 14:47, Stephen Boyd wrote: > On 11/27, Chunyan Zhang wrote: >> These macros are used by more than one SoC vendor platforms, avoid to >> have many copies of these code, this patch moves them to the common >> clock directory which every clock drivers can access to. >> >> Signed

Re: [PATCH 18/36] perf s390: Always build with -fPIC

2017-12-07 Thread Hendrik Brueckner
Hi Arnaldo, On Wed, Dec 06, 2017 at 11:40:57AM -0300, Arnaldo Carvalho de Melo wrote: > From: Hendrik Brueckner > > On s390, object files must be compiled with position-indepedent code in > order to be incrementally linked or linked to shared libraries. > Therefore, add -fPIC to the CFLAGS for s

Re: [PATCH 1/1] codestyle issue fixed drivers/staging/vc04_services

2017-12-07 Thread Stefan Wahren
Hello Mikhail, Am 07.12.2017 um 08:47 schrieb Mikhail Shvetsov: > From: Mike please provide your full name and a changelog. Also the subject should start with something like "staging: vchiq_arm:". > > Signed-off-by: Mike > --- > .../interface/vchiq_arm/vchiq_kern_lib.c | 64 > +

Re: [PATCHv4 3/4] x86/boot/compressed/64: Introduce place_trampoline()

2017-12-07 Thread Matthew Wilcox
On Thu, Dec 07, 2017 at 07:30:48AM +0100, Ingo Molnar wrote: > > But if the bootloader put the kernel above 4G (not sure if anybody does > > this), we would loose control as soon as paging is disabled as code > > becomes unreachable. > > Yeah, so instead of the double 'as' which is syntactically r

Re: [RFC v3 PATCH 0/2] Introduce Security Version to EFI Stub

2017-12-07 Thread Ingo Molnar
* Gary Lin wrote: > On Thu, Dec 07, 2017 at 07:09:27AM +0100, Ingo Molnar wrote: > > > > * Gary Lin wrote: > > > > > On Wed, Dec 06, 2017 at 07:37:34PM +0100, Ingo Molnar wrote: > > > > > > > > * Gary Lin wrote: > > > > > > > > > On Tue, Dec 05, 2017 at 04:14:26PM -0500, Josh Boyer wrote:

[PATCH] misc: isl29003: Missing a blank line after declarations

2017-12-07 Thread Dhaval Shah
Resolved all the missing a blank line after declarations checkpatch warnings. Issue found by checkpatch. Signed-off-by: Dhaval Shah --- drivers/misc/isl29003.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/isl29003.c b/drivers/misc/isl29003.c index 976df0013633..b803288

[PATCH v1 0/2] fix race condition in rsnd_ssi_pointer_update

2017-12-07 Thread jiada_wang
From: Jiada Wang This patch set aims to fix the race condition in rsnd_ssi_pointer_update, between set of byte_pos and wrap it around when new buffer starts. Jiada Wang (2): ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update ASoC: rsnd: ssi: remove unnesessary period_pos sound

[PATCH v1 1/2] ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update

2017-12-07 Thread jiada_wang
From: Jiada Wang Currently there is race condition between set of byte_pos and wrap it around when new buffer starts. If .pointer is called in-between it will result in inconsistent pointer position be returned from .pointer callback. This patch increments buffer pointer atomically to avoid this

[PATCH v2 2/2] ASoC: rsnd: ssi: remove unnesessary period_pos

2017-12-07 Thread jiada_wang
From: Jiada Wang period_pos can always be calculated by byte_pos and byte_per_period, there is no reason to maintain this variable in rsnd_dai_stream. Further more, if the passed 'byte' amount to rsnd_ssi_pointer_update() is more than byte_per_period. the calculation of next_period_byte isn't cor

Re: [patch 41/60] x86/mm/kpti: Share entry text PMD

2017-12-07 Thread Borislav Petkov
On Mon, Dec 04, 2017 at 03:07:47PM +0100, Thomas Gleixner wrote: > From: Thomas Gleixner > > Share the entry text PMD of the kernel mapping with the user space > mapping. If large pages are enabled this is a single PMD entry and at the > point where it is copied into the user page table the RW bi

Re: [PATCHv4 3/4] x86/boot/compressed/64: Introduce place_trampoline()

2017-12-07 Thread Ingo Molnar
* Matthew Wilcox wrote: > On Thu, Dec 07, 2017 at 07:30:48AM +0100, Ingo Molnar wrote: > > > But if the bootloader put the kernel above 4G (not sure if anybody does > > > this), we would loose control as soon as paging is disabled as code > > > becomes unreachable. > > > > Yeah, so instead of t

[RESEND PATCH V2] ARM: dts: introduce the sama5d2 ptc ek board

2017-12-07 Thread Ludovic Desroches
Add the official SAMA5D2 Peripheral Touch Controller Evaluation Kit board. Signed-off-by: Ludovic Desroches --- Resend: Put SPDX-License-Identifier at the beginning of the file. Changes: - v2: - remove memory node - use SPDX-License-Identifier arch/arm/boot/dts/Makefile|

[PATCH 1/1] zram: better utilization of zram swap space

2017-12-07 Thread Gopi Sai Teja
If the length of the compressed page is greater than 75% of the PAGE_SIZE, then the page is stored uncompressed in zram space. Zram space utilization is improved if the threshold is 80%(5 compressed pages can be stored in 4 pages). If the compressed length is greater than 3068 and less than 3261,

Re: Multiple oom_reaper BUGs: unmap_page_range racing with exit_mmap

2017-12-07 Thread Michal Hocko
On Thu 07-12-17 16:20:47, Tetsuo Handa wrote: [...] > int main(int argc, char *argv[]) > { > int i; > char *stack; > if (fork() || fork() || setsid() == EOF || pipe(pipe_fd)) > _exit(0); > stack = mmap(NULL, STACKSIZE * NUMTHREADS, PROT_WRITE | PROT_READ, >

Re: [PATCH 01/10] staging: ccree: remove inline qualifiers

2017-12-07 Thread Dan Carpenter
On Thu, Dec 07, 2017 at 09:00:11AM +0200, Gilad Ben-Yossef wrote: > On Mon, Dec 4, 2017 at 11:36 AM, Dan Carpenter > wrote: > > On Sun, Dec 03, 2017 at 01:58:12PM +, Gilad Ben-Yossef wrote: > >> The ccree drivers was marking a lot of big functions in C file as > >> static inline for no good r

Re: [PATCH] ACPI / GED: unregister interrupts during shutdown

2017-12-07 Thread Greg Kroah-Hartman
On Thu, Dec 07, 2017 at 12:19:25AM +0100, Rafael J. Wysocki wrote: > Hi Greg, > > On Wed, Dec 6, 2017 at 6:16 PM, Rafael J. Wysocki wrote: > > On Wed, Dec 6, 2017 at 5:55 PM, Sinan Kaya wrote: > >> On 12/6/2017 11:41 AM, Rafael J. Wysocki wrote: > >>> On Wed, Dec 6, 2017 at 5:11 PM, Sinan Kaya

[PATCH v3] KVM: X86: Fix load RFLAGS w/o the fixed bit

2017-12-07 Thread Wanpeng Li
From: Wanpeng Li *** Guest State *** CR0: actual=0x0030, shadow=0x6010, gh_mask=fff7 CR4: actual=0x2050, shadow=0x, gh_mask=e871 CR3 = 0xfffbc000 RSP = 0x RIP = 0x RFLAGS=0

Re: [PATCH v2] KVM: X86: Fix load RFLAGS w/o the fixed bit

2017-12-07 Thread Wanpeng Li
2017-12-07 1:28 GMT+08:00 David Hildenbrand : > On 06.12.2017 15:40, David Hildenbrand wrote: >> On 06.12.2017 12:59, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> *** Guest State *** >>> CR0: actual=0x0030, shadow=0x6010, >>> gh_mask=fff7 >>> CR4: actual=0

Re: [PATCH] video: hd44780: Add hd44780 lcd display driver

2017-12-07 Thread Lars Poeschel
On Wed, Dec 6, 2017 at 16:04:10 CET Geert Uytterhoeven wrote: > Hi Lars, > > On Wed, Dec 6, 2017 at 2:52 PM, Lars Poeschel wrote: > > This adds a console driver for hd44780 based character lcd displays and > > clones. The driver currently supports 20x4 character displays with > > character ROMs A

Re: [patch 31/60] x86/mm/kpti: Add mapping helper functions

2017-12-07 Thread Borislav Petkov
On Tue, Dec 05, 2017 at 05:01:34PM +0100, Borislav Petkov wrote: > > +/* > > + * Take a PGD location (pgdp) and a pgd value that needs to be set there. > > + * Populates the user and returns the resulting PGD that must be set in > > + * the kernel copy of the page tables. > > + */ > > +static inlin

Re: [PATCH] mm: terminate shrink_slab loop if signal is pending

2017-12-07 Thread Michal Hocko
On Wed 06-12-17 11:20:26, Suren Baghdasaryan wrote: > Slab shrinkers can be quite time consuming and when signal > is pending they can delay handling of the signal. If fatal > signal is pending there is no point in shrinking that process > since it will be killed anyway. This change checks for pend

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Dan Carpenter
On Thu, Dec 07, 2017 at 08:40:07AM +0100, Geert Uytterhoeven wrote: > Hi Alan, > > On Wed, Dec 6, 2017 at 11:02 PM, Alan Stern wrote: > > On Wed, 6 Dec 2017, SF Markus Elfring wrote: > >> >>> Does the existing memory allocation error message include the > >> >>> &udev->dev device name and driver

Re: [PATCH] Scheduler: Removed first parameter from prepare_lock_switch

2017-12-07 Thread Peter Zijlstra
On Wed, Dec 06, 2017 at 09:50:19PM -0200, Rodrigo Siqueira wrote: > > Yes, this is correct. However it had me looking at that code and pretty > > much everything else is completely wrong :-) > > > > That is, its functionally correct (probably), but the function name is > > not descriptive of what

Re: [PATCH v2 34/35] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-12-07 Thread Daniel Lezcano
On 27/11/2017 13:28, Greentime Hu wrote: > From: Rick Chen > > Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. > It often be used in Andestech AE3XX platform. > > Signed-off-by: Rick Chen > Signed-off-by: Greentime Hu > --- > drivers/clocksource/Kconfig |6 ++ > drivers

Re: [PATCH v4 3/4] clk: meson-axg: add clock controller drivers

2017-12-07 Thread Neil Armstrong
On 01/12/2017 02:24, Yixun Lan wrote: > From: Qiufang Dai > > Add clock controller drivers for Amlogic Meson-AXG SoC. > > Signed-off-by: Qiufang Dai > Signed-off-by: Yixun Lan > --- > arch/arm64/Kconfig.platforms | 1 + > drivers/clk/meson/Kconfig| 8 + > drivers/clk/meson/Makefile

Re: [PATCH v2 34/35] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-12-07 Thread Daniel Lezcano
On 28/11/2017 03:53, Greentime Hu wrote: > 2017-11-27 22:11 GMT+08:00 Arnd Bergmann : >> On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: >>> From: Rick Chen >>> >>> Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. >>> It often be used in Andestech AE3XX platform. >>> >>> Signed-

Re: [PATCH v2] firmware: qcom: scm: Fix incorrect of_node_put call in scm_init

2017-12-07 Thread Jerome Forissier
On 12/06/2017 09:06 PM, Stephen Boyd wrote: > On 12/06, Loys Ollivier wrote: >> When using other platform architectures, in the init of the qcom_scm >> driver, of_node_put is called on /firmware if no qcom dt is found. >> This results in a kernel error: Bad of_node_put() on /firmware. >> >> The c

Re: [PATCH] fs/proc/kcore.c: use probe_kernel_read() instead of memcpy()

2017-12-07 Thread Heiko Carstens
On Wed, Dec 06, 2017 at 04:43:50PM -0800, Andrew Morton wrote: > On Sat, 2 Dec 2017 14:27:39 +0100 Heiko Carstens > wrote: > > > git commit df04abfd181a ("fs/proc/kcore.c: Add bounce buffer for ktext > > data") added a bounce buffer to avoid hardened usercopy > > checks. Copying to the bounce b

Re: [PATCH 1/1] zram: better utilization of zram swap space

2017-12-07 Thread Sergey Senozhatsky
On (12/07/17 13:52), Gopi Sai Teja wrote: > If the length of the compressed page is greater than 75% of the PAGE_SIZE, > then the page is stored uncompressed in zram space. Zram space utilization > is improved if the threshold is 80%(5 compressed pages can be stored in > 4 pages). > > If the compr

Re: Multiple oom_reaper BUGs: unmap_page_range racing with exit_mmap

2017-12-07 Thread Michal Hocko
On Thu 07-12-17 09:28:01, Michal Hocko wrote: [...] > oom_reaperoom_victim task > mmget_not_zero > exit_mmap bleh, this should have been do_exit > mmput > __oom_reap_task_mm

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Geert Uytterhoeven
Hi Dan, On Thu, Dec 7, 2017 at 9:35 AM, Dan Carpenter wrote: > On Thu, Dec 07, 2017 at 08:40:07AM +0100, Geert Uytterhoeven wrote: >> On Wed, Dec 6, 2017 at 11:02 PM, Alan Stern >> wrote: >> > On Wed, 6 Dec 2017, SF Markus Elfring wrote: >> >> >>> Does the existing memory allocation error messa

Re: [PATCH v2 33/35] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-07 Thread Daniel Lezcano
On 27/11/2017 13:28, Greentime Hu wrote: > From: Rick Chen > > ATCPIT100 is often used on the Andes architecture, > This timer provide 4 PIT channels. Each PIT channel is a > multi-function timer, can be configured as 32,16,8 bit timers > or PWM as well. > > For system timer it will set channel

Re: [PATCH 1/2] arm64: defconfig: enable MUSB HDRC along with Allwinner glue

2017-12-07 Thread Maxime Ripard
On Wed, Dec 06, 2017 at 11:19:58PM +0530, Jagan Teki wrote: > Allwinner SoCs typically have a Mentor Graphics Inventra MUSB > dual role controller for USB OTG. This is need for verifying > gadget functions, so enable them by default. > > Tested 'otg' mode with mass storage function. > > Signed-of

Re: [PATCH v4 6/9] drm/i915: Make use of indexed write GMBUS feature

2017-12-07 Thread Daniel Vetter
On Wed, Dec 06, 2017 at 07:00:09PM -0500, Sean Paul wrote: > This patch enables the indexed write feature of the GMBUS to concatenate > 2 consecutive messages into one. The criteria for an indexed write is > that both messages are writes, the first is length == 1, and the second > is length > 0. Th

[PATCH net-next 0/6] net: mvpp2: various improvements

2017-12-07 Thread Antoine Tenart
Hi all, These patches are sent as a series to avoid any possible conflict, even though there're not entirely related. I can send them separately if needed. The series applies on today's net-next tree. Patches 1-2 improve the TSO support, with one logic update: if the TSO related buffers can't be

[PATCH net-next 6/6] net: mvpp2: adjust the coalescing parameters

2017-12-07 Thread Antoine Tenart
This patch adjust the coalescing parameters to the vendor recommendations for the PPv2 network controller. Suggested-by: Yan Markman Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/etherne

[PATCH net-next 2/6] net: mvpp2: disable TSO if its buffers cannot be allocated

2017-12-07 Thread Antoine Tenart
This patch changes the PPv2 behaviour when the TSO specific headers cannot be allocated. In such cases the driver was previously failing and the interface wasn't enabled while only the TSO feature is disabled now and a warning message is shown. Such memory allocation failures can happen when DMA_C

[PATCH net-next 1/6] net: mvpp2: only free the TSO header buffers when it was allocated

2017-12-07 Thread Antoine Tenart
This patch adds a check to only free the TSO header buffer when its allocation previously succeeded. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/dri

[PATCH net-next 5/6] net: mvpp2: report the tx-usec coalescing information to ethtool

2017-12-07 Thread Antoine Tenart
This patch adds the tx-usec value to the informations reported to ethtool by the get_coalesce function. Suggested-by: Yan Markman Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/dr

Re: [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-07 Thread Quentin Schulz
Hi Maxime, On 05/12/2017 09:08, Maxime Ripard wrote: > On Mon, Dec 04, 2017 at 03:12:49PM +0100, Quentin Schulz wrote: >> This makes the axp20x_adc driver probe with platform device id >> "axp813-adc". >> >> Signed-off-by: Quentin Schulz >> --- >> drivers/mfd/axp20x.c | 4 +++- >> 1 file changed

Re: [PATCH] drm/sun4i: Fix uninitialized variables in vi layer

2017-12-07 Thread Maxime Ripard
Hi, On Wed, Dec 06, 2017 at 04:26:03PM +0100, Jernej Skrabec wrote: > min_scale and max_scale in sun8i_vi_layer_atomic_check() can be used > without initialization. > > Fix that. > > Fixes:b862a648de3b (drm/sun4i: Add support for HW scaling to DE2) > > Signed-off-by: Jernej Skrabec I'

[PATCH net-next 4/6] net: mvpp2: align values in ethtool get_coalesce

2017-12-07 Thread Antoine Tenart
Cosmetic patch aligning values in the ethtool get_coalesce function. This patch do not modify in anyway the driver's behaviour. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ma

[PATCH net-next 3/6] net: mvpp2: split the max ring size from the default one

2017-12-07 Thread Antoine Tenart
From: Yan Markman The Rx/Tx ring sizes can be adjusted thanks to ethtool given specific network needs. This commit splits the default ring size from its max value to allow ethtool to vary the parameters in both ways. Signed-off-by: Yan Markman [Antoine: commit message] Signed-off-by: Antoine Te

Re: [PATCH RT] vfio-pci: Set MSI/MSI-X ISR to non-threaded

2017-12-07 Thread Steven Rostedt
On Thu, 7 Dec 2017 01:27:03 + "Su, David W" wrote: > >And spin_lock() turns into a mutex in PREEMPT_RT, which means it can > >sleep. You can't sleep in hard interrupt context. This will eventually > >crash the kernel. > > Steve, thanks for your review and comment. > > I can think of 2 sce

[PATCH] soc: fsl: support GUTS driver for ls1012a/ls1046a

2017-12-07 Thread Yangbo Lu
This patch is to add compatible strings "fsl,ls1021a-dcfg" and "fsl,ls1043a-dcfg" into device match table of GUTS driver. Signed-off-by: Yangbo Lu --- drivers/soc/fsl/guts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index d89a6a80c8ef..

Re: [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-07 Thread Chen-Yu Tsai
On Thu, Dec 7, 2017 at 4:51 PM, Quentin Schulz wrote: > Hi Maxime, > > On 05/12/2017 09:08, Maxime Ripard wrote: >> On Mon, Dec 04, 2017 at 03:12:49PM +0100, Quentin Schulz wrote: >>> This makes the axp20x_adc driver probe with platform device id >>> "axp813-adc". >>> >>> Signed-off-by: Quentin Sc

Re: [PATCH v6 03/17] mfd: madera: Add common support for Cirrus Logic Madera codecs

2017-12-07 Thread Linus Walleij
On Mon, Dec 4, 2017 at 10:47 AM, Richard Fitzgerald wrote: > On 02/12/17 12:10, Linus Walleij wrote: >> On Wed, Nov 29, 2017 at 12:36 PM, Richard Fitzgerald >> wrote: >>> On 29/11/17 10:18, Linus Walleij wrote: On Thu, Nov 23, 2017 at 6:13 PM, Richard Fitzgerald wrote: > +conf

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Greg Kroah-Hartman
On Thu, Dec 07, 2017 at 09:45:38AM +0100, Geert Uytterhoeven wrote: > A few comments (this is in response to a patch from Markus, so there have > to be lots of questions and uncertainties ;-) Note, because of the patch author, I'm not applying it no matter what, so this discussion is really going

Re: [PATCH] gpio: gpio-reg: fix build

2017-12-07 Thread Linus Walleij
On Wed, Dec 6, 2017 at 6:37 PM, Grygorii Strashko wrote: > Revert changes introduced by commit f0fbe7bce733 ("gpio: Move irqdomain > into struct gpio_irq_chip") as they are not aplicable to this driver. > > Cc: Russell King - ARM Linux > Fixes: f0fbe7bce733 ("gpio: Move irqdomain into struct gpi

Re: [PATCH] tpm: return a TPM_RC_COMMAND_CODE response if a command isn't implemented

2017-12-07 Thread Javier Martinez Canillas
Hello Jarkko, On 12/07/2017 02:32 AM, Jarkko Sakkinen wrote: > On Mon, Nov 27, 2017 at 12:30:12AM +0100, Javier Martinez Canillas wrote: >> According to the TPM Library Specification, a TPM device must do a command >> header validation before processing and return a TPM_RC_COMMAND_CODE code >> if

Re: [PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-07 Thread Linus Walleij
On Mon, Dec 4, 2017 at 6:08 PM, Colin King wrote: > From: Colin Ian King > > In the (unlikely) event that community->ngpps is zero, or if every > gpp->gpio_base is less than zero, then an ininitialized value in > ret is returned by function intel_gpio_add_pin_ranges. Fix this by > ensuring ret i

[PATCH V2] ACPI / LPSS: Add device link for CHT SD card dependency on I2C

2017-12-07 Thread Adrian Hunter
Some Cherry Trail boards have a dependency between the SDHCI host controller used for SD cards and an external PMIC accessed via I2C. Add a device link between the SDHCI host controller (consumer) and the I2C adapter (supplier). This patch depends on a fix to devices links, namely commit 0ff26c662

Re: [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-07 Thread Quentin Schulz
Hi Chen-Yu, On 07/12/2017 09:54, Chen-Yu Tsai wrote: > On Thu, Dec 7, 2017 at 4:51 PM, Quentin Schulz > wrote: >> Hi Maxime, >> >> On 05/12/2017 09:08, Maxime Ripard wrote: >>> On Mon, Dec 04, 2017 at 03:12:49PM +0100, Quentin Schulz wrote: This makes the axp20x_adc driver probe with platfor

Re: [PATCH v2] ARM: dts: sun8i: h3: enable USB OTG for NanoPi Neo board

2017-12-07 Thread Maxime Ripard
On Tue, Dec 05, 2017 at 11:03:58PM +0100, Krzysztof Adamski wrote: > Similarly to Orange Pi Zero, NanoPi Neo board has an USB OTG port with > an ID pin but with unpowered VBUS. This patch enables this port in > forced peripheral mode. > > ohci/ehci nodes are still enabled since the host mode may w

Re: [PATCH 8/9] ARM: dts: imx7-colibri: add MCP2515 CAN controller

2017-12-07 Thread Stefan Agner
On 2017-12-06 16:30, Stefan Agner wrote: > The Colibri Evaluation Carrier Board provides a MCP2515 CAN > controller connected via SPI. Note that the i.MX 7 provides > an internal CAN controller which is much better suited for CAN > operations. Using the MCP2515 with a Colibri iMX7 module is > mainl

Re: [PATCH] btrfs: tree-checker: use %zu format string for size_t

2017-12-07 Thread Arnd Bergmann
On Thu, Dec 7, 2017 at 1:32 AM, Qu Wenruo wrote: > > > On 2017年12月06日 22:18, Arnd Bergmann wrote: >> The return value of sizeof() is of type size_t, so we must print it >> using the %z format modifier rather than %l to avoid this warning >> on some architectures: >> >> fs/btrfs/tree-checker.c: In

Re: [PATCH 2/2] clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks

2017-12-07 Thread Maxime Ripard
On Thu, Dec 07, 2017 at 12:10:39AM +0800, Chen-Yu Tsai wrote: > On Wed, Dec 6, 2017 at 11:56 PM, Maxime Ripard > wrote: > > Hi, > > > > On Wed, Dec 06, 2017 at 10:30:26AM +0800, Chen-Yu Tsai wrote: > >> On Wed, Dec 6, 2017 at 3:59 AM, Maxime Ripard > >> wrote: > >> > Hi, > >> > > >> > On Mon, Dec

Re: [PATCH v5 00/11] add pinmuxing support for pins in AXP209 and AXP813 PMICs

2017-12-07 Thread Linus Walleij
On Tue, Dec 5, 2017 at 3:46 PM, Quentin Schulz wrote: > The AXP209 and AXP813 PMICs have several pins (respectively 3 and 2) that can > be used either as GPIOs or for other purposes (ADC or LDO here). > > We already have a GPIO driver for the GPIO use of those pins on the AXP209. > Let's "upgrade

Re: [PATCH net-next] bnxt: Don't print message, if DAC isn't connected on both ends

2017-12-07 Thread Thomas Bogendoerfer
On Wed, 6 Dec 2017 11:27:31 -0800 Michael Chan wrote: > On Tue, Dec 5, 2017 at 4:33 AM, Thomas Bogendoerfer > wrote: > > bnxt driver spams logfiles with > > > > [ 541.003065] bnxt_en :5d:00.1 eth5: Link speed -1 no longer supported > > > > if a direct attached cable (DAC) is plugged into th

Re: [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-07 Thread Chen-Yu Tsai
On Thu, Dec 7, 2017 at 5:03 PM, Quentin Schulz wrote: > Hi Chen-Yu, > > On 07/12/2017 09:54, Chen-Yu Tsai wrote: >> On Thu, Dec 7, 2017 at 4:51 PM, Quentin Schulz >> wrote: >>> Hi Maxime, >>> >>> On 05/12/2017 09:08, Maxime Ripard wrote: On Mon, Dec 04, 2017 at 03:12:49PM +0100, Quentin Schu

Re: [PATCH] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding

2017-12-07 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Wed, Dec 06, 2017 at 05:5

Re: [PATCH] scsi: bfa: fix type conversion warning

2017-12-07 Thread Johannes Thumshirn
Thanks Arnd, 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

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Oliver Neukum
Am Donnerstag, den 07.12.2017, 09:56 +0100 schrieb Greg Kroah-Hartman: > On Thu, Dec 07, 2017 at 09:45:38AM +0100, Geert Uytterhoeven wrote: > > > > A few comments (this is in response to a patch from Markus, so there have > > to be lots of questions and uncertainties ;-) > > Note, because of the

Re: [PATCH V3] spi: sun4i: disable clocks in the remove function

2017-12-07 Thread Maxime Ripard
Hi, On Thu, Dec 07, 2017 at 04:20:14PM +0900, Takuo Koguchi wrote: > mclk and hclk need to be disabled. Since pm_runtime_disable does > not disable the clocks, use pm_runtime_force_suspend instead. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Takuo Koguch

Re: [PATCH] scsi: bfa: fix type conversion warning

2017-12-07 Thread Hannes Reinecke
On Wed, 6 Dec 2017 15:14:18 +0100 Arnd Bergmann wrote: > A regression fix introduced a harmless type mismatch warning: > > drivers/scsi/bfa/bfad_bsg.c: In function 'bfad_im_bsg_vendor_request': > drivers/scsi/bfa/bfad_bsg.c:3137:35: error: initialization of 'struct > bfad_im_port_s *' from 'lon

Re: [PATCH v2 0/8] arm64: Add initial Actions Semi S700 and CubieBoard7 support

2017-12-07 Thread Daniel Lezcano
On 14/11/2017 00:34, Andreas Färber wrote: > Hello, > > This series prepares the Actions Semi S700 SoC and Cubietech CubieBoard7. > It boots equally far as the S900 based Bubblegum-96 these patches are based > on, > i.e. into an initrd with serial and all four cores up. > > v2 modifies the clock

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

2017-12-07 Thread Christian Borntraeger
On 12/07/2017 12:29 AM, Christoph Hellwig wrote: > On Wed, Dec 06, 2017 at 01:25:11PM +0100, Christian Borntraeger wrote: > t > commit 11b2025c3326f7096ceb588c3117c7883850c068-> bad >> blk-mq: create a blk_mq_ctx for each possible CPU >> does not boot on DASD and >> commit 9c6ae239e01ae9

Re: [PATCH 1/3] crypto: exynos - Support Exynos5250+ SoCs

2017-12-07 Thread Łukasz Stelmach
It was <2017-12-06 śro 16:28>, when Krzysztof Kozlowski wrote: > On Wed, Dec 6, 2017 at 3:53 PM, Łukasz Stelmach > wrote: >> It was <2017-12-06 śro 15:05>, when Krzysztof Kozlowski wrote: >>> On Wed, Dec 6, 2017 at 2:42 PM, Łukasz Stelmach >>> wrote: It was <2017-12-05 wto 14:34>, when Krz

Re: [PATCH v2 4/8] clocksource: owl: Prepare S700

2017-12-07 Thread Daniel Lezcano
On 05/12/2017 00:00, Andreas Färber wrote: > Hi Daniel, > > Am 14.11.2017 um 00:34 schrieb Andreas Färber: >> Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900. >> >> Signed-off-by: Andreas Färber >> --- >> v1 -> v2: >> * Adopted TIMER_OF_DECLARE() (Daniel) >> >> driv

Re: [PATCH net-next] bnxt: Don't print message, if DAC isn't connected on both ends

2017-12-07 Thread Michael Chan
On Thu, Dec 7, 2017 at 1:14 AM, Thomas Bogendoerfer wrote: > On Wed, 6 Dec 2017 11:27:31 -0800 > Michael Chan wrote: > >> On Tue, Dec 5, 2017 at 4:33 AM, Thomas Bogendoerfer >> wrote: >> > bnxt driver spams logfiles with >> > >> > [ 541.003065] bnxt_en :5d:00.1 eth5: Link speed -1 no longer

Re: [PATCH v3] KVM: X86: Fix load RFLAGS w/o the fixed bit

2017-12-07 Thread Quan Xu
On 2017/12/07 16:30, Wanpeng Li wrote: From: Wanpeng Li *** Guest State *** CR0: actual=0x0030, shadow=0x6010, gh_mask=fff7 CR4: actual=0x2050, shadow=0x, gh_mask=e871 CR3 = 0xfffbc000 RSP = 0x

Re: [PATCH v3 6/6] cpufreq: schedutil: ignore sugov kthreads

2017-12-07 Thread Viresh Kumar
On 30-11-17, 16:42, Patrick Bellasi wrote: > On 30-Nov 17:12, Juri Lelli wrote: > > Not sure about this though, not my call :). I guess this still helps > > until we get the DL changes in. > > Yes, agree... well Viresh had some concerns about this patch. > Let see what he thinks. And the problem

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

2017-12-07 Thread Corentin Labbe
On Wed, Dec 06, 2017 at 11:02:23AM +, Fabien DESSENNE wrote: > > > On 29/11/17 09:41, 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 Labb

[PATCH] drm/i915: Increase max texture to 16k for gen9+

2017-12-07 Thread Alex Tu
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue : - https://bugs.freedesktop.org/show_bug.cgi?id=102508 - LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI) [1] https://patchwork.freedesktop.org/patch/124918/ Signed-off-by: Alex Tu --- drivers/gpu

[PATCH] spi: jcore: disable clock when registering spi conroller failed When probe function fails in registering the spi controller, the clock should remain disabled.

2017-12-07 Thread Takuo Koguchi
Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- Compiled test only, no runtime test done. drivers/spi/spi-jcore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-jcore.c b/drivers/spi/spi-jcore.c index cebf

Re: 答复: [PATCH] mfd: Fix RTS5227 (and others) powermanagement

2017-12-07 Thread Lee Jones
On Thu, 07 Dec 2017, 冯锐 wrote: > > Hi, > > > > On 06-12-17 12:21, Hans de Goede wrote: > > > Commit 8275b77a1513 ("mfd: rts5249: Add support for RTS5250S power > > > saving") adds powersaving support for device-ids 5249 524a and 525a. > > > > > > But as a side effect it breaks ASPM support for al

Re: [PATCH 0/1] About MIPS/Loongson maintainance

2017-12-07 Thread Jiaxun Yang
On 2017-12-07 07:57 +0100,Greg Kroah-Hartman wrote: > On Thu, Dec 07, 2017 at 02:31:07PM +0800, Huacai Chen wrote: > > Hi, Linus, Stephen, Greg, Ralf and James, > > > > We are kernel developers from Lemote Inc. and Loongson community. > > We > > have already made some contributions in Linux kernel

Re: [PATCH v5 3/3] platform/chrome: Register cros_ec_accel_legacy driver

2017-12-07 Thread Lee Jones
On Fri, 01 Dec 2017, Gwendal Grignou wrote: > Checked against 3bf98755f9c670c5c10ca05cba22848d65117cb2 (CHROMIUM: > iio: accel: Add cros_ec_accel_legacy driver) > > Fixup f2b141a242e59017dbc774dc916748670a41da0b (FIXUP: CHROMIUM: iio: > accel: Add cros_ec_accel_legacy driver) is required for devi

[PATCH] spi: jcore: disable clock when registering spi conroller

2017-12-07 Thread Takuo Koguchi
failed When probe function fails in registering the spi controller, the clock should remain disabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- Compiled test only, no runtime test done. drivers/spi/spi-jcore.c | 4 +++- 1 file changed,

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Dan Carpenter
On Thu, Dec 07, 2017 at 09:45:38AM +0100, Geert Uytterhoeven wrote: > > > > Small allocations never fail in the current kernel. > > A few comments (this is in response to a patch from Markus, so there have > to be lots of questions and uncertainties ;-) > 1. In the current kernel. What about the f

[PATCH v1 1/5] siox: new driver framework for eckelmann SIOX

2017-12-07 Thread Uwe Kleine-König
SIOX is a bus system invented at Eckelmann AG to control their building management and refrigeration systems. Traditionally the bus was implemented on custom microcontrollers, today Linux based machines are in use, too. The topology on a SIOX bus looks as follows: ,--->--DCLK-->

[PATCH v1 0/5] siox: add support for new bus type

2017-12-07 Thread Uwe Kleine-König
Hello, this series adds a new bus type for SIOX devices. I already sent a similar series a few years ago; since then the subsystem got more mature and is operated with this code base in the field. For the device tree doc changes I'm unsure if I should split them in separate patches, please advice

[PATCH v1 5/5] MAINTAINERS: Add entry for SIOX

2017-12-07 Thread Uwe Kleine-König
Maintenance is split between Gavin who works for Eckelmann and so has the functional authority, knows the background and history of this bus system and me who designed most of the actual code with the old microcontroller code as reference. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König -

[PATCH v1 2/5] siox: add support for tracing

2017-12-07 Thread Uwe Kleine-König
Implement tracing for SIOX. There are events for the data that is written to the bus and for data being read from it. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König --- drivers/siox/siox-core.c| 13 + include/trace/events/siox.h | 66 +

[PATCH v1 4/5] gpio: new driver to work with a 8x12 siox

2017-12-07 Thread Uwe Kleine-König
This driver controls a SIOX device that provides 20 I/O lines. The first twelve are fixed inputs, the remaining eight are outputs. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König --- drivers/gpio/Kconfig | 8 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-siox.c | 293 +

[PATCH v1 3/5] siox: add gpio bus driver

2017-12-07 Thread Uwe Kleine-König
This bus driver uses GPIOs to control the four SIOX bus lines. Acked-by: Gavin Schenk Signed-off-by: Uwe Kleine-König --- .../bindings/siox/eckelmann,siox-gpio.txt | 19 +++ .../devicetree/bindings/vendor-prefixes.txt| 1 + drivers/siox/Kconfig

[PATCH] spi: jcore: disable clock when registering spi conroller failed

2017-12-07 Thread Takuo Koguchi
When probe function fails in registering the spi controller, the clock should remain disabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- Compiled test only, no runtime test done. drivers/spi/spi-jcore.c | 4 +++- 1 file changed, 3 inser

Re: [PATCH v2] firmware: qcom: scm: Fix incorrect of_node_put call in scm_init

2017-12-07 Thread Loys Ollivier
On 07/12/2017 09:42, Jerome Forissier wrote: > > > On 12/06/2017 09:06 PM, Stephen Boyd wrote: >> On 12/06, Loys Ollivier wrote: >>> When using other platform architectures, in the init of the qcom_scm >>> driver, of_node_put is called on /firmware if no qcom dt is found. >>> This results in a

Re: [PATCH] cpufreq: longhaul: Set transition_delay_us to 20 ms

2017-12-07 Thread Viresh Kumar
On 07-12-17, 09:26, Meelis Roos wrote: > > On 06-12-17, 20:21, Meelis Roos wrote: > > > 3 was not reliable. > > > > > > I created root cron job > > > @reboot sleep 120; /sbin/reboot > > > > > > and by the evening it was dead again. > > > > > > Will try 5 tomorrow. > > > > Lets make it s

Re: [PATCH v5 9/9] mfd: axp20x: add pinctrl cell for AXP813

2017-12-07 Thread Lee Jones
On Tue, 05 Dec 2017, Quentin Schulz wrote: > As GPIO/pinctrl driver now supports AXP813, add a cell for it. > > Signed-off-by: Quentin Schulz > Acked-by: Maxime Ripard > Acked-by: Linus Walleij > Acked-for-MFD-by: Lee Jones > --- > drivers/mfd/axp20x.c | 3 +++ > 1 file changed, 3 insertions

答复: 答复: [PATCH] mfd: Fix RTS5227 (and others) powermanagement

2017-12-07 Thread 冯锐
> On Thu, 07 Dec 2017, 冯锐 wrote: > > > > Hi, > > > > > > On 06-12-17 12:21, Hans de Goede wrote: > > > > Commit 8275b77a1513 ("mfd: rts5249: Add support for RTS5250S power > > > > saving") adds powersaving support for device-ids 5249 524a and 525a. > > > > > > > > But as a side effect it breaks AS

[no subject]

2017-12-07 Thread Alexander Kappner
Date: Wed, 6 Dec 2017 15:28:37 -0800 Subject: [PATCH] usb-core: Fix potential null pointer dereference in xhci-debugfs.c My kernel crashed just after resuming from hibernate and starting usbmuxd (a user-space daemon for iOS device pairing) with several USB devices connected (dmesg attached). Bac

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

2017-12-07 Thread Corentin Labbe
On Wed, Dec 06, 2017 at 10:59:47AM +, Fabien DESSENNE wrote: > Hi Corentin, > > > I am fine with this proposal: it is generic enough and I have been able > to test and run the crypto engine with aead_request without changing any > single line of code. > > This is what I need to be able to

  1   2   3   4   5   6   7   8   9   10   >