[PATCH] arm: detect buggy binutils when in thumb2 mode

2017-11-23 Thread Jason A. Donenfeld
On older versions of binutils, \sym points to an aligned address. On newer versions of binutils, \sym sometimes points to the unaligned thumb address in certain circumstances. In order to homogenize this behavior, rather than adding 1, we could simply OR in 1, so that already unaligned instructions

Re: [PATCH 2/3] scsi: arcmsr: Add driver module parameter msix_enable

2017-11-23 Thread Dan Carpenter
On Thu, Nov 23, 2017 at 09:31:14AM +0800, Ching Huang wrote: > @@ -829,12 +833,15 @@ arcmsr_request_irq(struct pci_dev *pdev, > unsigned long flags; > int nvec, i; > > + if (msix_enable == 0) > + goto msi_int0; I feel like this goto is not very beautiful, but I can't

[Bug fix] octeon-i2c driver updates

2017-11-23 Thread Zhang, Sean C. (NSB - CN/Hangzhou)
Dear Maintainer, For octeon TWSI controller, I found below two cases, maybe can be improved. >From 09d9f0ce658d7f6a50d1af352dde619c29bc8bcf Mon Sep 17 00:00:00 2001 From: hgt463 Date: Thu, 23 Nov 2017 18:46:09 +0800 Subject: [PATCH] Driver updates: - In the case of I2C bus dead lock occurred d

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-23 Thread Ard Biesheuvel
On 23 November 2017 at 10:46, Pavel Machek wrote: > On Thu 2017-11-23 09:23:02, Ard Biesheuvel wrote: >> On 23 November 2017 at 09:07, Pavel Machek wrote: >> > Hi! >> > >> >> > On 22 Nov 2017, at 23:37, Pavel Machek wrote: >> >> > >> >> > Hi! >> >> > >> >> > If I'm willing to do timing attac

Re: [PATCH V14 07/24] mmc: block: Use data timeout in card_busy_detect()

2017-11-23 Thread Adrian Hunter
On 22/11/17 16:43, Ulf Hansson wrote: > On 22 November 2017 at 08:40, Adrian Hunter wrote: >> On 21/11/17 17:39, Ulf Hansson wrote: >>> On 21 November 2017 at 14:42, Adrian Hunter wrote: card_busy_detect() has a 10 minute timeout. However the correct timeout is the data timeout. Change

[PATCH] bna: remove redundant self assignment of 'i'

2017-11-23 Thread Colin King
From: Colin Ian King The assignment of variable i to itself is redundant and can be removed. Detected with Coccinelle. Signed-off-by: Colin Ian King --- drivers/net/ethernet/brocade/bna/bna_enet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broc

Re: general protection fault in __list_del_entry_valid (2)

2017-11-23 Thread Michal Hocko
On Tue 21-11-17 15:05:00, Michal Hocko wrote: > [Cc Al and Dave - email thread starts > http://lkml.kernel.org/r/001a113f996099503a055e793...@google.com] [...] > Something like the totally untested and possibly wrong > --- > diff --git a/fs/super.c b/fs/super.c > index 994db21f59bf..1eb850413fdf 1

Re: [PATCH v2 08/18] x86/dumpstack: Handle stack overflow on all stacks

2017-11-23 Thread Borislav Petkov
On Tue, Nov 21, 2017 at 08:44:03PM -0800, Andy Lutomirski wrote: > We currently special-case stack overflow on the task stack. We're > going to start putting special stacks in the fixmap with a custom > layout, so they'll have guard pages, too. Teach the unwinder to be > able to unwind an overflo

[PATCH v2 5/5] mm: memory-hotplug: Add memory hot remove support for arm64

2017-11-23 Thread Andrea Reale
Implementation of pagetable cleanup routines for arm64 memory hot remove. How to offline: 1. Logical Hot remove (offline) - # echo offline > /sys/devices/system/memory/memoryXX/state 2. Physical Hot remove (offline) - (if offline is successful) - # echo $section_phy_address > /sys/devices/sys

[PATCH v2 4/5] mm: memory_hotplug: Add memory hotremove probe device

2017-11-23 Thread Andrea Reale
Adding a "remove" sysfs handle that can be used to trigger memory hotremove manually, exactly simmetrically with what happens with the "probe" device for hot-add. This is usueful for architecture that do not rely on ACPI for memory hot-remove. Signed-off-by: Andrea Reale Signed-off-by: Maciej Bi

[PATCH v2 3/5] mm: memory_hotplug: memblock to track partially removed vmemmap mem

2017-11-23 Thread Andrea Reale
When hot-removing memory we need to free vmemmap memory. However, depending on the memory is being removed, it might not be always possible to free a full vmemmap page / huge-page because part of it might still be used. Commit ae9aae9eda2d ("memory-hotplug: common APIs to support page tables hot-r

[PATCH v2 2/5] mm: memory_hotplug: Remove assumption on memory state before hotremove

2017-11-23 Thread Andrea Reale
Commit 242831eb15a0 ("Memory hotplug / ACPI: Simplify memory removal") introduced an assumption whereas when control reaches remove_memory the corresponding memory has been already offlined. In that case, the acpi_memhotplug was making sure that the assumption held. This assumption, however, is not

[PATCH v2 0/5] Memory hotplug support for arm64 - complete patchset v2

2017-11-23 Thread Andrea Reale
Hi all, this is a second round of patches to introduce memory hotplug and hotremove support for arm64. It builds on the work previously published at [1] and it implements the feedback received in the first round of reviews. The patchset applies and has been tested on commit bebc6082da0a ("Linux 4

[PATCH v2 1/5] mm: memory_hotplug: Memory hotplug (add) support for arm64

2017-11-23 Thread Maciej Bielski
Introduces memory hotplug functionality (hot-add) for arm64. Changes v1->v2: - swapper pgtable updated in place on hot add, avoiding unnecessary copy: all changes are additive and non destructive. - stop_machine used to updated swapper on hot add, avoiding races - checking if pagealloc is unde

[PATCH] phy: tegra: remove redundant self assignment of 'map'

2017-11-23 Thread Colin King
From: Colin Ian King The assignment of map to itself is redundant and can be removed. Detected with Coccinelle. Signed-off-by: Colin Ian King --- drivers/phy/tegra/xusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c ind

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

2017-11-23 Thread Adam Thomson
On 16 November 2017 01:02, Badhri Jagan Sridharan wrote: > At present, TCPM code assumes that local device supports > variable/batt pdos and always selects the pdo with highest > possible power within the board limit. This assumption > might not hold good for all devices. To overcome this, > this

[PATCH] video: fbdev: remove redundant self assignment of 'height'

2017-11-23 Thread Colin King
From: Colin Ian King The assignment of height to itself is redundant and can be removed. Detected with Coccinelle. Signed-off-by: Colin Ian King --- drivers/video/fbdev/vga16fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/vga16fb.c b/drivers/video/fbdev/vga16fb.c in

[PATCH] ASoC: amd: added error checks in dma driver

2017-11-23 Thread Vijendar Mukunda
added error checks in acp dma driver Signed-off-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal Signed-off-by: Guenter Roeck --- sound/soc/amd/acp-pcm-dma.c | 45 - 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/sound/soc/amd/acp-pc

Re: [PATCH RFC 1/2] sched: Minimize the idle cpu selection race window.

2017-11-23 Thread Uladzislau Rezki
Hello, Atish, Peter, all. I have a question about if a task's nr_cpus_allowed is 1. In that scenario we do not call select_task_rq. Therefore even thought a task "p" is placed on idle CPU that CPU will not be marked as claimed for wake-up. What do you think about adding per_cpu(claim_wakeup, cpu)

Fwd: [PATCH] arm: ensure symbol is a thumb symbol in new binutils

2017-11-23 Thread Jason A. Donenfeld
Hello Nick & Binutils developers, It would appear that recent changes in the binutils assembler (perhaps 52a86f843b6dee1de9977293da9786649b146b05? perhaps not?) have broken the kernel when compiled in thumb2 mode. We currently do not have a way of working around your breaking changes without addin

Re: [PATCH 00/23] KAISER: unmap most of the kernel from userspace page tables

2017-11-23 Thread Pavel Machek
On Wed 2017-11-22 17:19:07, Pavel Machek wrote: > Hi! > > > KAISER makes it harder to defeat KASLR, but makes syscalls and > > interrupts slower. These patches are based on work from a team at > > Graz University of Technology posted here[1]. The major addition is > > support for Intel PCIDs whi

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-23 Thread Pavel Machek
On Thu 2017-11-23 09:23:02, Ard Biesheuvel wrote: > On 23 November 2017 at 09:07, Pavel Machek wrote: > > Hi! > > > >> > On 22 Nov 2017, at 23:37, Pavel Machek wrote: > >> > > >> > Hi! > >> > > >> > If I'm willing to do timing attacks to defeat KASLR... what prevents > >> > me from using

Re: [PATCH] dma-buf: Fix ifnullfree.cocci warnings

2017-11-23 Thread Sumit Semwal
Hello Vasyl, On 22 November 2017 at 20:52, Vasyl Gomonovych wrote: > NULL check before some freeing functions is not needed. > drivers/dma-buf/dma-buf.c:1183:2-26: WARNING: NULL check before freeing > debugfs_remove_recursive > Generated by: scripts/coccinelle/free/ifnullfree.cocci Thank you fo

Re: [PATCH 1/3] scsi: arcmsr: Add driver module parameter msi_enable

2017-11-23 Thread Dan Carpenter
On Thu, Nov 23, 2017 at 09:27:19AM +0800, Ching Huang wrote: > From: Ching Huang > > Add module parameter msi_enable to has a chance to disable msi interrupt if > it does not work properly. > > Signed-off-by: Ching Huang > --- > > diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c > b/drivers/scs

[PATCH] Add slowpath enter/exit trace events

2017-11-23 Thread peter.enderborg
From: Peter Enderborg The warning of slow allocation has been removed, this is a other way to fetch that information. But you need to enable the trace. The exit function also returns information about the number of retries, how long it was stalled and failure reason if that happened. Signed-off-

Re: [PATCH v5 07/11] intel_sgx: ptrace() support

2017-11-23 Thread Jarkko Sakkinen
On Thu, Nov 16, 2017 at 10:28:42AM +0100, Thomas Gleixner wrote: > On Mon, 13 Nov 2017, Jarkko Sakkinen wrote: > > > Implemented VMA callbacks in order to ptrace() debug enclaves. > > The amount of information in this changelog is really overwhelming. > > Please explain WHY you need that and HOW

Re: [PATCH 1/6] perf: Add new type PERF_TYPE_PROBE

2017-11-23 Thread Peter Zijlstra
On Wed, Nov 15, 2017 at 09:23:33AM -0800, Song Liu wrote: > A new perf type PERF_TYPE_PROBE is added to allow creating [k,u]probe > with perf_event_open. These [k,u]probe are associated with the file > decriptor created by perf_event_open, thus are easy to clean when > the file descriptor is destro

Re: [RFC PATCH] kvm: arm64: handle single-step of hyp emulated mmio instructions

2017-11-23 Thread Christoffer Dall
Replying to myself here, because I'm an idiot... On Wed, Nov 22, 2017 at 09:41:58PM +0100, Christoffer Dall wrote: [...] > > > case ARM_EXCEPTION_TRAP: > > return handle_trap_exceptions(vcpu, run); > > case ARM_EXCEPTION_HYP_GONE: > > diff --git a/arch/arm64/kvm/hyp/switch.c

[PATCH] [media] dvb_frontend: remove redundant status self assignment

2017-11-23 Thread Colin King
From: Colin Ian King The assignment status to itself is redundant and can be removed. Detected with Coccinelle. Signed-off-by: Colin Ian King --- drivers/media/dvb-frontends/drxd_hard.c| 3 --- drivers/media/dvb-frontends/tda18271c2dd.c | 1 - 2 files changed, 4 deletions(-) diff --git a/

Re: [PATCH v7 12/13] slimbus: qcom: Add runtime-pm support using clock-pause

2017-11-23 Thread Charles Keepax
On Wed, Nov 15, 2017 at 02:10:42PM +, srinivas.kandaga...@linaro.org wrote: > From: Sagar Dharia > > Slimbus HW mandates that clock-pause sequence has to be executed > before disabling relevant interface and core clocks. > Runtime-PM's autosuspend feature is used here to enter/exit low > powe

Re: [PATCH V2] selftest/vm: Add test case for mmap across 128TB boundary.

2017-11-23 Thread Kirill A. Shutemov
On Thu, Nov 23, 2017 at 08:33:13AM +0530, Aneesh Kumar K.V wrote: > From: "Kirill A. Shutemov" > > This patch add a self-test that covers a few corner cases of the interface. > > Signed-off-by: Kirill A. Shutemov > Signed-off-by: Aneesh Kumar K.V > --- > > Changes from V1: > * Add the test to

Re: [PATCH] dmaengine: at_hdmac: fix potential NULL pointer dereference in atc_prep_dma_interleaved

2017-11-23 Thread Ludovic Desroches
On Mon, Nov 20, 2017 at 08:28:14AM -0600, Gustavo A. R. Silva wrote: > _xt_ is being dereferenced before it is null checked, hence there is a > potential null pointer dereference. > > Fix this by moving the pointer dereference after _xt_ has been null > checked. > > This issue was detected with t

Re: [PATCH v7 11/13] slimbus: qcom: Add Qualcomm Slimbus controller driver

2017-11-23 Thread Charles Keepax
On Wed, Nov 15, 2017 at 02:10:41PM +, srinivas.kandaga...@linaro.org wrote: > From: Sagar Dharia > > This controller driver programs manager, interface, and framer > devices for Qualcomm's slimbus HW block. > Manager component currently implements logical address setting, > and messaging inte

Re: [PATCH 3/6] perf: implement kprobe support to PERF_TYPE_PROBE

2017-11-23 Thread Peter Zijlstra
On Wed, Nov 15, 2017 at 09:23:36AM -0800, Song Liu wrote: > +int perf_probe_init(struct perf_event *p_event) > +{ > + __aligned_u64 aligned_probe_desc; > + > + /* > + * attr.probe_desc may not be 64-bit aligned on 32-bit systems. > + * Make an aligned copy of it to before u64_to_

Re: Support TrackStick of Thinkpad L570

2017-11-23 Thread Jonathan Liu
Hi Masaki, On 20 November 2017 at 18:55, Masaki Ota <012ne...@gmail.com> wrote: > From: Masaki Ota > - The issue is that Thinkpad L570 TrackStick does not work. Because the main > interface of Thinkpad L570 device is SMBus, so ALPS overlooked PS2 interface > Firmware setting of TrackStick. The

Re: [PATCH v2 06/18] x86/kasan/64: Teach KASAN about the cpu_entry_area

2017-11-23 Thread Andrey Ryabinin
On 11/22/2017 06:22 PM, Andy Lutomirski wrote: > On Wed, Nov 22, 2017 at 1:05 AM, Andrey Ryabinin > wrote: >> >> >> On 11/22/2017 07:44 AM, Andy Lutomirski wrote: >>> The cpu_entry_area will contain stacks. Make sure that KASAN has >>> appropriate shadow mappings for them. >>> >>> Cc: Andrey Ry

Re: kernel CI: printk loglevels in kernel boot logs?

2017-11-23 Thread Petr Mladek
On Wed 2017-11-22 20:52:45, Fengguang Wu wrote: > On Wed, Nov 22, 2017 at 09:38:21PM +0900, Sergey Senozhatsky wrote: > > On (11/22/17 12:34), Petr Mladek wrote: > > [..] > > > > > > This is espeically useful when ingesting kernel logs into advanced > > > > > > search/analytics frameworks (I'm play

[PATCH] gpio: uniphier: fix mismatch between license text and MODULE_LICENSE

2017-11-23 Thread Masahiro Yamada
The comment block of this file indicates GPL-2.0 "only", while the MODULE_LICENSE is GPL-2.0 "or later", as include/linux/module.h describes as follows: "GPL" [GNU Public License v2 or later] "GPL v2"[GNU Public License v2] I am the author of

Re: [PATCH 1/6] perf: Add new type PERF_TYPE_PROBE

2017-11-23 Thread Peter Zijlstra
On Wed, Nov 15, 2017 at 09:23:33AM -0800, Song Liu wrote: > Note: We use type __u64 for pointer probe_desc instead of __aligned_u64. > The reason here is to avoid changing the size of struct perf_event_attr, > and breaking new-kernel-old-utility scenario. To avoid alignment problem > with the poin

Re: [PATCH] VSOCK: Don't call vsock_stream_has_data in atomic context

2017-11-23 Thread Stefan Hajnoczi
On Tue, Nov 21, 2017 at 10:46 AM, Jorgen Hansen wrote: > When using the host personality, VMCI will grab a mutex for any > queue pair access. In the detach callback for the vmci vsock > transport, we call vsock_stream_has_data while holding a spinlock, > and vsock_stream_has_data will access a que

Re: [PATCH V14 03/24] mmc: core: Do not leave the block driver in a suspended state

2017-11-23 Thread Linus Walleij
On Tue, Nov 21, 2017 at 2:42 PM, Adrian Hunter wrote: > The block driver must be resumed if the mmc bus fails to suspend the card. > > Signed-off-by: Adrian Hunter Reviewed-by: Linus Walleij Also looks like a clear candidate for fixes. Yours, Linus Walleij

Re: [PATCH V14 02/24] mmc: block: Check return value of blk_get_request()

2017-11-23 Thread Linus Walleij
On Tue, Nov 21, 2017 at 2:42 PM, Adrian Hunter wrote: > blk_get_request() can fail, always check the return value. > > Fixes: 0493f6fe5bde ("mmc: block: Move boot partition locking into a driver > op") > Fixes: 3ecd8cf23f88 ("mmc: block: move multi-ioctl() to use block layer") > Fixes: 614f0388f

Re: [PATCH v5 4/8] drivers/fsi: sbefifo: Add in-kernel API

2017-11-23 Thread kbuild test robot
/commits/Eddie-James/drivers-fsi-Add-SBEFIFO-and-OCC-client-drivers/20171123-041813 config: um-allyesconfig (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: # save the attached .config to linux build tree make ARCH=um All errors (new ones prefixed by

Re: [PATCH 0/6] enable creating [k,u]probe with perf_event_open

2017-11-23 Thread Peter Zijlstra
On Thu, Nov 23, 2017 at 01:02:00AM -0800, Christoph Hellwig wrote: > Just curious: why do you want to overload a multiplexer syscall even > more instead of adding explicit syscalls? Mostly because perf provides much of what they already want; fd-based lifetime and bpf integration.

Re: [PATCH V14 01/24] mmc: block: Fix missing blk_put_request()

2017-11-23 Thread Linus Walleij
On Tue, Nov 21, 2017 at 2:42 PM, Adrian Hunter wrote: > Ensure blk_get_request() is paired with blk_put_request(). > > Fixes: 0493f6fe5bde ("mmc: block: Move boot partition locking into a driver > op") > Fixes: 627c3ccfb46a ("mmc: debugfs: Move block debugfs into block module") > Signed-off-by:

[PATCH v5] dma-debug: fix incorrect pfn calculation

2017-11-23 Thread miles.chen
From: Miles Chen dma-debug reports the following warning: [name:panic&]WARNING: CPU: 3 PID: 298 at kernel-4.4/lib/dma-debug.c:604 debug _dma_assert_idle+0x1a8/0x230() DMA-API: cpu touching an active dma mapped cacheline [cln=0x0882300] CPU: 3 PID: 298 Comm: vold Tainted: GW O4.4

Re: [PATCH v1 04/10] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2017-11-23 Thread Geert Uytterhoeven
Hi Jacopo, On Wed, Nov 15, 2017 at 11:55 AM, Jacopo Mondi wrote: > Add Capture Engine Unit (CEU) node to device tree. > > Signed-off-by: Jacopo Mondi Thanks for your patch! > --- a/arch/arm/boot/dts/r7s72100.dtsi > +++ b/arch/arm/boot/dts/r7s72100.dtsi > @@ -136,8 +136,8 @@ >

[PATCH] HID: input: do not increment usages when a duplicate is found

2017-11-23 Thread Benjamin Tissoires
This is something that bothered us from a long time. When hid-input doesn't know how to map a usage, it uses *_MISC. But there is something else which increments the usage if the evdev code is already used. This leads to few issues: - some devices may have their ABS_X mapped to ABS_Y if they expor

Re: [PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value

2017-11-23 Thread Linus Walleij
On Thu, Nov 23, 2017 at 4:50 AM, Gustavo A. R. Silva wrote: > Check return value from call to devm_kzalloc() in order to prevent > a NULL pointer dereference. > > This issue was detected with the help of Coccinelle. > > Fixes: b2e6392f ("i2c: gpio: Convert to use descriptors") > Signed-off-by

[PATCH 3/3] scsi: arcmsr: Update driver version to v1.40.00.03-20171121

2017-11-23 Thread Ching Huang
From: Ching Huang Update driver version to v1.40.00.03-20171121 Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2017-11-23 14:29:46.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr.h 2017-11-23

Re: [PATCH] drm/mediatek: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

2017-11-23 Thread Philipp Zabel
On Tue, 2017-11-21 at 23:31 +0100, Vasyl Gomonovych wrote: > Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). > > drivers/gpu/drm/mediatek/mtk_drm_gem.c:223:9-16: WARNING: ERR_CAST can be > used with mtk_gem > Generated by: scripts/coccinelle/api/err_cast.cocci > > Signed-off-by:

[PATCH 2/3] scsi: arcmsr: Add driver module parameter msix_enable

2017-11-23 Thread Ching Huang
From: Ching Huang Add module parameter msix_enable to has a chance to disable msix interrupt if it does not work properly. Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c --- a/drivers/scsi/arcmsr/arcmsr_hba.c 2017-11-23 16:02:2

[PATCH 1/3] scsi: arcmsr: Add driver module parameter msi_enable

2017-11-23 Thread Ching Huang
From: Ching Huang Add module parameter msi_enable to has a chance to disable msi interrupt if it does not work properly. Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c --- a/drivers/scsi/arcmsr/arcmsr_hba.c 2017-11-23 14:29:26.

Re: [PATCH] r8152: disable rx checksum offload on Dell TB dock

2017-11-23 Thread Greg KH
On Thu, Nov 23, 2017 at 04:53:41PM +0800, Kai Heng Feng wrote: > > > On 23 Nov 2017, at 3:58 PM, Greg KH wrote: > > > > On Thu, Nov 23, 2017 at 01:38:38AM -0500, Kai-Heng Feng wrote: > >> r8153 on Dell TB dock corrupts rx packets. > >> > >> The root cause is not found yet, but disabling rx chec

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-23 Thread Ard Biesheuvel
On 23 November 2017 at 09:07, Pavel Machek wrote: > Hi! > >> > On 22 Nov 2017, at 23:37, Pavel Machek wrote: >> > >> > Hi! >> > >> > If I'm willing to do timing attacks to defeat KASLR... what prevents >> > me from using CPU caches to do that? >> > >> >> Because it is imposs

[PATCH 0/3] scsi: arcmsr: add driver module parameter - msi_enable, msix_enable

2017-11-23 Thread Ching Huang
From: Ching Huang Hi all, The following patches apply to Martin's 4.16/scsi-queue. Patch 1: Add module parameter msi_enable to has a chance to disable msi interrupt if it does not work properly. Patch 2: Add module parameter msix_enable to has a chance to disable msix interrupt if it does no

Re: hugetlb page migration vs. overcommit

2017-11-23 Thread Michal Hocko
On Wed 22-11-17 11:11:38, Mike Kravetz wrote: > On 11/22/2017 07:28 AM, Michal Hocko wrote: [...] > > Why don't we simply migrate as long as we are able to allocate the > > target hugetlb page? I have a half baked patch to remove this > > restriction, would there be an opposition to do something li

[PATCH] x86/umip: Fix insn_get_code_seg_params()'s return value

2017-11-23 Thread Borislav Petkov
From: Borislav Petkov In order to save on redundant structs definitions insn_get_code_seg_params() was made to return two 4-bit values in a char but clang complains: arch/x86/lib/insn-eval.c:780:10: warning: implicit conversion from 'int' to 'char' changes value from 132 to -124 [-W

Re: [PATCH v2] mm/cma: fix alloc_contig_range ret code/potential leak

2017-11-23 Thread Michal Hocko
On Wed 22-11-17 10:52:14, Mike Kravetz wrote: > If the call __alloc_contig_migrate_range() in alloc_contig_range > returns -EBUSY, processing continues so that test_pages_isolated() > is called where there is a tracepoint to identify the busy pages. > However, it is possible for busy pages to becom

Re: [PATCH] ALSA: hda: Add Raven PCI ID

2017-11-23 Thread Takashi Iwai
On Thu, 23 Nov 2017 15:37:00 +0100, Vijendar Mukunda wrote: > > This commit adds PCI ID for Raven platform > v2: Comment added for Raven > > Signed-off-by: Vijendar Mukunda Applied, thanks. Takashi

Re: [PATCH 6/8] drm/mediatek: Add mfd support for mt8173

2017-11-23 Thread Philipp Zabel
On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > Use the MFD device for SoC mt8173. Probing via devicetree > is no longer needed for any SoC, so delete it. > > Signed-off-by: Matthias Brugger Apart from the mmsys_private issue noted in previous patches, Reviewed-by: Philipp Zabel

Re: [PATCH 5/8] mfd: mtk-mmsys: Add mt8173 nodes

2017-11-23 Thread Philipp Zabel
On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > Add devices for the mt8173 SoC. > > Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] KVM: VMX: Fix vmx->nested freeing when no SMI handler

2017-11-23 Thread Wanpeng Li
d2017-11-23 0:56 GMT+08:00 Paolo Bonzini : > On 22/11/2017 10:43, Liran Alon wrote: I think we should also set "vmx->nested.smm.vmxon = false;" after "vmx->nested.vmxon = false;" to correctlyhandle the case VMXOFF is executed from SMI handler. Otherwise, when SMI handler ex

Re: [PATCH 3/8] drm/mediatek: mt2701: switch to mfd probing.

2017-11-23 Thread Philipp Zabel
On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > With the mtk-mmsys MFD device in place, we switch the probing for > mt2701 from device-tree to mfd. > > Signed-off-by: Matthias Brugger > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 32 +--- > 1 file chan

Re: [PATCH 2/8] mfd: mtk-mmsys: Add mmsys driver

2017-11-23 Thread Philipp Zabel
Hi Matthias, On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > The MMSYS subsystem includes clocks and drm components. > This patch adds a MFD device to probe both drivers from the same > device tree compatible. > > Signed-off-by: Matthias Brugger > --- > drivers/mfd/Kconfig |

[PATCH] kaslr: clean up a useless variable and some usless space

2017-11-23 Thread Chao Fan
There are two same variable "rc" in mem_avoid_memmap. One is in the circulation, the other is out of the circulation. The one out will never be used, so drop it. Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-23 Thread Pavel Machek
Hi! > > On 22 Nov 2017, at 23:37, Pavel Machek wrote: > > > > Hi! > > > > If I'm willing to do timing attacks to defeat KASLR... what prevents > > me from using CPU caches to do that? > > > > Because it is impossible to get a cache hit on an access to an > unmapped

RE: No check of the size passed to unmap_single in swiotlb

2017-11-23 Thread Eric Yang
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Tuesday, November 21, 2017 12:50 AM > To: Konrad Rzeszutek Wilk ; Eric Yang > ; io...@lists.linux-foundation.org > Cc: Daniel Borkmann ; Kees Cook > ; Geert Uytterhoeven ; > Greg Kroah-Hartman ; linux- > ker..

[PATCH] powerpc/xive: store server for masked interrupt in kvmppc_xive_set_xive()

2017-11-23 Thread Laurent Vivier
This is needed to map kvmppc_xive_set_xive() behavior to kvmppc_xics_set_xive(). As we store the server, kvmppc_xive_get_xive() can return the good value and we can also allow kvmppc_xive_int_on(). Signed-off-by: Laurent Vivier --- arch/powerpc/kvm/book3s_xive.c | 20 1 fil

Re: [PATCH] dma-debug: use virt_addr_valid() to check linear addresses

2017-11-23 Thread Miles Chen
On Thu, 2017-11-23 at 09:58 +0100, Christoph Hellwig wrote: > Can you just resend the original patch with the fixes? > No problem. I'll resend the original patch with this fix.

Re: [PATCH 2/8] mfd: mtk-mmsys: Add mmsys driver

2017-11-23 Thread CK Hu
Hi, Matthias: On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > The MMSYS subsystem includes clocks and drm components. > This patch adds a MFD device to probe both drivers from the same > device tree compatible. > > Signed-off-by: Matthias Brugger > --- > drivers/mfd/Kconfig |

[RFC PATCH] arch, mm: introduce arch_tlb_gather_mmu_exit

2017-11-23 Thread Michal Hocko
From: Michal Hocko 5a7862e83000 ("arm64: tlbflush: avoid flushing when fullmm == 1") has introduced an optimization to not flush tlb when we are tearing the whole address space down. Will goes on to explain : Basically, we tag each address space with an ASID (PCID on x86) which : is resident in

[PATCH] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
This patch is from "[PATCH v19 0/6] drm/i915/gvt: Dma-buf support for GVT-g": https://lists.freedesktop.org/archives/intel-gvt-dev/2017-November/002508.html The RGB 64-bit 16:16:16:16 float pixel format is needed by some Apps in windows. The float format in each component is 1:5:10 MSb-sign:expone

[PATCH] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by some Apps in windows. The float format in each component is 1:5:10 MSb-sign:exponent: fraction. This patch is to introduce the format to drm, so that the windows guest's framebuffer in this kind of format can be recognized and used by linu

[PATCH] ALSA: hda: Add Raven PCI ID

2017-11-23 Thread Vijendar Mukunda
This commit adds PCI ID for Raven platform v2: Comment added for Raven Signed-off-by: Vijendar Mukunda --- sound/pci/hda/hda_intel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 01eb1dc..44babe5 100644 --- a/sound/pci/hda/hda_

Re: [PATCH 0/6] enable creating [k,u]probe with perf_event_open

2017-11-23 Thread Christoph Hellwig
Just curious: why do you want to overload a multiplexer syscall even more instead of adding explicit syscalls?

Re: Linux & FAT32 label

2017-11-23 Thread Pali Rohár
On Wednesday 22 November 2017 12:03:52 Karel Zak wrote: > On Wed, Nov 22, 2017 at 09:52:03AM +0100, Pali Rohár wrote: > > I can prepare patches for blkid (util-linux), but I do not like idea to > > have different algorithm how is read label in fatlabel and blkid. Both > > tools are used by differen

Re: [v4,2/3] drivers: hwmon: Add W83773G driver

2017-11-23 Thread Guenter Roeck
On 11/22/2017 10:32 PM, Joel Stanley wrote: On Sun, Nov 19, 2017 at 2:45 AM, Guenter Roeck wrote: On Mon, Nov 13, 2017 at 11:27:33AM +0800, Lei YU wrote: Nuvoton W83773G is a hardware monitor IC providing one local temperature and two remote temperature sensors. Signed-off-by: Lei YU Appli

Re: [PATCH] dma-debug: use virt_addr_valid() to check linear addresses

2017-11-23 Thread Christoph Hellwig
Can you just resend the original patch with the fixes?

Re: [RFC PATCH for 4.15 v3 15/22] rseq: selftests: Provide self-tests

2017-11-23 Thread Peter Zijlstra
On Thu, Nov 23, 2017 at 09:55:11AM +0100, Peter Zijlstra wrote: > On Tue, Nov 21, 2017 at 09:18:53AM -0500, Mathieu Desnoyers wrote: > > +static inline __attribute__((always_inline)) > > +int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, > > + int cpu) > > +{ > > + __a

Re: [RFC PATCH for 4.15 v3 15/22] rseq: selftests: Provide self-tests

2017-11-23 Thread Peter Zijlstra
On Tue, Nov 21, 2017 at 09:18:53AM -0500, Mathieu Desnoyers wrote: > +int percpu_list_push(struct percpu_list *list, struct percpu_list_node *node) > +{ > + intptr_t *targetptr, newval, expect; > + int cpu, ret; > + > + /* Try fast path. */ > + cpu = rseq_cpu_start(); > + /* Lo

Re: [PATCH 1/8] drm/mediatek: Use regmap for register access

2017-11-23 Thread Philipp Zabel
Hi Matthias, On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > The mmsys memory space is shared between the drm and the > clk driver. Use regmap to access it. > > Signed-off-by: Matthias Brugger > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++-- > drivers/gpu/drm/mediatek/mtk

Re: [PATCH AUTOSEL for 4.14 18/51] perf callchain: Compare symbol name for inlined frames when matching

2017-11-23 Thread Milian Wolff
On Wednesday, November 22, 2017 11:25:40 PM CET alexander.le...@verizon.com wrote: > From: Milian Wolff > > [ Upstream commit 9856240ad3269f2fdab0b2fa4400ef8aab792061 ] Hello Alexander, this is the first time I encounter AUTOSEL. I just want to check: The patch below depends on others in a wh

Re: x86/insn-eval: negative return value?

2017-11-23 Thread Borislav Petkov
On Wed, Nov 22, 2017 at 03:17:09PM -0800, Kees Cook wrote: > clang-5.0 appears to be the minimum version needed (to produce > something that actually boots and runs). Yap, thanks, with that I was able to reproduce. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smitha

★ lintaowenxue --“2018世界复合材料展览及会议”将于“3月”在“法国巴黎”举行 (地右P1-L-Me)

2017-11-23 Thread linux-kernel-owner
尊敬的 lintaowen...@163.com 企业领导/公司负责人/业界专家,您好:       新材料为21世纪三大共性关键技术之一,已成为全球经济迅速增长的源动力和提升核心竞争力的战略焦点。材料作为制造业的基础,特别是新材料研究和产业发展的水平与规模,已经成为衡量一个国家科技进步和综合实力的重要标志。在新材料发展与应用中,复合材料占有相当重要的地位,特别广泛的应用在汽车、交通、风能、航空、航天、兵器、船舶、国防、机械、电子、化工、建筑、农业、渔业、纺织、运动器材等领域,一直是世界各国优先发展和竞争激烈的重要行业。      “JEC世界复合材料展览及会议”(JEC world Com

Re: [PATCH] r8152: disable rx checksum offload on Dell TB dock

2017-11-23 Thread Kai Heng Feng
> On 23 Nov 2017, at 3:58 PM, Greg KH wrote: > > On Thu, Nov 23, 2017 at 01:38:38AM -0500, Kai-Heng Feng wrote: >> r8153 on Dell TB dock corrupts rx packets. >> >> The root cause is not found yet, but disabling rx checksumming can >> workaround the issue. We can use this connection to decide if

Re: [PATCH 6/8] drm/mediatek: Add mfd support for mt8173

2017-11-23 Thread CK Hu
Hi, Matthias: On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > Use the MFD device for SoC mt8173. Probing via devicetree > is no longer needed for any SoC, so delete it. > > Signed-off-by: Matthias Brugger Acked-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 28 ++

Re: [PATCH AUTOSEL for 4.14 30/51] irqchip/gic: Make quirks matching conditional on init return value

2017-11-23 Thread Marc Zyngier
On 22/11/17 22:25, alexander.le...@verizon.com wrote: > From: Ard Biesheuvel > > [ Upstream commit 9d111d49106b61f5a652d5418e85d8741b1a0427 ] > > As it turns out, the IIDR is not sufficient to distinguish between GICv3 > implementations when it comes to enabling quirks. So update the prototype >

Re: [PATCH 3/8] drm/mediatek: mt2701: switch to mfd probing.

2017-11-23 Thread CK Hu
Hi, Matthias: On Thu, 2017-11-23 at 09:30 +0100, Matthias Brugger wrote: > > On 11/23/2017 06:48 AM, CK Hu wrote: > > Hi, Matthias: > > > > On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: > >> With the mtk-mmsys MFD device in place, we switch the probing for > >> mt2701 from device-tr

[PATCH 2/2] ASoC: cs42l56: Improve two size determinations in cs42l56_i2c_probe()

2017-11-23 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 23 Nov 2017 09:33:15 +0100 Replace the specification of two data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was d

[PATCH 1/2] ASoC: cs42l56: Delete an error message for a failed memory allocation in cs42l56_i2c_probe()

2017-11-23 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 23 Nov 2017 09:26:08 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/soc/codecs/cs42l56.c | 6 ++ 1 file changed, 2 insertions(+)

[PATCH 0/2] ASoC: cs42l56: Adjustments for cs42l56_i2c_probe()

2017-11-23 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 23 Nov 2017 09:38:24 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve two size determinations sound/soc/codecs/cs42l56.c | 13 ---

[PATCH v19 3/6] drm/i915/gvt: Add RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by windows 10 guest VM. This patch is to add this pixel format support to gvt device model. Without this patch, some Apps, e.g. "DXGIGammaVM.exe", will crash and make guest screen black. Signed-off-by: Tina Zhang --- drivers/gpu/drm/i915/gv

[PATCH v19 4/6] vfio: ABI for mdev display dma-buf operation

2017-11-23 Thread Tina Zhang
Add VFIO_DEVICE_QUERY_GFX_PLANE ioctl command to let user query and get a plane and its information. So far, two types of buffers are supported: buffers based on dma-buf and buffers based on region. This ioctl can be invoked with: 1) Either DMABUF or REGION flag. Vendor driver returns a plane_info

[PATCH v19 0/6] drm/i915/gvt: Dma-buf support for GVT-g

2017-11-23 Thread Tina Zhang
v18->v19: 1) include "Handle-orphan-dmabuf_objs.patch". 2) rebase to the latest staging branch. v17->v18: 1) unmap vgpu's opregion when destroying vgpu. 2) update comments for VFIO_DEVICE_GET_GFX_DMABUF. (Alex) v16->v17: 1) modify VFIO_DEVICE_GET_GFX_DMABUF interface. (Alex) 2) add comments for x

[PATCH v19 2/6] drm: Introduce RGB 64-bit 16:16:16:16 float format

2017-11-23 Thread Tina Zhang
The RGB 64-bit 16:16:16:16 float pixel format is needed by some Apps in windows. The float format in each component is 1:5:10 MSb-sign:exponent: fraction. This patch is to introduce the format to drm, so that the windows guest's framebuffer in this kind of format can be recognized and used by linu

[PATCH v19 5/6] drm/i915/gvt: Dmabuf support for GVT-g

2017-11-23 Thread Tina Zhang
This patch introduces a guest's framebuffer sharing mechanism based on dma-buf subsystem. With this sharing mechanism, guest's framebuffer can be shared between guest VM and host. v17: - modify VFIO_DEVICE_GET_GFX_DMABUF interface. (Alex) v16: - add x_hot and y_hot. (Gerd) - add flag validation f

[PATCH v19 6/6] drm/i915/gvt: Handle orphan dmabuf_objs

2017-11-23 Thread Tina Zhang
dmabuf_obj's destruction relys on GEM release operation, which is managed in i915 driver. And there is a time window between vgpu's destruction and its dmabuf_objs' destruction. This patch is to free the orphan dmabuf_objs correctly after the vgpu passes away. Signed-off-by: Tina Zhang Cc: Zhenyu

[PATCH v19 1/6] drm/i915/gvt: Add framebuffer decoder support

2017-11-23 Thread Tina Zhang
This patch is to introduce the framebuffer decoder which can decode guest OS's framebuffer information, including primary, cursor and sprite plane. v16: - rebase to 4.14.0-rc6. v14: - refine pixel format table. (Zhenyu) v9: - move drm format change to a separate patch. (Xiaoguang) v8: - fix a b

Re: [PATCH 3/8] drm/mediatek: mt2701: switch to mfd probing.

2017-11-23 Thread Matthias Brugger
On 11/23/2017 06:48 AM, CK Hu wrote: > Hi, Matthias: > > On Tue, 2017-11-14 at 22:41 +0100, Matthias Brugger wrote: >> With the mtk-mmsys MFD device in place, we switch the probing for >> mt2701 from device-tree to mfd. >> >> Signed-off-by: Matthias Brugger >> --- >> drivers/gpu/drm/mediatek/m

<    1   2   3   4   5   6   7   >