[PATCH] x86: hide unused allocate_percpu_fixmap_ptes

2017-12-18 Thread Arnd Bergmann
The new function is not always used, causing a warning whenever CONFIG_CPU_SUP_INTEL is disabled: arch/x86/kernel/cpu/common.c:522:20: error: 'allocate_percpu_fixmap_ptes' defined but not used [-Werror=unused-function] Hide it in the same #ifdef. Fixes: 3015f86f838c ("x86/fixmap: Add debugstore

[PATCH] wil6210: fix build warnings without CONFIG_PM

2017-12-18 Thread Arnd Bergmann
The #ifdef checks are hard to get right, in this case some functions should have been left inside a CONFIG_PM_SLEEP check as seen by this message: drivers/net/wireless/ath/wil6210/pcie_bus.c:489:12: error: 'wil6210_pm_resume' defined but not used [-Werror=unused-function] drivers/net/wireless/ath

Re: [PATCH v2] x86/kexec: Exclude GART aperture from vmcore

2017-12-18 Thread Baoquan He
On 12/17/17 at 10:47pm, Borislav Petkov wrote: > On Sat, Dec 16, 2017 at 09:01:42AM +0800, Baoquan He wrote: > > 2) If firmware is broken, you can't enable gart in firmware, will > > firmware engineer fix this since it's a firmware bug? > > Slow down and get a reality check first please! > > A fi

Re: [patch V163 39/51] x86/pti: Put the LDT in its own PGD if PTI is on

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 12:42:54PM +0100, Thomas Gleixner wrote: > This will significantly slow down LDT users, but that shouldn't matter for > important workloads -- the LDT is only used by DOSEMU(2), Wine, and very > old libc implementations. > +/* > + * If PTI is enabled, this maps the LDT in

[GIT PULL] MTD fixes for 4.15-rc4

2017-12-18 Thread Richard Weinberger
Linus, The following changes since commit 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36: Linux 4.15-rc3 (2017-12-10 17:56:26 -0800) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/for-linus-20171218 for you to fetch changes up to

Re: [patch V163 51/51] x86/ldt: Make the LDT mapping RO

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 12:43:06PM +0100, Thomas Gleixner wrote: > arch/x86/include/asm/desc.h |2 ++ > arch/x86/kernel/ldt.c |7 ++- > tools/testing/selftests/x86/ldt_gdt.c |3 +-- > 3 files changed, 9 insertions(+), 3 deletions(-) > > --- a/arch/x86/in

Re: [patch V163 24/51] x86/mm/pti: Add mapping helper functions

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 12:42:39PM +0100, Thomas Gleixner wrote: > static inline void native_set_p4d(p4d_t *p4dp, p4d_t p4d) > { > +#if defined(CONFIG_PAGE_TABLE_ISOLATION) && !defined(CONFIG_X86_5LEVEL) > + p4dp->pgd = pti_set_user_pgd(&p4dp->pgd, p4d.pgd); > +#else > *p4dp = p4d; > +#

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-18 Thread Petr Mladek
On Mon 2017-12-18 19:36:24, Sergey Senozhatsky wrote: > it takes call_console_drivers() 0.01+ of a second to print some of > the messages [I think we can ignore raw_spin_lock(&console_owner_lock) > and fully blame call_console_drivers()]. so vprintk_emit() seems to be > gazillion times faster and i

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-12-18 Thread Daniel Thompson
On Mon, Dec 18, 2017 at 11:40:59AM +0100, Enric Balletbo Serra wrote: > Hi Pavel, > > 2017-12-15 21:57 GMT+01:00 Pavel Machek : > > Hi! > > > >> Yes, I think that how you describe luminance and lightness is right, > >> and sounds good improve the doc. > >> > >> To be clear the correction table for

Re: [PATCH] mm: Reduce memory bloat with THP

2017-12-18 Thread Peter Zijlstra
On Fri, Dec 15, 2017 at 11:04:03PM -0800, Nitin Gupta wrote: > >> Orabug: 26910556 > > > > Wat? > > > > It's oracle internal identifier used to track this work. And as such has no place what so ever outside of oracle. Do not include junk like that in upstream patches.

Re: [PATCH] ARM: B15: fix unused label warnings

2017-12-18 Thread Arnd Bergmann
On Mon, Dec 18, 2017 at 2:44 PM, Russell King - ARM Linux wrote: > On Mon, Dec 18, 2017 at 02:41:11PM +0100, Arnd Bergmann wrote: >> The new conditionally compiled code leaves some labels and one >> variable unreferenced when CONFIG_HOTPLUG_CPU and CONFIG_PM_SLEEP >> are disabled: >> >> arch/arm/m

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

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

Re: [SIL2review] [PATCH] fixdep: free memory on second error path of do_config_file

2017-12-18 Thread Masahiro Yamada
2017-12-15 17:23 GMT+09:00 Nicholas Mc Guire : > On Thu, Dec 14, 2017 at 08:54:10PM +0100, Lukas Bulwahn wrote: >> Commit dee81e988674 ("fixdep: faster CONFIG_ search") introduces the memory >> leak when `map = mmap(...)` was replaced with `map = malloc(...)` and >> `read(fd, map, ...)`. It introdu

Re: [PATCH 01/19] fs: new API for handling inode->i_version

2017-12-18 Thread Jeff Layton
On Sat, 2017-12-16 at 15:17 +1100, NeilBrown wrote: > On Wed, Dec 13 2017, Jeff Layton wrote: > > > On Thu, 2017-12-14 at 09:04 +1100, NeilBrown wrote: > > > On Wed, Dec 13 2017, Jeff Layton wrote: > > > > > > > +/* > > > > + * The change attribute (i_version) is mandated by NFSv4 and is mostly

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Leon Romanovsky
On Mon, Dec 18, 2017 at 01:36:26PM +0100, Knut Omang wrote: > On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > > On Sat, Dec 16, 2017 at 03:42:30PM +0100, Knut Omang wrote: > > > Add a runchecks.cfg to drivers/infiniband/core > > > to start "reining in" future checker errors, > > > and m

Re: [PATCH v4 2/2] misc: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP init driver

2017-12-18 Thread Arnd Bergmann
On Mon, Dec 18, 2017 at 2:13 PM, Michal Simek wrote: > On 15.12.2017 14:26, Arnd Bergmann wrote: >> In Fri, Dec 15, 2017 at 8:24 AM, Dhaval Shah wrote: >>> Xilinx ZYNQMP logicoreIP Init driver is based on the new >>> LogiCoreIP design created. This driver provides the processing system >>> and pr

[PATCH][next] bpf: fix spelling mistake: "funcation"-> "function"

2017-12-18 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in error message text. Signed-off-by: Colin Ian King --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 6d8e432453b8..2f6f09cd1925 100644 --- a/ke

Re: [patch V163 01/51] x86/mm/dump_pagetables: Check PAGE_PRESENT for real

2017-12-18 Thread Borislav Petkov
On Mon, Dec 18, 2017 at 12:42:16PM +0100, Thomas Gleixner wrote: > From: Thomas Gleixner > > The check for a present page in printk_prot(): > >if (!pgprot_val(prot)) { > /* Not present */ > > is bogus. If a PTE is set to PAGE_NONE then the pgprot_val is not zero and > th

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2017-12-18 Thread Rafael J. Wysocki
On 12/18/2017 10:17 AM, Marcin Wojtas wrote: Hi, This patchset introduces ACPI support in mvpp2 and mvmdio drivers. First three patches introduce fwnode helpers for obtaining PHY information from nodes and also MDIO fwnode API for registering the bus with its PHY/devices. Following patches upda

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-18 Thread Petr Mladek
On Mon 2017-12-18 14:31:01, Petr Mladek wrote: > On Mon 2017-12-18 18:36:15, Sergey Senozhatsky wrote: > > - it has a significantly worse behaviour compared to old async printk. > > - it keeps sleeping on console_sem tasks in TASK_UNINTERRUPTIBLE > > for a long time. > > - it timeouts user

[PATCH v2 0/6] arm: sunxi: IR support for A83T

2017-12-18 Thread Philipp Rossak
This patch series adds support for the sunxi A83T ir module and enhances the sunxi-ir driver. Right now the base clock frequency for the ir driver is a hard coded define and is set to 8 MHz. This works for the most common ir receivers. On the Sinovoip Bananapi M3 the ir receiver needs, a 3 MHz ba

[PATCH v2 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2017-12-18 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index de5119a2a91c..feffca8a9a24 100644 --- a/arch/arm/b

[PATCH v2 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2017-12-18 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i

[PATCH v2 6/6] arm: dts: sun8i: h3-h8: ir register size should be the whole memory block

2017-12-18 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-12-18 Thread jacopo mondi
Hi Hans, thanks for review comments On Wed, Dec 13, 2017 at 01:03:03PM +0100, Hans Verkuil wrote: > On 15/11/17 11:55, Jacopo Mondi wrote: > > Add driver for Renesas Capture Engine Unit (CEU). > > + > > + /* Register the video device */ > > + strncpy(vdev->name, DRIVER_NAME, strlen(DRIVER_N

[PATCH v2 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-18 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documen

[PATCH v2 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2017-12-18 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-bananapi

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-18 Thread Petr Mladek
On Mon 2017-12-18 22:39:48, Sergey Senozhatsky wrote: > On (12/18/17 14:31), Petr Mladek wrote: > > On Mon 2017-12-18 18:36:15, Sergey Senozhatsky wrote: > > > On (12/15/17 10:08), Petr Mladek wrote: > > > 1) it opens both soft and hard lockup vectors > > > > > >I see *a lot* of cases when CPU

RE: [PATCH 25/27] qede: Use timecounter_reset interface

2017-12-18 Thread Kalluru, Sudarsana
Acked-by: Sudarsana Kalluru -Original Message- From: Sagar Arun Kamble [mailto:sagar.a.kam...@intel.com] Sent: 15 December 2017 13:09 To: linux-kernel@vger.kernel.org Cc: Sagar Arun Kamble ; Richard Cochran ; Elior, Ariel ; Dept-Eng Everest Linux L2 ; net...@vger.kernel.org Subject: [P

RE: [PATCH 18/27] bnx2x: Use timecounter_reset interface

2017-12-18 Thread Kalluru, Sudarsana
Acked-by: Sudarsana Kalluru -Original Message- From: Sagar Arun Kamble [mailto:sagar.a.kam...@intel.com] Sent: 15 December 2017 13:09 To: linux-kernel@vger.kernel.org Cc: Sagar Arun Kamble ; Richard Cochran ; Elior, Ariel ; Dept-Eng Everest Linux L2 ; net...@vger.kernel.org Subject: [P

[PATCH v2 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-18 Thread Philipp Rossak
This patch updates the sunxi-ir driver to set the base clock frequency from devicetree. This is necessary since there are different ir receivers on the market, that operate with different frequencies. So this value could be set if the attached ir receiver needs a different base clock frequency, th

pull-request: wireless-drivers-next 2017-12-18

2017-12-18 Thread Kalle Valo
Hi Dave, a pull request for 4.16 to net-next tree. This is a big one, but on the other hand most of the stuff here has been some time on linux-next so hopefully there are no nasty surprises. Even though Arnd just send a patch[1] five minutes ago about fixing a wcn36xx build warning, but I don't th

Re: [PATCH v4 0/4] rtc: add mxc driver for i.MX53 SRTC

2017-12-18 Thread Philippe Ombredanne
On Mon, Dec 18, 2017 at 12:51 PM, wrote: > From: Patrick Bruenn > > Neither rtc-imxdi, rtc-mxc nor rtc-snvs are compatible with i.MX53. > > This is driver enables support for the low power domain SRTC features: > - 32-bit MSB of non-rollover time counter > - 32-bit alarm register > > Select the

[PATCH] scripts/spelling.txt: add more spelling mistakes to spelling.txt

2017-12-18 Thread Colin King
From: Colin Ian King Here are some of the more spelling mistakes and typos that I've found while fixing up spelling mistakes in kernel error message text since October 2017 Signed-off-by: Colin Ian King --- scripts/spelling.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/scrip

Re: [patch V163 02/51] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-18 Thread Borislav Petkov
On Mon, Dec 18, 2017 at 12:42:17PM +0100, Thomas Gleixner wrote: > From: Andy Lutomirski > > The kernel is very erratic as to which pagetables have _PAGE_USER set. The > vsyscall page gets lucky: it seems that all of the relevant pagetables are > among the apparently arbitrary ones that set _PAG

Re: BUG: bad usercopy in memdup_user

2017-12-18 Thread Tetsuo Handa
On 2017/12/18 22:40, syzbot wrote: > Hello, > > syzkaller hit the following crash on 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > >

Re: [PATCH v2 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-18 Thread Maxime Ripard
On Mon, Dec 18, 2017 at 03:11:42PM +0100, Philipp Rossak wrote: > This patch updates documentation for Device-Tree bindings for sunxi IR > controller and adds the new optional property for the base clock > frequency. > > Signed-off-by: Philipp Rossak > --- > Documentation/devicetree/bindings/med

Re: [PATCH v2 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2017-12-18 Thread Maxime Ripard
On Mon, Dec 18, 2017 at 03:11:43PM +0100, Philipp Rossak wrote: > The CIR Pin of the A83T is located at PL12. > > Signed-off-by: Philipp Rossak > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi > b/arch/arm

Re: [PATCH V2] x86/efi: fix kernel param add_efi_memmap regression

2017-12-18 Thread Matt Fleming
On Sat, 16 Dec, at 12:19:53PM, Dave Young wrote: > 'add_efi_memmap' is an early param, but do_add_efi_memmap() has no > chance to run because the code path is before parse_early_param(). > I believe it worked when the param was introduced but probably later > some other changes caused the wrong ord

Re: perf record: regression with latest PT fix

2017-12-18 Thread Adrian Hunter
On 18/12/17 15:28, Alexander Shishkin wrote: > On Mon, Dec 18, 2017 at 05:03:53AM -0800, Stephane Eranian wrote: >> Hi, >> >> >> The following patch: >> >> f785657b0fbe perf report: Fix regression when decoding Intel-PT traces > > Cc'ing Adrian in case he missed the patch. Doesn't seem to have mu

Re: [PATCH v2 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-18 Thread Bartosz Golaszewski
2017-12-08 22:25 GMT+01:00 Sven Van Asbroeck : > Fundamental properties such as capacity and page size differ > among at24-type chips. But these chips do not have an id register, > so this can't be discovered at runtime. > > Traditionally, at24-type eeprom properties were determined in two ways: >

page allocation failure: order:5 in fbcon_init

2017-12-18 Thread Ivan Kozik
Hello, I observed this page allocation failure in fbcon, while copying files from one XFS filesystem to another. As far as I know, there wasn't anything else unusual going on at the time. The system uptime was about a day. After the allocation failure, I could not allocate any more ttys, and ki

Re: jsm_tty: Deletion of a null pointer check in two functions?

2017-12-18 Thread Guilherme G. Piccoli
On 12/16/2017 04:27 AM, SF Markus Elfring wrote: >> Thanks for the fix. > > Thanks for your positive feedback. > > >> I was on vacation - but now seeing all the analysis made here, > > I assume that special communication settings could trigger > corresponding consequences for the discussed sour

Re: [PATCH] wil6210: fix build warnings without CONFIG_PM

2017-12-18 Thread Kalle Valo
Arnd Bergmann writes: > The #ifdef checks are hard to get right, in this case some functions > should have been left inside a CONFIG_PM_SLEEP check as seen by this > message: > > drivers/net/wireless/ath/wil6210/pcie_bus.c:489:12: error: > 'wil6210_pm_resume' defined but not used [-Werror=unused

Re: [PATCH v3 09/16] driver core: add iommu device fault reporting data

2017-12-18 Thread Greg Kroah-Hartman
On Fri, Nov 17, 2017 at 10:55:07AM -0800, Jacob Pan wrote: > DMA faults can be detected by IOMMU at device level. Adding a pointer > to struct device allows IOMMU subsystem to report relevant faults > back to the device driver for further handling. > For direct assigned device (or user space driver

Re: [PATCH v2] x86/kexec: Exclude GART aperture from vmcore

2017-12-18 Thread Borislav Petkov
On Mon, Dec 18, 2017 at 09:47:36PM +0800, Baoquan He wrote: > pr_info("Your BIOS doesn't leave an aperture memory hole\n"); > pr_info("Please enable the IOMMU option in the BIOS setup\n"); > pr_info("This costs you %dMB of RAM\n", >

Re: [PATCH 3/9] power: remove unneeded kallsyms include

2017-12-18 Thread Sergey Senozhatsky
On (12/17/17 19:04), Rafael J. Wysocki wrote: [..] > > > Do you want me to apply this or do you want to route it differently? > > > > Hello Rafael, > > > > don't mind if you'll pick it up. > > OK, applied now. > > Thanks! thanks! -ss

[GIT PULL 0/5] perf/urgent fixes

2017-12-18 Thread Arnaldo Carvalho de Melo
nce commit 34c9ca37aaec2e307b837bb099d3b44f0ea04ddc: tooling/headers: Synchronize updated s390 and x86 UAPI headers (2017-12-06 22:45:24 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.15-20171218 for yo

[PATCH 1/5] perf tools: Use shell function for perl cflags retrieval

2017-12-18 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Using the shell function for perl CFLAGS retrieval instead of back quotes (``). Both execute shell with the command, but the latter is more explicit and seems to be the preferred way. Also we don't have any other use of the back quotes in perf Makefiles. Signed-off-by: Jiri Olsa

[PATCH 4/5] tools arch s390: Do not include header files from the kernel sources

2017-12-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Long ago we decided to be verbotten including files in the kernel git sources from tools/ living source code, to avoid disturbing kernel development (and perf's and other tools/) when, say, a kernel hacker adds something, tests everything but tools/ and have tools/

[PATCH 5/5] x86/asm: Allow again using asm.h when building for the 'bpf' clang target

2017-12-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Up to f5caf621ee35 ("x86/asm: Fix inline asm call constraints for Clang") we were able to use x86 headers to build to the 'bpf' clang target, as done by the BPF code in tools/perf/. With that commit, we ended up with following failure for 'perf test LLVM', this is

[PATCH 3/5] perf jvmti: Generate correct debug information for inlined code

2017-12-18 Thread Arnaldo Carvalho de Melo
From: Ben Gainey tools/perf/jvmti is broken in so far as it generates incorrect debug information. Specifically it attributes all debug lines to the original method being output even in the case that some code is being inlined from elsewhere. This patch fixes the issue. To test (from within lin

Re: [PATCH v2] devres: use MACRO instead of function for devm_ioremap

2017-12-18 Thread Greg KH
On Mon, Dec 11, 2017 at 04:23:11PM +0800, Yisheng Xie wrote: > Ping... and sorry to disturb. > > Hi maintainers, > Could you please help to review this patch? Wow, I don't think anyone "maintains" this code, so I guess I can take it, sorry for the delay... greg k-h

[PATCH 2/5] perf tools: Fix up build in hardened environments

2017-12-18 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa On Fedora systems the perl and python CFLAGS/LDFLAGS include the hardened specs from redhat-rpm-config package. We apply them only for perl/python objects, which makes them not compatible with the rest of the objects and the build fails with: /usr/bin/ld: perf-in.o: relocation

[PATCH] checkpatch: fix for stripping brackets from macros.

2017-12-18 Thread Jeremy Sowden
When checking macros, checkpatch.pl strips parentheses, square brackets and braces. However, the search-and-replace expression was not correct, and instead of replacing the brackets and their contents with just the contents, it was replacing them with literal 1's. Signed-off-by: Jeremy Sowden --

Re: [patch V163 03/51] x86/vsyscall/64: Warn and fail vsyscall emulation in NATIVE mode

2017-12-18 Thread Borislav Petkov
On Mon, Dec 18, 2017 at 12:42:18PM +0100, Thomas Gleixner wrote: > From: Andy Lutomirski > > If something goes wrong with pagetable setup, vsyscall=native will > accidentally fall back to emulation. Make it warn and fail so that we > notice. > > Signed-off-by: Andy Lutomirski > Signed-off-by:

[PATCH/RFC] llist: add llist_[add|del_first]_exclusive

2017-12-18 Thread Vitaly Wool
It sometimes is necessary to be able to be able to use llist in the following manner: if (node_unlisted(node)) llst_add(node, list); i. e. only add a node to the list if it's not already on a list. This is not possible without taking locks because otherwise there's an obvio

[PATCH RESEND] Bluetooth: Prevent stack info leak from the EFS element.

2017-12-18 Thread Greg Kroah-Hartman
From: Ben Seri In the function l2cap_parse_conf_rsp and in the function l2cap_parse_conf_req the following variable is declared without initialization: struct l2cap_conf_efs efs; In addition, when parsing input configuration parameters in both of these functions, the switch case for handling EF

Re: [PATCH 2/3 v5] battery: Add the ThinkPad "Not Charging" quirk

2017-12-18 Thread Pavel Machek
On Sun 2017-12-10 19:05:29, Ognjen Galic wrote: > The EC/ACPI firmware on Lenovo ThinkPads used to report a status > of "Unknown" when the battery is between the charge start and > charge stop thresholds. On Windows, it reports "Not Charging" > so the quirk has been added to also report correctly.

Re: [PATCH] tests/xfs/040: document purpose

2017-12-18 Thread Bill O'Donnell
On Fri, Dec 15, 2017 at 12:41:18PM -0800, Luis R. Rodriguez wrote: > Getting xfs/040 to "pass" takes a bit of effort, however the effort > to require updating xfsprogs is purely an xfsprogs maintainer task > only. There no functional gain by users of xfs or a QA team to get > this test to pass. Thi

Re: [PATCH v5 0/5] misc serdev: new serdev based driver for Wi2Wi w2sg00x4 GPS module

2017-12-18 Thread Greg Kroah-Hartman
On Mon, Dec 18, 2017 at 09:52:07AM +0100, H. Nikolaus Schaller wrote: > Hi, > unfortunately I had lost to include Andrew Davis' address who had provided > very valuable comments for v5. Sorry, Andrew! > > There has only been one more comment by Andreas Färber in the past 14 days. > > So how to pr

Re: [PATCH 0/2] arm64 SMMUv3 PMU driver with IORT support

2017-12-18 Thread Robin Murphy
On 10/12/17 02:35, Linu Cherian wrote: Hi, On Fri Aug 04, 2017 at 03:59:12PM -0400, Neil Leeder wrote: This adds a driver for the SMMUv3 PMU into the perf framework. It includes an IORT update to support PM Counter Groups. In one of Cavium's upcoming SOC, SMMU PMCG implementation is such a

Re: INFO: task hung in filemap_fault

2017-12-18 Thread Tetsuo Handa
On 2017/12/18 17:43, syzbot wrote: > Hello, > > syzkaller hit the following crash on 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > >

Re: Memory hotplug regression in 4.13

2017-12-18 Thread Michal Hocko
On Fri 01-12-17 08:23:27, Seth Forshee wrote: > On Mon, Sep 25, 2017 at 02:58:25PM +0200, Michal Hocko wrote: > > On Thu 21-09-17 00:40:34, Seth Forshee wrote: [...] > > > It seems I don't have that kernel anymore, but I've got a 4.14-rc1 build > > > and the problem still occurs there. It's pointin

Re: [PATCH v5 0/5] misc serdev: new serdev based driver for Wi2Wi w2sg00x4 GPS module

2017-12-18 Thread H. Nikolaus Schaller
> Am 18.12.2017 um 15:48 schrieb Greg Kroah-Hartman > : > > On Mon, Dec 18, 2017 at 09:52:07AM +0100, H. Nikolaus Schaller wrote: >> Hi, >> unfortunately I had lost to include Andrew Davis' address who had provided >> very valuable comments for v5. Sorry, Andrew! >> >> There has only been one m

Re: [BUG] Build error for 4.15-rc3 kernel caused by patch "kbuild: Add a cache for generated variables"

2017-12-18 Thread Masahiro Yamada
2017-12-17 7:35 GMT+09:00 Yang Shi : > Hi folks, > > I just upgraded gcc to 6.4 on my centos 7 machine by Arnd's suggestion. But, > I ran into the below compile error with 4.15-rc3 kernel: > > In file included from ./include/uapi/linux/uuid.h:21:0, > from ./include/linux/uuid.h:19,

[PATCH v2 06/12] drm/sun4i: engine: Create an atomic_begin callback

2017-12-18 Thread Maxime Ripard
We have to implement some display engine specific behaviours in atomic_begin. Let's add a function for that. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 6 +- drivers/gpu/drm/sun4i/sunxi_engine.h | 13 + 2 files changed, 18 insertions(+), 1 deletion(-

[PATCH v2 03/12] drm/sun4i: backend: Add a custom plane state

2017-12-18 Thread Maxime Ripard
We will need to store some additional data in the future to the state. Create a custom plane state that will embed those data, in order to store the pipe or whether or not that plane should use the frontend. Reviewed-by: Neil Armstrong Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4

[PATCH v2 01/12] drm/sun4i: backend: Move line stride setup to buffer setup function

2017-12-18 Thread Maxime Ripard
Setup the line stride in the buffer setup function, since it's tied to the buffer itself, and is not needed when we do not set the buffer in the backend. This is for example the case when using the frontend and then routing its output to the backend. Reviewed-by: Neil Armstrong Signed-off-by: Ma

[PATCH v2 10/12] drm/sun4i: backend: Use runtime_pm variant of atomic_commit_tail

2017-12-18 Thread Maxime Ripard
During a hardware commit, the commit bit in the backend will only be cleared if the TCON is enabled. Use the runtime_pm variant of the atomic_commit_tail hook that makes sure that the CRTC, our TCON, is enabled when we perform an atomic_commit. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/su

[PATCH v2 12/12] ARM: dts: sun8i: a33 Enable our display frontend

2017-12-18 Thread Maxime Ripard
The display frontend can be used to do hardware scaling, colorspaces conversion or to implement the buffer format output by the Cedar VPU. Since we're starting to have some support for it in the DRM driver, let's enable its DT node. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33.d

[PATCH v2 08/12] drm/sun4i: backend: Wire in the frontend

2017-12-18 Thread Maxime Ripard
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 backend to not perform the DMA but receive its data from the front

[PATCH v2 09/12] drm/sun4i: backend: Add a custom atomic_check for the frontend

2017-12-18 Thread Maxime Ripard
Now that we have everything in place, we can start enabling the frontend. This is more difficult than one would assume since there can only be one plane using the frontend per-backend. We therefore need to make sure that the userspace will not try to setup multiple planes using it, since that woul

[PATCH v2 11/12] drm/sun4i: backend: Make sure we don't have a commit pending

2017-12-18 Thread Maxime Ripard
If we try to read the backend registers while it fetches the new values, we end up with the value of some random register instead of the one we asked for. In order to prevent that, let's make sure that the very first thing we do during our atomic modesetting is to let the commit bit come to a rest

[PATCH v2 00/12] drm/sun4i: Support the Display Engine frontend

2017-12-18 Thread Maxime Ripard
Hi, This is a first serie to enable the display engine frontend. This hardware block is found in the first generation Display Engine from Allwinner. Its role is to implement more advanced features that the associated backend, even though the backend alone can be used (and was used so far) for bas

[PATCH v2 07/12] drm/sun4i: Add a driver for the display frontend

2017-12-18 Thread Maxime Ripard
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 driver for it that will only enable the hardware scaling featur

Assalamu`Alaikum.

2017-12-18 Thread Mohammad Ouattara
Greetings from Dr. mohammad ouattara. Assalamu`Alaikum. My Name is Dr. mohammad ouattara, I am a banker by profession. I'm from Ouagadougou, Burkina Faso, West Africa. My reason for contacting you is to transfer an abandoned $14.6M to your account. The owner of this fund died since 2004 wit

[PATCH v2 04/12] drm/sun4i: engine: Add a custom crtc atomic_check

2017-12-18 Thread Maxime Ripard
We have some restrictions on what the planes and CRTC can provide that are tied to only one generation of display engines. For example, on the first generation, we can only have one YUV plane or one plane that uses the frontend output. Let's allow our engines to provide an atomic_check callback t

[PATCH v2 05/12] drm/sun4i: engine: Add a VBLANK quirk callback

2017-12-18 Thread Maxime Ripard
In some cases, the display engine needs to apply some quirks during the VBLANK event. In the Display Engine 1.0 case for example, we can only disable the frontend once the backend has been, which is at VBLANK. Let's introduce a callback that can be implemented by the various engines. Signed-off-b

[PATCH v2 02/12] sun4i/drm: backend: Document the engine operations

2017-12-18 Thread Maxime Ripard
Our operations were missing some documentation to explain what was expected from them. Let's make that clearer. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_backend.c | 2 +- drivers/gpu/drm/sun4i/sunxi_engine.h | 51 ++-- 2 files changed, 50 insertions

Assalamu`Alaikum.

2017-12-18 Thread Mohammad Ouattara
Greetings from Dr. mohammad ouattara. Assalamu`Alaikum. My Name is Dr. mohammad ouattara, I am a banker by profession. I'm from Ouagadougou, Burkina Faso, West Africa. My reason for contacting you is to transfer an abandoned $14.6M to your account. The owner of this fund died since 2004 wit

Re: [PATCH 3/3] misc: ad525x_dpot: macros should not use a trailing semicolon

2017-12-18 Thread Greg KH
On Fri, Dec 08, 2017 at 01:43:05PM +0530, Dhaval Shah wrote: > Resolved all the macros should not use a trailing semicolon > checkpatch warnings. Issue found by checkpatch. > > Signed-off-by: Dhaval Shah > --- > drivers/misc/ad525x_dpot.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletion

Assalamu`Alaikum.

2017-12-18 Thread Mohammad Ouattara
Greetings from Dr. mohammad ouattara. Assalamu`Alaikum. My Name is Dr. mohammad ouattara, I am a banker by profession. I'm from Ouagadougou, Burkina Faso, West Africa. My reason for contacting you is to transfer an abandoned $14.6M to your account. The owner of this fund died since 2004 wit

[PATCH][next] ath10k: wmi: remove redundant integer fc

2017-12-18 Thread Colin King
From: Colin Ian King Variable fc is being assigned but never used, so remove it. Cleans up the clang warning: warning: Value stored to 'fc' is never read Signed-off-by: Colin Ian King --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ne

[PATCH v6 0/3] iio: temperataure: MLX90632

2017-12-18 Thread Crt Mori
Hi everybody, With the sensor now available to broad public, it is time to also share the driver with the community. MLX90632 is just 3x3mm in size, but with factory calibration offers instant usage in every project. Driver currently provides basic functionality, but I might add some more fancy f

[PATCH v6 1/3] lib: Add strongly typed 64bit int_sqrt

2017-12-18 Thread Crt Mori
There is no option to perform 64bit integer sqrt on 32bit platform. Added stronger typed int_sqrt64 enables the 64bit calculations to be performed on 32bit platforms. Although int_sqrt() is a rough approximation, the same algorithm is used in int_sqrt64() as good enough on 32bit platform. Signed-o

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

2017-12-18 Thread Greg Kroah-Hartman
On Thu, Dec 07, 2017 at 10:30:04AM +0100, Uwe Kleine-König wrote: > SIOX is a bus system invented at Eckelmann AG to control their building > management and refrigeration systems. Traditionally the bus was > implemented on custom microcontrollers, today Linux based machines are > in use, too. > >

Re: [PATCH 1/4] gpio: sysfs: change 'value' attribute to prealloc

2017-12-18 Thread Christophe LEROY
Le 18/12/2017 à 11:18, Bartosz Golaszewski a écrit : 2017-12-18 11:08 GMT+01:00 Christophe Leroy : The GPIO 'value' attribute is time critical. A small bench with 'perf record' on the app below shows that 80% of the time spent in sysfs_kf_seq_show() is spent in memset() for zeroising the buffe

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

2017-12-18 Thread Greg Kroah-Hartman
On Thu, Dec 07, 2017 at 10:30:04AM +0100, Uwe Kleine-König wrote: > SIOX is a bus system invented at Eckelmann AG to control their building > management and refrigeration systems. Traditionally the bus was > implemented on custom microcontrollers, today Linux based machines are > in use, too. > >

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

2017-12-18 Thread Greg Kroah-Hartman
On Thu, Dec 07, 2017 at 10:30:07AM +0100, Uwe Kleine-König wrote: > This driver controls a SIOX device that provides 20 I/O lines. The first > twelve are fixed inputs, the remaining eight are outputs. > > Acked-by: Gavin Schenk > Signed-off-by: Uwe Kleine-König > --- > drivers/gpio/Kconfig

Re: [PATCH v10 3/5] bpf: add a bpf_override_function helper

2017-12-18 Thread Daniel Borkmann
On 12/18/2017 10:51 AM, Masami Hiramatsu wrote: > On Fri, 15 Dec 2017 14:12:54 -0500 > Josef Bacik wrote: >> From: Josef Bacik >> >> Error injection is sloppy and very ad-hoc. BPF could fill this niche >> perfectly with it's kprobe functionality. We could make sure errors are >> only triggered

[PATCH v3 06/19] btrfs: convert to new i_version API

2017-12-18 Thread Jeff Layton
From: Jeff Layton Signed-off-by: Jeff Layton --- fs/btrfs/delayed-inode.c | 7 +-- fs/btrfs/file.c | 1 + fs/btrfs/inode.c | 7 +-- fs/btrfs/ioctl.c | 1 + fs/btrfs/tree-log.c | 4 +++- fs/btrfs/xattr.c | 1 + 6 files changed, 16 insertions(+), 5 de

[PATCH v3 12/19] ocfs2: convert to new i_version API

2017-12-18 Thread Jeff Layton
From: Jeff Layton Signed-off-by: Jeff Layton Reviewed-by: Jan Kara --- fs/ocfs2/dir.c | 15 --- fs/ocfs2/inode.c| 3 ++- fs/ocfs2/namei.c| 3 ++- fs/ocfs2/quota_global.c | 3 ++- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/fs/ocfs2/d

[PATCH v3 03/19] fat: convert to new i_version API

2017-12-18 Thread Jeff Layton
From: Jeff Layton Signed-off-by: Jeff Layton --- fs/fat/dir.c | 3 ++- fs/fat/inode.c | 9 + fs/fat/namei_msdos.c | 7 --- fs/fat/namei_vfat.c | 22 +++--- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/fs/fat/dir.c b/fs/fat/dir.c

[PATCH v3 00/19] fs: rework and optimize i_version handling in filesystems

2017-12-18 Thread Jeff Layton
From: Jeff Layton v3: - move i_version handling functions to new header file - document that the kernel-managed i_version implementation will appear to increase over time - fix inode_cmp_iversion to handle wraparound correctly v2: - xfs should use inode_peek_iversion instead of inode_peek_iver

[PATCH v3 16/19] fs: only set S_VERSION when updating times if necessary

2017-12-18 Thread Jeff Layton
From: Jeff Layton We only really need to update i_version if someone has queried for it since we last incremented it. By doing that, we can avoid having to update the inode if the times haven't changed. If the times have changed, then we go ahead and forcibly increment the counter, under the ass

[PATCH v3 09/19] ext4: convert to new i_version API

2017-12-18 Thread Jeff Layton
From: Jeff Layton Signed-off-by: Jeff Layton Acked-by: Theodore Ts'o --- fs/ext4/dir.c| 9 + fs/ext4/inline.c | 7 --- fs/ext4/inode.c | 13 + fs/ext4/ioctl.c | 3 ++- fs/ext4/namei.c | 5 +++-- fs/ext4/super.c | 3 ++- fs/ext4/xattr.c | 5 +++-- 7 files

[PATCH v3 19/19] fs: handle inode->i_version more efficiently

2017-12-18 Thread Jeff Layton
From: Jeff Layton Since i_version is mostly treated as an opaque value, we can exploit that fact to avoid incrementing it when no one is watching. With that change, we can avoid incrementing the counter on writes, unless someone has queried for it since it was last incremented. If the a/c/mtime d

Re: [PATCH] checkpatch: fix for stripping brackets from macros.

2017-12-18 Thread Joe Perches
On Mon, 2017-12-18 at 14:17 +, Jeremy Sowden wrote: > When checking macros, checkpatch.pl strips parentheses, square brackets > and braces. However, the search-and-replace expression was not correct, > and instead of replacing the brackets and their contents with just the > contents, it was re

[PATCH v3 18/19] btrfs: only dirty the inode in btrfs_update_time if something was changed

2017-12-18 Thread Jeff Layton
From: Jeff Layton At this point, we know that "now" and the file times may differ, and we suspect that the i_version has been flagged to be bumped. Attempt to bump the i_version, and only mark the inode dirty if that actually occurred or if one of the times was updated. Signed-off-by: Jeff Layto

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