Re: [PATCH v3 0/5] Enable wm8524 on i.MX8MQ

2019-02-26 Thread Daniel Baluta
On Tue, Feb 26, 2019 at 3:10 PM Fabio Estevam wrote: > > On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta > wrote: > > > I get your point here. But for the moment it is identical with > > "fsl,imx7d-sdma" so there is no need to add it now! > > > > See the discussion here, and comment from Lucas: >

Re: [PATCH v2 1/3] Bluetooth: btusb: add QCA6174A compatible properties

2019-02-26 Thread Robin Murphy
On 26/02/2019 09:01, Marcel Holtmann wrote: Hi Brian, We may need to specify a GPIO wake pin for this device, so add a compatible property for it. There are at least to USB PID/VID variations of this chip: one with a Lite-On ID and one with an Atheros ID. Signed-off-by: Brian Norris Reviewed

Re: [PATCH RFC] mac80211: Use IFF_ECHO to force delivery of tx_status frames

2019-02-26 Thread Johannes Berg
On Tue, 2019-02-26 at 14:13 +0100, Julius Niedworok wrote: > > Thank you for the explanation - I can adjust the comment, if you like to. > > > So what are you getting back after you enabled IFF_ECHO on your mac80211 > > device? > > > > Is it just a 'status' about a sent packet, or is it the pac

Re: [PATCH v2] soc: imx: Add generic i.MX8 SoC driver

2019-02-26 Thread Leonard Crestez
On Tue, 2019-02-26 at 10:53 +, Abel Vesa wrote: > Add generic i.MX8 SoC driver along with the i.MX8MQ SoC specific code. > For now, only i.MX8MQ revision B1 is supported. For any other, i.MX8MQ > revision it will print 'unknown'. > > + np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-o

Re: [PATCH v2] soc: imx: Add generic i.MX8 SoC driver

2019-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2019 at 7:53 AM Abel Vesa wrote: > + magic = readl_relaxed(ocotp_base + IMX8MQ_SW_INFO_B1); > + if (magic == IMX8MQ_SW_MAGIC_B1) > + rev = REV_B1; Don't you mean rev == REV_B1; ?

Re: [PATCH v2] soc: imx: Add generic i.MX8 SoC driver

2019-02-26 Thread Fabio Estevam
On Tue, Feb 26, 2019 at 10:37 AM Fabio Estevam wrote: > > On Tue, Feb 26, 2019 at 7:53 AM Abel Vesa wrote: > > > + magic = readl_relaxed(ocotp_base + IMX8MQ_SW_INFO_B1); > > + if (magic == IMX8MQ_SW_MAGIC_B1) > > + rev = REV_B1; > > Don't you mean rev == REV_B1; ? Ops,

[PATCH][next] scsi: lpfc: ensure error is set to -ENODEV on failing exit paths

2019-02-26 Thread Colin King
From: Colin Ian King A previous commit assigned error to the return value from the call to dma_set_mask_and_coherent and on the non-failure path error is zero. The subsequent error return paths now return 0 instead of -ENODEV causing failures to now be ignored. Fix this by setting error to -ENOD

[PATCH net-next v4 0/4] enetc: Add mdio support and device tree nodes

2019-02-26 Thread Claudiu Manoil
This is the missing part to enable PCI probing of the ENETC ethernet ports on the LS1028A SoC and external traffic on the LS1028A RDB board. It's one of the first items on the TODO list for the recently merged ENETC ethernet driver. v3: Add DT bindings doc for ENETC connections v4: none Claudiu M

[PATCH net-next v4 4/4] dt-bindings: net: freescale: enetc: Add connection bindings for ENETC ethernet nodes

2019-02-26 Thread Claudiu Manoil
Define connection bindings (external PHY connections and internal links) for the ENETC on-chip ethernet controllers. Signed-off-by: Claudiu Manoil --- v3 - added this patch to the set v4 - documented strictly the enetc node bindings, changed node type from "pci" to "ethernet" and added compa

[PATCH net-next v4 3/4] enetc: Add ENETC PF level external MDIO support

2019-02-26 Thread Claudiu Manoil
Each ENETC PF has its own MDIO interface, the corresponding MDIO registers are mapped in the ENETC's Port register block. The current patch adds a driver for these PF level MDIO buses, so that each PF can manage directly its own external link. Signed-off-by: Alex Marginean Signed-off-by: Claudiu

[PATCH net-next v4 2/4] arm64: dts: fsl: ls1028a-rdb: Add ENETC external eth ports for the LS1028A RDB board

2019-02-26 Thread Claudiu Manoil
The LS1028A RDB board features an Atheros PHY connected over SGMII to the ENETC PF0 (or Port0). ENETC Port1 (PF1) has no external connection on this board, so it can be disabled for now. Signed-off-by: Alex Marginean Signed-off-by: Claudiu Manoil --- v2 - added a mdio node as parent for the phy

[PATCH net-next v4 1/4] arm64: dts: fsl: ls1028a: Add PCI IERC node and ENETC endpoints

2019-02-26 Thread Claudiu Manoil
The LS1028A SoC features a PCI Integrated Endpoint Root Complex (IERC) defining several integrated PCI devices, including the ENETC ethernet controller integrated endpoints (IEPs). The IERC implements ECAM (Enhanced Configuration Access Mechanism) to provide access to the PCIe config space of the I

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 12:38:13PM +0100, Borislav Petkov wrote: > On Tue, Feb 26, 2019 at 12:30:08PM +0100, Peter Zijlstra wrote: > > When I used the argc variant, gcc-8 'works', but with s/argc/1/ it is > > still broken. > > As requested on IRC: What I asked was if you could get your GCC develo

[PATCH 1/7] ASoC: stm32: i2s: fix IRQ clearing

2019-02-26 Thread Olivier Moysan
Because of regmap cache, interrupts may not be cleared as expected. Declare IFCR register as write only and make writings to IFCR register unconditional. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/

[PATCH 0/7] ASoC: stm32: i2s: miscellaneous fixes

2019-02-26 Thread Olivier Moysan
This patch-set is a collection of fixes for STM32 I2S driver. Olivier Moysan (7): ASoC: stm32: i2s: fix IRQ clearing ASoC: stm32: i2s: fix 16 bit format support ASoC: stm32: i2s: fix stream count management ASoC: stm32: i2s: fix dma configuration ASoC: stm32: i2s: remove useless callback

[PATCH 3/7] ASoC: stm32: i2s: fix stream count management

2019-02-26 Thread Olivier Moysan
Move counter handling to trigger start section to manage multiple start/stop events. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 7d4c674339

Re: [PATCH] mm: hwpoison: fix thp split handing in soft_offline_in_use_page()

2019-02-26 Thread Kirill A. Shutemov
On Tue, Feb 26, 2019 at 07:18:00PM +0800, zhong jiang wrote: > From: zhongjiang > > When soft_offline_in_use_page() runs on a thp tail page after pmd is plit, s/plit/split/ > we trigger the following VM_BUG_ON_PAGE(): > > Memory failure: 0x3755ff: non anonymous thp > __get_any_page: 0x3755ff:

[PATCH 5/7] ASoC: stm32: i2s: remove useless callback

2019-02-26 Thread Olivier Moysan
Clocks do not need to be released on driver removal, as this is already managed before. Remove useless remove callback. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.

[PATCH 4/7] ASoC: stm32: i2s: fix dma configuration

2019-02-26 Thread Olivier Moysan
DMA configuration is not balanced on start/stop. Move DMA configuration to trigger callback. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index

[PATCH 6/7] ASoC: stm32: i2s: fix race condition in irq handler

2019-02-26 Thread Olivier Moysan
When snd_pcm_stop_xrun() is called in interrupt routine, substream context may have already been released. Add protection on substream context. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/sound

[PATCH 7/7] ASoC: stm32: i2s: skip useless write in slave mode

2019-02-26 Thread Olivier Moysan
Dummy write in capture master mode is used to gate bus clocks. This write is useless in slave mode as the clocks are not managed by slave. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c

[PATCH 2/7] ASoC: stm32: i2s: fix 16 bit format support

2019-02-26 Thread Olivier Moysan
I2S supports 16 bits data in 32 channel length. However the expected driver behavior, is to set channel length to 16 bits when data format is 16 bits. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm

general protection fault in __xfrm_policy_check

2019-02-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ff7b11aa481f net: socket: set sock->sk to NULL after calli.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1e5cc0 kernel config: https://syzkaller.appspot.com/x/.config?x=7132344728e7ec3f dashboa

Re: [PATCH 4.20 000/183] 4.20.13-stable review

2019-02-26 Thread Naresh Kamboju
On Tue, 26 Feb 2019 at 02:59, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.20.13 release. > There are 183 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

Re: [PATCH 03/11] x86 topology: Add CPUID.1F multi-die/package support

2019-02-26 Thread Peter Zijlstra
On Wed, Feb 20, 2019 at 10:08:48AM -0500, Len Brown wrote: > Thanks for the comments, Peter. I'll update the patch to address the > syntax points. (Maybe checkpatch.pl should be updated to reflect your > preferences?). Don't know about checkpatch; I ignore plenty of its output. I think tglx start

[PATCH v3] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-26 Thread Liu Jian
In function do_write_buffer(), in the for loop, there is a case chip_ready() returns 1 while chip_good() returns 0, so it never break the loop. To fix this, chip_good() is enough and it should timeout if it stay bad for a while. Fixes: dfeae1073583("mtd: cfi_cmdset_0002: Change write buffer to che

Re: [PATCH V4 0/4] Add support for TCG2 event logs on EFI systems

2019-02-26 Thread Jarkko Sakkinen
On Fri, 2019-02-22 at 12:26 -0800, Matthew Garrett wrote: > This patchset adds support for obtaining the TCG2 format event log on > EFI systems, along with support for copying up the final event log to > capture events that occur after the primary log is obtained. V4 is > identical to previous vers

Re: [PATCH] net: phy: Micrel KSZ8061: link failure after cable connect

2019-02-26 Thread Andrew Lunn
On Tue, Feb 26, 2019 at 01:45:06PM +0530, Rajasingh Thavamani wrote: > With Micrel KSZ8061 PHY, the link may occasionally not come up after > Ethernet cable connect. The vendor's (Microchip, former Micrel) errata > sheet 8688A.pdf descripes the problem and possible workarounds in > detail, see

[PATCH] MIPS: fix memory setup for platforms with PHY_OFFSET != 0

2019-02-26 Thread Thomas Bogendoerfer
For platforms, which use a PHY_OFFSET != 0, symbol _end also contains that offset. So when calling memblock_reserve() for reserving kernel and initrd the size argument needs to be adjusted. Fixes: bcec54bf3118 ("mips: switch to NO_BOOTMEM") Signed-off-by: Thomas Bogendoerfer --- arch/mips/kernel

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Qian Cai
On 2/26/19 7:13 AM, Souptick Joarder wrote: > On Tue, Feb 26, 2019 at 12:47 AM Qian Cai wrote: >> >> When onlining memory pages, it calls kernel_unmap_linear_page(), >> However, it does not call kernel_map_linear_page() while offlining >> memory pages. As the result, it triggers a panic below w

[Update PATCH V3 1/10] X86/Hyper-V: Add parameter offset for hyperv_fill_flush_guest_mapping_list()

2019-02-26 Thread lantianyu1986
From: Lan Tianyu Add parameter offset to specify start position to add flush ranges in guest address list of struct hv_guest_mapping_flush_list. Signed-off-by: Lan Tianyu --- Update "offset" parameter's type of hyperv_fill_flush_guest_mapping_list() arch/x86/hyperv/nested.c| 4 ++-- a

[PATCH] ARM: dts: sun7i: olimex-lime2: Add regulators for GPIO banks

2019-02-26 Thread Priit Laes
From: Priit Laes Make sure that A20 Olimex Lime2 pin bank regulators are properly represented. While pin banks A, B and F are connected to 3.3V static regulator, pin banks E and G tied with LDO3 and LDO4 regulators with 2.8V reference. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20

[PATCH] bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()

2019-02-26 Thread zerons
[ Upstream commit c91951f15978f1a0c6b65f063d30f7ea7bc6fb42 ] In bpf/syscall.c, bpf_map_get_fd_by_id() use bpf_map_inc_not_zero() to increase the refcount, both map->refcnt and map->usercnt. Then, if bpf_map_new_fd() fails, should handle map->usercnt too. Signed-off-by: zerons --- kernel/bpf/sy

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Qian Cai
On 2/26/19 7:35 AM, Michal Hocko wrote: > On Mon 25-02-19 14:17:10, Qian Cai wrote: >> When onlining memory pages, it calls kernel_unmap_linear_page(), >> However, it does not call kernel_map_linear_page() while offlining >> memory pages. As the result, it triggers a panic below while onlining o

Re: [PATCH 2/4] bus: ti-sysc: Add support for PRUSS SYSC type

2019-02-26 Thread Roger Quadros
On 25/02/2019 23:26, Rob Herring wrote: > On Mon, Feb 04, 2019 at 05:53:55PM +0200, Roger Quadros wrote: >> The PRUSS module has a SYSCFG which is unique. Add >> support for it. >> >> Signed-off-by: Roger Quadros >> --- >> drivers/bus/ti-sysc.c | 77 >> +++

Re: [bug report][stable] perf probe: failed to add events

2019-02-26 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 26, 2019 at 02:08:02PM +0100, Greg KH escreveu: > On Tue, Feb 26, 2019 at 08:32:34PM +0800, Joseph Qi wrote: > > > > > > On 19/2/26 17:05, Greg KH wrote: > > > On Tue, Feb 26, 2019 at 03:31:14PM +0800, Joseph Qi wrote: > > >> Hi, > > >> > > >> I'm using kernel v4.19.24 and have found

Re: [PATCH 4.14 00/71] 4.14.104-stable review

2019-02-26 Thread kernelci.org bot
stable-rc/linux-4.14.y boot: 105 boots: 0 failed, 39 passed with 66 offline (v4.14.103-72-g470aad464377) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.14.y/kernel/v4.14.103-72-g470aad464377/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.

[Update PATCH V3 2/10] KVM/VMX: Fill range list in kvm_fill_hv_flush_list_func()

2019-02-26 Thread lantianyu1986
From: Lan Tianyu Populate ranges on the flush list into struct hv_guest_mapping_flush_list when flush list is available in the struct kvm_tlb_range. Signed-off-by: Lan Tianyu --- Update: - Add check of return value "offset" in the kvm_fill_hv_flush_list_func() Change since v2:

Re: [PATCH] mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC

2019-02-26 Thread Michal Hocko
On Tue 26-02-19 09:16:30, Qian Cai wrote: > > > On 2/26/19 7:35 AM, Michal Hocko wrote: > > On Mon 25-02-19 14:17:10, Qian Cai wrote: > >> When onlining memory pages, it calls kernel_unmap_linear_page(), > >> However, it does not call kernel_map_linear_page() while offlining > >> memory pages. As

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Paul E. McKenney
On Tue, Feb 26, 2019 at 02:49:06PM +0100, Peter Zijlstra wrote: > On Tue, Feb 26, 2019 at 12:38:13PM +0100, Borislav Petkov wrote: > > On Tue, Feb 26, 2019 at 12:30:08PM +0100, Peter Zijlstra wrote: > > > When I used the argc variant, gcc-8 'works', but with s/argc/1/ it is > > > still broken. > >

Re: [PATCH 4.20 129/183] net: sfp: do not probe SFP module before were attached

2019-02-26 Thread Sasha Levin
On Mon, Feb 25, 2019 at 10:11:42PM +0100, Greg Kroah-Hartman wrote: 4.20-stable review patch. If anyone has any objections, please let me know. -- From: Russell King [ Upstream commit b5bfc21af5cb3d53f9cee0ef82eaa43762a90f81 ] When we probe a SFP module, we expect to be able

Re: [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()

2019-02-26 Thread Dmitry Osipenko
26.02.2019 13:56, Greg Kroah-Hartman пишет: > On Mon, Feb 25, 2019 at 08:07:15AM +0300, Dmitry Osipenko wrote: >> В Mon, 25 Feb 2019 02:27:19 + >> Peter Chen пишет: >> >>> Fixes: dfebb5f43a78827a ("usb: chipidea: Add support for Tegra20/30/114/124") >>> >>> I suppose you nee

[PATCH v4 2/2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-26 Thread Pankaj Bansal
Generic register bitfield-based multiplexer that controls the multiplexer producer defined under a parent node. The driver corresponding to parent node provides register read/write capabilities. Signed-off-by: Pankaj Bansal --- Notes: V4: - As per Peter's suggestion fixup the NULL from d

Re: [PATCH] mm: hwpoison: fix thp split handing in soft_offline_in_use_page()

2019-02-26 Thread zhong jiang
On 2019/2/26 21:51, Kirill A. Shutemov wrote: > On Tue, Feb 26, 2019 at 07:18:00PM +0800, zhong jiang wrote: >> From: zhongjiang >> >> When soft_offline_in_use_page() runs on a thp tail page after pmd is plit, > s/plit/split/ > >> we trigger the following VM_BUG_ON_PAGE(): >> >> Memory failure: 0x

Re: [PATCH v10 06/12] fs, arm64: untag user pointers in copy_mount_options

2019-02-26 Thread Andrey Konovalov
On Sat, Feb 23, 2019 at 12:03 AM Dave Hansen wrote: > > On 2/22/19 4:53 AM, Andrey Konovalov wrote: > > --- a/fs/namespace.c > > +++ b/fs/namespace.c > > @@ -2730,7 +2730,7 @@ void *copy_mount_options(const void __user * data) > >* the remainder of the page. > >*/ > > /* copy

Re: [PATCH v10 07/12] fs, arm64: untag user pointers in fs/userfaultfd.c

2019-02-26 Thread Andrey Konovalov
On Sat, Feb 23, 2019 at 12:06 AM Dave Hansen wrote: > > On 2/22/19 4:53 AM, Andrey Konovalov wrote: > > userfaultfd_register() and userfaultfd_unregister() use provided user > > pointers for vma lookups, which can only by done with untagged pointers. > > So, we have to patch all these sites before

Re: [PATCH 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property

2019-02-26 Thread Artur Rojek
Hi Rob. Thanks for the review. On 2019-02-25 22:53, Rob Herring wrote: On Tue, Feb 05, 2019 at 08:03:15PM +0100, Artur Rojek wrote: Add documentation for the "status-gpios" property. Signed-off-by: Artur Rojek --- .../devicetree/bindings/power/supply/gpio-charger.txt | 4 1 f

[PATCH 2/2] device.h: reorganize struct device

2019-02-26 Thread Greg Kroah-Hartman
struct device is big, around 760 bytes on x86_64. It's not a critical structure, but it is embedded everywhere, so making it smaller is always a good thing. With a recent patch that moved a field from struct device to the private structure, some benchmarks showed a very odd regression, despite th

Re: [PATCH v10 04/12] mm, arm64: untag user pointers passed to memory syscalls

2019-02-26 Thread Andrey Konovalov
On Sat, Feb 23, 2019 at 12:07 AM Dave Hansen wrote: > > On 2/22/19 4:53 AM, Andrey Konovalov wrote: > > --- a/mm/mprotect.c > > +++ b/mm/mprotect.c > > @@ -578,6 +578,7 @@ static int do_mprotect_pkey(unsigned long start, size_t > > len, > > SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t,

[PATCH 1/2] device.h: pack struct dev_links_info

2019-02-26 Thread Greg Kroah-Hartman
The dev_links_info structure has 4 bytes of padding at the end of it when embedded in struct device (which is the only place it lives). To help reduce the size of struct device pack this structure so we can take advantage of the hole with later structure reorganizations. Cc: "Rafael J. Wysocki"

Re: [PATCH 5/5] mm/vmscan: don't forcely shrink active anon lru list

2019-02-26 Thread Rik van Riel
On Tue, 2019-02-26 at 15:04 +0300, Andrey Ryabinin wrote: > I think we should leave anon aging only for !SCAN_FILE cases. > At least aging was definitely invented for the SCAN_FRACT mode which > was the > main mode at the time it was added by the commit: > and I think would be reasonable to avoi

Re: [PATCH] bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()

2019-02-26 Thread Daniel Borkmann
On 02/26/2019 03:15 PM, zerons wrote: > [ Upstream commit c91951f15978f1a0c6b65f063d30f7ea7bc6fb42 ] Thanks for the fix! What do you mean by "upstream commit" above in this context? > In bpf/syscall.c, bpf_map_get_fd_by_id() use bpf_map_inc_not_zero() to > increase > the refcount, both map->refc

Re: [PATCH v5 1/2] scsi: ufs: Do not disable vccq in UFSHC driver

2019-02-26 Thread Martin K. Petersen
Hi Marc, > Commit 60f0187031c0 ("disable vccq if it's not needed by UFS device") > introduced a small power optimization as a driver quirk: ignore the > vccq load specified in the UFSHC DT node when said host controller > is connected to specific Flash chips (Samsung and Hynix currently). [...]

Re: [PATCH v2] ARM: tegra: enforce PM requirement

2019-02-26 Thread Dmitry Osipenko
26.02.2019 11:25, Sameer Pujar пишет: > The requirement for this came while adding runtime PM support for HDA > driver. There were concerns about driver explicitly handling !PM case. > In general, drivers need to handle !PM case with work arounds for > managing clocks and power explicitly, which is

Re: [PATCH v5 1/2] scsi: ufs: Do not disable vccq in UFSHC driver

2019-02-26 Thread Marc Gonzalez
On 26/02/2019 15:44, Martin K. Petersen wrote: > Hi Marc, > >> Commit 60f0187031c0 ("disable vccq if it's not needed by UFS device") >> introduced a small power optimization as a driver quirk: ignore the >> vccq load specified in the UFSHC DT node when said host controller >> is connected to spec

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 06:28:45AM -0800, Paul E. McKenney wrote: > I must confess to not being all that sympathetic to code that takes > advantage of happenstance stack-frame layout. Is there some reason > we need that? Not that I'm aware; but if it gets this 'obvious' case wrong, I worry what e

Re: [PATCH] mm/cma: cma_declare_contiguous: correct err handling

2019-02-26 Thread Catalin Marinas
On Tue, Feb 19, 2019 at 07:46:11PM +0200, Mike Rapoport wrote: > On Tue, Feb 19, 2019 at 05:55:33PM +0100, Vlastimil Babka wrote: > > On 2/14/19 9:38 PM, Andrew Morton wrote: > > > On Thu, 14 Feb 2019 12:45:51 + Peng Fan wrote: > > > > > >> In case cma_init_reserved_mem failed, need to free t

Re: [PATCH v5 1/2] scsi: ufs: Do not disable vccq in UFSHC driver

2019-02-26 Thread Martin K. Petersen
Marc, >>> Revert the original patch, and clean up loose ends in the next patch. >> >> This commit isn't a revert. Why not? > > What do you mean? Your commit states it reverts the original patch but the submission is not a git revert. If there are reasons why simply reverting the original commi

[PATCH v11 7/8] cpuidle: Pre-store next timer/tick before selecting an idle state

2019-02-26 Thread Ulf Hansson
A common piece of data used by cpuidle governors, is the information about when the next timer/tick is going to fire. Rather than having each governor calling tick_nohz_get_next_timer|hrtimer() separately, let's consolidate the code by calling these functions before invoking the ->select() callback

[PATCH v11 1/8] PM / Domains: Add a generic data pointer to the genpd_power_state struct

2019-02-26 Thread Ulf Hansson
Let's add a data pointer to the genpd_power_state struct, to allow a genpd backend driver to store per state specific data. To introduce the pointer, we need to change the way genpd deals with freeing of the corresponding allocated data. More precisely, let's clarify the responsibility of whom tha

[PATCH v11 8/8] PM / Domains: Add genpd governor for CPUs

2019-02-26 Thread Ulf Hansson
As it's now perfectly possible that a PM domain managed by genpd contains devices belonging to CPUs, we should start to take into account the residency values for the idle states during the state selection process. The residency value specifies the minimum duration of time, the CPU or a group of CP

[PATCH v11 6/8] time: tick-sched: Remove tick_nohz_get_sleep_length()

2019-02-26 Thread Ulf Hansson
From: Daniel Lezcano There are no longer any users of tick_nohz_get_sleep_length(), so let's drop it. Signed-off-by: Daniel Lezcano [Ulf: Clarified information in changelog] Signed-off-by: Ulf Hansson --- Changes in v11: - New patch. --- include/linux/tick.h | 6 -- kernel/

[PATCH v11 2/8] PM / Domains: Add support for CPU devices to genpd

2019-02-26 Thread Ulf Hansson
To enable a device belonging to a CPU to be attached to a PM domain managed by genpd, let's do a few changes to it, as to make it convenient to manage the specifics around CPUs. To be able to quickly find out what CPUs that are attached to a genpd, which typically becomes useful from a genpd gover

[PATCH v11 4/8] cpuidle: menu: Convert to tick_nohz_get_next_timer|hrtimer()

2019-02-26 Thread Ulf Hansson
From: Daniel Lezcano Rather than using tick_nohz_get_sleep_length(), let's convert to use the more flexible tick_nohz_get_next_timer|hrtimer() APIs. This should have no functional change, but allows following changes to later drop the tick_nohz_get_sleep_length() API. Signed-off-by: Daniel Lezca

[PATCH v11 0/8] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM)

2019-02-26 Thread Ulf Hansson
Changes in v11: - This version contains only the infrastructure changes that is needed for deployment. The PSCI/ARM changes have also been updated and tested, but I will post them separately. Still, to provide completeness, I have published a branch containing everything to a git tree [1], feel fr

[PATCH v11 5/8] cpuidle: teo: Convert to tick_nohz_get_next_timer()

2019-02-26 Thread Ulf Hansson
From: Daniel Lezcano Rather than using tick_nohz_get_sleep_length(), let's convert to use the more flexible tick_nohz_get_next_timer|hrtimer() APIs. This should have no functional change, but allows following changes to later drop the tick_nohz_get_sleep_length() API. Signed-off-by: Daniel Lezca

[PATCH v11 3/8] time: tick-sched: Provide helpers to get the next timer expiration

2019-02-26 Thread Ulf Hansson
From: Daniel Lezcano In the power control path with the interrupts disabled, cpuidle governors calls tick_nohz_get_sleep_length() to get the duration until the next timer expires. This is not always convenient when going forward, as the duration is a relative time to "now". To make it more flexi

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Akira Yokosawa
Hi Paul, On Tue, 26 Feb 2019 06:28:45 -0800, Paul E. McKenney wrote: > On Tue, Feb 26, 2019 at 02:49:06PM +0100, Peter Zijlstra wrote: >> On Tue, Feb 26, 2019 at 12:38:13PM +0100, Borislav Petkov wrote: >>> On Tue, Feb 26, 2019 at 12:30:08PM +0100, Peter Zijlstra wrote: When I used the argc v

Re: [PATCH] bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()

2019-02-26 Thread zerons
On 2/26/19 22:44, Daniel Borkmann wrote: > On 02/26/2019 03:15 PM, zerons wrote: >> [ Upstream commit c91951f15978f1a0c6b65f063d30f7ea7bc6fb42 ] > > Thanks for the fix! What do you mean by "upstream commit" above in this > context? > This patch is based on that commit, I thought I should mentio

Re: [RFC PATCH v1 15/25] printk: print history for new consoles

2019-02-26 Thread Petr Mladek
On Tue 2019-02-12 15:29:53, John Ogness wrote: > When new consoles register, they currently print how many messages > they have missed. However, many (or all) of those messages may still > be in the ring buffer. Add functionality to print as much of the > history as available. This is a clean repla

Re: [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()

2019-02-26 Thread Greg Kroah-Hartman
On Tue, Feb 26, 2019 at 05:33:05PM +0300, Dmitry Osipenko wrote: > 26.02.2019 13:56, Greg Kroah-Hartman пишет: > > On Mon, Feb 25, 2019 at 08:07:15AM +0300, Dmitry Osipenko wrote: > >> В Mon, 25 Feb 2019 02:27:19 + > >> Peter Chen пишет: > >> > >>> > > Fixes: dfebb5f43a78827a ("usb

Re: [PATCHv2 0/2] Independent SOCFPGA SDRAM EDAC config

2019-02-26 Thread Dinh Nguyen
Hi Boris, On 2/25/19 2:42 PM, Borislav Petkov wrote: > On Mon, Feb 25, 2019 at 12:56:44PM -0600, thor.tha...@linux.intel.com wrote: >> From: Thor Thayer >> >> Most users want EDAC support so make it the default. >> >> SOCFPGA SDRAM EDAC reporting was enabled by the parent EDAC >> config (CONFIG_A

Re: [PATCH 4.20 129/183] net: sfp: do not probe SFP module before were attached

2019-02-26 Thread Greg Kroah-Hartman
On Tue, Feb 26, 2019 at 09:29:19AM -0500, Sasha Levin wrote: > On Mon, Feb 25, 2019 at 10:11:42PM +0100, Greg Kroah-Hartman wrote: > > 4.20-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Russell King > > > > [ Upstream commit b5b

[PATCH v5 1/2] iio:temperature:max31856:Add device tree bind info

2019-02-26 Thread Patrick Havelange
From: Paresh Chaudhary This patch added device tree binding info for MAX31856 driver. Signed-off-by: Paresh Chaudhary Signed-off-by: Matt Weber Signed-off-by: Patrick Havelange --- Changes v1 -> v2 [Matt - Removed comment block and added possibilities of thermocouple type in device tree b

[PATCH v5 2/2] iio:temperature: Add MAX31856 thermocouple support

2019-02-26 Thread Patrick Havelange
From: Paresh Chaudhary This patch adds support for Maxim MAX31856 thermocouple temperature sensor support. More information can be found in: https://www.maximintegrated.com/en/ds/MAX31856.pdf NOTE: Driver support only Comparator Mode. Signed-off-by: Paresh Chaudhary Signed-off-by: Matt Weber

[PATCH v2 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property

2019-02-26 Thread Artur Rojek
Add documentation for the "status-gpios" property. Update the "gpios" property with a valid example. Signed-off-by: Artur Rojek --- Changes: v2: - add a better description for the "status-gpios" property, - add valid examples for the "gpios" and "status-gpios" properties .../devicetree/bi

[PATCH v2 2/2] power: supply: gpio-charger: Add support for charger status.

2019-02-26 Thread Artur Rojek
Introduce optional support of POWER_SUPPLY_PROP_STATUS for chargers which provide charging status GPIO. Signed-off-by: Artur Rojek --- Changes: v2: no change drivers/power/supply/gpio-charger.c | 53 +++-- 1 file changed, 42 insertions(+), 11 deletions(-) diff --git a

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Paul E. McKenney
On Tue, Feb 26, 2019 at 11:56:57PM +0900, Akira Yokosawa wrote: > Hi Paul, > > On Tue, 26 Feb 2019 06:28:45 -0800, Paul E. McKenney wrote: > > On Tue, Feb 26, 2019 at 02:49:06PM +0100, Peter Zijlstra wrote: > >> On Tue, Feb 26, 2019 at 12:38:13PM +0100, Borislav Petkov wrote: > >>> On Tue, Feb 26,

Re: [PATCH v2] platform/chrome: Add Wilco EC Event Handling

2019-02-26 Thread Enric Balletbo Serra
Hi Nick, Missatge de Nick Crews del dia dl., 25 de febr. 2019 a les 20:13: > > This patch is meant to be applied on top of the current > for-next top of tree in the chrome/platform repo, at > https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git/log/?h=for-next > > The Wilco E

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Peter Zijlstra
On Tue, Feb 26, 2019 at 06:28:45AM -0800, Paul E. McKenney wrote: > Yes, this all is a bit on the insane side from a kernel viewpoint. > But the paper you found does not impose this; it has instead been there > for about 20 years, back before C and C++ admitted to the existence > of concurrency.

Re: [PATCH 4.9 00/63] 4.9.161-stable review

2019-02-26 Thread shuah
On 2/25/19 2:11 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.161 release. There are 63 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

RE: [PATCH 1/5] EDAC/amd64: Add Fam17hMod30h PCI IDs

2019-02-26 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org On > Behalf Of Borislav Petkov > Sent: Tuesday, February 26, 2019 4:41 AM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/5] EDAC/amd64: Add Fam17hMod30h PCI IDs > >

Re: [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()

2019-02-26 Thread Dmitry Osipenko
26.02.2019 17:58, Greg Kroah-Hartman пишет: > On Tue, Feb 26, 2019 at 05:33:05PM +0300, Dmitry Osipenko wrote: >> 26.02.2019 13:56, Greg Kroah-Hartman пишет: >>> On Mon, Feb 25, 2019 at 08:07:15AM +0300, Dmitry Osipenko wrote: В Mon, 25 Feb 2019 02:27:19 + Peter Chen пишет:

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Akira Yokosawa
On Tue, 26 Feb 2019 07:04:27 -0800, Paul E. McKenney wrote: > On Tue, Feb 26, 2019 at 11:56:57PM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> On Tue, 26 Feb 2019 06:28:45 -0800, Paul E. McKenney wrote: >>> On Tue, Feb 26, 2019 at 02:49:06PM +0100, Peter Zijlstra wrote: On Tue, Feb 26, 2019 a

[PATCH v3 0/2] mmc: core: Add SD Discard support

2019-02-26 Thread Avri Altman
SD spec v5.1 adds discard support. The flows and commands matches those in eMMC, Which leaves to set the appropriate discard arg in CMD38 if DISCARD_SUPPORT (b313) is set in the SD_STATUS register. We set this arg on card init: not in mmc_init_erase as one might expect but arbitrarily once the car

Re: [PATCH] scsi: clean obsolete return values of eh_timed_out

2019-02-26 Thread Martin K. Petersen
Avri, > Those are no longer in use since commit 242f9dcb8ba6 > ("block: unify request timeout handling"). Applied to 5.1/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v3 1/2] mmc: core: Add discard support to sd

2019-02-26 Thread Avri Altman
SD spec v5.1 adds discard support. The flows and commands are similar to mmc, so just set the discard arg in CMD38. A host which supports DISCARD shall check if the DISCARD_SUPPORT (b313) is set in the SD_STATUS register. If the card does not support discard, the host shall not issue DISCARD comm

[PATCH v3 2/2] mmc: core: Add sd discard timeout

2019-02-26 Thread Avri Altman
The busy timeout is 250msec per discard command. Signed-off-by: Avri Altman --- drivers/mmc/core/core.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index b7367ac..4979d4e 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/

Re: [PATCH] tcp: fix __tcp_transmit_skb's comment text

2019-02-26 Thread Eric Dumazet
On 02/26/2019 12:41 AM, Geliang Tang wrote: > The function name tcp_do_sendmsg has been renamed. But it still > appears in __tcp_transmit_skb's comment text. This patch changes > it to tcp_sendmsg_locked. > > Signed-off-by: Geliang Tang > --- > net/ipv4/tcp_output.c | 2 +- > 1 file changed,

Re: [PATCH v2] mm/memory-hotplug: Add sysfs hot-remove trigger

2019-02-26 Thread Robin Murphy
On 25/02/2019 21:14, David Hildenbrand wrote: On 12.02.19 16:11, Michal Hocko wrote: On Tue 12-02-19 14:54:36, Robin Murphy wrote: On 12/02/2019 08:33, Michal Hocko wrote: On Mon 11-02-19 17:50:46, Robin Murphy wrote: ARCH_MEMORY_PROBE is a useful thing for testing and debugging hotplug, but

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-26 Thread Mark Rutland
Hi, On Mon, Feb 18, 2019 at 04:13:17PM -0700, Yu Zhao wrote: > For pte page, use pgtable_page_ctor(); for pmd page, use > pgtable_pmd_page_ctor() if not folded; and for the rest (pud, > p4d and pgd), don't use any. > > Signed-off-by: Yu Zhao > --- > arch/arm64/mm/mmu.c | 33

RE: [PATCH 2/5] EDAC/amd64: Support more than two UMCs

2019-02-26 Thread Ghannam, Yazen
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > On Behalf Of Borislav Petkov > Sent: Tuesday, February 26, 2019 5:07 AM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 2/5] EDAC/amd64: Support more than two UMCs

Re: [PATCH v2 2/3] arm64: mm: don't call page table ctors for init_mm

2019-02-26 Thread Mark Rutland
Hi, On Mon, Feb 18, 2019 at 04:13:18PM -0700, Yu Zhao wrote: > init_mm doesn't require page table lock to be initialized at > any level. Add a separate page table allocator for it, and the > new one skips page table ctors. Just to check, in a previous reply you mentioned we need to call the ctors

Re: [PATCH -next] scsi: megaraid_sas: Remove a bunch of set but not used variables

2019-02-26 Thread Martin K. Petersen
Yue, > From: YueHaibing > > Fixes gcc '-Wunused-but-set-variable' warning: Applied to 5.1/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

[RFC PATCH v2] uaccess: Add non-pagefault user-space read functions

2019-02-26 Thread Masami Hiramatsu
Add probe_user_read() and strncpy_from_unsafe_user() which will not involves mm_sem so we can use it for accessing user-space in irq-handler. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Simplify strncpy_from_unsafe_user() using strncpy_from_user() according to Linus's suggestio

Re: [PATCH 2/2] percpu: km: no need to consider pcpu_group_offsets[0]

2019-02-26 Thread Christopher Lameter
On Mon, 25 Feb 2019, den...@kernel.org wrote: > > @@ -67,7 +67,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) > > pcpu_set_page_chunk(nth_page(pages, i), chunk); > > > > chunk->data = pages; > > - chunk->base_addr = page_address(pages) - pcpu_group_offsets[0]; > > +

Re: [PATCH 1/2] percpu: km: remove SMP check

2019-02-26 Thread Christopher Lameter
On Mon, 25 Feb 2019, Dennis Zhou wrote: > > @@ -27,7 +27,7 @@ > > * chunk size is not aligned. percpu-km code will whine about it. > > */ > > > > -#if defined(CONFIG_SMP) && defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) > > +#if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) > > #error "con

Re: INFO: rcu detected stall in ext4_file_write_iter

2019-02-26 Thread Theodore Y. Ts'o
TL;DR: This doesn't appear to be ext4 specific, and seems to involve an unholy combination of the perf_event_open(2) and sendfile(2) system calls. On Mon, Feb 25, 2019 at 10:50:05PM -0800, syzbot wrote: > syzbot found the following crash on: > > HEAD commit:8a61716ff2ab Merge tag 'ceph-for-5.

Re: [PATCH v2] mm/memory-hotplug: Add sysfs hot-remove trigger

2019-02-26 Thread Michal Hocko
On Tue 26-02-19 15:12:40, Robin Murphy wrote: [...] > The back of my mind is still ticking over trying to think up a really nice > design for a self-contained debugfs or module-parameter interface completely > independent of ARCH_MEMORY_PROBE - I'll probably keep using this hack > locally to finish

Re: [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()

2019-02-26 Thread Greg Kroah-Hartman
On Tue, Feb 26, 2019 at 06:08:17PM +0300, Dmitry Osipenko wrote: > 26.02.2019 17:58, Greg Kroah-Hartman пишет: > > On Tue, Feb 26, 2019 at 05:33:05PM +0300, Dmitry Osipenko wrote: > >> 26.02.2019 13:56, Greg Kroah-Hartman пишет: > >>> On Mon, Feb 25, 2019 at 08:07:15AM +0300, Dmitry Osipenko wrote:

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