Re: [PATCH V4 11/26] iommu/amd: deprecate pci_get_bus_and_slot()

2018-01-17 Thread Joerg Roedel
On Tue, Dec 19, 2017 at 12:37:47AM -0500, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting ready to remove pci_get_bus_and_slot() functi

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

2018-01-17 Thread Petr Mladek
On Wed 2018-01-17 11:18:56, Sergey Senozhatsky wrote: > On (01/16/18 10:45), Steven Rostedt wrote: > [..] > > > [1] https://marc.info/?l=linux-mm&m=145692016122716 > > > > Especially since Konstantin is working on pulling in all LKML archives, > > the above should be denoted as: > > > > Link: >

Re: [PATCH] gitignore: add *.gcda files

2018-01-17 Thread Peter Oberparleiter
On 09.01.2018 06:17, Jaejoong Kim wrote: > 2017-12-20 16:09 GMT+09:00 Jaejoong Kim : >> Ignore the *.gcda files generated by gcov >> >> Signed-off-by: Jaejoong Kim >> --- >> .gitignore | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/.gitignore b/.gitignore >> index 0c39aa2..580ef7c 10

Re: UBSAN: Undefined behaviour in net/wireless/nl80211.c:718:4: -1665903437 * 100 cannot be represented in type 'int'

2018-01-17 Thread Johannes Berg
On Wed, 2018-01-17 at 13:22 +0100, Paul Menzel wrote: > > Yes it does. Thank you. Rebuilding Linux 4.15-rc8+ with this patch > applied, the UBSAN doesn’t report this issue anymore. Thanks for testing, the patch is on its way to get to 4.15 (hopefully) johannes

Re: [RFC] mm: why vfree() do not free page table memory?

2018-01-17 Thread Vlastimil Babka
On 01/17/2018 10:48 AM, Xishi Qiu wrote: > On 2018/1/17 17:16, Vlastimil Babka wrote: > >> On 12/29/2017 09:58 AM, Xishi Qiu wrote: >>> When calling vfree(), it calls unmap_vmap_area() to clear page table, >>> but do not free the memory of page table, why? just for performance? >> >> I guess it's

[PATCH] perf record: Fix failed memory allocation for get_cpuid_str

2018-01-17 Thread Thomas Richter
In x86 architecture dependend part function get_cpuid_str() mallocs a 128 byte buffer, but does not check if the memory allocation succeeded or not. When the memory allocation fails, function __get_cpuid() is called with first parameter being a NULL pointer. However this function references its fir

Re: [PATCH] MIPS: use generic GCC library routines from lib/

2018-01-17 Thread Antony Pavlov
On Wed, 17 Jan 2018 09:03:48 + Matt Redfearn wrote: > Hi, > > On Wed, Jan 17, 2018 at 09:51:21AM +0300, Antony Pavlov wrote: > > The commit b35cd9884fa5 ("lib: Add shared copies of > > some GCC library routines") makes it possible > > to share generic GCC library routines by several > > arch

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Robin Murphy
On 17/01/18 12:25, Dave Martin wrote: On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: When a CPU is brought up after we have finalised the system wide capabilities (i.e, features and errata), we make sure the new CPU doesn't need a new errata work around which has not been dete

Re: [PATCH] drm/arm/malidp: Disable pixel alpha blending for colors that do not have alpha

2018-01-17 Thread Liviu Dudau
Hi Ayan, On Fri, Jan 12, 2018 at 04:33:07PM +, Ayan Halder wrote: > Mali dp needs to disable pixel alpha blending (use layer alpha blending) to > display color formats that do not contain alpha bits per pixel In the future, please mention any dependencies on other patches that are not part of

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Suzuki K Poulose
On 17/01/18 12:25, Dave Martin wrote: On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: When a CPU is brought up after we have finalised the system wide capabilities (i.e, features and errata), we make sure the new CPU doesn't need a new errata work around which has not been dete

Re: [PATCH] iommu/omap: Fix debugfs_create_*() usage

2018-01-17 Thread Joerg Roedel
On Tue, Jan 02, 2018 at 04:29:45PM +0100, Geert Uytterhoeven wrote: > When exposing data access through debugfs, the correct > debugfs_create_*() functions must be used, depending on data type. > > Remove all casts from data pointers passed to debugfs_create_*() > functions, as such casts prevent

[PATCH V1] tty: fix data race between tty_init_dev and flush of buf

2018-01-17 Thread Gaurav Kohli
There can be a race, if receive_buf call comes before tty initialization completes in n_tty_open and tty->disc_data may be NULL. CPU0CPU1 000|n_tty_receive_buf_common() n_tty_open() -001|n_tty_receive_buf2()

Re: powerpc/pseries: include linux/types.h in asm/hvcall.h

2018-01-17 Thread Michael Ellerman
On Mon, 2018-01-15 at 13:30:03 UTC, Michal Suchanek wrote: > Commit 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush > settings") uses u64 in asm/hvcall.h without including linux/types.h > > This breaks hvcall.h users that do not include the header themselves. > > Fixes: 6e032b350c

Re: [PATCH] tty: fix data race in n_tty_receive_buf_common

2018-01-17 Thread Kohli, Gaurav
On 1/6/2018 1:20 PM, Kohli, Gaurav wrote: On 1/6/2018 2:35 AM, Alan Cox wrote: On Sat, 6 Jan 2018 01:54:36 +0530 "Kohli, Gaurav" wrote: Hi Alan, Sorry correcting the typo here: +retval =  tty_ldisc_lock(tty, 5 * HZ); +if (retval) +     goto err_release_lock; tty->port->itty = tty; /* * St

Re: [PATCH 4/6] s390: add system call to run tasks with modified branch prediction

2018-01-17 Thread Heiko Carstens
On Wed, Jan 17, 2018 at 12:55:06PM +0100, Martin Schwidefsky wrote: > On Wed, 17 Jan 2018 12:14:52 +0100 > Christian Borntraeger wrote: > > > On 01/17/2018 11:03 AM, Florian Weimer wrote: > > > On 01/17/2018 10:48 AM, Martin Schwidefsky wrote: > > >> rc = syscall(__NR_s390_modify_bp);

Re: [REGRESSION] mux/gpio.c is not able to get any gpio pins

2018-01-17 Thread Linus Walleij
On Wed, Jan 17, 2018 at 11:39 AM, Peter Rosin wrote: > On 2018-01-17 10:35, Linus Walleij wrote: >> I would first try to add the gpio range in the DTS. Then the >> GPIO core will add the range (the code is in drivers/gpio/gpiolib-of.c) >> and everything will be happy. > > If I, in the above menti

Re: [PATCH] iommu/of: Only do IOMMU lookup for available ones

2018-01-17 Thread Joerg Roedel
On Wed, Jan 03, 2018 at 02:09:20PM +0800, Jeffy Chen wrote: > The for_each_matching_node_and_match() would return every matching > nodes including unavailable ones. > > It's pointless to init unavailable IOMMUs, so add a sanity check to > avoid that. > > Signed-off-by: Jeffy Chen > --- > > dri

Re: [PATCH 0/6] s390: improve speculative execution handling

2018-01-17 Thread Greg Kroah-Hartman
On Wed, Jan 17, 2018 at 10:48:33AM +0100, Martin Schwidefsky wrote: > @Greg: I have started with the backports for the stable kernel releases, > but unless the interface for gmp/nospec_ptr/nospec_load is cast in stone > does it make sense to send them? No, I can't take anything until it is in Linu

Re: [2/2] powerpc: make use of for_each_node_by_type() instead of open-coding it

2018-01-17 Thread Michael Ellerman
On Wed, 2017-02-01 at 01:54:38 UTC, Dmitry Torokhov wrote: > Instead of manually coding the loop with of_find_node_by_type(), let's > switch to the standard macro for iterating over nodes with given type. > > Also fixed a couple of refcount leaks in the aforementioned loops. > > Signed-off-by: Dm

Re: [1/8] powerpc/8xx: Remove CPU6 ERRATA Workaround

2018-01-17 Thread Michael Ellerman
On Fri, 2018-01-12 at 12:45:19 UTC, Christophe Leroy wrote: > CPU6 ERRATA affects only MPC860 revisions prior to C.0. Manufacturing > of those revisiosn was stopped in 1999-2000. > Therefore, it has been almost 20 years since this ERRATA has been > fixed in the silicon. > > This patch removes the

Re: powerpc/8xx: do not select CONFIG_PPC_LIB_RHEAP

2018-01-17 Thread Michael Ellerman
On Tue, 2018-01-16 at 07:29:49 UTC, Christophe Leroy wrote: > Since commit 0e6e01ff694ee ("CPM/QE: use genalloc to manage CPM/QE > muram"), rheap is not used anymore. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/9a3b849bfe5cba18492acf5add

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Greg KH
On Wed, Jan 17, 2018 at 02:00:28PM +0200, Heikki Krogerus wrote: > Hi Greg, > > On Wed, Jan 17, 2018 at 12:14:02PM +0100, Greg KH wrote: > > On Wed, Jan 17, 2018 at 01:08:58PM +0200, Heikki Krogerus wrote: > > > Hi, > > > > > > On Wed, Jan 17, 2018 at 09:30:45AM +, shufan_lee(?) wrote

[PATCH] ARC: ARCv2: CACHE: fix slc_entire_op: flush only instead of flush-n-inv

2018-01-17 Thread Eugeniy Paltsev
As for today slc_entire_op with OP_FLUSH command flush and invalidate SLC entry instead of flush only. Fix that. NOTE: As for today we use slc_entire_op only with OP_FLUSH_N_INV command, so it is kinda preventiv fix. Signed-off-by: Eugeniy Paltsev --- arch/arc/mm/cache.c | 5 - 1 file chang

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Suzuki K Poulose
On 17/01/18 13:20, Robin Murphy wrote: On 17/01/18 12:25, Dave Martin wrote: On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: When a CPU is brought up after we have finalised the system wide capabilities (i.e, features and errata), we make sure the new CPU doesn't need a new er

Re: [PATCH] perf record: Fix failed memory allocation for get_cpuid_str

2018-01-17 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 17, 2018 at 02:16:11PM +0100, Thomas Richter escreveu: > In x86 architecture dependend part function > get_cpuid_str() mallocs a 128 byte buffer, but does not > check if the memory allocation succeeded or not. > When the memory allocation fails, function __get_cpuid() > is called with f

Re: [PATCH v2 13/13] iommu/rockchip: Support sharing IOMMU between masters

2018-01-17 Thread JeffyChen
Hi Robin, On 01/17/2018 09:00 PM, Robin Murphy wrote: On 16/01/18 13:25, Jeffy Chen wrote: There would be some masters sharing the same IOMMU device. Put them in the same iommu group and share the same iommu domain. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/iommu/rockchip-

Re: powerpc/32: book3s - fix compile error with CONFIG_PPC_PTDUMP

2018-01-17 Thread Michael Ellerman
On Fri, 2017-12-08 at 16:34:29 UTC, Christophe Leroy wrote: > This patch remove CONFIG_PPC_HTDUMP if not PPC_BOOK3S_64 to avoid > below compile failure on BOOK3S_32: > > CC arch/powerpc/mm/dump_linuxpagetables.o > CC arch/powerpc/mm/dump_hashpagetable.o > In file included from arch/p

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Greg KH
On Wed, Jan 10, 2018 at 02:59:12PM +0800, ShuFanLee wrote: > +static inline void rt1711h_poll_ctrl(struct rt1711h_chip *chip) > +{ > + cancel_delayed_work_sync(&chip->poll_work); > + > + if (atomic_read(&chip->poll_count) == 0) { > + atomic_inc(&chip->poll_count); > +

Re: [PATCH v3] perf/trace : Fix repetitious traces of perf on tracepoint

2018-01-17 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 16, 2018 at 04:06:22PM +0100, Jiri Olsa escreveu: > On Tue, Jan 16, 2018 at 08:40:38PM +0800, Cheng Jian wrote: > > When i use perf to trace the sched_wakeup_new tracepoint, there is > > a bug that output the same event repetitiously. > > It can be reproduced by : > > > > #./test_f

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Greg KH
On Wed, Jan 10, 2018 at 02:59:12PM +0800, ShuFanLee wrote: > +static inline int rt1711h_reg_write_word(struct rt1711h_chip *chip, uint8_t > reg, > + uint16_t data) > +{ > + data = cpu_to_le16(data); > + return rt1711h_reg_block_write(chip, reg, 2, (uint8_t *)&data); > +} Did you run s

[PATCH 0/3] pinctrl: sx150x: fixes for the probe

2018-01-17 Thread Peter Rosin
Hi! This series mainly fixes the gpio interaction, as discussed in [1]. However, patch 1/3 addresses a problem that was not mentioned there. It should probably be sent to stable... Cheers, Peter [1] https://lkml.org/lkml/2018/1/16/952 Peter Rosin (3): pinctrl: sx150x: unregister the pinctrl o

[PATCH 2/3] pinctrl: sx150x: register pinctrl before adding the gpiochip

2018-01-17 Thread Peter Rosin
Various gpiolib activity depend on the pinctrl to be up and kicking. Therefore, register the pinctrl before adding a gpiochip. Suggested-by: Linus Walleij Signed-off-by: Peter Rosin --- drivers/pinctrl/pinctrl-sx150x.c | 35 +-- 1 file changed, 21 insertions(+),

[PATCH 3/3] pinctrl: sx150x: add a static gpio/pinctrl pin range mapping

2018-01-17 Thread Peter Rosin
Without such a range, gpiolib fails with -EPROBE_DEFER, pending the addition of the range. So, without a range, gpiolib will keep deferring indefinitely. Fixes: e10f72bf4b3e ("gpio: gpiolib: Generalise state persistence beyond sleep") Suggested-by: Linus Walleij Signed-off-by: Peter Rosin --- d

[PATCH 1/3] pinctrl: sx150x: unregister the pinctrl on release

2018-01-17 Thread Peter Rosin
There is no matching call to pinctrl_unregister, so switch to the managed devm_pinctrl_register to clean up properly when done. Fixes: 9e80f9064e73 ("pinctrl: Add SX150X GPIO Extender Pinctrl Driver") Signed-off-by: Peter Rosin --- drivers/pinctrl/pinctrl-sx150x.c | 2 +- 1 file changed, 1 inser

[PATCH] md/raid1: Fix trailing semicolon

2018-01-17 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards, Luis [0] http://dri

[PATCH v2] ARC: ARCv2: CACHE: fix slc_entire_op: flush only instead of flush-n-inv

2018-01-17 Thread Eugeniy Paltsev
As for today slc_entire_op with OP_FLUSH command flush and invalidate SLC entry instead of flush only. Fix that. NOTE: As for today we use slc_entire_op only with OP_FLUSH_N_INV command, so it is kinda preventiv fix. Signed-off-by: Eugeniy Paltsev --- V1 patch is for u-boot (with u-boot AUX regi

[PATCH] mmc: sh_mmcif: remove redundant initialization of 'opc'

2018-01-17 Thread Colin King
From: Colin Ian King Variable opc is initialized with a value that is never read, opc is later re-assigned a newer value, hence the initialization can be removed. Cleans up clang warning: drivers/mmc/host/sh_mmcif.c:919:6: warning: Value stored to 'opc' during its initialization is never read S

Re: [PATCH] print kdump kernel loaded status in stack dump

2018-01-17 Thread Petr Mladek
On Wed 2018-01-17 20:32:44, Dave Young wrote: > Hi, > > Thanks for your comments. > On 01/17/18 at 09:57am, Petr Mladek wrote: > > On Wed 2018-01-17 12:50:57, Dave Young wrote: > > > It is useful to print kdump kernel loaded status in dump_stack() > > > especially when panic happens so that we ca

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Greg KH
On Wed, Jan 10, 2018 at 02:59:12PM +0800, ShuFanLee wrote: > From: ShuFanLee > > Richtek RT1711H Type-C chip driver that works with > Type-C Port Controller Manager to provide USB PD and > USB Type-C functionalities. > > Signed-off-by: ShuFanLee Minor review of your main structure and your deb

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Robin Murphy
On 17/01/18 13:31, Suzuki K Poulose wrote: On 17/01/18 13:20, Robin Murphy wrote: On 17/01/18 12:25, Dave Martin wrote: On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: When a CPU is brought up after we have finalised the system wide capabilities (i.e, features and errata), we

Re: [PATCH v3 08/13] drm/sun4i: Add a driver for the display frontend

2018-01-17 Thread Chen-Yu Tsai
On Tue, Jan 9, 2018 at 6:09 PM, Maxime Ripard wrote: > The display frontend is an hardware block that can be used to implement > some more advanced features like hardware scaling or colorspace > conversions. It can also be used to implement the output format of the VPU. > > Let's create a minimal

Re: [PATCH] iommu/vt-d: use domain instead of cache fetching

2018-01-17 Thread Joerg Roedel
On Wed, Jan 10, 2018 at 01:51:37PM +0800, Peter Xu wrote: > after commit a1ddcbe93010 ("iommu/vt-d: Pass dmar_domain directly into > iommu_flush_iotlb_psi", 2015-08-12), we have domain pointer as parameter > to iommu_flush_iotlb_psi(), so no need to fetch it from cache again. > > More importantly,

Re: [PATCH v3 09/13] drm/sun4i: backend: Wire in the frontend

2018-01-17 Thread Chen-Yu Tsai
On Tue, Jan 9, 2018 at 6:09 PM, Maxime Ripard wrote: > Now that we have a driver, we can make use of it. This is done by > adding a flag to our custom plane state that will trigger whether we should > use the frontend on that particular plane or not. > > The rest is just plumbing to set up the bac

[PATCH v2] KVM: s390: wire up bpb feature

2018-01-17 Thread Christian Borntraeger
The new firmware interfaces for branch prediction behaviour changes are transparently available for the guest. Nevertheless, there is new state attached that should be migrated and properly resetted. Provide a mechanism for handling reset, migration and VSIE. Signed-off-by: Christian Borntraeger

Re: [PATCH 32/32] aio: implement io_pgetevents

2018-01-17 Thread Jeff Moyer
Christoph Hellwig writes: > On Wed, Jan 17, 2018 at 04:27:21AM +, Al Viro wrote: >> On Tue, Jan 16, 2018 at 07:41:24PM -0500, Jeff Moyer wrote: >> >if (sigmask) { >> > - if (copy_from_user(&ksigmask, sigmask, sizeof(ksigmask))) >> > + if (!access_ok(VERIFY_READ, sigmask,

Re: [PATCH v2] KVM: s390: wire up bpb feature

2018-01-17 Thread David Hildenbrand
On 17.01.2018 14:44, Christian Borntraeger wrote: > The new firmware interfaces for branch prediction behaviour changes > are transparently available for the guest. Nevertheless, there is > new state attached that should be migrated and properly resetted. > Provide a mechanism for handling reset, m

Re: [PATCH 32/32] aio: implement io_pgetevents

2018-01-17 Thread Jeff Moyer
Christoph Hellwig writes: > On Tue, Jan 16, 2018 at 07:41:24PM -0500, Jeff Moyer wrote: >> I'd be willing to bet the issue is in your io_syscall6 implementation. >> You pass in arg5 where arg6 should be used. Don't feel bad, it took me >> the better part of today to figure that out. :) >> >> H

Re: [PATCH 4.9 85/96] x86/retpoline: Add initial retpoline support

2018-01-17 Thread gre...@linuxfoundation.org
On Tue, Jan 16, 2018 at 10:38:35AM +, Woodhouse, David wrote: > On Tue, 2018-01-16 at 11:22 +0100, Jiri Slaby wrote: > > On 01/15/2018, 01:35 PM, Greg Kroah-Hartman wrote: > > > 4.9-stable review patch.  If anyone has any objections, please let me > > > know. > > > > May I ask if somebody has

[PATCH net] xfrm: Add SA to hardware at the end of xfrm_state_construct()

2018-01-17 Thread yossiku
From: Yossi Kuperman Current code configures the hardware with a new SA before the state has been fully initialized. During this time interval, an incoming ESP packet can cause a crash due to a NULL dereference. More specifically, xfrm_input() considers the packet as valid, and yet, anti-replay m

Re: [PATCH for v4.9-stable] sched: fix softirq time accounting

2018-01-17 Thread Greg KH
On Wed, Dec 13, 2017 at 11:54:56AM +0100, Greg KH wrote: > On Wed, Dec 13, 2017 at 11:11:16AM +0100, Rabin Vincent wrote: > > From: Rabin Vincent > > > > softirq time accounting is broken on v4.9.x if ksoftirqd runs. > > > > With > > CONFIG_IRQ_TIME_ACCOUNTING=y > > # CONFIG_VIRT_CPU_ACC

Re: [PATCH 1/6] s390/alternative: use a copy of the facility bit mask

2018-01-17 Thread David Hildenbrand
On 17.01.2018 10:48, Martin Schwidefsky wrote: > To be able to switch off specific CPU alternatives with kernel parameters > make a copy of the facility bit mask provided by STFLE and use the copy > for the decision to apply an alternative. > > Reviewed-by: Christian Borntraeger > Signed-off-by:

Re: [PATCH 03/16] x86/entry/32: Leave the kernel via the trampoline stack

2018-01-17 Thread Brian Gerst
On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote: > On Tue, Jan 16, 2018 at 02:48:43PM -0800, Andy Lutomirski wrote: >> On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote: >> > + /* Restore user %edi and user %fs */ >> > + movl (%edi), %edi >> > + popl %fs >> >> Yikes! We'r

Re: [PATCH v5 15/44] clk: davinci: Add platform information for TI DM644x PSC

2018-01-17 Thread Sekhar Nori
On Monday 08 January 2018 07:47 AM, David Lechner wrote: > This adds platform-specific declarations for the PSC clocks on TI > DaVinci 644x based systems. > > Signed-off-by: David Lechner Looks good to me except comments I already gave for similar patches. Thanks, Sekhar

Re: [PATCH 2/6] s390: implement nospec_[load|ptr]

2018-01-17 Thread David Hildenbrand
On 17.01.2018 10:48, Martin Schwidefsky wrote: > Implement nospec_load() and nospec_ptr() for s390 with the new > gmb() barrier between the boundary condition and the load that > may not be done speculatively. > > Acked-by: Christian Borntraeger > Signed-off-by: Martin Schwidefsky > --- > arch/

Re: [PATCH v2 0/4] Remove checkpatch warnings

2018-01-17 Thread Greg KH
On Wed, Jan 17, 2018 at 12:24:50AM +0530, Shreeya Patel wrote: > This patchset removes some warnings generated by checkpatch > for cleanup of the rtl8723bs driver. Also some additional > cleanups are introduced in the *[1/4] and *[3/4] patches > to make the code according to the kernel coding style

Re: [PATCH v3] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Marcus Folkesson
Hello Dmitry, On Tue, Jan 16, 2018 at 03:16:25PM -0800, Dmitry Torokhov wrote: > Hi Marcus, > > On Sat, Jan 13, 2018 at 09:15:32PM +0100, Marcus Folkesson wrote: > > This driver let you plug in your RC controller to the adapter and > > use it as input device in various RC simulators. > > > > Sig

Re: [PATCH 03/16] x86/entry/32: Leave the kernel via the trampoline stack

2018-01-17 Thread Brian Gerst
On Wed, Jan 17, 2018 at 5:57 AM, Brian Gerst wrote: > On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote: >> On Tue, Jan 16, 2018 at 02:48:43PM -0800, Andy Lutomirski wrote: >>> On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote: >>> > + /* Restore user %edi and user %fs */ >>> > +

[PATCH 1/6] backlight: Nuke unused backlight.props.state states

2018-01-17 Thread Daniel Vetter
The backlight power state handling is supremely confusing. We have: - props.power, using FB_BLANK_* defines - props.fb_blank, using the same, but deprecated int favour of props.state - props.state, using the BL_CORE_* defines - and finally a bunch of backlight drivers treat brightness == 0 as o

[PATCH 3/6] backlight/pandora: Stop using BL_CORE_DRIVER1

2018-01-17 Thread Daniel Vetter
Leaking driver internal tracking into the already massively confusing backlight power tracking is really confusing. Stop that by allocating a tiny driver private data structure instead. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Signed-off-by: Daniel Vetter --- drivers/video/backlight/

[PATCH 6/6] MAINTAINERS: add dri-devel for backlight subsystem patches

2018-01-17 Thread Daniel Vetter
For the same reasons we've added dri-devel for all fbdev patches: Most of the actively developed drivers using this infrastructure are in drivers/gpu/. It just makes sense to cross-post patches and keep aligned. And total activity in the backlight subsystem is miniscule compared to drm overall. Cc

[PATCH 5/6] backlight: Also nuke BL_CORE_DRIVER1

2018-01-17 Thread Daniel Vetter
Now that the 3 drivers using this are cleaned up we can also remove this final bit of confusion of leaking driver internals into the backlight power interface. The backlight power interface itself is still a massive mess. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Signed-off-by: Daniel V

[PATCH 4/6] staging/fbtft: Stop using BL_CORE_DRIVER1

2018-01-17 Thread Daniel Vetter
Leaking driver internal tracking into the already massively confusing backlight power tracking is really confusing. Luckily we have already a drvdata structure, so fixing this is really easy. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Cc: Thomas Petazzoni Signed-off-by: Daniel Vetter -

Re: [PATCH v7 3/5] x86/KASLR: Give a warning if movable_node specified without kaslr_mem=

2018-01-17 Thread Baoquan He
On 01/17/18 at 06:53pm, Chao Fan wrote: > Since only 'movable_node' specified without 'kaslr_mem=' may break > memory hotplug, so reconmmend users using 'kaslr_mem=' when > 'movable_node' specified.. > > Signed-off-by: Chao Fan > --- > arch/x86/boot/compressed/kaslr.c | 10 ++ > 1 file c

Re: [PATCH 0/4] Add support for Intel IOMMU 5-level paging

2018-01-17 Thread Joerg Roedel
On Wed, Dec 20, 2017 at 11:59:23AM -0800, Sohil Mehta wrote: > Sohil Mehta (4): > iommu/vt-d: Enable upto 57 bits of domain address width > iommu/vt-d: Add a check for 1GB page support > iommu/vt-d: Add a check for 5-level paging support > iommu/vt-d: Enable 5-level paging mode in the PASID

[PATCH 2/6] backlight/generic-bl: remove DRIVER1 state

2018-01-17 Thread Daniel Vetter
Nothing in the entire tree ever sets this, which means this is dead code. Remove it. Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han Signed-off-by: Daniel Vetter --- drivers/video/backlight/generic_bl.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/video/backlight/generic_b

Re: [PATCH] ARM: make memzero optimization smarter

2018-01-17 Thread Nicolas Pitre
On Wed, 17 Jan 2018, Russell King - ARM Linux wrote: > On Tue, Jan 16, 2018 at 11:07:34PM -0500, Nicolas Pitre wrote: > > On Tue, 16 Jan 2018, Arnd Bergmann wrote: > > > > > On Tue, Jan 16, 2018 at 6:10 PM, Nicolas Pitre > > > wrote: > > > > On Tue, 16 Jan 2018, Arnd Bergmann wrote: > > > > > >

Re: [PATCH] staging: lustre: Fix avoid intensive reconnecting for ko2iblnd patch

2018-01-17 Thread Greg Kroah-Hartman
On Wed, Jan 17, 2018 at 12:36:19AM +, Dilger, Andreas wrote: > > > On Jan 16, 2018, at 09:56, Greg Kroah-Hartman > > wrote: > > > > On Tue, Jan 16, 2018 at 03:01:49PM +, Eremin, Dmitry wrote: > >> In the original commit 4d99b2581effe115376402e710fbcb1c3c073769 > > > > Please use the do

Re: [PATCH v7 4/5] x86/KASLR: Skip memory mirror handling if movable_node specified

2018-01-17 Thread Baoquan He
On 01/17/18 at 06:53pm, Chao Fan wrote: > In kernel code, if movable_node specified, it will skip the mirror > feature. So we should also skip mirror feature in KASLR. > > Signed-off-by: Chao Fan > --- > arch/x86/boot/compressed/kaslr.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --

Re: [PATCH 2/6] s390: implement nospec_[load|ptr]

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 02:58 PM, David Hildenbrand wrote: > On 17.01.2018 10:48, Martin Schwidefsky wrote: >> Implement nospec_load() and nospec_ptr() for s390 with the new >> gmb() barrier between the boundary condition and the load that >> may not be done speculatively. >> >> Acked-by: Christian Borntra

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Suzuki K Poulose
On 17/01/18 13:43, Robin Murphy wrote: On 17/01/18 13:31, Suzuki K Poulose wrote: On 17/01/18 13:20, Robin Murphy wrote: On 17/01/18 12:25, Dave Martin wrote: On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: When a CPU is brought up after we have finalised the system wide cap

Re: [PATCH v7 3/5] x86/KASLR: Give a warning if movable_node specified without kaslr_mem=

2018-01-17 Thread Baoquan He
On 01/17/18 at 06:53pm, Chao Fan wrote: > Since only 'movable_node' specified without 'kaslr_mem=' may break > memory hotplug, so reconmmend users using 'kaslr_mem=' when > 'movable_node' specified.. > > Signed-off-by: Chao Fan > --- > arch/x86/boot/compressed/kaslr.c | 10 ++ > 1 file c

Re: [PATCH 02/16] x86/entry/32: Enter the kernel via trampoline stack

2018-01-17 Thread Andrew Cooper
On 17/01/18 09:02, Joerg Roedel wrote: > Hi Boris, > > thanks for testing this :) > > On Tue, Jan 16, 2018 at 09:47:06PM -0500, Boris Ostrovsky wrote: >> On 01/16/2018 11:36 AM, Joerg Roedel wrote: >>> +.macro SWITCH_TO_KERNEL_STACK nr_regs=0 check_user=0 >> >> This (and next patch's SWITCH_TO_ENTR

Re: [PATCH 03/16] x86/entry/32: Leave the kernel via the trampoline stack

2018-01-17 Thread Joerg Roedel
On Wed, Jan 17, 2018 at 05:57:53AM -0800, Brian Gerst wrote: > On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote: > > I have no real idea on how to switch back to the entry stack without > > access to per_cpu variables. I also can't access the cpu_entry_area for > > the cpu yet, because for tha

Re: [v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

2018-01-17 Thread Himanshu Jha
On Wed, Jan 17, 2018 at 12:08:46PM +0100, SF Markus Elfring wrote: > > Applied to linux-kbuild/misc. > > How would you like to get a related document updated? > https://bottest.wiki.kernel.org/coccicheck#types_of_tests Fixed. -- Thanks Himanshu Jha

Re: [PATCH v2 11/10] objtool: Even more complex static block checks

2018-01-17 Thread Josh Poimboeuf
On Wed, Jan 17, 2018 at 09:13:09AM +0100, Peter Zijlstra wrote: > On Tue, Jan 16, 2018 at 09:12:32PM -0600, Josh Poimboeuf wrote: > > On Tue, Jan 16, 2018 at 08:49:17PM +0100, Peter Zijlstra wrote: > > > Subject: objtool: Even more complex static block checks > > > From: Peter Zijlstra > > > Date:

Re: [PATCH v3] tpm: use struct tpm_chip for tpm_chip_find_get()

2018-01-17 Thread PrasannaKumar Muralidharan
Hi Jarkko, On 14 November 2017 at 20:02, Jarkko Sakkinen wrote: > On Sun, Nov 12, 2017 at 10:53:35AM +0530, PrasannaKumar Muralidharan wrote: >> Did basic check on tpm rng patch, it works fine. As it depends on this >> patch this should be working fine too. >> >> Tested-by: PrasannaKumar Muralidh

[PATCH v2 1/2] fscrypt: add support for the encrypted key type

2018-01-17 Thread André Draszik
We now try to acquire the key according to the encryption policy from both key types, 'logon' as well as 'encrypted'. Signed-off-by: André Draszik Cc: "Theodore Y. Ts'o" Cc: Jaegeuk Kim Cc: linux-fscr...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Eric Biggers --- changes in v2: * dr

[PATCH v2 2/2] fscrypt: update documentation for encrypted key support

2018-01-17 Thread André Draszik
Signed-off-by: André Draszik Cc: "Theodore Y. Ts'o" Cc: Jaegeuk Kim Cc: Jonathan Corbet Cc: linux-fscr...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Eric Biggers Cc: linux-...@vger.kernel.org --- Documentation/filesystems/fscrypt.rst | 56 +++ 1 file

Re: [PATCH 03/16] x86/entry/32: Leave the kernel via the trampoline stack

2018-01-17 Thread Joerg Roedel
On Wed, Jan 17, 2018 at 06:00:07AM -0800, Brian Gerst wrote: > On Wed, Jan 17, 2018 at 5:57 AM, Brian Gerst wrote: > But then again, you could take a fault on the trampoline stack if you > get a bad segment. Perhaps just pushing the new stack pointer onto > the process stack before user segment l

Re: [RFC] mm: why vfree() do not free page table memory?

2018-01-17 Thread Matthew Wilcox
On Wed, Jan 17, 2018 at 05:48:57PM +0800, Xishi Qiu wrote: > > Did you notice an actual issue, or is this just theoretical concern. > > Yes, we have this problem on our production line. > I find the page table memory takes 200-300M. 200MB? That's mapping 800GB of virtual address space. That mus

Re: [PATCH v3 8/9] x86: use __uaccess_begin_nospec and ASM_IFENCE in get_user paths

2018-01-17 Thread Alan Cox
On Tue, 2018-01-16 at 14:41 -0800, Linus Torvalds wrote: > > > On Jan 16, 2018 14:23, "Dan Williams" > wrote: > > That said, for get_user specifically, can we do something even > > cheaper. Dave H. reminds me that any valid user pointer that gets > > past > > the address limit check will have th

Re: [PATCH 1/6] s390/alternative: use a copy of the facility bit mask

2018-01-17 Thread Cornelia Huck
On Wed, 17 Jan 2018 10:48:34 +0100 Martin Schwidefsky wrote: > To be able to switch off specific CPU alternatives with kernel parameters > make a copy of the facility bit mask provided by STFLE and use the copy > for the decision to apply an alternative. > > Reviewed-by: Christian Borntraeger >

[PATCH] rcu: Use wrapper for lockdep asserts

2018-01-17 Thread Matthew Wilcox
From: Matthew Wilcox Commits c0b334c5bfa9 and ea9b0c8a26a2 introduced new sparse warnings by accessing rcu_node->lock directly and ignoring the __private marker. Introduce a new wrapper and use it. Also fix a similar problem in srcutree.c introduced by a3883df3935e. Signed-off-by: Matthew Wil

Re: [PATCH v3] perf/trace : Fix repetitious traces of perf on tracepoint

2018-01-17 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 17, 2018 at 10:33:42AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Jan 16, 2018 at 04:06:22PM +0100, Jiri Olsa escreveu: > > On Tue, Jan 16, 2018 at 08:40:38PM +0800, Cheng Jian wrote: > > > after this patch, perf script(parent-1040, child-1041): > > > test_fork 1040 [002]

[PATCH] irqdomain: Kill CONFIG_IRQ_DOMAIN_DEBUG

2018-01-17 Thread Marc Zyngier
CONFIG_IRQ_DOMAIN_DEBUG is similar to CONFIG_GENERIC_IRQ_DEBUGFS, just with less information. Spring cleanup time. Signed-off-by: Marc Zyngier --- Documentation/IRQ-domain.txt| 36 + arch/arm/configs/aspeed_g4_defconfig| 1 - arch/arm/configs/aspeed_g5_defconf

Re: [PATCH v2 06/10] objtool: Implement jump_assert for _static_cpu_has()

2018-01-17 Thread Josh Poimboeuf
On Wed, Jan 17, 2018 at 10:19:45AM +0100, Peter Zijlstra wrote: > > > @@ -664,6 +670,21 @@ static int handle_group_alt(struct objto > > > insn->sec, insn->offset); > > > return -1; > > > } > > > + > > > + if (special_alt->static_feat)

[PATCH 1/2] f2fs: hanlde error case in f2fs_ioc_shutdown

2018-01-17 Thread Chao Yu
From: Chao Yu This patch makes f2fs_ioc_shutdown handling error case correctly. Signed-off-by: Chao Yu --- fs/f2fs/file.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 94be67591d1f..593a79447907 100644 --- a/fs/f2fs/file.c

[PATCH 2/2] f2fs: stop gc/discard thread after fs shutdown

2018-01-17 Thread Chao Yu
From: Chao Yu Once filesystem shuts down, daemons like gc/discard thread should be aware of it, and do exit, in addtion, drop all pending discards in cache and exit real-time discard mode. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h| 1 + fs/f2fs/file.c| 4 fs/f2fs/gc.c | 2 ++

Re: [PATCH 1/3] encrypted-keys: add fscrypt format support

2018-01-17 Thread André Draszik
Thanks Eric for the review! On Wed, 2018-01-10 at 20:00 -0800, Eric Biggers wrote: > Hi André, > > On Wed, Jan 10, 2018 at 12:44:16PM +, André Draszik wrote: > > This is heavily based on commit 79a73d188726 > > ("encrypted-keys: add ecryptfs format support"). > > > > The 'encrypted' key type

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2018-01-17 Thread Seth Forshee
On Wed, Jan 17, 2018 at 11:59:06AM +0100, Alban Crequy wrote: > [Adding Tejun, David, Tom for question about cuse] > > On Fri, Dec 22, 2017 at 3:32 PM, Dongsu Park wrote: > > From: Seth Forshee > > > > In order to support mounts from namespaces other than > > init_user_ns, fuse must translate ui

Re: [PATCH v2 06/10] objtool: Implement jump_assert for _static_cpu_has()

2018-01-17 Thread Josh Poimboeuf
On Wed, Jan 17, 2018 at 08:27:59AM -0600, Josh Poimboeuf wrote: > > > > + if (insn->jump_dest == fake_jump) { > > > > + WARN_FUNC("jump inside alternative for > > > > _static_cpu_has()", > > > > + insn->sec

pull-request: wireless-drivers 2018-01-17

2018-01-17 Thread Kalle Valo
Hi Dave, here are few more important fixes to the net tree for 4.15, I hope they still make it. Please let me know if there are any problems. Kalle The following changes since commit 49fdde89e2b8574cb55f99b57b7798f44567bc4b: Merge ath-current from git://git.kernel.org/pub/scm/linux/kernel/g

Re: [PATCH arm/aspeed/ast2500 v1] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-17 Thread Wang, Haiyue
On 2018-01-17 06:12, Corey Minyard wrote: On 01/16/2018 02:59 PM, Corey Minyard wrote: On 01/16/2018 05:43 AM, Haiyue Wang wrote: The KCS (Keyboard Controller Style) interface is used to perform in-band IPMI communication between a server host and its BMC (BaseBoard Management Controllers).

Re: [PATCH arm/aspeed/ast2500 v1] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-17 Thread Wang, Haiyue
Thanks Avi, wait for your response when new patch is ready. :-) BR, Haiyue On 2018-01-17 20:54, Avi Fishman wrote: Sounds great for us (Nuvoton). Avi. On Wed, Jan 17, 2018 at 8:32 AM, Wang, Haiyue wrote: On 2018-01-17 07:06, Joel Stanley wrote: On Tue, Jan 16, 2018 at 2:59 PM, Corey Minya

Re: [PATCH 2/6] backlight/generic-bl: remove DRIVER1 state

2018-01-17 Thread Emil Velikov
On 17 January 2018 at 14:01, Daniel Vetter wrote: > Nothing in the entire tree ever sets this, which means this is dead > code. Remove it. > > Cc: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han > Signed-off-by: Daniel Vetter > --- > drivers/video/backlight/generic_bl.c | 5 - Fly-by com

Re: [PATCH] [RESEND] drm/gma500: initialize gma_clock_t structures

2018-01-17 Thread Arnd Bergmann
On Wed, Jan 17, 2018 at 9:27 AM, Daniel Vetter wrote: > On Tue, Jan 16, 2018 at 03:57:10PM +0100, Arnd Bergmann wrote: >> The two functions pass a partially initialized structure back to the >> caller after a memset() on the destination. >> >> This is not entirely well-defined, most compilers are

[PATCH] arm: zynq: Add SPDX GPL-2.0 license identifier

2018-01-17 Thread Michal Simek
Add SPDX identifier as was done by for example by: "License cleanup: add SPDX GPL-2.0 license identifier to files with no license" (commit ) Signed-off-by: Michal Simek --- arch/arm/boot/dts/zynq-7000.dtsi | 1 + arch/arm/boot/dts/zynq-microzed.dts | 1 + arch/arm/boot/dts/zynq-parallell

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Dave Martin
On Wed, Jan 17, 2018 at 01:22:19PM +, Suzuki K Poulose wrote: > On 17/01/18 12:25, Dave Martin wrote: > >On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: > >>When a CPU is brought up after we have finalised the system > >>wide capabilities (i.e, features and errata), we make su

[PATCH] arm: zynq: Add missing address node name in microzed board

2018-01-17 Thread Michal Simek
This patch is fixing issue reported by dtc: arch/arm/boot/dts/zynq-microzed.dtb: Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name Signed-off-by: Michal Simek --- arch/arm/boot/dts/zynq-microzed.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] arm: zynq: Add mmc alias for zc702/zc706/zed/zybo

2018-01-17 Thread Michal Simek
Add missing mmc alias. Signed-off-by: Michal Simek --- arch/arm/boot/dts/zynq-zc702.dts | 1 + arch/arm/boot/dts/zynq-zc706.dts | 1 + arch/arm/boot/dts/zynq-zed.dts | 1 + arch/arm/boot/dts/zynq-zybo.dts | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/zynq-zc702.dts

<    1   2   3   4   5   6   7   8   9   10   >