Re: [PATCH 09/11] x86/retpoline: Finally enable retpoline for C code

2018-01-04 Thread Greg KH
On Wed, Jan 03, 2018 at 03:09:32PM -0800, Andi Kleen wrote: > From: Dave Hansen > > From: David Woodhouse We do now accept "Co-Developed-by:" in the signed-off-by area to handle patches that are worked on by multiple people. thanks, greg k-h

RE: [char-misc-next] mei: me: allow runtime pm for platform with D0i3

2018-01-04 Thread Winkler, Tomas
mei: me: allow runtime pm for platform with > D0i3 > > On 1/2/2018 11:01 AM, Tomas Winkler wrote: > > From the pci power documentation: > > "The driver itself should not call pm_runtime_allow(), though. > > Instead, it should let user space or some platform-specific code do > > that (user space c

Re: [PATCH 09/11] x86/retpoline: Finally enable retpoline for C code

2018-01-04 Thread Dave Hansen
On 01/04/2018 12:28 AM, Greg KH wrote: > On Wed, Jan 03, 2018 at 03:09:32PM -0800, Andi Kleen wrote: >> From: Dave Hansen >> >> From: David Woodhouse > We do now accept "Co-Developed-by:" in the signed-off-by area to handle > patches that are worked on by multiple people. FWIW, this was probably

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Woodhouse, David
On Wed, 2018-01-03 at 16:40 -0800, Andi Kleen wrote: > > > > So you say, that we finally need a perl interpreter in the kernel > > to do > > alternative patching? > I don't think perl or objtool makes sense. That would be just > incredibly > fragile because compilers can reorder and mix code.  >

Re: [PATCH] of/fdt: Fix #ifdef dependency of early flattree declarations

2018-01-04 Thread Geert Uytterhoeven
Hi Fengguang, On Thu, Jan 4, 2018 at 12:16 AM, kbuild test robot wrote: > I love your patch! Yet something to improve: Thanks, I love your report! > url: > https://github.com/0day-ci/linux/commits/Geert-Uytterhoeven/of-fdt-Fix-ifdef-dependency-of-early-flattree-declarations/201801

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-04 Thread SF Markus Elfring
>> Would you insist to replace such “special characters” by dashes or >> underscores? > > Yes. But I will also nack any very long name. Would you find the the file name selection “zalloc-extra_changes1.cocci” acceptable? Regards, Markus

Re: [PATCH V7] mmc:host:sdhci-pci:Addition of Arasan PCI Controller with integrated phy.

2018-01-04 Thread Adrian Hunter
On 04/01/18 06:17, Atul Garg wrote: > The Arasan Controller is based on a FPGA platform and has integrated phy > with specific registers used during initialization and > management of different modes. The phy and the controller are integrated > and registers are very specific to Arasan. > > Arasan

[PATCH V2] nvme-pci: fix NULL pointer reference in nvme_alloc_ns

2018-01-04 Thread Jianchao Wang
When the io queues setup or tagset allocation failed, ctrl.tagset is NULL. But the scan work will still be queued and executed, then panic comes up due to NULL pointer reference of ctrl.tagset. To fix this, add a new ctrl state NVME_CTRL_ADMIN_LIVE to inidcate only admin queue is live. When non io

Re: [PATCH v2 03/12] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-04 Thread David Woodhouse
On Wed, 2018-01-03 at 18:00 -0800, Andi Kleen wrote: > @@ -269,8 +270,9 @@ entry_SYSCALL_64_fastpath: > * This call instruction is handled specially in stub_ptregs_64. > * It might end up jumping to the slow path.  If it jumps, RAX > * and all argument registers are clobb

Re: [PATCH 17/67] microblaze: rename dma_direct to dma_microblaze

2018-01-04 Thread Christoph Hellwig
On Fri, Dec 29, 2017 at 09:11:56PM +1100, Julian Calaby wrote: > Hi Christoph, > > On Fri, Dec 29, 2017 at 7:18 PM, Christoph Hellwig wrote: > > This frees the dma_direct_* namespace for a generic implementation. > > Don't you mean "dma_nommu" not "dma_microblaze" in the subject line? Yes, than

Re: [PATCH] of/fdt: Fix #ifdef dependency of early flattree declarations

2018-01-04 Thread Geert Uytterhoeven
Hi Rob, On Wed, Jan 3, 2018 at 10:41 PM, Rob Herring wrote: > On Tue, Jan 02, 2018 at 11:18:17AM +0100, Geert Uytterhoeven wrote: >> If OF_FLATTREE=y, but OF_EARLY_FLATTREE=n: >> >> drivers/tty/serial/earlycon.o: In function `param_setup_earlycon': >> earlycon.c:(.init.text+0x3a4): undefi

Re: [PATCH 16/67] powerpc: rename dma_direct_ to dma_nommu_

2018-01-04 Thread Christoph Hellwig
On Wed, Jan 03, 2018 at 07:19:46PM +1100, Julian Calaby wrote: > If this is indeed a linear mapping, can we just remove this and > replace it with the new "generic" mapping being introduced by this > patchset? That is the long-term plan. But as the powerpc one includes support for non-coherent DM

Re: [PATCH 16/67] powerpc: rename dma_direct_ to dma_nommu_

2018-01-04 Thread Christoph Hellwig
On Tue, Jan 02, 2018 at 08:45:30PM +1100, Michael Ellerman wrote: > Christoph Hellwig writes: > > > We want to use the dma_direct_ namespace for a generic implementation, > > so rename powerpc to the second best choice: dma_nommu_. > > I'm not a fan of "nommu". Some of the users of direct ops *a

[PATCH] platform/x86: dell-laptop: Filter out spurious keyboard backlight change events

2018-01-04 Thread Hans de Goede
On some Dell XPS models WMI events of type 0x reporting a keycode of 0xe00c get reported when the brightness of the LCD panel changes. This leads to us reporting false-positive kbd_led change events to userspace which in turn leads to the kbd backlight OSD showing when it should not. We alrea

Re: [PATCH 27/67] dma-direct: add dma address sanity checks

2018-01-04 Thread Christoph Hellwig
On Fri, Dec 29, 2017 at 03:12:25PM +0100, Geert Uytterhoeven wrote: > > +check_addr(struct device *dev, dma_addr_t dma_addr, size_t size, > > + const char *caller) > > +{ > > + if (unlikely(dev && !dma_capable(dev, dma_addr, size))) { > > + if (*dev->dma_mask >= DM

Re: [PATCH 02/67] alpha: mark jensen as broken

2018-01-04 Thread Christoph Hellwig
On Tue, Jan 02, 2018 at 11:36:00AM +0100, Geert Uytterhoeven wrote: > Hi Christoph, > > On Fri, Dec 29, 2017 at 9:18 AM, Christoph Hellwig wrote: > > CONFIG_ALPHA_JENSEN has failed to compile since commit aca05038 > > ("alpha/dma: use common noop dma ops"), so mark it as broken. > > unknown revi

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-04 Thread Julia Lawall
On Thu, 4 Jan 2018, SF Markus Elfring wrote: > >> Would you insist to replace such “special characters” by dashes or > >> underscores? > > > > Yes. But I will also nack any very long name. > > Would you find the the file name selection “zalloc-extra_changes1.cocci” > acceptable? No. I do't

Re: [PATCH 30/67] dma-direct: retry allocations using GFP_DMA for small masks

2018-01-04 Thread Christoph Hellwig
On Tue, Jan 02, 2018 at 04:43:15PM +, Vladimir Murzin wrote: > On 29/12/17 08:18, Christoph Hellwig wrote: > > If we got back an allocation that wasn't inside the support coherent mask, > > retry the allocation using GFP_DMA. > > > > Based on the x86 code. > > > > Signed-off-by: Christoph Hel

Re: [PATCH] PCI: designware: move dw_pcie_iatu_unroll_enabled to pcie-designware.c

2018-01-04 Thread Kishon Vijay Abraham I
Hi Pankaj, On Friday 20 October 2017 11:11 PM, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 10:11:08AM +0530, Pankaj Dubey wrote: >> IATU unroll feature can be enabled in EP mode as well, so we need to >> have this check in pcie-designware-ep.c, so instead of making this >> function as static in

Re: [GIT PULL REQUEST] at24 updates for 4.16

2018-01-04 Thread Bartosz Golaszewski
2018-01-03 22:54 GMT+01:00 Wolfram Sang : > On Wed, Jan 03, 2018 at 05:01:13PM +0100, Bartosz Golaszewski wrote: >> Hi Wolfram, >> >> The following changes since commit 30a7acd573899fd8b8ac39236eff6468b195ac7d: >> >> Linux 4.15-rc6 (2017-12-31 14:47:43 -0800) >> >> are available in the Git reposi

Re: [PATCH v6 3/3] eeprom: at24: switch to device-managed version of i2c_new_dummy

2018-01-04 Thread Bartosz Golaszewski
2017-12-20 7:24 GMT+01:00 Heiner Kallweit : > Make use of recently introduced device-managed version of > i2c_new_dummy to simplify the code. > > Signed-off-by: Heiner Kallweit > --- > v2: > - small improvements regarding code readability > v3: > - no changes > v4: > - no changes > v5: > - no chan

Re: [PATCH v6 00/11] Intel SGX Driver

2018-01-04 Thread Dr. Greg Wettstein
On Jan 3, 10:48am, Pavel Machek wrote: } Subject: Re: [PATCH v6 00/11] Intel SGX Driver > Hi! Good morning. > :-). Stuff proceeds as usual. Too bad it is raining outside, instead > of snowing. -19C here, so we have snow... :-) > > > So ... even with SGX, host can generate bitflips in the encla

Re: [PATCH] [v2] crypto: aes-generic - build with -Os on gcc-7+

2018-01-04 Thread Ard Biesheuvel
On 3 January 2018 at 22:39, Arnd Bergmann wrote: > While testing other changes, I discovered that gcc-7.2.1 produces badly > optimized code for aes_encrypt/aes_decrypt. This is especially true when > CONFIG_UBSAN_SANITIZE_ALL is enabled, where it leads to extremely > large stack usage that in turn

Re: aio poll, io_pgetevents and a new in-kernel poll API

2018-01-04 Thread Christoph Hellwig
And of coure I should have added linux-api to the series. Note that the libaio patches include documenting io_pgetevents in the io_getevents man page. On Thu, Jan 04, 2018 at 09:00:12AM +0100, Christoph Hellwig wrote: > Hi all, > > this series adds support for the IOCB_CMD_POLL operation to poll

LKML admins (syzbot emails are not delivered)

2018-01-04 Thread Dmitry Vyukov
Hello, Some of syzbot emails don't appear on LKML mailing lists, while they were mailed as any other emails. Here are few examples: "KASAN: use-after-free Read in rds_tcp_dev_event" https://groups.google.com/d/msg/syzkaller-bugs/nEeIAsNLWL4/1GzamOmRAwAJ "general protection fault in __wake_up_com

Re: [PATCH 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-04 Thread Ziyuan
hi , On 01/02/2018 10:21 AM, Shawn Lin wrote: It turns out that 5us isn't enough for all cases, so let's retry some more times to wait for caldone. Signed-off-by: Shawn Lin Tested-by: Ziyuan Xu On the Firefly RK3399 board. Thanks. -- Ziyuan Xu

[RFC] Retpoline: Binary mitigation for branch-target-injection (aka "Spectre")

2018-01-04 Thread Paul Turner
Apologies for the discombobulation around today's disclosure. Obviously the original goal was to communicate this a little more coherently, but the unscheduled advances in the disclosure disrupted the efforts to pull this together more cleanly. I wanted to open discussion the "retpoline" approach

Re: [RFC] Retpoline: Binary mitigation for branch-target-injection (aka "Spectre")

2018-01-04 Thread Paul Turner
On Thu, Jan 4, 2018 at 1:10 AM, Paul Turner wrote: > Apologies for the discombobulation around today's disclosure. Obviously the > original goal was to communicate this a little more coherently, but the > unscheduled advances in the disclosure disrupted the efforts to pull this > together more cl

RE: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-04 Thread Reshetova, Elena
> On Thu, Jan 04, 2018 at 02:15:53AM +, Alan Cox wrote: > > > > > > Elena has done the work of auditing static analysis reports to a dozen > > > > or so locations that need some 'nospec' handling. > > > > > > How exactly is that related (especially in longer-term support terms) to > > > BPF any

[PATCH] mfd: lpc_ich: Do not touch SPI-NOR write protection bit on Apollo Lake

2018-01-04 Thread Mika Westerberg
Just to be on the safe side, don't touch the bit. If write access to the flash chip is needed, the BIOS needs to enable it explicitly. Signed-off-by: Mika Westerberg --- drivers/mfd/lpc_ich.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c in

Re: LKML admins (syzbot emails are not delivered)

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 10:09:16AM +0100, Dmitry Vyukov wrote: > Hello, > > Some of syzbot emails don't appear on LKML mailing lists, while they > were mailed as any other emails. Here are few examples: > > "KASAN: use-after-free Read in rds_tcp_dev_event" > https://groups.google.com/d/msg/syzkal

Re: [PATCH V3] PM: In kernel power management domain_pm created for async schedules

2018-01-04 Thread gre...@linuxfoundation.org
On Thu, Jan 04, 2018 at 08:59:00AM +, Vikas Bansal wrote: > Sender : Rafael J. Wysocki > > Date : 2017-12-14 03:56 (GMT+5:30) > > > > > > On Wed, Dec 13, 2017 at 9:46 AM, Vikas Bansal > wrote: > >> > >> Sender : Rafael J. Wysocki > >> Date : 2017-12-06 19:48 (GMT+5:30) > >> > >>> > >>>

Re: [RFC] Retpoline: Binary mitigation for branch-target-injection (aka "Spectre")

2018-01-04 Thread Paul Turner
On Thu, Jan 4, 2018 at 1:10 AM, Paul Turner wrote: > Apologies for the discombobulation around today's disclosure. Obviously the > original goal was to communicate this a little more coherently, but the > unscheduled advances in the disclosure disrupted the efforts to pull this > together more cl

Re: [RESEND PATCH v2 14/15] ASoC: qcom: apq8096: Add db820c machine driver

2018-01-04 Thread Srinivas Kandagatla
On 03/01/18 19:41, Stephen Boyd wrote: + ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); Why do we need to do this? Can you add some sort of comment in the code about why? Even though dsp supports 64 bit addresses, but the sid sits at offset of 32, which brings this res

Re: ethernet: mlx4: Delete an error message for a failed memory allocation in five functions

2018-01-04 Thread Tariq Toukan
On 03/01/2018 4:22 PM, SF Markus Elfring wrote: I don't really accept this claim... Short informative strings worth the tiny space they consume. There can be different opinions for their usefulness. In addition, some out-of-memory errors are recoverable, even though their backtrace is als

Re: LKML admins (syzbot emails are not delivered)

2018-01-04 Thread Pavel Machek
Hi! > > Some of syzbot emails don't appear on LKML mailing lists, while they > were mailed as any other emails. Here are few examples: > > "KASAN: use-after-free Read in rds_tcp_dev_event" > https://groups.google.com/d/msg/syzkaller-bugs/nEeIAsNLWL4/1GzamOmRAwAJ > > "general protection fault in

Re: [PATCH] ethernet: mlx4: Delete an error message for a failed memory allocation in five functions

2018-01-04 Thread Tariq Toukan
On 01/01/2018 10:46 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Mon, 1 Jan 2018 21:42:27 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- Acked-by: Tari

[PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v4

2018-01-04 Thread Christian König
TTM tries to allocate coherent memory in chunks of 2MB first to improve TLB efficiency and falls back to allocating 4K pages if that fails. Suppress the warning when the 2MB allocations fails since there is a valid fall back path. v2: suppress warnings from swiotlb_tbl_map_single as well v3: codi

Re: [RFC] pwm-backlight: Allow backlight to remain disabled on boot

2018-01-04 Thread hl
Hi On Thursday, January 04, 2018 04:22 PM, Peter Ujfalusi wrote: Hi, On 2018-01-04 04:18, hl wrote: Hi All,     Since many panel power sequence request backlight stay disable before panel power ready, but with now pwm-backlight drvier, it default to enable backlight when pwm-backlight pro

Re: [RFC] Retpoline: Binary mitigation for branch-target-injection (aka "Spectre")

2018-01-04 Thread Woodhouse, David
On Thu, 2018-01-04 at 01:10 -0800, Paul Turner wrote: > Apologies for the discombobulation around today's disclosure.  Obviously the > original goal was to communicate this a little more coherently, but the > unscheduled advances in the disclosure disrupted the efforts to pull this > together more

Re: [PATCH] ARM: imx_v6_v7_defconfig: select the CONFIG_CPUFREQ_DT

2018-01-04 Thread Fabio Estevam
Hi Anson, On Thu, Jan 4, 2018 at 1:36 PM, Anson Huang wrote: > Select CONFIG_CPUFREQ_DT by default to enable > cpu-freq driver for i.MX7D. > > The rest changes are generated by "make savedefconfig". Please generate this patch on top of Shawn's for-next branch. There is already a commit there th

Re: LKML admins (syzbot emails are not delivered)

2018-01-04 Thread Mike Galbraith
On Thu, 2018-01-04 at 10:25 +0100, Pavel Machek wrote: > Hi! > > > > Some of syzbot emails don't appear on LKML mailing lists, while they > > were mailed as any other emails. Here are few examples: > > > > "KASAN: use-after-free Read in rds_tcp_dev_event" > > https://groups.google.com/d/msg/syzka

[PATCH v2] of/fdt: Fix #ifdef dependency of early flattree declarations

2018-01-04 Thread Geert Uytterhoeven
If OF_FLATTREE=y, but OF_EARLY_FLATTREE=n: drivers/tty/serial/earlycon.o: In function `param_setup_earlycon': earlycon.c:(.init.text+0x3a4): undefined reference to `early_init_dt_scan_chosen_stdout' Fix this by moving the early flattree forward declarations and dummy implementations insi

[PATCH 12/12] arm64: dts: mt7622: add SATA device nodes

2018-01-04 Thread sean.wang
From: Ryder Lee This patch adds SATA support fot MT7622. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 ++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 40 2 files changed, 48 insertions(+) diff --gi

[PATCH 11/12] arm64: dts: mt7622: add PCIe device nodes

2018-01-04 Thread sean.wang
From: Ryder Lee This patch adds PCIe support fot MT7622. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 10 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 76 2 files changed, 86 insertions(+) diff --git

[PATCH 01/12] dt-bindings: clock: mediatek: add missing required #reset-cells

2018-01-04 Thread sean.wang
From: Sean Wang All ethsys, pciesys and ssusbsys internally include reset controller, so explicitly add back these missing cell definitions to related bindings and examples. Signed-off-by: Sean Wang Cc: Rob Herring Cc: Stephen Boyd --- Documentation/devicetree/bindings/arm/mediatek/mediatek,

[PATCH 03/12] arm64: dts: mt7622: add power domain controller device nodes

2018-01-04 Thread sean.wang
From: Sean Wang add power domain controller nodes Signed-off-by: Sean Wang Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dts

[PATCH 09/12] arm64: dts: mt7622: add flash related device nodes

2018-01-04 Thread sean.wang
From: Sean Wang add nodes for NOR flash, parallel Nand flash with error correction code support. Signed-off-by: Sean Wang Cc: RogerCC Lin Cc: Guochun Mao --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 23 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 34 +

[PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes

2018-01-04 Thread sean.wang
From: Sean Wang Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration. Signed-off-by: Sean Wang Cc: Mark Brown Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt6380.dtsi

[PATCH 07/12] arm64: dts: mt7622: turn uart0 clock to real ones

2018-01-04 Thread sean.wang
From: Sean Wang This patch also cleans up two oscillators that provide clocks for MT7623. Switch the uart clocks to the real ones while at it. Signed-off-by: Sean Wang Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 ++- 1 file changed, 2 insertions(+), 13 d

[PATCH 10/12] arm64: dts: mt7622: add ethernet device nodes

2018-01-04 Thread sean.wang
From: Sean Wang add ethernet device nodes which enable GMAC1 with SGMII interface Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 22 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 31 2 files changed, 53 insertions(

[PATCH 02/12] arm64: dts: mt7622: add clock controller device nodes

2018-01-04 Thread sean.wang
From: Sean Wang Add clock controller nodes for MT7622 and include header for topckgen, infracfg, pericfg, apmixedsys, ethsys, sgmiisys, pciesys and ssusbsys for those devices nodes to be added afterwards. In addition, provides an oscillator node for the source of PLLs and dummy clock for PWARP t

[PATCH 06/12] arm64: dts: mt7622: add cpufreq related device nodes

2018-01-04 Thread sean.wang
From: Sean Wang Add clocks, regulators and opp information into cpu nodes. In addition, the power supply for cpu nodes is deployed on mt7622-rfb1 board. Signed-off-by: Sean Wang Cc: Viresh Kumar --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 12 +++ arch/arm64/boot/dts/mediatek/mt7622

[PATCH 04/12] arm64: dts: mt7622: add pinctrl related device nodes

2018-01-04 Thread sean.wang
From: Sean Wang add pinctrl device nodes and rfb1 board, additionally include all pin groups possible being used on rfb1 board. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 200 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 + 2 f

[PATCH 08/12] arm64: dts: mt7622: add SoC and peripheral related device nodes

2018-01-04 Thread sean.wang
From: Sean Wang Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2], spi[0-1] and btif nodes Signed-off-by: Sean Wang Cc: Andrew-CT Chen Cc: Zhiyong Tao Cc: Zhi Mao Cc: Jun Gao Cc: Leilk Liu Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 54

[PATCH 00/12] add dts nodes to MT7622 SoC

2018-01-04 Thread sean.wang
From: Sean Wang add dts nodes to MT7622 SoC and related rfb1 board Ryder Lee (2): arm64: dts: mt7622: add PCIe device nodes arm64: dts: mt7622: add SATA device nodes Sean Wang (10): dt-bindings: clock: mediatek: add missing required #reset-cells arm64: dts: mt7622: add clock controller

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-04 Thread SF Markus Elfring
>> Would you find the file name selection “zalloc-extra_changes1.cocci” >> acceptable? > > No. Next try then … > I do't know what the extra changes are This script for the semantic patch language was designed in the way that more source code would be adjusted (or just reformatted) than I see

Re: [PATCH 06/12] arm64: dts: mt7622: add cpufreq related device nodes

2018-01-04 Thread Viresh Kumar
On 04-01-18, 17:40, sean.w...@mediatek.com wrote: > diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > index 5b7f0a3..90b2761 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > @@ -18,6 +18,50

Re: [RFC] Retpoline: Binary mitigation for branch-target-injection (aka "Spectre")

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 01:24:41AM -0800, Paul Turner wrote: > On Thu, Jan 4, 2018 at 1:10 AM, Paul Turner wrote: > > Apologies for the discombobulation around today's disclosure. Obviously the > > original goal was to communicate this a little more coherently, but the > > unscheduled advances in

Re: [PATCH bpf-next v5 3/4] libbpf: add missing SPDX-License-Identifier

2018-01-04 Thread Philippe Ombredanne
On Thu, Jan 4, 2018 at 9:21 AM, Eric Leblond wrote: > Signed-off-by: Eric Leblond > Acked-by: Alexei Starovoitov > --- > tools/lib/bpf/bpf.c| 2 ++ > tools/lib/bpf/bpf.h| 2 ++ > tools/lib/bpf/libbpf.c | 2 ++ > tools/lib/bpf/libbpf.h | 2 ++ > 4 files changed, 8 insertions(+) > > diff

Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v4

2018-01-04 Thread Christoph Hellwig
This seems to collide with my dma direct/swiotlb series posted recently. > +++ b/lib/swiotlb.c > @@ -490,11 +490,11 @@ static void swiotlb_bounce(phys_addr_t orig_addr, > phys_addr_t tlb_addr, > } > } > > -phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, > -

[PATCH v2 2/2] media: dt-bindings: Add OF properties to ov7670

2018-01-04 Thread Jacopo Mondi
Describe newly introduced OF properties for ov7670 image sensor. The driver supports two standard properties to configure synchronism signals polarities and two custom properties already supported as platform data options by the driver. --- Documentation/devicetree/bindings/media/i2c/ov7670.txt |

[PATCH v2 0/2] media: ov7670: Implement mbus configuration

2018-01-04 Thread Jacopo Mondi
Hello, this series adds mbus configuration properties to ov7670 sensor driver. I have sent v1 a few days ago and forgot to cc device tree people. Doing it now with bindings description and implementation split in 2 separate patches. I have fixed Sakari's comment on v1, and I'm sending v2 out w

[PATCH v2 1/2] v4l2: i2c: ov7670: Implement OF mbus configuration

2018-01-04 Thread Jacopo Mondi
ov7670 driver supports two optional properties supplied through platform data, but currently does not support any standard video interface property. Add support through OF parsing for 2 generic properties (vsync and hsync polarities) and for two custom properties already supported by platform data

[PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Alexander Kuleshov
we align minimal possible address during randomization to CONFIG_PHYSICAL_ALIGN two times: during getting of random physical address and virtual address (only for x86_64). Let's move this to choose_random_location() to not duplicate code in find_random_virt_addr() and find_random_phys_addr(). Sig

Re: [PATCH] Fix read buffer overflow in delta-ipc

2018-01-04 Thread Hugues FRUCHET
Hi Andi, Anyway we cannot keep strcpy, if name is not NULL terminated case, msg.name is overflowed. Trying to find some safe design pattern about that, I've found strscpy: https://lwn.net/Articles/643376/ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30c44659f4a3e7

Re: LKML admins (syzbot emails are not delivered)

2018-01-04 Thread Pavel Machek
> On Thu, 2018-01-04 at 10:25 +0100, Pavel Machek wrote: > > Hi! > > > > > > Some of syzbot emails don't appear on LKML mailing lists, while they > > > were mailed as any other emails. Here are few examples: > > > > > > "KASAN: use-after-free Read in rds_tcp_dev_event" > > > https://groups.google

Re: LKML admins (syzbot emails are not delivered)

2018-01-04 Thread Ozgur
04.01.2018, 12:23, "Greg Kroah-Hartman" : > On Thu, Jan 04, 2018 at 10:09:16AM +0100, Dmitry Vyukov wrote: >>  Hello, >> >>  Some of syzbot emails don't appear on LKML mailing lists, while they >>  were mailed as any other emails. Here are few examples: >> >>  "KASAN: use-after-free Read in rds_t

Re: [PATCH -next] irqchip/ompic: fix return value check in ompic_of_init()

2018-01-04 Thread Marc Zyngier
On 04/01/18 03:56, weiyongjun (A) wrote: > On Wed, Jan 03, 2018 10:41 PM, Stafford Horne wrote: >> On Tue, Jan 02, 2018 at 11:47:19AM +, Wei Yongjun wrote: >>> In case of error, the function ioremap() returns NULL pointer not >>> ERR_PTR(). The IS_ERR() test in the return value check should be

Re: [RFC] Retpoline: Binary mitigation for branch-target-injection (aka "Spectre")

2018-01-04 Thread Woodhouse, David
On Thu, 2018-01-04 at 10:48 +0100, Greg Kroah-Hartman wrote: > > Nice, thanks for the link and the write up.  There is also a patch for > gcc floating around somewhere, does anyone have the link for that? http://git.infradead.org/users/dwmw2/gcc-retpoline.git/shortlog/refs/heads/gcc-7_2_0-retpoli

Re: [PATCH 06/12] arm64: dts: mt7622: add cpufreq related device nodes

2018-01-04 Thread Sean Wang
On Thu, 2018-01-04 at 15:15 +0530, Viresh Kumar wrote: > On 04-01-18, 17:40, sean.w...@mediatek.com wrote: > > diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > > b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > > index 5b7f0a3..90b2761 100644 > > --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi >

Re: [PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Baoquan He
On 01/04/18 at 03:54pm, Alexander Kuleshov wrote: > we align minimal possible address during randomization to > CONFIG_PHYSICAL_ALIGN > two times: during getting of random physical address and virtual > address (only for x86_64). > > Let's move this to choose_random_location() to not duplicate co

Re: [PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Alexander Kuleshov
On 01-04-18, Baoquan He wrote: > On 01/04/18 at 03:54pm, Alexander Kuleshov wrote: > > we align minimal possible address during randomization to > > CONFIG_PHYSICAL_ALIGN > > two times: during getting of random physical address and virtual > > address (only for x86_64). > > > > Let's move this to

Re: [PATCH v5 3/7] scsi: libsas: make the event threshold configurable

2018-01-04 Thread John Garry
On 15/12/2017 12:19, Hannes Reinecke wrote: On 12/08/2017 10:42 AM, Jason Yan wrote: Add a sysfs attr that LLDD can configure it for every host. We made a example in hisi_sas. Other LLDDs using libsas can implement it if they want. Suggested-by: Hannes Reinecke Signed-off-by: Jason Yan CC: Jo

Re: [PATCH] mm/fadvise: discard partial pages iff endbyte is also eof

2018-01-04 Thread Mel Gorman
On Wed, Jan 03, 2018 at 04:17:53PM -0800, Andrew Morton wrote: > : invalidate_mapping_pages() takes start/end, but fadvise is currently passing > : it start/len. > : > : > : > : mm/fadvise.c |8 ++-- > : 1 files changed, 6 insertions(+), 2 deletions(-) > : > : diff -puN mm/fadvise.c~fa

[PATCH] f2fs: support FIEMAP_FLAG_XATTR

2018-01-04 Thread Chao Yu
This patch enables ->fiemap to handle FIEMAP_FLAG_XATTR flag for xattr mapping info lookup purpose. It makes f2fs passing generic/425 test in fstest. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 65 ++ 1 file changed, 61 insertions(+), 4 de

Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v4

2018-01-04 Thread Christian König
Am 04.01.2018 um 10:53 schrieb Christoph Hellwig: This seems to collide with my dma direct/swiotlb series posted recently. +++ b/lib/swiotlb.c @@ -490,11 +490,11 @@ static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, } } -phys_addr_t swiotlb_tbl_map_single(stru

Re: [PATCH V2] nvme-pci: fix NULL pointer reference in nvme_alloc_ns

2018-01-04 Thread Christoph Hellwig
This looks generally fine to me, ut a few nitpicks below: > - Based on Sagi's suggestion, add new state NVME_CTRL_ADMIN_LIVE. Maybe call this NVME_CTRL_ADMIN_ONLY ? > - if (ctrl->state != NVME_CTRL_LIVE) > + if ((ctrl->state != NVME_CTRL_LIVE) && > + (ctrl->state != NVME_CTR

Re: "BUG: using smp_processor_id() in preemptible" with KPTI on 4.14.11

2018-01-04 Thread Thomas Zeitlhofer
On Thu, Jan 04, 2018 at 02:59:06AM +0100, Thomas Zeitlhofer wrote: > Hello, > > on an Ivybridge CPU, I get with 4.14.11: > >BUG: using smp_processor_id() in preemptible [] code: > ovsdb-server/4510 >caller is native_flush_tlb_single+0x57/0xc0 >CPU: 3 PID: 4510 Comm: ovsdb-ser

[PATCH] ANDROID: binder: Remove obsolete proc waitqueue.

2018-01-04 Thread Martijn Coenen
It was no longer being used. Signed-off-by: Martijn Coenen --- drivers/android/binder.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 778caed570c6..06067636 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2018-01-04 Thread Mel Gorman
On Thu, Jan 04, 2018 at 09:17:36AM +0800, Huang, Ying wrote: > > Maybe, but in this particular case, I would prefer to go with something > > more conventional unless there is strong evidence that it's an improvement > > (which I doubt in this case given the cost of migration overall and the > > cor

Re: [PATCH 6/6] add test for aio poll and io_pgetevents

2018-01-04 Thread Philippe Ombredanne
Dear Christoph, On Thu, Jan 4, 2018 at 9:03 AM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig > --- > harness/cases/22.t | 149 > + > 1 file changed, 149 insertions(+) > create mode 100644 harness/cases/22.t > > diff --git a/ha

Re: [RFC/RFT PATCH 0/6] Asynchronous UVC

2018-01-04 Thread Kieran Bingham
Hi Troy, On 03/01/18 21:13, Troy Kisky wrote: > On 1/3/2018 12:32 PM, Kieran Bingham wrote: >> From: Kieran Bingham >> >> The Linux UVC driver has long provided adequate performance capabilities for >> web-cams and low data rate video devices in Linux while resolutions were low. >> >> Modern USB

[PATCH] mm: Pin address_space before dereferencing it while isolating an LRU page

2018-01-04 Thread Mel Gorman
Minchan Kim asked the following question -- what locks protects address_space destroying when race happens between inode trauncation and __isolate_lru_page? Jan Kara clarified by describing the race as follows CPU1CPU2 truncate(inode)

Re: Linux 4.15-rc6

2018-01-04 Thread Willy Tarreau
On Wed, Jan 03, 2018 at 01:20:00PM -0800, Andres Freund wrote: > On 2018-01-03 13:57:25 +0100, Willy Tarreau wrote: > > I think we should start to think about an option to > > disable this per process. We could imagine for example a prctl() > > requiring CAP_SYS_ADMIN to disable it. This would at l

Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes

2018-01-04 Thread Philippe Ombredanne
Sean, On Thu, Jan 4, 2018 at 10:40 AM, wrote: > From: Sean Wang > > Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 > regulator nodes in an alone file to allow similar boards using MT6380 > able to resue the configuration. > > Signed-off-by: Sean Wang > Cc: Mark Brown > Cc:

Re: [PATCH] doc: memory-barriers: reStructure Text

2018-01-04 Thread Markus Heiser
> Am 04.01.2018 um 04:59 schrieb afzal mohammed : > > Hi, > > On Thu, Jan 04, 2018 at 09:48:50AM +0800, Boqun Feng wrote: > >>> The location chosen is "Documentation/kernel-hacking", i was unsure >>> where this should reside & there was no .rst file in top-level directory >>> "Documentation", s

Re: [PATCH 6/6] add test for aio poll and io_pgetevents

2018-01-04 Thread Christoph Hellwig
On Thu, Jan 04, 2018 at 11:24:16AM +0100, Philippe Ombredanne wrote: > Would you consider using an SPDX tag instead as documented in Thomas > doc patches [1]? This rather close to what you use today and would > come out as this, on the first line: > > SPDX-License-Identifier: LGPL-2.1+ > > Thank

Re: [PATCH v5 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory

2018-01-04 Thread Baoquan He
On 01/04/18 at 04:02pm, Chao Fan wrote: > In current code, kaslr may choose the memory region in movable > nodes to extract kernel, which will make the nodes can't be hot-removed. > To solve it, we can specify the memory region in immovable node. > Create immovable_mem to store the regions in immov

[PATCH 2/3] media: dvb: fix DVB_MMAP dependency

2018-01-04 Thread Arnd Bergmann
Enabling CONFIG_DVB_MMAP without CONFIG_VIDEOBUF2_VMALLOC results in a link error: drivers/media/dvb-core/dvb_vb2.o: In function `_stop_streaming': dvb_vb2.c:(.text+0x894): undefined reference to `vb2_buffer_done' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_init': dvb_vb2.c:(.text+0xbec

[PATCH 3/3] media: au0828: add VIDEO_V4L2 dependency

2018-01-04 Thread Arnd Bergmann
After the move of videobuf2 into the common directory, selecting the au0828 driver with CONFIG_V4L2 disabled started causing a link failure, as we now attempt to build videobuf2 but it still requires v4l2: ERROR: "v4l2_event_pending" [drivers/media/common/videobuf/videobuf2-v4l2.ko] undefined! ER

[PATCH 1/3] media: dvb: fix DVB_MMAP symbol name

2018-01-04 Thread Arnd Bergmann
CONFIG_DVB_MMAP was misspelled either as CONFIG_DVB_MMSP or DVB_MMAP, so it had no effect at all. This fixes that, to make it possible to build it again. Fixes: 4021053ed52d ("media: dvb-core: make DVB mmap API optional") Signed-off-by: Arnd Bergmann --- drivers/media/dvb-core/Makefile | 2 +-

Re: [PATCH 2/2] HID: i2c-hid: Fix resume issue on Raydium touchscreen device

2018-01-04 Thread Benjamin Tissoires
Hi Aaron, On Tue, Jan 2, 2018 at 6:30 PM, Aaron Ma wrote: > When Rayd touchscreen resumed from S3, it issues too many errors like: > i2c_hid i2c-RAYD0001:00: i2c_hid_get_input: incomplete report (58/5442) > > And all the report data are corrupted, touchscreen is unresponsive. > > Fix this by re-s

Re: [PATCH] nvme-pci: fix the timeout case when reset is ongoing

2018-01-04 Thread Christoph Hellwig
On Wed, Jan 03, 2018 at 06:31:44AM +0800, Jianchao Wang wrote: > NVME_CTRL_RESETTING used to indicate the range of nvme initializing > strictly in fd634f41(nvme: merge probe_work and reset_work), but it > is not now. The NVME_CTRL_RESETTING is set before queue the > reset_work, there could be a big

[PATCH] xfrm: init skb_head lock for transport-mode packets

2018-01-04 Thread Artem Savkov
Commit acf568ee859f "xfrm: Reinject transport-mode packets through tasklet" adds an sk_buff_head queue, but never initializes trans->queue.lock, which results in a "spinlock bad magic" BUG on skb_queue_tail() call in xfrm_trans_queue. Use skb_queue_head_init() instead of __skb_queue_head_init() to

Re: [PATCH V2] perf script: add script to profile and resolve physical mem type

2018-01-04 Thread Philippe Ombredanne
Dear Kan, On Wed, Jan 3, 2018 at 9:20 PM, Liang, Kan wrote: > Hi Stephane and Andi, > > Could you please review the script? > > If it's OK for you, could you please Ack/Review this? > > Thanks, > Kan > >> >> From: Kan Liang >> >> There could be different types of memory in the system. E.g normal

Re: [PATCH 1/2] HID: core: i2c-hid: fix size check and type usage

2018-01-04 Thread Benjamin Tissoires
Hi Aaron, There are quite some changes I'd like to see in this patch. See below. On Tue, Jan 2, 2018 at 6:30 PM, Aaron Ma wrote: > When convert char array with signed int, if the inbuf[x] is negative then > upper bits will be set to 1. Fix this by using u8 instead of char. > > ret_size has to be

[PATCH 0/2] mtd/maps/sun_uflash: Adjustments for uflash_devinit()

2018-01-04 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 4 Jan 2018 11:45:54 +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 a size determination drivers/mtd/maps/sun_uflash.c | 6 ++ 1 fil

Re: "BUG: using smp_processor_id() in preemptible" with KPTI on 4.14.11

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 11:20:29AM +0100, Thomas Zeitlhofer wrote: > On Thu, Jan 04, 2018 at 02:59:06AM +0100, Thomas Zeitlhofer wrote: > > Hello, > > > > on an Ivybridge CPU, I get with 4.14.11: > > > >BUG: using smp_processor_id() in preemptible [] code: > > ovsdb-server/4510 > >

[PATCH 1/2] mtd/maps/sun_uflash: Delete an error message for a failed memory allocation in uflash_devinit()

2018-01-04 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 4 Jan 2018 10:20:14 +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 --- drivers/mtd/maps/sun_uflash.c | 4 +--- 1 file changed, 1 insertion(+),

<    2   3   4   5   6   7   8   9   10   >