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: [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 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: [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: 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

[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: [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

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] 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 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] 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

[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: [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

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: [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: [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 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 v2 13/13] iommu/rockchip: Support sharing IOMMU between masters

2018-01-17 Thread Robin Murphy
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-iommu.c | 39 +++ 1

Re: [PATCH 1/2] microblaze: fix endian handling

2018-01-17 Thread Michal Simek
On 15.1.2018 11:19, Arnd Bergmann wrote: > On Mon, Jan 15, 2018 at 11:14 AM, Michal Simek wrote: >> On 15.1.2018 10:29, Arnd Bergmann wrote: >>> On Sun, Jan 14, 2018 at 2:01 AM, kbuild test robot wrote: Hi Arnd, I love your patch! Yet something to improve: [auto build tes

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

2018-01-17 Thread Avi Fishman
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 Minyard wrote: >>> >>> On 01/16/2018 05:43 AM, Haiyue Wang wrote: The KCS (Keyboard Controller Style) in

Re: [PATCH v2 09/13] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-17 Thread JeffyChen
On 01/17/2018 08:47 PM, JeffyChen wrote: +static struct iommu_group *rk_iommu_device_group(struct device *dev) +{ +struct iommu_group *group; +int ret; + +group = iommu_group_get(dev); +if (!group) { This check is pointless - if dev->iommu_group were non-NULL you wouldn't have

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Stephen Rothwell wrote: > On Wed, 17 Jan 2018 13:23:17 +0100 (CET) Thomas Gleixner > wrote: > > No. Keep it and lets next time coordinate the relevant bits and pieces > > better. I reserve that bit 20 and let Linus sort out the trivial conflict > > when merging the stuff. >

Re: [PATCH 3/4] tty: Iterate only thread group leaders in __do_SAK()

2018-01-17 Thread Kirill Tkhai
On 17.01.2018 00:13, Oleg Nesterov wrote: > On 01/16, Kirill Tkhai wrote: >> >> On 15.01.2018 23:51, Oleg Nesterov wrote: >>> kill: - force_sig(SIGKILL, p); + send_sig(SIGKILL, p, 1); >>> >>> Agreed, I didn't actually want to use force_sig(SIGKILL), copy-and-paste

Re: [PATCH v2 09/13] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-17 Thread JeffyChen
Hi Robin, On 01/17/2018 08:31 PM, Robin Murphy wrote: On 16/01/18 13:25, Jeffy Chen wrote: IOMMU drivers are supposed to call this function instead of manually creating a group in their .add_device callback. This behavior is not strictly required by ARM DMA mapping implementation, but ARM64 alr

Re: [PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Chandra Sekhar Lingutla
Hi, Sorry for the basic mistakes, posted new patch V1. On 1/17/2018 5:39 PM, Thomas Gleixner wrote: On Wed, 17 Jan 2018, Thomas Gleixner wrote: On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: And please fix the subject line: kernel: time: is not the proper subsystem prefix. git log

Re: [PATCH v2 01/13] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-01-17 Thread JeffyChen
Hi Robin, On 01/17/2018 08:18 PM, Robin Murphy wrote: @@ -91,7 +92,6 @@ struct rk_iommu { void __iomem **bases; int num_mmu; int *irq; Nit: irq seems to be redundant now as well. oops, will fix it. -int num_irq; bool reset_disabled; struct iommu_device io

[lkp-robot] [hugetlbfs] c0033af7ee: BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown()

2018-01-17 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: c0033af7eec3e728c6b70d75950e632ace4c8a55 ("hugetlbfs: Convert to fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s

[PATCH v1] timer: Forward timer base before migrating timers

2018-01-17 Thread Lingutla Chandrasekhar
In case when timers are migrated to a CPU, after it exits idle, but before timer base is forwarded, either from run_timer_softirq()/mod_timer()/add_timer_on(), it's possible that migrated timers are queued, based on older clock value. This can cause delays in handling those timers. For example, co

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Stephen Rothwell
Hi Thomas, On Wed, 17 Jan 2018 13:23:17 +0100 (CET) Thomas Gleixner wrote: > > On Wed, 17 Jan 2018, Paolo Bonzini wrote: > > On 17/01/2018 12:45, Thomas Gleixner wrote: > > > On Wed, 17 Jan 2018, Stephen Rothwell wrote: > > >> [This is the same conflict I reported the day before yesterday, b

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

2018-01-17 Thread Jiri Kosina
On Wed, 17 Jan 2018, 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. FWIW the naming seems to be changing constantly. The latest patchset from Dan Williams

[PATCH v2 3/3] tty: Use RCU read lock to iterate tasks and threads in __do_SAK()

2018-01-17 Thread Kirill Tkhai
There were made several efforts to make __do_SAK() working in process context long ago, but it does not solves the problem completely. Since __do_SAK() may take tasklist_lock for a long time, the concurent processes, waiting for write lock with interrupts disabled (e.g., forking), get into the same

[PATCH v2 1/3] Revert "do_SAK: Don't recursively take the tasklist_lock"

2018-01-17 Thread Kirill Tkhai
This reverts commit 20ac94378de5. send_sig() does not take tasklist_lock for a long time, so this commit and the problem it solves are not relevant anymore. Also, the problem of force_sig() is it clears SIGNAL_UNKILLABLE flag, thus even global init may be killed by __do_SAK(), which is definitely

[PATCH v2 2/3] tty: Avoid threads files iterations in __do_SAK()

2018-01-17 Thread Kirill Tkhai
From: Oleg Nesterov The patch makes __do_SAK() iterate a next thread files only in case of the thread's files are different to previous. I.e., if all threads points the same files_struct, the files will be iterated only once. Since all threads have the same files_struct is the generic case for m

[PATCH v2 0/3] tty: Make __do_SAK() less greedy in regard to tasklist_lock

2018-01-17 Thread Kirill Tkhai
Hi, this patchset makes __do_SAK() to take tasklist_lock for very small time in comparison to that it does now. Though this function is executed in process context and it takes tasklist_lock read locked with interrupts enabled, another tasks may want to take it for writing with interrupt disabled

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Russell King - ARM Linux
On Wed, Jan 17, 2018 at 12:15:05PM +, Dave Martin wrote: > On Wed, Jan 17, 2018 at 11:57:09AM +, Russell King - ARM Linux wrote: > > On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > > > I will keep FPE_FIXME as a place holder until this gets sorted out. > > > > > > Ther

[PATCH 1/1] perf stat: Add support to print counts for fixed times

2018-01-17 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts for fixed number of times and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $perf stat -I 1000 --times-print 2 -e cycles -a # time counts unit ev

[PATCH 0/1] perf stat: Add support to print counts for fixed times

2018-01-17 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts for fixed number of times and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $perf stat -I 1000 --times-print 2 -e cycles -a # time counts unit ev

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Paolo Bonzini wrote: > On 17/01/2018 13:23, Thomas Gleixner wrote: > > No. Keep it and lets next time coordinate the relevant bits and pieces > > better. I reserve that bit 20 and let Linus sort out the trivial conflict > > when merging the stuff. > > Thank you. In the future

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 13:23, Thomas Gleixner wrote: > On Wed, 17 Jan 2018, Paolo Bonzini wrote: >> On 17/01/2018 12:45, Thomas Gleixner wrote: >>> On Wed, 17 Jan 2018, Stephen Rothwell wrote: [This is the same conflict I reported the day before yesterday, but one of the commits has moved and anot

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

2018-01-17 Thread Dave Young
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 can differenciate > > kdump kernel early hang and a normal p

Re: [PATCH v2 09/13] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-17 Thread Robin Murphy
On 16/01/18 13:25, Jeffy Chen wrote: IOMMU drivers are supposed to call this function instead of manually creating a group in their .add_device callback. This behavior is not strictly required by ARM DMA mapping implementation, but ARM64 already relies on it. This patch fixes the rockchip-iommu d

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-17 Thread Juergen Gross
On 16/01/18 17:35, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> On 16/01/18 16:46, Ingo Molnar wrote: >>> >>> * Juergen Gross wrote: >>> There seem to exist several grub2 versions trashing boot_params.hdr.acpi_rsdp_addr. So don't just believe this address to be valid,

Re: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init

2018-01-17 Thread Tomasz Figa
On Wed, Jan 17, 2018 at 4:19 PM, Tomasz Figa wrote: > > P.S. Looks like your email client is set to HTML messages. Your > messages might end up dropped from the mailing list. Never mind. Looks like gmail started displaying quotations in plain text as graphics. Best regards, Tomasz

Re: [PATCH v5 10/44] clk: davinci: New driver for davinci PSC clocks

2018-01-17 Thread Sekhar Nori
On Tuesday 16 January 2018 10:21 PM, David Lechner wrote: >>> +static struct clk *davinci_psc_clk_register(const char *name, >>> +    const char *parent_name, >>> +    struct regmap *regmap, >>> +    u32 lpsc, u32 pd, u32 flags) >>> +{ >>

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 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 > detected already. However we don't ru

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Paolo Bonzini wrote: > On 17/01/2018 12:45, Thomas Gleixner wrote: > > On Wed, 17 Jan 2018, Stephen Rothwell wrote: > >> [This is the same conflict I reported the day before yesterday, but one > >> of the commits has moved and another that contributed has been dropped.] > >> di

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

2018-01-17 Thread Paul Menzel
Dear Johannes, On 01/04/18 16:08, Johannes Berg wrote: Hi, Can you reproduce this? [ 54.426491] UBSAN: Undefined behaviour in net/wireless/nl80211.c:718:4 [ 54.426492] signed integer overflow: [ 54.426493] -1665903437 * 100 cannot be represented in type 'int' Obviously. However, it

Re: [PATCH 2/2 v3] lib: debugobjects: touch watchdog to avoid softlockup when !CONFIG_PREEMPT

2018-01-17 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Yang Shi wrote: > There are nested loops on debug objects free path, sometimes it may take > over hundred thousands of loops, then cause soft lockup with !CONFIG_PREEMPT > occasionally, like below: Please trim back traces. The whole module info and whatever is completely irrel

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-17 Thread Juergen Gross
On 17/01/18 12:49, Rafael J. Wysocki wrote: > On Tue, Jan 16, 2018 at 2:57 PM, Juergen Gross wrote: >> There seem to exist several grub2 versions trashing >> boot_params.hdr.acpi_rsdp_addr. >> >> So don't just believe this address to be valid, but verify it pointing >> to a valid RSDP table. >> >>

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

2018-01-17 Thread Sekhar Nori
On Tuesday 16 January 2018 10:46 PM, David Lechner wrote: >>> +static const struct davinci_psc_clk_info da830_psc0_info[] >>> __initconst = { >>> +    LPSC(0, 0, tpcc, pll0_sysclk2, LPSC_ALWAYS_ENABLED), >>> +    LPSC(1, 0, tptc0, pll0_sysclk2, LPSC_ALWAYS_ENABLED), >>> +    LPSC(2, 0, tptc1, pll0

Re: [PATCH v2 01/13] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-01-17 Thread Robin Murphy
On 16/01/18 13:25, Jeffy Chen wrote: Suggested-by: Robin Murphy Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/iommu/rockchip-iommu.c | 38 +++--- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/drivers/iommu/rockchip-iommu.c b/dri

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 12:45, Thomas Gleixner wrote: > On Wed, 17 Jan 2018, Stephen Rothwell wrote: >> [This is the same conflict I reported the day before yesterday, but one >> of the commits has moved and another that contributed has been dropped.] >> diff --cc arch/x86/include/asm/cpufeatures.h >> index

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Dave Martin
On Wed, Jan 17, 2018 at 11:57:09AM +, Russell King - ARM Linux wrote: > On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > > I will keep FPE_FIXME as a place holder until this gets sorted out. > > > > There is a second issue I am looking at in this location, > > and maybe I d

Re: [PATCH] Bluetooth: 6lowpan: Fix disconnect bug in 6lowpan

2018-01-17 Thread Luiz Augusto von Dentz
Hi, On Wed, Jan 17, 2018 at 1:47 AM, Guo Yi wrote: > This patch fix the bluetooth 6lowpan disconnect fail bug. > > The type of the same address type have different define value in HCI layer > and L2CAP layer.That makes disconnect fail due to wrong network type.User > will not be able to disconnec

Re: [PATCH v2 0/6] arm64: provide pseudo NMI with GICv3

2018-01-17 Thread Julien Thierry
Hi, On 17/01/18 11:54, Julien Thierry wrote: This series is a continuation of the work started by Daniel [1]. The goal is to use GICv3 interrupt priorities to simulate an NMI. I have submitted a separate series making use of this feature for the ARM PMUv3 interrupt [1]. [1] https://www.sp

Re: [PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Thomas Gleixner wrote: > On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: And please fix the subject line: kernel: time: is not the proper subsystem prefix. git log should give you a hint. Aside of that the text after the prefix starts with an uppercase letter. Than

[PATCH] net/mlx5e: 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

Re: [PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: > In case when timers are migrated to a CPU, after it exits > idle, but before timer base is forwarded, either from > run_timer_softirq()/mod_timer()/add_timer_on(), it's > possible that migrated timers are queued, based on older > clock value. Th

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

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 01:00 PM, Cornelia Huck wrote: > On Wed, 17 Jan 2018 10:48:33 +0100 > Martin Schwidefsky wrote: > >> This patch series implements multiple mitigations for the speculative >> execution findings: >> 1. The definition of the gmb() barrier as currently used by the >>distributions,

Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

2018-01-17 Thread Petr Mladek
On Wed 2018-01-17 11:19:53, Byungchul Park wrote: > On 1/10/2018 10:24 PM, Petr Mladek wrote: > > From: Steven Rostedt > > By Petr Mladek about possible new deadlocks: > > > > The thing is that we move console_sem only to printk() call > > that normally calls console_unlock() as well. It means th

Re: [Suspected-Phishing]Re: [PATCH V3 1/2] nvme: split resetting state into reset_prepate and resetting

2018-01-17 Thread Sagi Grimberg
see V4 discussion.. :) I didn't see any v4

Re: [PATCH] proc: fix coredump vs read /proc/*/stat race

2018-01-17 Thread John Ogness
Hi Alexey, On 2018-01-16, Alexey Dobriyan wrote: > do_task_stat() accesses IP and SP of a task without bumping reference > count of a stack (which became an entity with independent lifetime at > some point). > > Steps to reproduce: > > #include > #include > #include > #include > #include > #

Re: [PATCH] efi/arm*: Only register page tables when they exist

2018-01-17 Thread Ard Biesheuvel
On 17 January 2018 at 10:19, Will Deacon wrote: > On Tue, Jan 16, 2018 at 02:08:32PM +, Mark Rutland wrote: >> Currently the arm/arm64 runtime code registers the runtime servies >> pagetables with ptdump regardless of whether runtime services page >> tables have been created. >> >> As efi_mm.p

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

2018-01-17 Thread Cornelia Huck
On Wed, 17 Jan 2018 10:48:33 +0100 Martin Schwidefsky wrote: > This patch series implements multiple mitigations for the speculative > execution findings: > 1. The definition of the gmb() barrier as currently used by the >distributions, we may have to find a better name for it > 2. The archit

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

2018-01-17 Thread Heikki Krogerus
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: > > > Dear Heikki, > > > > > > Sorry for bothering. > > > > > > Just wa

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

2018-01-17 Thread Sekhar Nori
On Tuesday 16 January 2018 10:51 PM, David Lechner wrote: > On 01/16/2018 08:00 AM, Sekhar Nori wrote: >> On Monday 08 January 2018 07:47 AM, David Lechner wrote: >>> +void __init da850_psc_clk_init(void __iomem *psc0, void __iomem *psc1) >>> +{ >>> +    struct clk_onecell_data *clk_data; >>> + >>>

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Russell King - ARM Linux
On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > I will keep FPE_FIXME as a place holder until this gets sorted out. > > There is a second issue I am looking at in this location, > and maybe I don't have to address it now. But it looks like the code is > calling send_sig_info

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

2018-01-17 Thread Martin Schwidefsky
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); > >> if (rc) { > >> perror("s390_modify_bp"); > >>    

[PATCH v2 2/6] arm64: alternative: Apply alternatives early in boot process

2018-01-17 Thread Julien Thierry
From: Daniel Thompson Currently alternatives are applied very late in the boot process (and a long time after we enable scheduling). Some alternative sequences, such as those that alter the way CPU context is stored, must be applied much earlier in the boot sequence. Introduce apply_alternatives

[PATCH v2 6/6] arm64: Add support for pseudo-NMIs

2018-01-17 Thread Julien Thierry
arm64 does not provide native NMIs. Emulate the NMI behaviour using GIC priorities. Add the possibility to set an IRQ as an NMI and the handling of the NMI. If the view of GIC priorities is the secure one (i.e. SCR_EL3.FIQ == 0), do not allow the use of NMIs. Emit a warning when attempting to set

[PATCH v2 5/6] arm64: Detect current view of GIC priorities

2018-01-17 Thread Julien Thierry
The values non secure EL1 needs to use for priority registers depends on the value of SCR_EL3.FIQ. Since we don't have access to SCR_EL3, we fake an interrupt and compare the GIC priority with the one present in the [re]distributor. Also, add firmware requirements related to SCR_EL3. Signed-off-

[PATCH v2 4/6] irqchip/gic: Add functions to access irq priorities

2018-01-17 Thread Julien Thierry
Add functions to read/write priorities to the GIC [re]distributor. Signed-off-by: Julien Thierry Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier --- drivers/irqchip/irq-gic-common.c | 10 ++ drivers/irqchip/irq-gic-common.h | 2 ++ 2 files changed, 12 insertions(+) diff --git

[PATCH v2 3/6] arm64: irqflags: Use ICC sysregs to implement IRQ masking

2018-01-17 Thread Julien Thierry
From: Daniel Thompson Currently irqflags is implemented using the PSR's I bit. It is possible to implement irqflags by using the co-processor interface to the GIC. Using the co-processor interface makes it feasible to simulate NMIs using GIC interrupt prioritization. This patch changes the irqfl

[PATCH v2 0/6] arm64: provide pseudo NMI with GICv3

2018-01-17 Thread Julien Thierry
Hi, This series is a continuation of the work started by Daniel [1]. The goal is to use GICv3 interrupt priorities to simulate an NMI. To achieve this, set two priorities, one for standard interrupts and another, higher priority, for NMIs. Whenever we want to disable interrupts, we mask the stand

[PATCH v2 1/6] arm64: cpufeature: Allow early detect of specific features

2018-01-17 Thread Julien Thierry
From: Daniel Thompson Currently it is not possible to detect features of the boot CPU until the other CPUs have been brought up. This prevents us from reacting to features of the boot CPU until fairly late in the boot process. To solve this we allow a subset of features (that are likely to be co

[PATCH] USB: serial: remove redundant initializations of 'mos_parport'

2018-01-17 Thread Colin King
From: Colin Ian King The pointer mos_parport is being initialized to pp->private_data and then the assignment is duplicated after a spin lock. Remove the initialization as it occurs before the spin lock and it is a redundant assignment. Cleans up clang warnings: drivers/usb/serial/mos7720.c:521

Re: Missing watchdog after ACPI watchdog creation failure

2018-01-17 Thread Takashi Iwai
On Wed, 10 Jan 2018 16:43:23 +0100, Takashi Iwai wrote: > > On Wed, 10 Jan 2018 16:23:43 +0100, > Mika Westerberg wrote: > > > > On Wed, Jan 10, 2018 at 04:13:51PM +0100, Takashi Iwai wrote: > > > Hi, > > > > > > on the recent kernels, i2c-i801 skips the creation of iTCO wdt when > > > ACPI WDAT

[PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Lingutla Chandrasekhar
In case when timers are migrated to a CPU, after it exits idle, but before timer base is forwarded, either from run_timer_softirq()/mod_timer()/add_timer_on(), it's possible that migrated timers are queued, based on older clock value. This can cause delays in handling those timers. For example, co

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

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 12:14, 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); >>> if (rc) { >>> perror("s390_modify_bp"); >>> exi

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-17 Thread Rafael J. Wysocki
On Tue, Jan 16, 2018 at 2:57 PM, Juergen Gross wrote: > There seem to exist several grub2 versions trashing > boot_params.hdr.acpi_rsdp_addr. > > So don't just believe this address to be valid, but verify it pointing > to a valid RSDP table. > > Signed-off-by: Juergen Gross > --- > To be applied

Re: [patch -mm 0/4] mm, memcg: introduce oom policies

2018-01-17 Thread Roman Gushchin
On Tue, Jan 16, 2018 at 06:14:58PM -0800, David Rientjes wrote: > There are three significant concerns about the cgroup aware oom killer as > it is implemented in -mm: > > (1) allows users to evade the oom killer by creating subcontainers or > using other controllers since scoring is done pe

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Dave Martin
On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > Dave Martin writes: > > > On Mon, Jan 15, 2018 at 11:23:03AM -0600, Eric W. Biederman wrote: > >> Dave Martin writes: > >> > >> > On Thu, Jan 11, 2018 at 06:59:36PM -0600, Eric W. Biederman wrote: > >> >> Setting si_code to 0

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Stephen Rothwell wrote: > [This is the same conflict I reported the day before yesterday, but one > of the commits has moved and another that contributed has been dropped.] > diff --cc arch/x86/include/asm/cpufeatures.h > index aa09559b2c0b,19f35be95f16.. > --- a/ar

Re: tun: memory leak in tun_set_iff

2018-01-17 Thread Jason Wang
On 2018年01月17日 19:07, Xin Long wrote: On Wed, Jan 10, 2018 at 2:20 AM, Dmitry Vyukov wrote: Hello, syzkaller has hit the following memory leak on 4.15-rc7. Reproducer is attached. unreeferenced object 0x88002c9ac400 (size 4096): comm "syz-executor0", pid 12349, jiffies 4295751114 (ag

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 12:33 PM, David Hildenbrand wrote: > >> #define ECB_GS 0x40 >> #define ECB_TE 0x10 >> #define ECB_SRSI0x04 >> diff --git a/arch/s390/include/uapi/asm/kvm.h >> b/arch/s390/include/uapi/asm/kvm.h >> index 38535a57..20b9e9f 100644 >> --- a/arch/s390/i

Re: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init

2018-01-17 Thread Robin Murphy
On 17/01/18 05:26, Tomasz Figa wrote: On Tue, Jan 16, 2018 at 10:25 PM, Jeffy Chen wrote: It's hard to undo bus_set_iommu() in the error path, so move it to the end of rk_iommu_probe(). Does this work fine now? I remember we used to need this called in an early initcall for all the ARM/ARM64

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread David Hildenbrand
> #define ECB_GS 0x40 > #define ECB_TE 0x10 > #define ECB_SRSI 0x04 > diff --git a/arch/s390/include/uapi/asm/kvm.h > b/arch/s390/include/uapi/asm/kvm.h > index 38535a57..20b9e9f 100644 > --- a/arch/s390/include/uapi/asm/kvm.h > +++ b/arch/s390/include/uapi/asm/

[PATCH] MIPS: ftrace: Remove pointer comparison to 0 in prepare_ftrace_return

2018-01-17 Thread Mathieu Malaterre
Replace pointer comparison to 0 with NULL in prepare_ftrace_return to improve code readability. Identified with coccinelle script 'badzero.cocci'. Signed-off-by: Mathieu Malaterre --- arch/mips/kernel/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/f

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 12:29, Christian Borntraeger wrote: >> The problem is not that I announce the facility, I in fact announce that the >> programmatic interface is available (the sebc sync reg and the usage of that >> field). >> (So the CAP is part of this patch to have both in lockstep) >> A non-exist

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 12:28 PM, Christian Borntraeger wrote: > > > On 01/17/2018 12:22 PM, Paolo Bonzini wrote: >>> while this is kvm code, my current plan is to submit the "final" >>> version after review and probably some fixes/renames via Martin >>> together with the other patches. Are you ok with

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 12:22 PM, Paolo Bonzini wrote: >> while this is kvm code, my current plan is to submit the "final" >> version after review and probably some fixes/renames via Martin >> together with the other patches. Are you ok with that? Right now it >> seems that the CAP number is still fine. >

[PATCH -next] slimbus: qcom: remove redundant dev_err call in qcom_slim_probe()

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/slimbus/qcom-ctrl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slim

Applied "ASoC: Intel: remove second duplicated assignment to pointer 'res'" to the asoc tree

2018-01-17 Thread Mark Brown
The patch ASoC: Intel: remove second duplicated assignment to pointer 'res' has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 2

[PATCH][devlink-next] devlink: make functions a couple of new functions static

2018-01-17 Thread Colin King
From: Colin Ian King The functions devlink_resource_find and devlink_resource_validate_children are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'devlink_resource_find' was not declared. Should it be static? warning: symbol 'de

[PATCH -next] memory: ti-emif-sram: remove redundant dev_err call in ti_emif_probe()

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/memory/ti-emif-pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/memory/ti-emif-pm.c b/drivers/memory/ti-emif-pm.c inde

[PATCH -next] phy: usb: phy-brcm-usb: Remove redundant return value check of platform_get_resource()

2018-01-17 Thread Wei Yongjun
Remove unneeded error handling on the result of a call to platform_get_resource() when the value is passed to devm_ioremap_resource(). Signed-off-by: Wei Yongjun --- drivers/phy/broadcom/phy-brcm-usb.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Paolo Bonzini
> while this is kvm code, my current plan is to submit the "final" > version after review and probably some fixes/renames via Martin > together with the other patches. Are you ok with that? Right now it > seems that the CAP number is still fine. Sure, though there will be a capability introduced b

[PATCH -next] perf: hisi: Remove redundant dev_err call

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 4 +--- drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 4 +--- drivers/perf/hisilicon/hisi_un

[PATCH -next] ipmi/powernv: Fix error return code in ipmi_powernv_probe()

2018-01-17 Thread Wei Yongjun
Fix to return a negative error code from the request_irq() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/char/ipmi/ipmi_powernv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/char/ipmi/ipmi_powernv

<    6   7   8   9   10   11   12   13   14   >