Re: [PATCH 05/11] mmc: s3cmci: handle highmem pages

2019-01-29 Thread Ulf Hansson
On Mon, 14 Jan 2019 at 10:58, Christoph Hellwig wrote: > > Instead of setting up a kernel pointer to track the current PIO address, > track the offset in the current page, and do an atomic kmap for the page > while doing the actual PIO operations. > > Signed-off-by: Christoph Hellwig Nitpick:

Re: [PATCH] lib: zstd: Mark expected switch fall-throughs

2019-01-29 Thread Kees Cook
On Wed, Jan 30, 2019 at 12:34 PM Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warnings: > > lib/zstd/bitstream.h:261:30: warning: this statement may fall through >

Re: [PATCH v2] [media] v4l: add I / P frame min max QP definitions

2019-01-29 Thread Hans Verkuil
On 1/30/19 8:45 AM, Fish Lin wrote: > Add following V4L2 QP parameters for H.264: > * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MIN_QP > * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MAX_QP > * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MIN_QP > * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MAX_QP > > These controls will limit QP

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-29 Thread Maxime Ripard
On Wed, Jan 30, 2019 at 12:35:41PM +0900, Tomasz Figa wrote: > On Wed, Jan 30, 2019 at 11:29 AM Alexandre Courbot > wrote: > > > > On Wed, Jan 30, 2019 at 6:41 AM Nicolas Dufresne > > wrote: > > > > > > Le mardi 29 janvier 2019 à 16:44 +0900, Alexandre Courbot a écrit : > > > > On Fri, Jan 25,

Re: [PATCH] lib: 64bit IO

2019-01-29 Thread Vladimir Kondratiev
On 1/29/19 6:01 PM, Greg Kroah-Hartman wrote: On Tue, Jan 29, 2019 at 05:41:02PM +0200, Vladimir Kondratiev wrote: implement missing io{read|write}64 For 64-bit platforms, these 64-bit io functions are defined in include/asm-generic/iomap.h, but actual implementation missing. Provide it.

Re: [PATCH 07/11] mmc: mvsdio: handle highmem pages

2019-01-29 Thread Ulf Hansson
On Mon, 14 Jan 2019 at 10:58, Christoph Hellwig wrote: > > Instead of setting up a kernel pointer to track the current PIO address, > track the offset in the current page, and do an atomic kmap for the page > while doing the actual PIO operations. > > Signed-off-by: Christoph Hellwig > --- >

Re: [PATCH 1/2] mm, memory_hotplug: is_mem_section_removable do not pass the end of a zone

2019-01-29 Thread Oscar Salvador
On Tue, Jan 29, 2019 at 10:12:24AM +0100, Michal Hocko wrote: > Yes, those pages should be unreachable because they are out of the zone. > Reasons might be various. The memory range is not mem section aligned, > or cut due to mem parameter etc. I see, thanks. Reviewed-by: Oscar Salvador --

Re: [PATCH v8 1/7] tpm: dynamically allocate the allocated_banks array

2019-01-29 Thread Roberto Sassu
On 1/29/2019 8:29 PM, Jarkko Sakkinen wrote: On Thu, Jan 24, 2019 at 04:49:04PM +0100, Roberto Sassu wrote: + chip->allocated_banks = kcalloc(1, sizeof(*chip->allocated_banks), + GFP_KERNEL); + if (!chip->allocated_banks) { + rc =

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-29 Thread Christoph Hellwig
On Tue, Jan 29, 2019 at 01:43:02PM -0700, Logan Gunthorpe wrote: > It's hard to reason about an interface when you can't see what all the > layers want to do with it. Most maintainers (I'd hope) would certainly > never merge code that has no callers, and for much the same reason, I'd > rather not

Re: [PATCH] mm,memory_hotplug: Fix scan_movable_pages for gigantic hugepages

2019-01-29 Thread Oscar Salvador
On Tue, Jan 29, 2019 at 11:03:56AM +0100, David Hildenbrand wrote: > Not sure if encoding the -1 in the previous line is even better now that > we have more space > > skip = (1 << compound_order(head)) - (page - head + 1); > > Looks good to me. > > > } I would rather not do that. For me

[PATCH v2] [media] v4l: add I / P frame min max QP definitions

2019-01-29 Thread Fish Lin
Add following V4L2 QP parameters for H.264: * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MIN_QP * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MAX_QP * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MIN_QP * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MAX_QP These controls will limit QP range for intra and inter frame, provide more manual

Re: [PATCH] thermal: mtk: Allocate enough space for mtk_thermal.

2019-01-29 Thread Daniel Lezcano
On 30/01/2019 07:04, Peter Shih wrote: > Adding Michael Kao to cc list. > > On Wed, Jan 9, 2019 at 1:57 PM Pi-Hsun Shih wrote: >> >> The mtk_thermal struct contains a 'struct mtk_thermal_bank banks[];', >> but the allocation only allocates sizeof(struct mtk_thermal) bytes, >> which cause out of

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-01-29 Thread Christoph Hellwig
On Tue, Jan 29, 2019 at 09:36:08PM -0500, Michael S. Tsirkin wrote: > This has been discussed ad nauseum. virtio is all about compatibility. > Losing a couple of lines of code isn't worth breaking working setups. > People that want "just use DMA API no tricks" now have the option. > Setting a flag

Re: [PATCH v10 0/4] Media Device Allocator API

2019-01-29 Thread Hans Verkuil
On 1/30/19 2:50 AM, shuah wrote: > On 1/29/19 2:43 AM, Hans Verkuil wrote: >> On 1/29/19 12:48 AM, shuah wrote: >>> Hi Hans, >>> >>> On 1/28/19 5:03 AM, Hans Verkuil wrote: Hi Shuah, On 1/24/19 9:32 PM, Shuah Khan wrote: > Media Device Allocator API to allows multiple drivers

Re: [RFC PATCH] USB: PCI: set 32bit DMA mask for PCI based USB controllers

2019-01-29 Thread Christoph Hellwig
On Wed, Jan 30, 2019 at 03:01:54PM +0800, Hanjun Guo wrote: > This is the RFC version, I'm not sure this is the best solution, > comments are warmly welcomed. > > Thanks > Hanjun > > drivers/usb/core/hcd-pci.c | 4 > 1 file changed, 4 insertions(+) > > diff --git

Re: [PATCH v9 1/3] watchdog: introduce watchdog.open_timeout commandline parameter

2019-01-29 Thread Rasmus Villemoes
On 29/01/2019 21.35, Rasmus Villemoes wrote: > On 22/01/2019 18.29, Guenter Roeck wrote: >> On Mon, Jan 21, 2019 at 08:45:39PM +, Rasmus Villemoes wrote: >>> >>> static void watchdog_ping_work(struct kthread_work *work) >>> @@ -297,7 +317,7 @@ static int watchdog_stop(struct watchdog_device

linux-next: Tree for Jan 30

2019-01-29 Thread Stephen Rothwell
Hi all, Changes since 20190129: The drm-intel-fixes tree gained a build failure for which I reverted a commit. The vfs tree still had its build failure for which I applied a patch. The net-next tree lost its build failure. Non-merge commits (relative to Linus' tree): 4274 4785 files changed

Re: [PATCH v5 1/2] spi: support inter-word delay requirement for devices

2019-01-29 Thread Geert Uytterhoeven
Hi Jonas, On Tue, Jan 29, 2019 at 9:55 PM Jonas Bonn wrote: > Some devices are slow and cannot keep up with the SPI bus and therefore > require a short delay between words of the SPI transfer. > > The example of this that I'm looking at is a SAMA5D2 with a minimum SPI > clock of 400kHz talking

Re: [PATCH 4.4 068/104] loop: Fold __loop_release into loop_release

2019-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 28, 2019 at 02:31:03PM +0100, Jan Kara wrote: > On Thu 24-01-19 20:19:57, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Jan Kara > > > > commit

Re: [PATCH] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-29 Thread Daniel Lezcano
On 30/01/2019 06:22, Amit Kucheria wrote: > All cpufreq drivers do similar things to register as a cooling device. > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > to register the cooling device on their behalf. This allows us to get > rid of duplicated code in the

Re: [EXT] [PATCH] lightnvm: pblk: extend line wp balance check

2019-01-29 Thread Hans Holmberg
On Tue, Jan 29, 2019 at 11:10 PM Zhoujie Wu wrote: > > Sorry that my Linux email client has configuration issue and can't reply > email. Used my outlook to reply as plain text and hope that I won't corrupt > the format. > Tested on my board and it works well. Since this is a good fix, I think

[PATCH v3] async: Add cmdline option to specify drivers to be async probed

2019-01-29 Thread Feng Tang
Asynchronous driver probing can help much on kernel fastboot, and this option can provide a flexible way to optimize and quickly verify async driver probe. Also it will help in below cases: * Some driver actually covers several families of HWs, some of which could use async probing while others

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-29 Thread Tomasz Figa
On Wed, Jan 30, 2019 at 3:28 PM Ayaka wrote: > > > > Sent from my iPad > > > On Jan 30, 2019, at 11:35 AM, Tomasz Figa wrote: > > > > On Wed, Jan 30, 2019 at 11:29 AM Alexandre Courbot > > wrote: > >> > >>> On Wed, Jan 30, 2019 at 6:41 AM Nicolas Dufresne > >>> wrote: > >>> > Le mardi 29

Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver

2019-01-29 Thread Marek Vasut
On 1/30/19 3:22 AM, masonccy...@mxic.com.tw wrote: > Hi Marek, Hi, >> "Marek Vasut" >> 2019/01/29 下午 12:45 >> >> To >> >> masonccy...@mxic.com.tw, >> >> cc >> >> bbrezil...@kernel.org, broo...@kernel.org, "Geert Uytterhoeven" >> , "Simon Horman" , >> julie...@mxic.com.tw,

[char-misc for v5.0] mei: free read cb on ctrl_wr list flush

2019-01-29 Thread Tomas Winkler
From: Alexander Usyskin There is a little window during disconnection flow when read cb is moved between lists and may be not freed. Remove moving read cbs explicitly during flash fixes this memory leak. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler ---

Re: [LSF/MM TOPIC] NUMA remote THP vs NUMA local non-THP under MADV_HUGEPAGE

2019-01-29 Thread Michal Hocko
On Tue 29-01-19 18:40:58, Andrea Arcangeli wrote: > Hello, > > I'd like to attend the LSF/MM Summit 2019. I'm interested in most MM > topics and it's enlightening to listen to the common non-MM topics > too. > > One current topic that could be of interest is the THP / NUMA tradeoff > in subject.

RE: [PATCH v2 2/2] media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver

2019-01-29 Thread Vishal Sagar
Hi Hyun, > -Original Message- > From: Hyun Kwon [mailto:hyun.k...@xilinx.com] > Sent: Tuesday, January 29, 2019 12:05 AM > To: Vishal Sagar > Cc: Hyun Kwon ; Vishal Sagar ; > laurent.pinch...@ideasonboard.com; mche...@kernel.org; > robh...@kernel.org; mark.rutl...@arm.com; Michal Simek >

Re: [PATCH v3] async: Add cmdline option to specify drivers to be async probed

2019-01-29 Thread Greg Kroah-Hartman
On Wed, Jan 30, 2019 at 02:38:07PM +0800, Feng Tang wrote: > Asynchronous driver probing can help much on kernel fastboot, and > this option can provide a flexible way to optimize and quickly verify > async driver probe. > > Also it will help in below cases: > * Some driver actually covers

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-29 Thread kbuild test robot
Hi Callum, Thank you for the patch! Yet something to improve: [auto build test ERROR on net/master] [also build test ERROR on v5.0-rc4 next-20190129] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [v3 PATCH] mm: ksm: do not block on page lock when searching stable tree

2019-01-29 Thread John Hubbard
On 1/29/19 12:29 PM, Yang Shi wrote: ksmd need search stable tree to look for the suitable KSM page, but the KSM page might be locked for a while due to i.e. KSM page rmap walk. Basically it is not a big deal since commit 2c653d0ee2ae ("ksm: introduce ksm_max_page_sharing per page deduplication

Re: [PATCH] usb: xhci: remove unused member 'parent' in xhci_regset struct

2019-01-29 Thread Greg Kroah-Hartman
On Wed, Jan 30, 2019 at 10:12:21AM +0800, Chunfeng Yun wrote: > The member @parent of xhci_regset struct is not used in fact, > so remove it > > Change-Id: Ic6727c28f7200782fe4516bcb41c789b427318a2 No need for this line :(

[PATCH 2/2] regulator: uniphier: Constify uniphier_regulator_ops

2019-01-29 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/uniphier-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/uniphier-regulator.c b/drivers/regulator/uniphier-regulator.c index 6ba0ae405f2b..9026d5a3e964 100644 ---

[PATCH 1/2] regulator: uniphier: Fix probe error handling

2019-01-29 Thread Axel Lin
Ensure unwind all resources if probe fails. Signed-off-by: Axel Lin --- drivers/regulator/uniphier-regulator.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/uniphier-regulator.c b/drivers/regulator/uniphier-regulator.c index

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-29 Thread Ayaka
Sent from my iPad > On Jan 30, 2019, at 5:41 AM, Nicolas Dufresne wrote: > >> Le mardi 29 janvier 2019 à 16:44 +0900, Alexandre Courbot a écrit : >> On Fri, Jan 25, 2019 at 10:04 PM Paul Kocialkowski >> wrote: >>> Hi, >>> On Thu, 2019-01-24 at 20:23 +0800, Ayaka wrote: Sent from

[RFC PATCH] USB: PCI: set 32bit DMA mask for PCI based USB controllers

2019-01-29 Thread Hanjun Guo
From: Hanjun Guo We met an issue that when we update the IORT table to revision D, and the kernel update to 4.19, the USB on D06 (ARM64 based server) will probe fail: [ 13.495751] CPU: 0 PID: 15 Comm: kworker/0:1 Not tainted 4.19.0-00115-gb2b5200 #5 [ 13.503219] Hardware name: Huawei

Re: [PATCH v2] media: docs-rst: Document m2m stateless video decoder interface

2019-01-29 Thread Randy Li
On 1/22/19 2:26 PM, Alexandre Courbot wrote: Documents the protocol that user-space should follow when communicating with stateless video decoders. The stateless video decoding API makes use of the new request and tags APIs. While it has been implemented with the Cedrus driver so far, it

Re: [PATCH 4.20 000/117] 4.20.6-stable review

2019-01-29 Thread Greg Kroah-Hartman
On Tue, Jan 29, 2019 at 07:07:58PM -0700, shuah wrote: > On 1/29/19 4:34 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.20.6 release. > > There are 117 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

Re: [PATCH v9 1/3] mm: Shuffle initial free memory to improve memory-side-cache utilization

2019-01-29 Thread Mike Rapoport
On Tue, Jan 29, 2019 at 09:02:16PM -0800, Dan Williams wrote: > Randomization of the page allocator improves the average utilization of > a direct-mapped memory-side-cache. Memory side caching is a platform > capability that Linux has been previously exposed to in HPC > (high-performance

Re: [PATCH v4 02/10] arm64: dts: qcom: sdm845: Define rmtfs memory

2019-01-29 Thread Bjorn Andersson
On Tue 29 Jan 15:20 PST 2019, Bjorn Andersson wrote: > Define the rmtfs memory node, as described in version 10 of the memory > map. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v3: > - Labeled the node > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 9 + > 1 file changed, 9

hi

2019-01-29 Thread Sherri Gallagher
Please get back to me My name is Sgt.Sherri Gallagher,

[PATCH v3] async: Add cmdline option to specify drivers to be async probed

2019-01-29 Thread Feng Tang
Asynchronous driver probing can help much on kernel fastboot, and this option can provide a flexible way to optimize and quickly verify async driver probe. Also it will help in below cases: * Some driver actually covers several families of HWs, some of which could use async probing while others

Re: [PATCH] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-29 Thread Viresh Kumar
On 30-01-19, 10:52, Amit Kucheria wrote: > All cpufreq drivers do similar things to register as a cooling device. > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > to register the cooling device on their behalf. This allows us to get > rid of duplicated code in the

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-29 Thread Ayaka
Sent from my iPad > On Jan 30, 2019, at 11:35 AM, Tomasz Figa wrote: > > On Wed, Jan 30, 2019 at 11:29 AM Alexandre Courbot > wrote: >> >>> On Wed, Jan 30, 2019 at 6:41 AM Nicolas Dufresne >>> wrote: >>> Le mardi 29 janvier 2019 à 16:44 +0900, Alexandre Courbot a écrit : On

Re: [PATCH -next] irqchip/tango: Fix potential NULL pointer dereference

2019-01-29 Thread YueHaibing
On 2019/1/29 20:20, Måns Rullgård wrote: > Marc Zyngier writes: > >> On Tue, 29 Jan 2019 08:01:22 +, >> YueHaibing wrote: >>> >>> There is a potential NULL pointer dereference in case kzalloc() >>> fails and returns NULL. >>> >>> Fixes: 4bba66899ac6 ("irqchip/tango: Add support for Sigma

RE: [PATCH v8 1/2] platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc

2019-01-29 Thread Vadim Pasternak
> -Original Message- > From: Liming Sun > Sent: Monday, January 28, 2019 7:28 PM > To: Rob Herring ; Mark Rutland > ; Arnd Bergmann ; David Woods > ; Andy Shevchenko ; Darren > Hart ; Vadim Pasternak > Cc: Liming Sun ; devicet...@vger.kernel.org; linux- > ker...@vger.kernel.org;

RE: [PATCH v1 1/1] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc

2019-01-29 Thread Vadim Pasternak
[...] Please, be consistent with naming convention. All the above should have same prefix as others routines. > > > +static ssize_t post_reset_wdog_store(struct device_driver *drv, > > +const char *buf, size_t count) { > > + int err; > > +

Re: [PATCH v2] nfit: add Hyper-V NVDIMM DSM command set to white list

2019-01-29 Thread Dan Williams
On Mon, Jan 28, 2019 at 4:56 PM Dexuan Cui wrote: > > > Add the Hyper-V _DSM command set to the white list of NVDIMM command > sets. > > This command set is documented at http://www.uefi.org/RFIC_LIST > (see "Virtual NVDIMM 0x1901"). > > Thanks Dan Williams for writing the > comment change. > >

Re: [PATCH] nfit: acpi_nfit_ctl(): check out_obj->type in the right place

2019-01-29 Thread Dan Williams
On Tue, Jan 29, 2019 at 5:23 PM Dexuan Cui wrote: > > > In the case of ND_CMD_CALL, we should also check out_obj->type. > > The patch uses out_obj->type, which is a short alias to > out_obj->package.type. > > Fixes: 31eca76ba2fc ("nfit, libnvdimm: limited/whitelisted dimm command > marshaling

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-29 Thread Tomasz Figa
On Wed, Jan 30, 2019 at 1:21 PM Nicolas Dufresne wrote: > > Le mercredi 30 janvier 2019 à 12:38 +0900, Tomasz Figa a écrit : > > > Yes, unfortunately, GStreamer still rely on G_FMT waiting a minimal > > > amount of time of the headers to be processed. This was how things was > > > created back in

Re: [PATCH for-5.0] ath10k: correct bus type for WCN3990

2019-01-29 Thread Bjorn Andersson
On Tue 29 Jan 15:12 PST 2019, Brian Norris wrote: > WCN3990 is SNOC, not PCI. This prevents probing WCN3990. > > Fixes: 367c899f622c ("ath10k: add bus type check in ath10k_init_hw_params") > Signed-off-by: Brian Norris Reviewed-by: Bjorn Andersson > --- > This was a regression in 4.20. > >

Re: [PATCH] ARM: socfpga: fix base address of SDR controller

2019-01-29 Thread Simon Goldschmidt
On Tue, Jan 29, 2019 at 11:31 PM Alan Tull wrote: > > On Tue, Jan 29, 2019 at 2:09 PM Simon Goldschmidt > wrote: > > Hi Simon, > > Thanks for submitting. A couple of things... > > > diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi > > index f365003f0..8f6c1a5d6

Re: [PATCH] thermal: mtk: Allocate enough space for mtk_thermal.

2019-01-29 Thread Peter Shih
Adding Michael Kao to cc list. On Wed, Jan 9, 2019 at 1:57 PM Pi-Hsun Shih wrote: > > The mtk_thermal struct contains a 'struct mtk_thermal_bank banks[];', > but the allocation only allocates sizeof(struct mtk_thermal) bytes, > which cause out of bound access with the ->banks[] member. Change it

Re: [PATCH 08/10] soc: mediatek: add packet encoder function

2019-01-29 Thread Pi-Hsun Shih
On 01/29/2019 03:32 PM, Bibby Hsieh wrote: Implement a function can encode the GCE instructions Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 102 --- include/linux/mailbox/mtk-cmdq-mailbox.h | 2 +

Re: [PATCH 07/10] soc: mediatek: add cmdq_dev_get_event function

2019-01-29 Thread Pi-Hsun Shih
On 01/29/2019 03:32 PM, Bibby Hsieh wrote: When client ask gce to clear or wait for event, client need to pass event number to the API. We suggest client store the event information in device node, so we provide an API for client parse the event property. Signed-off-by: Bibby Hsieh ---

Re: [PATCH 06/10] soc: mediatek: add register device function

2019-01-29 Thread Pi-Hsun Shih
On 01/29/2019 03:32 PM, Bibby Hsieh wrote: GCE cannot know the register base address, we store the subsys-base address relationship in the device node, and store the relationship by cmdq_register_device function. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 24

Re: [PATCH] ARM: socfpga: fix base address of SDR controller

2019-01-29 Thread Simon Goldschmidt
+ Marek (as I really want to keep the dts in Linux and U-Boot in sync) On Wed, Jan 30, 2019 at 1:16 AM Dinh Nguyen wrote: > > > > On 1/29/19 2:08 PM, Simon Goldschmidt wrote: > > From: Simon Goldschmidt > > > > The documentation for socfpga gen5 says the base address of the sdram > > controller

Re: [PATCH v16 0/7] Parse ACPI table and limit KASLR to choosing immovable memory

2019-01-29 Thread Chao Fan
On Mon, Jan 28, 2019 at 06:51:32PM +0100, Borislav Petkov wrote: >On Wed, Jan 23, 2019 at 07:08:43PM +0800, Chao Fan wrote: >> PATCH 1/7 Copy kstrtoull() to boot/string.c to instead of using >> old simple_strtoull() >> PATCH 2/7 Introduce get_acpi_rsdp() to parse RSDP in cmdline from

Re: [PATCH 03/10] soc: mediatek: move the CMDQ_IRQ_MASK into cmdq driver data

2019-01-29 Thread Pi-Hsun Shih
On 01/29/2019 03:32 PM, Bibby Hsieh wrote: The interrupt mask and thread number has positive correlation, so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate it by thread number. Signed-off-by: Bibby Hsieh --- drivers/mailbox/mtk-cmdq-mailbox.c | 12 1 file

Re: Will the recent memory leak fixes be backported to longterm kernels?

2019-01-29 Thread Roman Gushchin
On Tue, Jan 29, 2019 at 07:23:56PM -0500, Sasha Levin wrote: > On Fri, Dec 28, 2018 at 11:50:08AM +0100, Greg KH wrote: > > On Mon, Nov 05, 2018 at 10:21:23AM +0100, Michal Hocko wrote: > > > On Fri 02-11-18 19:38:35, Roman Gushchin wrote: > > > > On Fri, Nov 02, 2018 at 06:48:23PM +0100, Michal

[PATCH 2/2] iommu/amd: Remove clear_flush_young notifier

2019-01-29 Thread Peter Xu
AMD IOMMU driver is using the clear_flush_young() to do cache flushing but that's actually already covered by invalidate_range(). Remove the extra notifier and the chunks. Signed-off-by: Peter Xu --- drivers/iommu/amd_iommu_v2.c | 24 1 file changed, 24 deletions(-)

[PATCH 1/2] iommu/vt-d: Remove change_pte notifier

2019-01-29 Thread Peter Xu
The change_pte() interface is tailored for PFN updates, while the other notifier invalidate_range() should be enough for Intel IOMMU cache flushing. Actually we've done similar thing for AMD IOMMU already in 8301da53fbc1 ("iommu/amd: Remove change_pte mmu_notifier call-back", 2014-07-30) but the

[PATCH 0/2] Some MMU notifier cleanups for Intel/AMD IOMMU

2019-01-29 Thread Peter Xu
Recently when I'm reading the mmu notifiers I noticed that both Intel/AMD IOMMU drivers seem to have redundancies in using the MMU notifiers. It can also be seen as a follow up of commit 8301da53fbc1 ("iommu/amd: Remove change_pte mmu_notifier call-back", 2014-07-30). I don't have hardwares to

Re: [PATCH] proc: calculate end pointer for /proc/*/* lookup at compile time

2019-01-29 Thread Alexey Dobriyan
On Tue, Jan 29, 2019 at 02:18:48PM -0800, Andrew Morton wrote: > On Mon, 14 Jan 2019 23:04:23 +0300 Alexey Dobriyan > wrote: > > > Compilers like to transform loops like > > > > for (i = 0; i < n; i++) { > > [use p[i]] > > } > > > > into > > for (p = p0; p < end; p++)

RE: [PATCH 1/2] media: dt-bindings: media: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem

2019-01-29 Thread Vishal Sagar
Hi Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Monday, January 28, 2019 5:30 PM > To: Vishal Sagar > Cc: Vishal Sagar ; Hyun Kwon ; > laurent.pinch...@ideasonboard.com; Michal Simek ; > linux-me...@vger.kernel.org;

Re: [PATCH 0/2] [REGRESSION v4.19-20] mm: shrinkers are now way too aggressive

2019-01-29 Thread Roman Gushchin
Hi, Dave! Instead of reverting (which will bring back the memcg memory leak), can you, please, try Rik's patch: https://lkml.org/lkml/2019/1/28/1865 ? It should protect small cgroups from being scanned too hard by the memory pressure, however keeping the pressure big enough to avoid memory

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-29 Thread kbuild test robot
Hi Callum, Thank you for the patch! Yet something to improve: [auto build test ERROR on net/master] [also build test ERROR on v5.0-rc4 next-20190129] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH v2] Bluetooth: Add NULL check for tiocmget() and tiocmset()

2019-01-29 Thread Myungho Jung
tiocmget() and tiocmset() operations are optional and some tty drivers like pty miss the operations. We need NULL check to prevent from dereference. Signed-off-by: Myungho Jung --- drivers/bluetooth/hci_ath.c | 6 ++ drivers/bluetooth/hci_ldisc.c | 4 2 files changed, 10

Re: [PATCH 0/3] iommu/arm-smmu: Add support to use Last level cache

2019-01-29 Thread Vivek Gautam
On Tue, Jan 29, 2019 at 8:34 PM Ard Biesheuvel wrote: > > (+ Bjorn) > > On Mon, 28 Jan 2019 at 12:27, Vivek Gautam > wrote: > > > > Hi Ard, > > > > On Thu, Jan 24, 2019 at 1:25 PM Ard Biesheuvel > > wrote: > > > > > > On Thu, 24 Jan 2019 at 07:58, Vivek Gautam > > > wrote: > > > > > > > > On

Re: [PATCH] mtd: rawnand: meson: Fix linking error on 32-bit platforms

2019-01-29 Thread Liang Yang
Hello Nathan, On 2019/1/30 5:46, Nathan Chancellor wrote: On arm little endian allyesconfig: ld.lld: error: undefined symbol: __aeabi_uldivmod >>> referenced by meson_nand.c >>> mtd/nand/raw/meson_nand.o:(meson_nfc_setup_data_interface) in archive drivers/built-in.a The dividend

Re: [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init

2019-01-29 Thread Liang Yang
Hello Colin, On 2019/1/29 18:57, Colin King wrote: From: Colin Ian King The call to meson_chip_buffer_init is not assigning ret, however, ret is being checked for failure. Fix this by adding in the missing assignment. ok. thanks for your time. Fixes: 2d570b34b41a ("mtd: rawnand: meson:

Re: [PATCH][next] mtd: rawnand: meson:: make several functions static

2019-01-29 Thread Liang Yang
Hello Colin, On 2019/1/29 20:44, Colin King wrote: From: Colin Ian King There are several functions that are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings. ok. thanks Signed-off-by: Colin Ian King ---

Re: [PATCH 0/3] drivers: Frequency constraint infrastructure

2019-01-29 Thread Viresh Kumar
On 28-01-19, 14:04, Qais Yousef wrote: > But we have no way to enforce this, no? I'm thinking if frequency can be > constrained in PM QoS framework, then we will end up with some drivers that > think it's a good idea to use it and potentially end up breaking this "should > not work against

Re: [PATCH 0/3] drivers: Frequency constraint infrastructure

2019-01-29 Thread Viresh Kumar
On 17-01-19, 14:16, Juri Lelli wrote: > I was also wondering how this new framework is dealing with > constraints/request imposed/generated by the scheduler and related > interfaces (thinking about schedutil and Patrick's util_clamp). I am not very sure about what constraints are imposed by

[PATCH] cpufreq: Auto-register the driver as a thermal cooling device if asked

2019-01-29 Thread Amit Kucheria
All cpufreq drivers do similar things to register as a cooling device. Provide a cpufreq driver flag so drivers can just ask the cpufreq core to register the cooling device on their behalf. This allows us to get rid of duplicated code in the drivers. In order to allow this, we add a struct

[PATCH v2] sched/fair: Fix insertion in rq->leaf_cfs_rq_list

2019-01-29 Thread Vincent Guittot
Sargun reported a crash: "I picked up c40f7d74c741a907cfaeb73a7697081881c497d0 sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c and put it on top of 4.19.13. In addition to this, I uninlined list_add_leaf_cfs_rq for debugging. This revealed a new

Re: [PATCH 3/3] autofs: add ignore mount option

2019-01-29 Thread Ian Kent
On Tue, 2019-01-29 at 20:58 -0800, Andrew Morton wrote: > On Wed, 30 Jan 2019 10:07:15 +0800 Ian Kent wrote: > > > On Tue, 2019-01-29 at 17:16 -0800, Andrew Morton wrote: > > > On Sat, 12 Jan 2019 08:00:40 +0800 Ian Kent wrote: > > > > > > > Add an autofs file system mount option that can be

Re: [PATCH 2/7] cpufreq: dt: Register an Energy Model

2019-01-29 Thread Viresh Kumar
On 29-01-19, 09:15, Quentin Perret wrote: > On Tuesday 29 Jan 2019 at 10:51:44 (+0530), Viresh Kumar wrote: > > On 28-01-19, 11:36, Matthias Kaehlcke wrote: > > > I think this patch will result in error messages at registration on > > > platforms that use the cpufreq-dt driver and don't specify >

[PATCH v9 1/3] mm: Shuffle initial free memory to improve memory-side-cache utilization

2019-01-29 Thread Dan Williams
Randomization of the page allocator improves the average utilization of a direct-mapped memory-side-cache. Memory side caching is a platform capability that Linux has been previously exposed to in HPC (high-performance computing) environments on specialty platforms. In that instance it was a

[PATCH v9 2/3] mm: Move buddy list manipulations into helpers

2019-01-29 Thread Dan Williams
In preparation for runtime randomization of the zone lists, take all (well, most of) the list_*() functions in the buddy allocator and put them in helper functions. Provide a common control point for injecting additional behavior when freeing pages. Acked-by: Michal Hocko Cc: Dave Hansen

[PATCH v9 0/3] mm: Randomize free memory

2019-01-29 Thread Dan Williams
Changes since v8 [1]: * Rework shuffle call sites from 3 locations to 2, i.e. one for the initial memory online path, and one for the hotplug memory online path. This simplification results in an incremental diffstat of "7 files changed, 31 insertions(+), 82 deletions(-)". The consolidation

[PATCH v9 3/3] mm: Maintain randomization of page free lists

2019-01-29 Thread Dan Williams
When freeing a page with an order >= shuffle_page_order randomly select the front or back of the list for insertion. While the mm tries to defragment physical pages into huge pages this can tend to make the page allocator more predictable over time. Inject the front-back randomness to preserve

Re: [PATCH 1/7] binder: create userspace-to-binder-buffer copy function

2019-01-29 Thread Dan Carpenter
On Tue, Jan 29, 2019 at 04:32:09PM -0800, Todd Kjos wrote: > On Tue, Jan 29, 2019 at 12:12 AM Dan Carpenter > wrote: > > > > On Mon, Jan 28, 2019 at 04:49:28PM -0800, Todd Kjos wrote: > > > +/** > > > + * binder_alloc_copy_user_to_buffer() - copy src user to tgt user > > > + * @alloc:

Re: [PATCH 2/2] remoteproc: q6v5_adsp: Remove voting for lpass_aon clock

2019-01-29 Thread Rohit Kumar
Hello Bjorn, On 1/14/2019 4:14 PM, Rohit Kumar wrote: On 1/7/2019 12:43 PM, Bjorn Andersson wrote: On Thu 03 Jan 20:36 PST 2019, Rohit Kumar wrote: Hello Bjorn, Can you please review this patch series too. LPASS_AON clock support is already removed from lpass clock driver. Applied the

Re: [PATCH][RFC] module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity

2019-01-29 Thread Rusty Russell
Thanks taking on such a thankless task Thomas, Might have been overzealous in assuming a verionless GPL string meant "or later" (I'm happy for that for my own code, FWIW). My memory is fuzzy, but I don't think anyone cared at the time. Frankly, this should be autogenerated rather than "fixed"

RE: [PATCH V5 3/5] i2c: tegra: Add DMA Support

2019-01-29 Thread Sowjanya Komatineni
> > [Correction] > > > > > > Could you please tell whether you missed my comments to V3 [0] or > > > > chose to ignore them? If the former, then I'd want to get answers > > > > to those questions and comments. I'll stop here for now. > > > > > > > > [0]

Re: [PATCH 1/7] mmc: sdhci: add support for using external DMA devices

2019-01-29 Thread Chunyan Zhang
Hi Faiz, On Tue, 29 Jan 2019 at 19:50, Faiz Abbas wrote: > > Chunyan, > > On 28/01/19 5:16 PM, Chunyan Zhang wrote: > > On Mon, 28 Jan 2019 at 18:40, Faiz Abbas wrote: > >> > >> Hi, > >> > >> On 28/01/19 3:50 PM, Chunyan Zhang wrote: > >>> On Thu, 24 Jan 2019 at 19:41, Adrian Hunter > >>>

Re: [PATCH 3/3] autofs: add ignore mount option

2019-01-29 Thread Andrew Morton
On Wed, 30 Jan 2019 10:07:15 +0800 Ian Kent wrote: > On Tue, 2019-01-29 at 17:16 -0800, Andrew Morton wrote: > > On Sat, 12 Jan 2019 08:00:40 +0800 Ian Kent wrote: > > > > > Add an autofs file system mount option that can be used to provide > > > a generic indicator to applications that the

Re: [PATCH V5 3/5] i2c: tegra: Add DMA Support

2019-01-29 Thread Dmitry Osipenko
В Wed, 30 Jan 2019 04:22:10 + Sowjanya Komatineni пишет: > [Correction] > > > > Could you please tell whether you missed my comments to V3 [0] or > > > chose to ignore them? If the former, then I'd want to get answers > > > to those questions and comments. I'll stop here for now. > > > > >

Re: [PATCH 3/3] autofs: add ignore mount option

2019-01-29 Thread Ian Kent
On Wed, 2019-01-30 at 04:18 +, Al Viro wrote: > On Wed, Jan 30, 2019 at 10:44:15AM +0800, Ian Kent wrote: > > > Al, > > > > On a different note the above request also raised another > > question about statvfs(3) automount behaviour. > > > > In glibc statvfs(3) uses statfs(2) and translates

Re: [PATCH v2 10/14] arm64: dts: qcom: qcs404: Add OPP table

2019-01-29 Thread Vinod Koul
On 28-01-19, 19:32, Jorge Ramirez-Ortiz wrote: > Add a CPU OPP table to qcs404 > > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > --- > arch/arm64/boot/dts/qcom/qcs404.dtsi | 15 +++ > 1 file changed, 15 insertions(+) > > diff

Re: use generic DMA mapping code in powerpc V4

2019-01-29 Thread Christian Zigotzky
Hi Christoph, Thanks a lot for the updates. I will test the full branch tomorrow. Cheers, Christian Sent from my iPhone > On 29. Jan 2019, at 17:34, Christoph Hellwig wrote: > >> On Tue, Jan 29, 2019 at 05:14:11PM +0100, Christoph Hellwig wrote: >>> On Tue, Jan 29, 2019 at 04:03:32PM +0100,

Re: [PATCH 4.19 000/103] 4.19.19-stable review

2019-01-29 Thread shuah
On 1/29/19 10:28 AM, Greg Kroah-Hartman wrote: On Tue, Jan 29, 2019 at 12:34:37PM +0100, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.19 release. There are 103 patches in this series, all will be posted as a response to this one. If anyone has any issues

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-29 Thread Jason Gunthorpe
On Tue, Jan 29, 2019 at 07:08:06PM -0500, Jerome Glisse wrote: > On Tue, Jan 29, 2019 at 11:02:25PM +, Jason Gunthorpe wrote: > > On Tue, Jan 29, 2019 at 03:44:00PM -0500, Jerome Glisse wrote: > > > > > > But this API doesn't seem to offer any control - I thought that > > > > control was all

Re: [regression -next0117] What is kcompactd and why is he eating 100% of my cpu?

2019-01-29 Thread valdis . kletnieks
On Tue, 29 Jan 2019 20:06:39 -0500, valdis.kletni...@vt.edu said: > On Mon, 28 Jan 2019 10:16:27 +0100, Jan Kara said: > > > So my buffer_migrate_page_norefs() is certainly buggy in its current > > incarnation (as a result block device page cache is not migratable at all). > > I've sent Andrew a

RE: [PATCH V5 3/5] i2c: tegra: Add DMA Support

2019-01-29 Thread Sowjanya Komatineni
[Correction] > > Could you please tell whether you missed my comments to V3 [0] or chose to > > ignore them? If the former, then I'd want to get answers to those questions > > and comments. I'll stop here for now. > > > > [0] https://patchwork.ozlabs.org/patch/1031379/ > > Somehow missed those

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-29 Thread Nicolas Dufresne
Le mercredi 30 janvier 2019 à 12:38 +0900, Tomasz Figa a écrit : > > Yes, unfortunately, GStreamer still rely on G_FMT waiting a minimal > > amount of time of the headers to be processed. This was how things was > > created back in 2011, I could not program GStreamer for the future. If > > we stop

Re: [RFC PATCH 3/5] mm/vma: add support for peer to peer to device vma

2019-01-29 Thread Jason Gunthorpe
On Tue, Jan 29, 2019 at 06:17:43PM -0700, Logan Gunthorpe wrote: > This isn't answering my question at all... I specifically asked what is > backing the VMA when we are *not* using HMM. At least for RDMA what backs the VMA today is non-struct-page BAR memory filled in with io_remap_pfn. And we

Re: [PATCH 3/3] autofs: add ignore mount option

2019-01-29 Thread Al Viro
On Wed, Jan 30, 2019 at 10:44:15AM +0800, Ian Kent wrote: > Al, > > On a different note the above request also raised another > question about statvfs(3) automount behaviour. > > In glibc statvfs(3) uses statfs(2) and translates the return > to a statvfs structure. > > I wasn't aware but

[PATCH 2/2] Revert "mm: slowly shrink slabs with a relatively small number of objects"

2019-01-29 Thread Dave Chinner
From: Dave Chinner This reverts commit 172b06c32b949759fe6313abec514bc4f15014f4. This change changes the agressiveness of shrinker reclaim, causing small cache and low priority reclaim to greatly increase scanning pressure on small caches. As a result, light memory pressure has a

[PATCH 1/2] Revert "mm: don't reclaim inodes with many attached pages"

2019-01-29 Thread Dave Chinner
From: Dave Chinner This reverts commit a76cf1a474d7dbcd9336b5f5afb0162baa142cf0. This change causes serious changes to page cache and inode cache behaviour and balance, resulting in major performance regressions when combining worklaods such as large file copies and kernel compiles.

  1   2   3   4   5   6   7   8   9   10   >