Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-01-29 Thread Michal Hocko
On Mon 29-01-18 11:02:09, Anshuman Khandual wrote: > On 01/29/2018 08:17 AM, Anshuman Khandual wrote: > > On 01/26/2018 07:34 PM, Michal Hocko wrote: > >> On Fri 26-01-18 18:04:27, Anshuman Khandual wrote: > >> [...] > >>> I tried to instrument mmap_region() for a single instance of 'sed' > >>> bin

Re: [PATCH][next] hwrng: exynos: check for -ve error return from readl_poll_timeout

2018-01-29 Thread Łukasz Stelmach
It was <2018-01-12 pią 17:30>, when Colin King wrote: > From: Colin Ian King > > Currently, the return from readl_poll_timeout is being assigned to > a u32 and this is being checked for a -ve return which is always > false since a u32 cannot be less than zero. Fix this by changing > val to an int

Re: [PATCH] staging: media: atomisp2: remove unused headers

2018-01-29 Thread Andy Shevchenko
On Mon, Jan 29, 2018 at 3:11 PM, Corentin Labbe wrote: > All thoses headers are not used by any source files. > Lets just remove them. How did you test this? P.S. I like the patch, but since driver in a state of coma vigil, I'm afraid you may do something which shouldn't be done for working driv

Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on

2018-01-29 Thread Will Deacon
Hi Andy, On Fri, Jan 26, 2018 at 10:23:23AM -0800, Andy Lutomirski wrote: > On Fri, Jan 26, 2018 at 10:13 AM, Linus Torvalds > wrote: > > On Fri, Jan 26, 2018 at 10:07 AM, Al Viro wrote: > >> > >> Umm... What about other architectures? Or do you want SYSCALL_DEFINE... > >> to be per-arch? I w

Re: [PATCH 3/3] fs: fat: add ioctl method in fat filesystem driver

2018-01-29 Thread Andy Shevchenko
+Cc: Pali, who AFAIRC is interested in FAT labeling mess. On Wed, Jan 17, 2018 at 12:43 PM, ChenGuanqiao wrote: Commit message? > Signed-off-by: ChenGuanqiao > #include > #include > #include > +#include It would be better to squeeze it to have order (to some extent) preserved. > +sta

Re: [PATCH v2] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-29 Thread Adam Wallis
Yang, On 1/29/2018 1:40 AM, Yang Shunyong wrote: > The type of arg passed to dmatest_callback is struct dmatest_done. > It refers to test_done in struct dmatest_thread, not done_wait. > > Fixes: 6f6a23a213be ("dmaengine: dmatest: move callback wait ...") > Signed-off-by: Yang Shunyong > Signed-o

Re: Avoiding information leaks between users and between processes by default? [Was: : [PATCH 1/5] prctl: add PR_ISOLATE_BP process control]

2018-01-29 Thread Pavel Machek
On Wed 2018-01-24 20:46:22, Alan Cox wrote: > > Anyway, no need to add prctl(), if A can ptrace B and B can ptrace A, > > leaking info between them should not be a big deal. You can probably > > find existing macros doing neccessary checks. > > Until one of them is security managed so it shouldn't

[GIT PULL] regulator updates for v4.16

2018-01-29 Thread Mark Brown
The following changes since commit 0c5b9b5d9adbad4b60491f9ba0d2af38904bb4b9: Linux 4.15-rc9 (2018-01-21 13:51:26 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-v4.16 for you to fetch changes up to 4e79f3f1

[PATCH 4.14 60/71] perf/x86/amd/power: Do not load AMD power module on !AMD platforms

2018-01-29 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Xiao Liang commit 40d4071ce2d20840d224b4a77b5dc6f752c9ab15 upstream. The AMD power module can be loaded on non AMD platforms, but unload fails with the following Oops: BUG: unable to handle

Re: [PATCH v2 16/19] drm/sun4i: backend: Assign the pipes automatically

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 10:22:54AM +0800, Chen-Yu Tsai wrote: > On Mon, Jan 22, 2018 at 6:35 PM, Maxime Ripard > wrote: > > Since we now have a way to enforce the zpos, check for the number of alpha > > planes, the only missing part is to assign our pipe automatically instead > > of hardcoding it.

[PATCH 4.9 41/66] pppoe: take ->needed_headroom of lower device into account on xmit

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit 02612bb05e51df8489db5e94d0cf8d1c81f87b0c ] In pppoe_sendmsg(), reserving dev->hard_header_len bytes of headroom was probably fine before the introduction of -

Re: [Patch v7 12/12] Documention: v4l: Documentation for HEVC CIDs

2018-01-29 Thread Smitha T Murthy
On Wed, 2018-01-24 at 15:16 +0100, Hans Verkuil wrote: > On 24/01/18 11:59, Smitha T Murthy wrote: > > Added V4l2 controls for HEVC encoder > > > > Signed-off-by: Smitha T Murthy > > --- > > Documentation/media/uapi/v4l/extended-controls.rst | 400 > > + > > 1 file changed,

[PATCH 4.9 59/66] x86: bpf_jit: small optimization in emit_bpf_tail_call()

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ upstream commit 84ccac6e7854ebbfb56d2fc6d5bef9be49bb304c ] Saves 4 bytes replacing following instructions : lea rax, [rsi + rdx * 8 + offsetof(...)] mov rax, qword ptr [rax] cmp

Re: [PATCH v2 05/19] drm/vc4: Use the alpha format field in drm_format_info

2018-01-29 Thread Maxime Ripard
Hi Eric, On Tue, Jan 23, 2018 at 07:35:10AM +1100, Eric Anholt wrote: > Maxime Ripard writes: > > > Now that the drm_format_info has a alpha field to tell if a format embeds > > an alpha component in it, let's use it. > > > > Cc: Eric Anholt > > Reviewed-by: Daniel Vetter > > Signed-off-by: Ma

[PATCH 4.9 09/66] KVM: arm/arm64: Check pagesize when allocating a hugepage at Stage 2

2018-01-29 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Punit Agrawal commit c507babf10ead4d5c8cca704539b170752a8ac84 upstream. KVM only supports PMD hugepages at stage 2 but doesn't actually check that the provided hugepage memory pagesize is PMD_S

Re: [PATCH 1/2] tools lib symbol: Use strtoul instead of hex2u64 in kallsyms__parse

2018-01-29 Thread Andy Shevchenko
On Mon, Jan 29, 2018 at 9:18 AM, Jiri Olsa wrote: > On Fri, Jan 26, 2018 at 07:27:06PM +0200, Andy Shevchenko wrote: >> On Fri, Jan 26, 2018 at 7:22 PM, Andy Shevchenko >> wrote: >> > https://patchwork.kernel.org/patch/4087681/ >> >> Even second attempt including recent ping left without conside

[resend, PATCH v2] perf tools: substitute yet another strtoull()

2018-01-29 Thread Andy Shevchenko
Instead of home grown function let's use what library provides us. Signed-off-by: Andy Shevchenko --- - recend after couple of years of silence - hopefully it will be commented / accepted now tools/perf/util/util.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-)

Re: [PATCH 3/3] fs: fat: add ioctl method in fat filesystem driver

2018-01-29 Thread OGAWA Hirofumi
ChenGuanqiao writes: > +static int fat_check_d_characters(char *label, unsigned long len) > +{ > + int i; > + > + for (i = 0; i < len; ++i) { > + switch (label[i]) { > + case 'a' ... 'z': > + label[i] = __toupper(label[i]); > + case

[PATCH 4.4 36/74] netfilter: nf_conntrack_sip: extend request line validation

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ulrich Weber commit 444f901742d054a4cd5ff045871eac5131646cfb upstream. on SIP requests, so a fragmented TCP SIP packet from an allow header starting with INVITE,NOTIFY,OPTIONS,REFER,REGISTER,

[PATCH 4.4 06/74] x86/cpu/intel: Introduce macros for Intel family numbers

2018-01-29 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dave Hansen commit 970442c599b22ccd644ebfe94d1d303bf6f87c05 upstream. Problem: We have a boatload of open-coded family-6 model numbers. Half of them have these model numbers in hex and the ot

Re: [PATCH] x86/kexec: Make kexec work in 5-level paging mode

2018-01-29 Thread Baoquan He
On 01/29/18 at 07:19pm, Baoquan He wrote: > On 01/29/18 at 02:08pm, Kirill A. Shutemov wrote: > > I've missed that we need to change relocate_kernel() to set CR4.LA57 > > flag if the kernel has 5-level paging enabled. > > > > I avoided to use ifdef CONFIG_X86_5LEVEL here and inferred if we need to

[GIT PULL] SPI updates for v4.16

2018-01-29 Thread Mark Brown
The following changes since commit 0c5b9b5d9adbad4b60491f9ba0d2af38904bb4b9: Linux 4.15-rc9 (2018-01-21 13:51:26 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-v4.16 for you to fetch changes up to 35a8f1a94d12631afcd55

[PATCH 3.18 36/52] um: link vmlinux with -no-pie

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Meyer commit 883354afbc109c57f925ccc19840055193da0cc0 upstream. Debian's gcc defaults to pie. The global Makefile already defines the -fno-pie option. Link UML dynamic kernel image als

[PATCH 3.18 12/52] Input: twl4030-vibra - fix ERROR: Bad of_node_put() warning

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Marek Belisko commit e661d0a04462dd98667f8947141bd8defab5b34a upstream. Fix following: [8.862274] ERROR: Bad of_node_put() on /ocp/i2c@4807/twl@48/audio [8.869293] CPU: 0 PID: 1003

[PATCH 3.18 33/52] reiserfs: dont preallocate blocks for extended attributes

2018-01-29 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Mahoney commit 54930dfeb46e978b447af0fb8ab4e181c1bf9d7a upstream. Most extended attributes will fit in a single block. More importantly, we drop the reference to the inode while holding

Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-29 Thread Andy Shevchenko
On Mon, Jan 29, 2018 at 8:10 AM, Kai-Heng Feng wrote: > The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out > of box. > > The touchpad relies on its _INI method to update its _HID value from > to SYNA2393. > Also, the _STA relies on value of I2CN to report correct statu

Re: [PATCH v2 0/3] Per-VCPU MSR bitmaps patches - topic branch for x86/pti

2018-01-29 Thread David Woodhouse
On Sat, 2018-01-27 at 09:50 +0100, Paolo Bonzini wrote: > David and others, > > the following changes since commit ba804bb4b72e57374b5f567b783aa0298fba0ce6: > >   Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2018-01-26 > 09:03:16 -0800) > > are available in the git repositor

Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly

2018-01-29 Thread Maxime Ripard
Hi, On Fri, Jan 26, 2018 at 04:55:54PM +0100, Giulio Benetti wrote: > > > > > It behaves the same way as A20, so as I mean IO polarity, > > > > > all signals(except D0-D23), are inverted. > > > > > For A33 I've used A33-OLinuXino. > > > > > For A20 our LiNova1. > > > > > > > > Indeed, HSYNC and V

Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-29 Thread David Woodhouse
On Mon, 2018-01-29 at 13:28 +0100, Dominik Brodowski wrote: > The commit message is much more about the A->idle-> improvement than > on the basic design decisions to limit this to non-dumpable processes. Yeah, I collapsed the commit messages from the three commits into one. But the resulting comm

Re: [PATCH v2 07/16] iio: adc: sun4i-gpadc-iio: rework: support nvmem calibration data

2018-01-29 Thread Philipp Rossak
On 29.01.2018 10:40, Maxime Ripard wrote: On Mon, Jan 29, 2018 at 12:29:10AM +0100, Philipp Rossak wrote: This patch reworks the driver to support nvmem calibration cells. The driver checks if the nvmem calibration is supported and reads out the nvmem. Signed-off-by: Philipp Rossak --- dri

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-29 Thread Mark Brown
On Mon, Jan 29, 2018 at 01:28:51PM +0100, Code Kipper wrote: > On 29 January 2018 at 12:32, Mark Brown wrote: > > You're looking for set_bclk_ratio() I think. > I'm looking for a mechanism to be able to override the bclk width > (usually it's based on param_width) from the device tree. The tdm s

Re: [PATCH] Asoc: samsung: clean makefile about inexistant files

2018-01-29 Thread Krzysztof Kozlowski
On Mon, Jan 29, 2018 at 1:26 PM, Corentin Labbe wrote: > Clean makefile rules about inexistant files. > Thoses files were removed in commit a076d418235f ("ASoC: samsung: Drop AC97 > drivers") > > Signed-off-by: Corentin Labbe > --- > sound/soc/samsung/Makefile | 3 --- > 1 file changed, 3 delet

Re: [PATCH v2 01/16] dt-bindings: update the Allwinner GPADC device tree binding for H3 & A83T

2018-01-29 Thread Philipp Rossak
+Example for A33: ths: ths@1c25000 { compatible = "allwinner,sun8i-a33-ths"; reg = <0x01c25000 0x100>; @@ -17,6 +40,27 @@ Example: #io-channel-cells = <0>; }; +Example for H3: + ths: thermal-sensor@1c25000 { +

[PATCH] scsi: remove dead makefile about oktagon files

2018-01-29 Thread Corentin Labbe
Remove line using inexistant files which were removed in commit 642978beb483 ("[SCSI] remove m68k NCR53C9x based drivers") Signed-off-by: Corentin Labbe --- drivers/scsi/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile index fcfd28d2884c..

Re: [PATCH] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS

2018-01-29 Thread James Hogan
On Mon, Jan 29, 2018 at 11:26:45AM +, Matt Redfearn wrote: > When commit b27311e1cace ("MIPS: TXx9: Add RBTX4939 board support") > added board support for the RBTX4939, it added a call to > led_classdev_register even if the LED class is built as a module. > Built-in arch code cannot call module

[PATCH] ASoC: remove dead makefile about sn95031

2018-01-29 Thread Corentin Labbe
All sn95031 stuff was removed in commit 987da3fe1759 ("ASoC: sn95031: remove this code") Since SND_SOC_SN95031 was gone, remove makefile about it. Signed-off-by: Corentin Labbe --- sound/soc/codecs/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/Makefile b/sound/soc

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-29 Thread Code Kipper
On 29 January 2018 at 12:32, Mark Brown wrote: > On Mon, Jan 29, 2018 at 08:34:00AM +0100, Code Kipper wrote: > >> I'm not sure..I was looking for a clean example of being able to >> override the number of bclks in the lrclk width and some other >> devices(Rpi) were doing it this way. I open to s

Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-29 Thread Dominik Brodowski
On Mon, Jan 29, 2018 at 11:33:28AM +, David Woodhouse wrote: > From: Tim Chen > > Flush indirect branches when switching into a process that marked itself > non dumpable. This protects high value processes like gpg better, > without having too high performance overhead. > > If done naïvely,

Re: [PATCH v2] staging: media: remove remains of VIDEO_ATOMISP_OV8858

2018-01-29 Thread Andy Shevchenko
On Mon, 2018-01-29 at 12:16 +, Corentin Labbe wrote: > OV8858 files are left unusable since commit 3a81c7660f80 ("media: > staging: atomisp: Remove IMX sensor support") > They are uncompilable since they depends on dw9718.c and vcm.c which > was removed. > > Remove the OV8858 kconfig and files

[GIT PULL] inode->i_version rework for v4.16

2018-01-29 Thread Jeff Layton
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.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git tags/iversion-v4.16-1 for you to fetch changes up to f02a9ad1f15da

[PATCH] Asoc: samsung: clean makefile about inexistant files

2018-01-29 Thread Corentin Labbe
Clean makefile rules about inexistant files. Thoses files were removed in commit a076d418235f ("ASoC: samsung: Drop AC97 drivers") Signed-off-by: Corentin Labbe --- sound/soc/samsung/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/samsung/Makefile b/sound/soc/samsung/Ma

[PATCH] netfilter: fix pointer leaks to userspace

2018-01-29 Thread Dmitry Vyukov
Several netfilter matches and targets put kernel pointers into info objects, but don't set usersize in descriptors. This leads to kernel pointer leaks if a match/target is set and then read back to userspace. Properly set usersize for these matches/targets. Found with manual code inspection. Sig

[PATCH] Documentation: mips: Update AU1xxx_IDE Kconfig dependencies

2018-01-29 Thread Corentin Labbe
IDEDMA_AUTO IDEDMA_PCI_AUTO was removed in commit 120b9cfddff2 ("ide: remove CONFIG_IDEDMA_{ICS,PCI}_AUTO config") BLK_DEV_IDEDISK was removed in commit 806f80a6fc20 ("ide: add generic ATA/ATAPI disk driver") BLK_DEV_IDE_AU1XXX_BURSTABLE_ON was removed in commit 8f29e650bffc ("ide: AU1200 IDE up

[PATCH] Documentation: networking: ixgb: Remove reference to IXGB_NAPI

2018-01-29 Thread Corentin Labbe
NAPI is enabled by default and IXGB_NAPI was removed since commit 6d37ab282e24 ("ixgb: make NAPI the only option and the default") Update the doc accordingly. Signed-off-by: Corentin Labbe --- Documentation/networking/ixgb.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

Re: [PATCH v2 2/4] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread KarimAllah Ahmed
On 01/29/2018 11:44 AM, Paolo Bonzini wrote: On 29/01/2018 01:58, KarimAllah Ahmed wrote: Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for guests that will only mitigate Spectre V2 through IBRS+IBPB and will not be using a retpoline+IBPB based approach. To avoid the overhe

Re: [PATCH 2/2] pps: generator: use new parport device model

2018-01-29 Thread Rodolfo Giometti
On 29/01/18 00:22, Sudip Mukherjee wrote: Modify pps generator driver to use the new parallel port device model. Signed-off-by: Sudip Mukherjee Acked-by: Rodolfo Giometti -- HCE Engineering e-mail: giome...@hce-engineering.it GNU/Linux Solutions

Re: [PATCH 1/2] pps: client: use new parport device model

2018-01-29 Thread Rodolfo Giometti
On 29/01/18 00:22, Sudip Mukherjee wrote: Modify pps client driver to use the new parallel port device model. In that process, added an index to mention the device number when we have more than one parallel port. Signed-off-by: Sudip Mukherjee Acked-by: Rodolfo Giometti -- HCE Engineering

Re: [0/2] RDMA/bnxt_re: Adjustments for bnxt_qplib_alloc_dpi_tbl()

2018-01-29 Thread Devesh Sharma
On Mon, Jan 29, 2018 at 3:01 PM, SF Markus Elfring wrote: >> You don't need 2 patches when changing same lines of code. > > Are these really the same? > > >> Could you squash both and send your changes in a single patch. > > I prefer to keep the deletion of questionable error messages separate > f

[PATCHv7 3/4] x86/boot/compressed/64: Prepare trampoline memory

2018-01-29 Thread Kirill A. Shutemov
If a bootloader enables 64-bit mode with 4-level paging, we might need to switch over to 5-level paging. The switching requires the disabling paging. It works fine if kernel itself is loaded below 4G. But if the bootloader put the kernel above 4G (not sure if anybody does this), we would lose cont

Re: [PATCH v2 14/16] arm: dts: sun8i: h3: enable H3 sid controller

2018-01-29 Thread Philipp Rossak
On 29.01.2018 10:52, Maxime Ripard wrote: On Mon, Jan 29, 2018 at 12:29:17AM +0100, Philipp Rossak wrote: This patch enables the the sid controller in the H3. It can be used for thermal calibration data. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-h3.dtsi | 7 +++ 1 file

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-29 Thread Hans Verkuil
On 01/25/2018 05:15 PM, Tim Harvey wrote: > On Mon, Jan 15, 2018 at 4:56 AM, Hans Verkuil wrote: >> On 12/28/2017 09:09 PM, Tim Harvey wrote: >>> Add support for the TDA1997x HDMI receivers. >>> >> >> This looks good. >> >> But there is one corner case that isn't handled in this driver: what if th

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-29 Thread Mason
[ Dropping large CC list ] On 25/01/2018 18:16, Greg Kroah-Hartman wrote: > On Thu, Jan 25, 2018 at 05:19:04PM +0100, Mason wrote: > >> On 23/01/2018 10:30, David Woodhouse wrote: >> >>> Skylake takes predictions from the generic branch target buffer when >>> the RSB underflows. >> >> Adding LAK

Re: [PATCH] x86/kexec: Make kexec work in 5-level paging mode

2018-01-29 Thread Matthew Wilcox
On Mon, Jan 29, 2018 at 02:08:45PM +0300, Kirill A. Shutemov wrote: > I've missed that we need to change relocate_kernel() to set CR4.LA57 > flag if the kernel has 5-level paging enabled. > > I avoided to use ifdef CONFIG_X86_5LEVEL here and inferred if we need to > enabled 5-level paging from pre

[PATCH v6] devres: combine function devm_ioremap*

2018-01-29 Thread Yisheng Xie
When I tried to use devm_ioremap function and review related code, I found devm_ioremap_* almost have the similar realize with each other, which can be combined. In the former version, I have tried to kill ioremap_cache to reduce the size of devres, which can not work for ioremap is not the same a

Re: [PATCH v2 13/16] arm: dts: sun8i: h3: add thermal zone to H3

2018-01-29 Thread Philipp Rossak
On 29.01.2018 10:50, Maxime Ripard wrote: On Mon, Jan 29, 2018 at 12:29:16AM +0100, Philipp Rossak wrote: This patch adds the thermal zones to the H3. We have only one sensor and that is placed in the cpu. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 + 1

Re: [PATCH] sh: clk: Relax clk rate match test

2018-01-29 Thread Laurent Pinchart
Hi Jacopo, On Friday, 26 January 2018 18:24:54 EET jacopo mondi wrote: > On Thu, Jan 25, 2018 at 03:39:32PM +0100, Geert Uytterhoeven wrote: > > Hi Jacopo, > > [snip] > > --- > > drivers/sh/clk/core.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) >

[PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-29 Thread David Woodhouse
From: Tim Chen Flush indirect branches when switching into a process that marked itself non dumpable. This protects high value processes like gpg better, without having too high performance overhead. If done naïvely, we could switch to a kernel idle thread and then back to the original process,

[PATCHv7 4/4] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

2018-01-29 Thread Kirill A. Shutemov
This patch addresses a shortcoming in current boot process on machines that supports 5-level paging. If a bootloader enables 64-bit mode with 4-level paging, we might need to switch over to 5-level paging. The switching requires the disabling paging. It works fine if kernel itself is loaded below

[PATCHv7 1/4] x86/boot/compressed/64: Rename pagetable.c to kaslr_64.c

2018-01-29 Thread Kirill A. Shutemov
The name of the file -- pagetable.c -- is misleading: it only contains helpers used for KASLR in 64-bit mode. Let's rename the file to reflect its content. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/Makefile| 2 +- arch/x86/boot/compressed/{pagetable.c =>

Re: [PATCH v2 11/16] arm: dts: sunxi-h3-h5: add support for the thermal sensor in H3 and H5

2018-01-29 Thread Philipp Rossak
On 29.01.2018 10:49, Maxime Ripard wrote: Hi, On Mon, Jan 29, 2018 at 12:29:14AM +0100, Philipp Rossak wrote: As we have gained the support for the thermal sensor in H3 and H5, we can now add its device nodes to the device tree. The H3 and H5 share most of its compatible. The compatible and t

[PATCHv7 2/4] x86/boot/compressed/64: Introduce paging_prepare()

2018-01-29 Thread Kirill A. Shutemov
This patch renames l5_paging_required() into paging_prepare() and changes the interface of the function. This is a preparation for the next patch, which would make the function also allocate memory for the 32-bit trampoline. The function now returns a 128-bit structure. RAX would return trampolin

Re: [PATCH v2 10/16] iio: adc: sun4i-gpadc-iio: add support for A83T thermal sensor

2018-01-29 Thread Philipp Rossak
On 29.01.2018 10:48, Maxime Ripard wrote: On Mon, Jan 29, 2018 at 12:29:13AM +0100, Philipp Rossak wrote: This patch adds support for the A83T ths sensor. The A83T supports interrupts. The interrupt is configured to update the the sensor values every second. Signed-off-by: Philipp Rossak --

[PATCHv7 0/4] x86: 5-level related changes into decompression code

2018-01-29 Thread Kirill A. Shutemov
These patcheset is a preparation for boot-time switching between paging modes. Please apply. The first patch is pure cosmetic change: it gives file with KASLR helpers a proper name. The last three patches bring support of booting into 5-level paging mode if a bootloader put the kernel above 4G.

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-29 Thread Tetsuo Handa
Peter Zijlstra wrote: > On Sun, Jan 28, 2018 at 02:55:28PM +0900, Tetsuo Handa wrote: > > This warning seems to be caused by commit d92a8cfcb37ecd13 > > ("locking/lockdep: Rework FS_RECLAIM annotation") which moved the > > location of > > > > /* this guy won't enter reclaim */ > > if ((current

Re: BUG: KASAN: use-after-free in xhci_trb_virt_to_dma.part.24+0x1c/0x80

2018-01-29 Thread Mathias Nyman
On 28.01.2018 23:43, Paul Menzel wrote: Dear Linux folks, Using Linux 4.15-rc9+ with KASAN enabled on the TUXEDO Book 1406, playing with Bluetooth – disabling a device – I was able to trigger the warning below. Thanks, first guess is that btusb calls usb_set_interface() with URBs still sch

[PATCH 8/8] Input: mms114 - fix typo in definition

2018-01-29 Thread Andi Shyti
It's 'MMS114_INFORMATION', not 'MMS114_INFOMATION' Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index 3230c92de1ed..5b609531b3aa 10

Re: Requirements for retpoline in Linux 4.15 (was: Re: Linux 4.15)

2018-01-29 Thread David Woodhouse
On Mon, 2018-01-29 at 12:19 +0100, Martin Steigerwald wrote: > > The whole thing works: > > % grep . /sys/devices/system/cpu/vulnerabilities/* >     > /sys/devices/system/cpu/vulnerabilities/meltdown:Mitigation: PTI > /sys/devices/system/cpu/vul

[PATCH 5/8] Input: mms114 - use lower case for hexadecimal values

2018-01-29 Thread Andi Shyti
Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index 11dba8bb48e3..fdf23bc416af 100644 --- a/drivers/input/touchscreen/mms114.c

[PATCH 7/8] Input: mms114 - add SPDX identifier

2018-01-29 Thread Andi Shyti
Replace the original license statement with the SPDX identifier. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index d70c0

[PATCH 4/8] Input: mms114 - remove unused variable

2018-01-29 Thread Andi Shyti
'__packed' is not used anywhere, remove it. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index fb4435ae506b..11dba8bb48e3 100644 --- a/

[PATCH 1/8] Input: mms114 - use smbus functions whenever possible

2018-01-29 Thread Andi Shyti
The exchange of data to and from the mms114 touchscreen never exceeds 256 bytes. In the worst case it goes up to 80 bytes in the interrupt handler while reading the events. Thus it's not needed to make use of custom read/write functions for accessing the i2c. Replace, whenever possible, the use of

[PATCH 6/8] Input: mms114 - Use BIT() macro instead of explicit shifting

2018-01-29 Thread Andi Shyti
Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index fdf23bc416af..d70c03adf148 100644 --- a/drivers/input/touchscreen/mms114.c +++ b/driv

[PATCH 3/8] Input: mms114 - replace mdelay with msleep

2018-01-29 Thread Andi Shyti
200ms seconds is a very long time to keep the CPU busy looping. Use msleep instead. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/mms114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index

Re: macintosh: change some data types from int to bool

2018-01-29 Thread Gustavo A. R. Silva
Hi Michael, Quoting Michael Ellerman : On Wed, 2018-01-24 at 01:42:28 UTC, "Gustavo A. R. Silva" wrote: Change the data type of the following variables from int to bool across all macintosh drivers: started slots_started pm121_started wf_smu_started Some of these issues were detected with th

[PATCH 2/8] Input: mms114 - get read of custm i2c read/write functions

2018-01-29 Thread Andi Shyti
The 'mms114_read_reg' and 'mms114_write_reg' are used when reading or writing to the 'MMS114_MODE_CONTROL' register for updating the 'cache_mode_control' variable. Update the 'cache_mode_control' variable in the calling mms114_set_active() function and get rid of all the custom i2c read/write func

[PATCH 0/8] Melfas MMS114 touchscreen cleanups

2018-01-29 Thread Andi Shyti
Hi Dmitry, this patchset contains some cleanups for the mms114 driver. The first two patches are the most important because they get rid of the custom i2c read/write functions and use the smbus instead. The others come from a "cleanup rush" I felt into. I tested the patchest on the mms114 touchs

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-29 Thread Mark Brown
On Mon, Jan 29, 2018 at 08:34:00AM +0100, Code Kipper wrote: > I'm not sure..I was looking for a clean example of being able to > override the number of bclks in the lrclk width and some other > devices(Rpi) were doing it this way. I open to suggestions, You're looking for set_bclk_ratio() I thi

[GIT PULL] EDAC pile for 4.16

2018-01-29 Thread Borislav Petkov
Hi Linus, please pull the EDAC updates from this round. Thanks. --- The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git tags/

[PATCH] MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS

2018-01-29 Thread Matt Redfearn
When commit b27311e1cace ("MIPS: TXx9: Add RBTX4939 board support") added board support for the RBTX4939, it added a call to led_classdev_register even if the LED class is built as a module. Built-in arch code cannot call module code directly like this. Commit b33b44073734 ("MIPS: TXX9: use IS_ENAB

[GIT PULL] x86/hyperv change for v4.16

2018-01-29 Thread Ingo Molnar
Linus, Please pull the latest x86-hyperv-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-hyperv-for-linus # HEAD: 617ab45c9a8900e64a78b43696c02598b8cad68b x86/hyperv: Stop suppressing X86_FEATURE_PCID Enable PCID support on Hyper-V guests. Thanks

Re: [RFC PATCH 0/8] [media] Request API, take three

2018-01-29 Thread Hans Verkuil
On 01/26/2018 07:02 AM, Alexandre Courbot wrote: > Howdy. Here is your bi-weekly request API redesign! ;) > > Again, this is a simple version that only implements the flow of requests, > without applying controls. The intent is to get an agreement on a base to work > on, since the previous version

Re: Requirements for retpoline in Linux 4.15 (was: Re: Linux 4.15)

2018-01-29 Thread Martin Steigerwald
Martin Steigerwald - 29.01.18, 11:42: > > Try removing .cache.mk which has 'remembered' that your GCC doesn't > > support retpoline. > > I bet there have been "*.cache.mk" files around from previous pre gcc-7.3 > compiles. > > Trying again after > > % find -name ".cache.mk" -delete > > on kerne

Re: [PATCH] x86/kexec: Make kexec work in 5-level paging mode

2018-01-29 Thread Baoquan He
On 01/29/18 at 02:08pm, Kirill A. Shutemov wrote: > I've missed that we need to change relocate_kernel() to set CR4.LA57 > flag if the kernel has 5-level paging enabled. > > I avoided to use ifdef CONFIG_X86_5LEVEL here and inferred if we need to > enabled 5-level paging from previous CR4 value. T

[GIT PULL] x86/cleanups for v4.16

2018-01-29 Thread Ingo Molnar
Linus, Please pull the latest x86-cleanups-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-cleanups-for-linus # HEAD: 782bf20c2a1795f35dcd526aa8005cd1870745da x86: Remove unused IOMMU_STRESS Kconfig Misc cleanups. Thanks, Ingo -

[GIT PULL] x86/apic change for v4.16

2018-01-29 Thread Ingo Molnar
Linus, Please pull the latest x86-apic-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-apic-for-linus # HEAD: 03dd604e1d515ca1ab02aaae12162e0a077858e9 x86/apic: Remove local var in flat_send_IPI_allbutself() A single change simplifying the APIC code

[PATCH] x86/kexec: Make kexec work in 5-level paging mode

2018-01-29 Thread Kirill A. Shutemov
I've missed that we need to change relocate_kernel() to set CR4.LA57 flag if the kernel has 5-level paging enabled. I avoided to use ifdef CONFIG_X86_5LEVEL here and inferred if we need to enabled 5-level paging from previous CR4 value. This way the code is ready for boot-time switching between pa

[GIT PULL] scheduler changes for v4.16

2018-01-29 Thread Ingo Molnar
Linus, Please pull the latest sched-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-for-linus # HEAD: 07881166a892fa4908ac4924660a7793f75d6544 sched/deadline: Make bandwidth enforcement scale-invariant The main changes in this cycle wer

[GIT PULL] RAS updates for v4.16

2018-01-29 Thread Ingo Molnar
Linus, Please pull the latest ras-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras-core-for-linus # HEAD: 179eb850ac57c06edaed67fc744ba9d902172f96 x86/MCE: Make correctable error detection look at the Deferred bit The main changes: - Various A

Re: [PATCH v7 07/11] media: i2c: ov772x: Support frame interval handling

2018-01-29 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Friday, 26 January 2018 15:55:26 EET Jacopo Mondi wrote: > Add support to ov772x driver for frame intervals handling and enumeration. > Tested with 10MHz and 24MHz input clock at VGA and QVGA resolutions for > 10, 15 and 30 frame per second rates. > > Signe

[GIT PULL] pstore update for v4.16-rc1

2018-01-29 Thread Kees Cook
Hi Linus, Please pull this tiny pstore change for v4.16-rc1. Only a header cleanup this release; nice and quiet. :) Thanks! -Kees The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at:

[GIT PULL] perf changes for v4.16

2018-01-29 Thread Ingo Molnar
Linus, Please pull the latest perf-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus # HEAD: e4c1091cb495d9cbec8956d642644a71a1689958 Merge tag 'perf-core-for-mingo-4.16-20180125' of git://git.kernel.org/pub/scm/linux/kernel/git/a

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Paolo Bonzini
On 29/01/2018 11:37, David Woodhouse wrote: > On Mon, 2018-01-29 at 10:43 +0100, KarimAllah Ahmed wrote: >> On 01/29/2018 09:46 AM, David Woodhouse wrote: >>> Reading the code and comparing with the SDM, I can't see where we're >>> ever setting VM_EXIT_MSR_STORE_{ADDR,COUNT} except in the nested >>

[GIT PULL] hardened usercopy whitelisting for v4.16-rc1

2018-01-29 Thread Kees Cook
Hi Linus, Please pull these hardened usercopy changes for v4.16-rc1. This is very close to what I sent for v4.15, though now it has a couple more Acks, I reorganized the WARN-by-default to be earlier in the series where hopefully it stands out better, and I improved reporting (while also dropping

Re: [PATCH V4 0/3] Use mm_struct and switch_mm() instead of manually

2018-01-29 Thread Ard Biesheuvel
On 26 January 2018 at 21:16, Matt Fleming wrote: > On Thu, 18 Jan, at 01:01:04PM, Sai Praneeth Prakhya wrote: >> From: Sai Praneeth >> >> Presently, in x86, to invoke any efi function like >> efi_set_virtual_address_map() or any efi_runtime_service() the code path >> typically involves read_cr3()

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Paolo Bonzini
On 29/01/2018 09:46, David Woodhouse wrote: > I'd actually quite like to repeat the benchmark on the new fixed > microcode, if anyone has it yet, to see if that read/swap slowness is > still quite as excessive. I'm certainly not ruling this out, but I'm > just a little wary of premature optimisatio

Re: [PATCH] drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock

2018-01-29 Thread Benjamin Gaignard
2018-01-29 11:43 GMT+01:00 Laurent Pinchart : > Hi Philippe, > > On Thursday, 25 January 2018 18:01:01 EET Philippe Cornu wrote: >> There is a difference between the panel/bridge requested pixel clock >> value and the real one due to the hw platform clock preciseness (pll, >> dividers...). This pat

Re: [patch -mm v2 2/3] mm, memcg: replace cgroup aware oom killer mount option with tunable

2018-01-29 Thread Michal Hocko
On Fri 26-01-18 16:17:35, Andrew Morton wrote: > On Fri, 26 Jan 2018 14:52:59 -0800 (PST) David Rientjes > wrote: [...] > > Those use cases are also undocumented such that the user doesn't know the > > behavior they are opting into. Nowhere in the patchset does it mention > > anything about oo

Re: [PATCH v2 4/4] x86: vmx: Allow direct access to MSR_IA32_ARCH_CAPABILITIES

2018-01-29 Thread Paolo Bonzini
On 29/01/2018 01:58, KarimAllah Ahmed wrote: > Add direct access to MSR_IA32_SPEC_CTRL for guests. Future intel processors > will use this MSR to indicate RDCL_NO (bit 0) and IBRS_ALL (bit 1). This has to be customizable per-VM (similar to the patches Amazon posted a while ago for UCODE_REV for ex

Re: [PATCH v2 2/4] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread Paolo Bonzini
On 29/01/2018 01:58, KarimAllah Ahmed wrote: > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for > guests that will only mitigate Spectre V2 through IBRS+IBPB and will not > be using a retpoline+IBPB based approach. > > To avoid the overhead of atomically saving and restoring

Re: [PATCH] drm/stm: ltdc: use crtc_mode_fixup to update adjusted_mode clock

2018-01-29 Thread Laurent Pinchart
Hi Philippe, On Thursday, 25 January 2018 18:01:01 EET Philippe Cornu wrote: > There is a difference between the panel/bridge requested pixel clock > value and the real one due to the hw platform clock preciseness (pll, > dividers...). This patch updates the adjusted_mode clock value with > the re

<    4   5   6   7   8   9   10   11   >