[PATCH 14/23] x86/speculation: Move firmware_restrict_branch_speculation_*() from C to CPP

2018-04-16 Thread Youquan Song
From: Ingo Molnar (cherry picked from commit d72f4e29e6d84b7ec02ae93088aa459ac70e733b) firmware_restrict_branch_speculation_*() recently started using preempt_enable()/disable(), but those are relatively high level primitives and cause build failures on some 32-bit builds. Since we want to keep

Re: [PATCH v3 2/2] iio: afe: unit-converter: new driver

2018-04-16 Thread Peter Rosin
On 2018-04-15 19:31, Jonathan Cameron wrote: > On Tue, 10 Apr 2018 17:28:02 +0200 > Peter Rosin wrote: > >> If an ADC channel measures the midpoint of a voltage divider, the >> interesting voltage is often the voltage over the full resistance. >> E.g. if the full voltage is too big for the ADC to

Re: [RfC PATCH] Add udmabuf misc device

2018-04-16 Thread Oleksandr Andrushchenko
On 04/13/2018 06:37 PM, Daniel Vetter wrote: On Wed, Apr 11, 2018 at 08:59:32AM +0300, Oleksandr Andrushchenko wrote: On 04/10/2018 08:26 PM, Dongwon Kim wrote: On Tue, Apr 10, 2018 at 09:37:53AM +0300, Oleksandr Andrushchenko wrote: On 04/06/2018 09:57 PM, Dongwon Kim wrote: On Fri, Apr 06,

Re: [PATCH 2/2] iio: afe: unit-converter: add support for adi,lt6106

2018-04-16 Thread Peter Rosin
On 2018-04-13 16:47, Andrew F. Davis wrote: > On 04/12/2018 05:31 PM, Peter Rosin wrote: >> On 2018-04-12 17:35, Andrew F. Davis wrote: >>> True, how about "current-sense-from-voltage" ? >> >> Doesn't cover "voltage-divider" (and we don't need separate drivers >> doing the exact same calculations,

Re: [PATCH v6 24/30] drm/rockchip: Disable PSR on input events

2018-04-16 Thread Andrzej Hajda
+CC: linux-input list and maintainer On 05.04.2018 11:49, Enric Balletbo i Serra wrote: > From: "Kristian H. Kristensen" > > To improve PSR exit latency, we speculatively start exiting when we > receive input events. Occasionally, this may lead to false positives, > but most of the time we get

Re: [PATCH v2 2/2] ARM: dts: i.MX6: Add BTicino i.MX6DL Mamoj initial support

2018-04-16 Thread Shawn Guo
On Tue, Mar 20, 2018 at 01:11:14AM +0530, Jagan Teki wrote: > +&i2c4 { > + clock-frequency = <10>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c4>; > + status = "okay"; > + > + pmic: pfuze100@8 { pfuze100: pmic@8 I fixed it up and applied both patches. Shaw

Re: [ANNOUNCE] v4.14.34-rt27

2018-04-16 Thread Mike Galbraith
On Fri, 2018-04-13 at 23:52 +0200, Sebastian Andrzej Siewior wrote: > > - Inter-event (latency) fixes by Tom Zanussi.  CC  kernel/trace/trace_events_hist.o kernel/trace/trace_events_hist.c: In function ‘__update_field_vars’: kernel/trace/trace_events_hist.c:3093:11: warning: ignoring retur

Re: [PATCH ghak46 V1] audit: normalize MAC_STATUS record

2018-04-16 Thread Ondrej Mosnacek
2018-04-10 1:34 GMT+02:00 Richard Guy Briggs : > There were two formats of the audit MAC_STATUS record, one of which was more > standard than the other. One listed enforcing status changes and the > other listed enabled status changes with a non-standard label. In > addition, the record was missi

Re: [PATCH] USB: serial: cp210x: Add ID for NI USB serial console

2018-04-16 Thread Johan Hovold
On Mon, Apr 09, 2018 at 10:23:55AM -0500, Kyle Roeschley wrote: > Added the USB VID and PID for the USB serial console on some National > Instruments devices. > > Signed-off-by: Kyle Roeschley Now applied, thanks. Johan

Re: [PATCH 2/2] iio: afe: unit-converter: add support for adi,lt6106

2018-04-16 Thread Peter Rosin
On 2018-04-13 10:11, Lars-Peter Clausen wrote: > On 04/13/2018 12:31 AM, Peter Rosin wrote: >> On 2018-04-12 17:35, Andrew F. Davis wrote: >>> On 04/12/2018 09:29 AM, Peter Rosin wrote: But as I said in the cover letter, I didn't go with sense-gain since I thought I would end up with requ

Re: [PATCH v2] arm: dts: hummingboard: convert onboard audio to simple-audio-card

2018-04-16 Thread Shawn Guo
On Mon, Mar 19, 2018 at 04:14:13PM -0400, Matt Porter wrote: > The HB onboard audio currently makes use of the imx-audio-sgtl5000 > binding. This binding does not support auxiliary audio devices such > as external amplifiers. The simple-audio-card binding does support > this property which allows s

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-04-16 Thread Dmitry Vyukov
On Fri, Apr 13, 2018 at 5:54 PM, Dmitry Vyukov wrote: > On Fri, Apr 13, 2018 at 2:43 PM, Dan Streetman wrote: >> On Thu, Apr 12, 2018 at 8:15 AM, Dmitry Vyukov wrote: >>> On Wed, Feb 21, 2018 at 3:53 PM, Tommi Rantala >>> wrote: On 20.02.2018 18:26, Neil Horman wrote: > > On Tue, F

Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver

2018-04-16 Thread Viresh Kumar
On 13-04-18, 13:47, Daniel Lezcano wrote: > Ok, noted. At the first glance, it should not be a problem. Why do you think it wouldn't be a problem ? -- viresh

Re: [PATCH linux dev-4.16 v2] i2c: muxes: pca9641: new driver

2018-04-16 Thread ChenKenYY 陳永營 TAO
2018-04-13 15:27 GMT+08:00 Peter Rosin : > On 2018-04-13 08:59, ChenKenYY 陳永營 TAO wrote: >> Hi Peter, >> >> Sorry for late. Here has some event at my company which needs to pause >> this work. >> >> If the status changed, I will update my patch. > > No worries, I just want to know how to handle my

Re: [PATCH v4 0/4] zram memory tracking

2018-04-16 Thread Sergey Senozhatsky
On (04/16/18 12:31), Minchan Kim wrote: > Minchan Kim (4): > zram: correct flag name of ZRAM_ACCESS > zram: mark incompressible page as ZRAM_HUGE > zram: record accessed second > zram: introduce zram memory tracking Looks OK to me. After Randy's comments addressed: Reviewed-by: Sergey Sen

Re: [RfC PATCH] Add udmabuf misc device

2018-04-16 Thread Daniel Vetter
On Mon, Apr 16, 2018 at 10:16:31AM +0300, Oleksandr Andrushchenko wrote: > On 04/13/2018 06:37 PM, Daniel Vetter wrote: > > On Wed, Apr 11, 2018 at 08:59:32AM +0300, Oleksandr Andrushchenko wrote: > > > On 04/10/2018 08:26 PM, Dongwon Kim wrote: > > > > On Tue, Apr 10, 2018 at 09:37:53AM +0300, Ole

Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver

2018-04-16 Thread Daniel Lezcano
On 16/04/2018 09:37, Viresh Kumar wrote: > On 13-04-18, 13:47, Daniel Lezcano wrote: >> Ok, noted. At the first glance, it should not be a problem. > > Why do you think it wouldn't be a problem ? Because we rely on the number to identify the cluster and flag it 'processed'. The number itself is n

Re: [PATCH] drm: fix drm-get-put.cocci warnings

2018-04-16 Thread Daniel Vetter
On Thu, Apr 12, 2018 at 07:54:10AM +0200, Julia Lawall wrote: > From: Fengguang Wu > > Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and > drm_*_unreference() helpers. > > Generated by: scripts/coccinelle/api/drm-get-put.cocci > > Fixes: 6784ac15bc68 ("drm: Add ASPEED G

Re: [PATCH] isofs: fix potential memory leak in mount option parsing

2018-04-16 Thread Jan Kara
On Sat 14-04-18 20:16:06, Chengguang Xu wrote: > When specifying string type mount option (e.g., iocharset) > several times in a mount, current option parsing may > cause memory leak. Hence, call kfree for previous one > in this case. Meanwhile, check memory allocation result > for it. > > Signed-

[PATCH 2/2] fs/9p: detecting invalid options as much as possible

2018-04-16 Thread Chengguang Xu
Currently when detecting invalid options in option parsing, some options(e.g. debug) just set errno and allow to continusly validate other options so that it can detect invalid options as much as possible and give proper error messages together. This patch apply this policy to all options and the

[PATCH 1/2] net/9p: detecting invalid options as much as possible

2018-04-16 Thread Chengguang Xu
Currently when detecting invalid options in option parsing, some options(e.g. msize) just set errno and allow to continusly validate other options so that it can detect invalid options as much as possible and give proper error messages together. This patch apply this policy to all options and the

[PATCH] blk-mq: mark hctx RESTART when get budget fails

2018-04-16 Thread Jianchao Wang
When get budget fails, blk_mq_sched_dispatch_requests does not do anything to ensure the hctx to be restarted. We can survive from this, because only the scsi implements .get_budget and it always runs the hctx queues when request is completed. Signed-off-by: Jianchao Wang --- block/blk-mq-sched.

Re: [V9fs-developer] [PATCH 2/2] fs/9p: detecting invalid options as much as possible

2018-04-16 Thread Dominique Martinet
Chengguang Xu wrote on Mon, Apr 16, 2018: > default: > + p9_debug(P9_DEBUG_ERROR, > + "unrecognized mount option \"%s\" or missing > value\n", > + p); > continue; The problem wi

Re: [PATCH v3] mm/page_owner: ignore everything below the IRQ entry point

2018-04-16 Thread Maninder Singh
  Hi Arnd, We sent one patch for ignoring entries below IRQ point in page_onwer using stackdepot. V2:- https://lkml.org/lkml/2018/3/26/178 V3:- https://lkml.org/lkml/2018/3/27/357 But it's breaking build for um target with below reason.    kernel/stacktrace.o: In function `filter_irq_stacks

[PATCH net] net: mvpp2: Fix TCAM filter reserved range

2018-04-16 Thread Maxime Chevallier
Marvell's PPv2 controller has a Packet Header parser, which uses a fixed-size TCAM array of filter entries. The mvpp2 driver reserves some ranges among the 256 TCAM entries to perform MAC and VID filtering. The rest of the TCAM ids are freely usable for other features, such as IPv4 proto matching.

Re: [PATCH] x86/xen: Remove use of VLAs

2018-04-16 Thread Juergen Gross
On 14/04/18 00:11, Laura Abbott wrote: > There's an ongoing effort to remove VLAs[1] from the kernel to eventually > turn on -Wvla. The few VLAs in use have an upper bound based on a size > of 64K. This doesn't produce an excessively large stack so just switch > the upper bound. > > [1] https://lk

Re: [PATCH v2] x86/xen/efi: Initialize UEFI secure boot state during dom0 boot

2018-04-16 Thread Ard Biesheuvel
On 11 April 2018 at 10:56, Daniel Kiper wrote: > On Wed, Apr 04, 2018 at 12:38:24PM +0200, Daniel Kiper wrote: >> On Tue, Apr 03, 2018 at 10:00:52AM -0700, James Bottomley wrote: >> > On Tue, 2018-04-03 at 18:07 +0200, Daniel Kiper wrote: >> > > On Tue, Apr 03, 2018 at 08:44:41AM -0700, James Bott

Re: [PATCH] blk-mq: mark hctx RESTART when get budget fails

2018-04-16 Thread Ming Lei
On Mon, Apr 16, 2018 at 03:55:36PM +0800, Jianchao Wang wrote: > When get budget fails, blk_mq_sched_dispatch_requests does not do > anything to ensure the hctx to be restarted. We can survive from > this, because only the scsi implements .get_budget and it always > runs the hctx queues when reques

Re: [PATCH v2] block: ratelimite pr_err on IO path

2018-04-16 Thread Jinpu Wang
On Fri, Apr 13, 2018 at 6:59 PM, Martin K. Petersen wrote: > > Jinpu, > > [CC:ed the mpt3sas maintainers] > > The ratelimit patch is just an attempt to treat the symptom, not the > cause. Agree. If we can fix the root cause, it will be great. > >> Thanks for asking, we updated mpt3sas driver which

Re: [PATCH 1/2] gpio: eic: Add edge trigger emulation for EIC

2018-04-16 Thread Baolin Wang
Hi, On 30 March 2018 at 15:02, Baolin Wang wrote: > The Spreadtrum debounce EIC and latch EIC can not support edge trigger, > but most GPIO users (like gpio-key driver) only use the edge trigger, > thus the EIC driver need add some support to emulate the edge trigger > to satisfy this requirement

Re: [RfC PATCH] Add udmabuf misc device

2018-04-16 Thread Oleksandr Andrushchenko
On 04/16/2018 10:43 AM, Daniel Vetter wrote: On Mon, Apr 16, 2018 at 10:16:31AM +0300, Oleksandr Andrushchenko wrote: On 04/13/2018 06:37 PM, Daniel Vetter wrote: On Wed, Apr 11, 2018 at 08:59:32AM +0300, Oleksandr Andrushchenko wrote: On 04/10/2018 08:26 PM, Dongwon Kim wrote: On Tue, Apr 10

Re: [PATCH v3 1/5] efi: Export boot-services code and data as debugfs-blobs

2018-04-16 Thread Ard Biesheuvel
Hallo Hans, On 8 April 2018 at 19:40, Hans de Goede wrote: > Sometimes it is useful to be able to dump the efi boot-services code and > data. This commit adds these as debugfs-blobs to /sys/kernel/debug/efi, > but only if efi=debug is passed on the kernel-commandline as this requires > not freein

Re: [PATCH V2] ARM: dts: imx7d-pinfunc: update sai select input value

2018-04-16 Thread Shawn Guo
On Tue, Mar 20, 2018 at 10:08:40AM +0800, Anson Huang wrote: > From: Shengjiu Wang > > Update SAI select input daisy chain value according to > Reference Manual. > > Signed-off-by: Shengjiu Wang > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH] fpga-manager: altera-ps-spi: preserve nCONFIG state

2018-04-16 Thread Greg KH
On Sun, Apr 15, 2018 at 11:33:08AM -0700, Moritz Fischer wrote: > From: Anatolij Gustschin > > If the driver module is loaded when FPGA is configured, the FPGA > is reset because nconfig is pulled low (low-active gpio inited > with GPIOD_OUT_HIGH activates the signal which means setting its > val

RE: [PATCH] ARM: dts: imx7d-sdb: add gpio key support

2018-04-16 Thread Anson Huang
Ping... Anson Huang Best Regards! > -Original Message- > From: A.s. Dong > Sent: Friday, March 16, 2018 6:28 PM > To: Anson Huang ; shawn...@kernel.org; > ker...@pengutronix.de; Fabio Estevam ; > robh...@kernel.org; mark.rutl...@arm.com; li...@armlinux.org.uk > Cc: dl-linux-imx ; linux-a

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-04-16 Thread Ard Biesheuvel
On 8 April 2018 at 19:40, Hans de Goede wrote: > Just like with PCI options ROMs, which we save in the setup_efi_pci* > functions from arch/x86/boot/compressed/eboot.c, the EFI code / ROM itself > sometimes may contain data which is useful/necessary for peripheral drivers > to have access to. > >

Re: [PATCH v5 1/3] perf/core: store context switch out type into Perf trace

2018-04-16 Thread Alexey Budankov
Hi Arnaldo, On 09.04.2018 12:26, Peter Zijlstra wrote: > On Mon, Apr 09, 2018 at 10:25:32AM +0300, Alexey Budankov wrote: >> >> Store preempting context switch out event into Perf trace as a part of >> PERF_RECORD_SWITCH[_CPU_WIDE] record. >> >> Percentage of preempting and non-preempting context

Re: [PATCH RFC 2/8] mm: introduce PG_offline

2018-04-16 Thread David Hildenbrand
On 13.04.2018 19:11, Matthew Wilcox wrote: > On Fri, Apr 13, 2018 at 03:16:26PM +0200, David Hildenbrand wrote: >> online_pages()/offline_pages() theoretically allows us to work on >> sub-section sizes. This is especially relevant in the context of >> virtualization. It e.g. allows us to add/remove

Re: [PATCH] fpga-manager: altera-ps-spi: preserve nCONFIG state

2018-04-16 Thread Anatolij Gustschin
On Mon, 16 Apr 2018 10:10:08 +0200 Greg KH gre...@linuxfoundation.org wrote: ... >> as discussed. Can you please take this bugfix for 4.17? >> I rebased it against next. > >Is it also needed in any older kernel versions? It is needed in versions starting from v4.14. thanks, Anatolij

Re: [PATCH v1] ARM: dts: imx6qdl-sabreauto: add ecspi dts for sabreauto board

2018-04-16 Thread Shawn Guo
On Wed, Mar 21, 2018 at 06:22:48PM +0800, Robin Gong wrote: > DIN pin of SPI-NOR muxed with I2C3_SDA which connected to one gpio expand > chip, thus have to disable all those module which compacted by those gpios > if enable SPI-NOR support on Sabreauto board. > > Signed-off-by: Robin Gong I'm n

Re: [PATCH] blk-mq: mark hctx RESTART when get budget fails

2018-04-16 Thread jianchao.wang
Hi Ming Thanks for your kindly response. On 04/16/2018 04:15 PM, Ming Lei wrote: >> -if (!blk_mq_get_dispatch_budget(hctx)) >> +if (!blk_mq_get_dispatch_budget(hctx)) { >> +blk_mq_sched_mark_restart_hctx(hctx); > The RESTART flag still may not take into

Re: [PATCH v2 8/9] PCI: dwc: Small computation improvement

2018-04-16 Thread Gustavo Pimentel
Hi Fabio, On 15/04/2018 14:09, Fabio Estevam wrote: > Hi Gustavo, > > On Wed, Apr 11, 2018 at 4:40 AM, Gustavo Pimentel > wrote: > >> Can be this one? >> >> Probably any recent and decent compiler does this kind of substitution >> in order to improve code performance. Nevertheless it's a coding

Re: [PATCH v3 01/10] bindings: PCI: designware: Example update

2018-04-16 Thread Gustavo Pimentel
Hi Rob, On 13/04/2018 22:34, Rob Herring wrote: > On Tue, Apr 10, 2018 at 01:58:33PM +0100, Gustavo Pimentel wrote: >> Replaces "ctrlreg" reg-name by "dbi" to be coherent with similar drivers, >> however it still be compatible with any previous DT that uses the old >> reg-name. >> >> Replaces the

Re: [PATCH v2 8/9] PCI: dwc: Small computation improvement

2018-04-16 Thread Gustavo Pimentel
Hi Jingoo, On 11/04/2018 20:37, Jingoo Han wrote: > On Wednesday, April 11, 2018 3:40 AM, Gustavo Pimentel wrote: >> >> Hi Jingoo, >> >> On 11/04/2018 01:01, Jingoo Han wrote: >>> On Monday, April 9, 2018 5:41 AM, Gustavo Pimentel wrote: Replaces a simple division by 2 to a right shift r

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-16 Thread Pavel Machek
> Do you have phy-mapphone-mdm6600 loaded? That is still needed to > configure all the boot mode pins for the modem so it is usable.. > The UART will then work also without ohci-platform, just the > USB PHY is disabled without ohci-platform. > > I have these in my .config: > CONFIG_SERIAL_8250_OM

Re: [GIT PULL] clockevents for 4.17

2018-04-16 Thread Joel Stanley
Hi Thomas, On 3 April 2018 at 22:30, Daniel Lezcano wrote: > It contains the following changes for 4.17: > > - Fix timer name and register flow for imx's timer tmp and handle > different counter width (Anson Huang) > > - Add the NPCM7xx timer support (Tomer Maimon) I can't see this tree in 4.1

Re: [PATCH V6 2/2] thermal: imx: add i.MX7 thermal sensor support

2018-04-16 Thread Shawn Guo
Hi Eduardo, On Wed, Mar 14, 2018 at 05:51:42PM -0700, Eduardo Valentin wrote: > On Tue, Mar 13, 2018 at 02:51:05PM +0800, Zhang Rui wrote: > > yeah, will review it and get back to you later. > > This is in my tree now. It seems that the patch did not make its way to 4.17-rc1? Shawn

Re: [PATCH v4 01/15] s390: zcrypt: externalize AP instructions available function

2018-04-16 Thread Pierre Morel
On 15/04/2018 23:22, Tony Krowiak wrote: If the AP instructions are not available on the linux host, then AP devices can not be interpreted by the SIE. The AP bus has a function it uses to determine if the AP instructions are available. This patch provides a new function that wraps the AP bus's f

Re: [dragonboard] [PATCH 1/1] dts: qcom: db820c: Add gpio-line-names property

2018-04-16 Thread Todor Tomov
Hi Mani, Thank you for the patch. On 14.04.2018 06:18, Manivannan Sadhasivam wrote: > Add gpio-line-names property for Dragonboard820c based on APQ8096 SoC. > There are 4 gpio-controllers present on this board, including the > APQ8096 SoC, PM8994 (GPIO and MPP) and PMI8994 (GPIO). > > Lines name

[PATCH] extcon: axp288: fix link error

2018-04-16 Thread Tobias Regnery
With CONFIG_AXP288=y and CONFIG_USB_COMMON=n there is the following link error: drivers/extcon/extcon-axp288.o: In function `axp288_put_role_sw': extcon-axp288.c:(.text+0xa0): undefined reference to `usb_role_switch_put' drivers/extcon/extcon-axp288.o: In function `axp288_usb_role_work': extcon-ax

KASAN: use-after-free Read in llc_conn_ac_send_sabme_cmd_p_set_x

2018-04-16 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 18b7fd1c93e5204355ddbf2608a097d64df81b88 (Sat Apr 14 15:50:50 2018 +) Merge branch 'akpm' (patches from Andrew) syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=6e181fc95081c2cf9051 Unfortunately, I don't have any repr

[PATCH 04/12] DAC960: don't use block layer bounce buffers

2018-04-16 Thread Christoph Hellwig
DAC960 just sets the block bounce limit to the dma mask, which means that the iommu or swiotlb already take care of the bounce buffering, and the block bouncing can be removed. Signed-off-by: Christoph Hellwig --- drivers/block/DAC960.c | 9 ++--- drivers/block/DAC960.h | 1 - 2 files change

[PATCH 07/12] scsi: reduce use of block bounce buffers

2018-04-16 Thread Christoph Hellwig
We can rely on the dma-mapping code to handle any DMA limits that is bigger than the ISA DMA mask for us (either using an iommu or swiotlb), so remove setting the block layer bounce limit for anything but the unchecked_isa_dma case, or the bouncing for highmem pages. Signed-off-by: Christoph Hellw

[PATCH 10/12] ide: remove the PCI_DMA_BUS_IS_PHYS check

2018-04-16 Thread Christoph Hellwig
We now have ways to deal with drainage in the block layer, and libata has been using it for ages. We also want to get rid of PCI_DMA_BUS_IS_PHYS now, so just reduce the PCI transfer size for ide - anyone who cares for performance on PCI controllers should have switched to libata long ago. Signed-

[PATCH 06/12] memstick: don't call blk_queue_bounce_limit

2018-04-16 Thread Christoph Hellwig
All in-tree host drivers set up a proper dma mask and use the dma-mapping helpers. This means they will be able to deal with any address that we are throwing at them. Signed-off-by: Christoph Hellwig --- drivers/memstick/core/ms_block.c| 5 - drivers/memstick/core/mspro_block.c | 5

[PATCH 09/12] ide: kill ide_toggle_bounce

2018-04-16 Thread Christoph Hellwig
ide_toggle_bounce did select various strange block bounce limits, including not bouncing at all as soon as an iommu is present in the system. Given that the dma_map routines now handle any required bounce buffering except for ISA DMA, and the ide code already must handle either ISA DMA or highmem

[PATCH 12/12] PCI: remove PCI_DMA_BUS_IS_PHYS

2018-04-16 Thread Christoph Hellwig
This was used by the ide, scsi and networking code in the past to determine if they should bounce payloads. Now that the dma mapping always have to support dma to all physical memory (thanks to swiotlb for non-iommu systems) there is no need to this crude hack any more. Signed-off-by: Christoph H

[PATCH 08/12] mmc: reduce use of block bounce buffers

2018-04-16 Thread Christoph Hellwig
We can rely on the dma-mapping code to handle any DMA limits that is bigger than the ISA DMA mask for us (either using an iommu or swiotlb), so remove setting the block layer bounce limit for anything but bouncing for highmem pages. Signed-off-by: Christoph Hellwig --- drivers/mmc/core/queue.c |

[PATCH 05/12] sata_nv: don't use block layer bounce buffers

2018-04-16 Thread Christoph Hellwig
sata_nv sets the block bounce limit to the reduce dma mask for ATAPI devices, which means that the iommu or swiotlb already take care of the bounce buffering, and the block bouncing can be removed. Signed-off-by: Christoph Hellwig --- drivers/ata/sata_nv.c | 62 +-

[PATCH 03/12] mtip32xx: don't use block layer bounce buffers

2018-04-16 Thread Christoph Hellwig
mtip32xx just sets the block bounce limit to the dma mask, which means that the iommu or swiotlb already take care of the bounce buffering, and the block bouncing can be removed. Signed-off-by: Christoph Hellwig --- drivers/block/mtip32xx/mtip32xx.c | 1 - 1 file changed, 1 deletion(-) diff --g

[PATCH 01/12] iscsi_tcp: don't set a bounce limit

2018-04-16 Thread Christoph Hellwig
The default already is to never bounce, so the call is a no-op. Signed-off-by: Christoph Hellwig --- drivers/scsi/iscsi_tcp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 2ba4b68fdb73..b025a0b74341 100644 --- a/drivers/scsi/iscsi_tc

remove PCI_DMA_BUS_IS_PHYS

2018-04-16 Thread Christoph Hellwig
Hi all, this series tries to get rid of the global and PCI_DMA_BUS_IS_PHYS flag, which causes the block layer and networking code to bounce buffer memory above the dma mask in some cases. It is a leftover from i386 + highmem days and is obsolete now that we have swiotlb or iommus so that the dma

[PATCH 02/12] storsvc: don't set a bounce limit

2018-04-16 Thread Christoph Hellwig
The default already is to never bounce, so the call is a no-op. Signed-off-by: Christoph Hellwig --- drivers/scsi/storvsc_drv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 8c51d628b52e..5f2d177c3bd9 100644 --- a/drivers/scsi

Re: [PATCH v6 25/30] drm/rockchip: Cancel PSR enable work before changing the state

2018-04-16 Thread Andrzej Hajda
On 05.04.2018 11:49, Enric Balletbo i Serra wrote: > From: Tomasz Figa > > If we change the state first and reschedule later, we might have the > work executed according to previous scheduled time and end up with PSR > re-enabled instantly. Let's cancel the work before changing the state. > > Whil

[PATCH] sched/fair: Change sched_feat(x) in !CONFIG_SCHED_DEBUG case

2018-04-16 Thread Philipp Klocke
Make sched_feat(x) return 1 or 0 instead of 2**x or 0 when sysctl_sched_features is constant, by changing the left shift of the mask-bit to a right shift of the bitmap. The behaviour of the code remains unchanged. We prove this by showing that the compiler can evaluate this shift during compile tim

Re: [PATCH] IB: make INFINIBAND_ADDR_TRANS configurable

2018-04-16 Thread Christoph Hellwig
On Mon, Apr 16, 2018 at 04:02:12AM +, Greg Thelen wrote: > I think I've identified the set of options which use > INFINIBAND_ADDR_TRANS without a kconfig depends: > * CIFS_SMB_DIRECT > * INFINIBAND_SRPT > * NVME_RDMA > * NVME_TARGET_RDMA > > I have patches for the above, but need to finish the

Re: [PATCH v4 03/15] KVM: s390: refactor crypto initialization

2018-04-16 Thread Pierre Morel
On 15/04/2018 23:22, Tony Krowiak wrote: This patch refactors the code that initializes the crypto configuration for a guest. The crypto configuration is contained in a crypto control block (CRYCB) which is a satellite control block to our main hardware virtualization control block. The CRYCB is

INFO: rcu detected stall in select_collect

2018-04-16 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 48023102b7078a6674516b1fe0d639669336049d (Fri Apr 13 23:55:41 2018 +) Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=5c73ae

[PATCH 11/12] net: remove the PCI_DMA_BUS_IS_PHYS check in illegal_highdma

2018-04-16 Thread Christoph Hellwig
These days the dma mapping routines must be able to handle any address supported by the device, be that using an iommu, or swiotlb if none is supported. With that the PCI_DMA_BUS_IS_PHYS check in illegal_highdma is not needed and can be removed. Signed-off-by: Christoph Hellwig --- net/core/dev

Re: Linux 4.17-rc1

2018-04-16 Thread Geert Uytterhoeven
On Mon, Apr 16, 2018 at 3:55 AM, Linus Torvalds wrote: > We actually have a fair amount of other removal and cleanups too. I > was somewhat pleasantly surprised by the number of pull requests that > actually ended up removing a lot of lines. Some of it was staging > drivers that finally gave up th

Re: [PATCH] IB: make INFINIBAND_ADDR_TRANS configurable

2018-04-16 Thread oulijun
在 2018/4/13 20:47, Bart Van Assche 写道: > On Fri, 2018-04-13 at 00:06 -0700, Greg Thelen wrote: >> Allow INFINIBAND without INFINIBAND_ADDR_TRANS. >> >> Signed-off-by: Greg Thelen >> Cc: Tarick Bedeir >> --- >> drivers/infiniband/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>

Re: linux-next: build failure after merge of the bpf tree

2018-04-16 Thread Daniel Borkmann
Hi Stephen, hi John, On 04/16/2018 04:30 AM, Stephen Rothwell wrote: > Hi all, > > After merging the bpf tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > kernel/bpf/core.o: In function `sock_map_release': > core.c:(.text+0xd04): multiple definition of `sock_map_rel

Re: [PATCH v2] x86/xen/efi: Initialize UEFI secure boot state during dom0 boot

2018-04-16 Thread Daniel Kiper
On Mon, Apr 16, 2018 at 10:15:15AM +0200, Ard Biesheuvel wrote: > On 11 April 2018 at 10:56, Daniel Kiper wrote: > > On Wed, Apr 04, 2018 at 12:38:24PM +0200, Daniel Kiper wrote: > >> On Tue, Apr 03, 2018 at 10:00:52AM -0700, James Bottomley wrote: > >> > On Tue, 2018-04-03 at 18:07 +0200, Daniel

Re: [PATCH 4/4] ALSA: usb: add UAC3 BADD profiles support

2018-04-16 Thread kbuild test robot
Hi Ruslan, Thank you for the patch! Perhaps something to improve: url: https://github.com/0day-ci/linux/commits/Ruslan-Bilovol/USB-Audio-Device-Class-3-0-BADD-profiles-support/20180414-182703 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next smatch warnings: so

Re: [PATCH v2] block: ratelimite pr_err on IO path

2018-04-16 Thread Sreekanth Reddy
On Mon, Apr 16, 2018 at 1:46 PM, Jinpu Wang wrote: > On Fri, Apr 13, 2018 at 6:59 PM, Martin K. Petersen > wrote: >> >> Jinpu, >> >> [CC:ed the mpt3sas maintainers] >> >> The ratelimit patch is just an attempt to treat the symptom, not the >> cause. > Agree. If we can fix the root cause, it will

Re: nds32 build failures

2018-04-16 Thread Greentime Hu
2018-04-16 11:58 GMT+08:00 Guenter Roeck : > I thought I should give the brand new architecture a try. Unfortunately, > that was not very successful. > > Build reference: v4.17-rc1 > gcc version: nds32le-elf-gcc (GCC) 7.3.0 > > Building nds32:defconfig ... failed > > arch/nds32/include/asm/nds32.h:

Re: [PATCH v6 26/30] drm/rockchip: psr: Avoid redundant calls to .set() callback

2018-04-16 Thread Andrzej Hajda
On 05.04.2018 11:49, Enric Balletbo i Serra wrote: > From: Tomasz Figa > > The first time after we call rockchip_drm_do_flush() after > rockchip_drm_psr_register(), we go from PSR_DISABLE to PSR_FLUSH. The > difference between PSR_DISABLE and PSR_FLUSH is whether or not we have a > delayed work pe

Re: [PATCH] drm/stm: move enable/disable_vblank to crtc

2018-04-16 Thread Vincent ABRIOU
Hi Philippe, Patch looks good to me. Reviewed-by: Vincent Abriou On 04/07/2018 11:29 PM, Philippe Cornu wrote: > enable/disable_vblank() functions at drm_driver level > are deprecated. Move them to the ltdc drm_crtc_funcs > structure. > > Signed-off-by: Philippe Cornu > --- > drivers/gpu/dr

[PATCH v5 4/4] zram: introduce zram memory tracking

2018-04-16 Thread Minchan Kim
zRam as swap is useful for small memory device. However, swap means those pages on zram are mostly cold pages due to VM's LRU algorithm. Especially, once init data for application are touched for launching, they tend to be not accessed any more and finally swapped out. zRAM can store such cold page

[PATCH v5 0/4] zram memory tracking

2018-04-16 Thread Minchan Kim
zRam as swap is useful for small memory device. However, swap means those pages on zram are mostly cold pages due to VM's LRU algorithm. Especially, once init data for application are touched for launching, they tend to be not accessed any more and finally swapped out. zRAM can store such cold page

[PATCH v5 1/4] zram: correct flag name of ZRAM_ACCESS

2018-04-16 Thread Minchan Kim
ZRAM_ACCESS is used for locking a slot of zram so correct the name. It is also not a common flag to indicate status of the block so move the declare position on top of the flag. Lastly, let's move the function to the top of source code to be able to use it easily without forward declaration. Revie

Re: BUG: unable to handle kernel paging request in corrupted

2018-04-16 Thread Dmitry Vyukov
On Sun, Apr 15, 2018 at 7:02 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > c18bb396d3d261ebbb4efbc05129c5d354c541e4 (Tue Apr 10 00:04:10 2018 +) > Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net > syzbot dashboard link: > https://syzkaller.app

Re: [PATCH 3/3] backlight: pwm_bl: don't use GPIOF_* with gpiod_get_direction

2018-04-16 Thread Lee Jones
On Sun, 14 Jan 2018, Wolfram Sang wrote: > The documentation was wrong, gpiod_get_direction() returns 0/1 instead > of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47 > ("gpio: correct docs about return value of gpiod_get_direction"). Now, > fix this user (until a better, system-

[PATCH v5 3/4] zram: record accessed second

2018-04-16 Thread Minchan Kim
zRam as swap is useful for small memory device. However, swap means those pages on zram are mostly cold pages due to VM's LRU algorithm. Especially, once init data for application are touched for launching, they tend to be not accessed any more and finally swapped out. zRAM can store such cold page

Re: INFO: rcu detected stall in select_collect

2018-04-16 Thread Dmitry Vyukov
On Mon, Apr 16, 2018 at 10:59 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 48023102b7078a6674516b1fe0d639669336049d (Fri Apr 13 23:55:41 2018 +) > Merge branch 'overlayfs-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs > syzbot dashb

[PATCH v5 2/4] zram: mark incompressible page as ZRAM_HUGE

2018-04-16 Thread Minchan Kim
Mark incompressible pages so that we could investigate who is the owner of the incompressible pages once the page is swapped out via using upcoming zram memory tracker feature. With it, we could prevent such pages to be swapped out by using mlock. Otherwise we might remove them. This patch expose

Re: [PATCH v4 0/4] zram memory tracking

2018-04-16 Thread Minchan Kim
On Mon, Apr 16, 2018 at 04:42:18PM +0900, Sergey Senozhatsky wrote: > On (04/16/18 12:31), Minchan Kim wrote: > > Minchan Kim (4): > > zram: correct flag name of ZRAM_ACCESS > > zram: mark incompressible page as ZRAM_HUGE > > zram: record accessed second > > zram: introduce zram memory trac

Re: [PATCH RESEND] backlight: pwm_bl: don't use GPIOF_* with gpiod_get_direction

2018-04-16 Thread Lee Jones
On Wed, 11 Apr 2018, Simon Horman wrote: > On Tue, Apr 10, 2018 at 02:32:40PM +0200, Wolfram Sang wrote: > > The documentation was wrong, gpiod_get_direction() returns 0/1 instead > > of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47 > > ("gpio: correct docs about return value o

Re: [PATCH] drm/stm: ltdc: add user update info in plane print state

2018-04-16 Thread Vincent ABRIOU
Hi Philippe, Reviewed-by: Vincent Abriou On 04/07/2018 11:35 PM, Philippe Cornu wrote: > This patch adds the user update information in > frames-per-second into the drm debugfs plane state. > > Signed-off-by: Philippe Cornu > --- > drivers/gpu/drm/stm/ltdc.c | 22 ++ > d

Re: instant reboot caused by 194a9749c73d650c0

2018-04-16 Thread Kirill A. Shutemov
On Mon, Apr 16, 2018 at 08:07:09AM +0200, Ingo Molnar wrote: > > * Eric Dumazet wrote: > > > Hi Kirill > > > > For some reason, my hosts instantly crash at boot time, with absolutely no > > log on console. > > > > Bisection pointed to : > > > > $ git bisect bad > > 194a9749c73d650c0b1dfdee04

Re: [PATCH v5] ANDROID: binder: change down_write to down_read

2018-04-16 Thread Minchan Kim
Hi Ganesh, On Tue, Apr 10, 2018 at 04:52:58PM +0800, Ganesh Mahendran wrote: < snip > > >> basepatch_v1 patch_v5 > >> --- > >> 91223.4 90560.2 89644.5 > >> 90520.3 8

Re: [PATCH] drm/stm: ltdc: fix warning in ltdc_crtc_update_clut()

2018-04-16 Thread Yannick FERTRE
Reviewed-by: yannick fertre On 04/10/2018 03:53 PM, Philippe Cornu wrote: > Fix the warning > "warn: variable dereferenced before check 'crtc' (see line 390)" > by removing unnecessary checks as ltdc_crtc_update_clut() is > only called from ltdc_crtc_atomic_flush() where crtc and > crtc->state a

[PATCH] lightnvm: pblk: add CNEX Granby to the pblk device list

2018-04-16 Thread Wei Xu
Add a new lightnvm quirk to identify CNEX’s Granby controller. Signed-off-by: Wei Xu --- drivers/nvme/host/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index cb73bc8..9419e88 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/

Re: [PATCH] perf tools: set kernel end address properly

2018-04-16 Thread Jiri Olsa
On Mon, Apr 16, 2018 at 01:22:40PM +0900, Namhyung Kim wrote: > The map_groups__fixup_end() was called to set end addresses of kernel > map and module maps. But now machine__create_modules() is set the end > address of modules properly so the only remaining piece is the kernel > map. We can set i

Re: [PATCH 1/3] tools/parse-options: Add '\n' at the end of error messages

2018-04-16 Thread Masami Hiramatsu
On Mon, 9 Apr 2018 16:36:31 +0530 Ravi Bangoria wrote: > Few error messages does not have '\n' at the end and thus next > prompt gets printed in the same line. Ex, > > linux~$ perf buildid-cache -verbose --add ./a.out >Error: did you mean `--verbose` (with two dashes ?)linux~$ > > Fix it

Re: [PATCH v6 27/30] drm/rockchip: psr: Sanitize semantics of allow/disallow API

2018-04-16 Thread Andrzej Hajda
On 05.04.2018 11:49, Enric Balletbo i Serra wrote: > From: Tomasz Figa > > Currently both rockchip_drm_psr_activate() and _deactivate() only set the > boolean "active" flag without actually making sure that hardware state > complies with it. > > Since we are going to extend the usage of this API t

[PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI bridges

2018-04-16 Thread David Wang
PCI bridges integrated in new VIA chipset/SoC have no DAC issue. Enable DAC for the platforms with these chipset/SoC can improve DMA performance about 20% when DRAM size > 4GB. Signed-off-by: David Wang --- arch/x86/kernel/pci-dma.c | 22 ++ 1 file changed, 22 insertions(+)

Re: [PATCH 3/3] perf/buildid-cache: Support --purge-all option

2018-04-16 Thread Masami Hiramatsu
On Mon, 9 Apr 2018 16:36:33 +0530 Ravi Bangoria wrote: > User can remove files from cache using --remove/--purge options > but both needs list of files as an argument. It's not convenient > when you want to flush out entire cache. Add an option to purge > all files from cache. > > Ex, > # per

Re: [RFC 01/10] PCI: dwc: Add MSI-X callbacks handler

2018-04-16 Thread Kishon Vijay Abraham I
Hi Gustavo, On Tuesday 10 April 2018 10:44 PM, Gustavo Pimentel wrote: > Changes the pcie_raise_irq function signature, namely the interrupt_num > variable type from u8 to u16 to accommodate the MSI-X maximum interrupts > of 2048. > > Implements a PCIe config space capability iterator function to

Re: [RfC PATCH] Add udmabuf misc device

2018-04-16 Thread Daniel Vetter
On Mon, Apr 16, 2018 at 10:22 AM, Oleksandr Andrushchenko wrote: > On 04/16/2018 10:43 AM, Daniel Vetter wrote: >> >> On Mon, Apr 16, 2018 at 10:16:31AM +0300, Oleksandr Andrushchenko wrote: >>> >>> On 04/13/2018 06:37 PM, Daniel Vetter wrote: On Wed, Apr 11, 2018 at 08:59:32AM +0300, Ol

  1   2   3   4   5   6   7   8   9   10   >