Re: [PATCH v10 03/27] timer: Export next wakeup time of a CPU

2019-01-15 Thread Ulf Hansson
On Fri, 11 Jan 2019 at 12:07, Rafael J. Wysocki wrote: > > On Thursday, November 29, 2018 6:46:36 PM CET Ulf Hansson wrote: > > From: Lina Iyer > > > > Knowing the sleep duration of CPUs, is known to be needed while selecting > > the most energy efficient idle state for a CPU or a group of CPUs.

[PATCH] pwm: Add MediaTek MT8183 display PWM driver support

2019-01-15 Thread Jitao Shi
Use the mtk_pwm_data struction to define different registers and add MT8183 specific register operations, such as MT8183 have commit register, needs to enable double buffer before writing register, and needs to select commit mode and use PWM_PERIOD/PWM_HIGH_WIDTH. Signed-off-by: Jitao Shi ---

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Josh Snyder
On Tue, Jan 15, 2019 at 10:34 PM Dominique Martinet wrote: > > There is a difference with your previous patch though, that used to list no > page in core when it didn't know; this patch lists pages as in core when it > refuses to tell. I don't think that's very important, though. Is there a

Re: [PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region

2019-01-15 Thread Ard Biesheuvel
On Wed, 16 Jan 2019 at 04:37, Yueyi Li wrote: > > OK, thanks. But seems this mail be ignored, do i need re-sent the patch? > > On 2018/12/26 21:49, Ard Biesheuvel wrote: > > On Tue, 25 Dec 2018 at 03:30, Yueyi Li wrote: > >> Hi Ard, > >> > >> > >> On 2018/12/24 17:45, Ard Biesheuvel wrote: > >>>

Re: [PATCH v3] xen: Fix x86 sched_clock() interface for xen

2019-01-15 Thread Juergen Gross
On 16/01/2019 01:24, Hans van Kranenburg wrote: > Hi, > > On 1/14/19 1:44 PM, Juergen Gross wrote: >> Commit f94c8d11699759 ("sched/clock, x86/tsc: Rework the x86 'unstable' >> sched_clock() interface") broke Xen guest time handling across >> migration: >> >> [ 187.249951] Freezing user space

Re: [RFC PATCH] drm/ttm: force cached mappings for system RAM on ARM

2019-01-15 Thread Ard Biesheuvel
On Wed, 16 Jan 2019 at 08:36, Koenig, Christian wrote: > > Am 16.01.19 um 01:33 schrieb Benjamin Herrenschmidt: > > On Tue, 2019-01-15 at 22:31 +1100, Michael Ellerman wrote: > As far as I know Power doesn't really supports un-cached memory at all, > except for a very very old and odd

Re: [PATCH v2] drm/i915: Pass down rc in intel_encoder->compute_config()

2019-01-15 Thread Jani Nikula
On Tue, 15 Jan 2019, Lyude Paul wrote: > Something that I completely missed when implementing the new MST VCPI > atomic helpers is that with those helpers, there's technically a chance > of us having to grab additional modeset locks in ->compute_config() and > furthermore, that means we have the

Re: linux-next: manual merge of the block tree with the fscrypt tree

2019-01-15 Thread Ming Lei
On Tue, Jan 15, 2019 at 08:17:36PM -0700, Jens Axboe wrote: > On 1/15/19 8:13 PM, Ming Lei wrote: > > On Tue, Jan 15, 2019 at 07:55:39PM -0700, Jens Axboe wrote: > >> On 1/15/19 7:25 PM, Stephen Rothwell wrote: > >>> Hi all, > >>> > >>> Today's linux-next merge of the block tree got a conflict in:

Re: [RFC PATCH] drm/ttm: force cached mappings for system RAM on ARM

2019-01-15 Thread Koenig, Christian
Am 16.01.19 um 01:33 schrieb Benjamin Herrenschmidt: > On Tue, 2019-01-15 at 22:31 +1100, Michael Ellerman wrote: As far as I know Power doesn't really supports un-cached memory at all, except for a very very old and odd configuration with AGP. >>> Hopefully Michael/Ben can elaborate

Re: [PATCH v15 5/6] x86/boot: Parse SRAT address from RSDP and store immovable memory

2019-01-15 Thread Kairui Song
On Mon, Jan 7, 2019 at 11:24 AM Chao Fan wrote: > > + > +/* Determine RSDP, based on acpi_os_get_root_pointer(). */ > +static acpi_physical_address get_rsdp_addr(void) > +{ > + acpi_physical_address pa; > + > + pa = get_acpi_rsdp(); > + > + if (!pa) > + pa =

Re: [PATCH] lib/scatterlist: Provide a DMA page iterator

2019-01-15 Thread Koenig, Christian
Am 16.01.19 um 08:09 schrieb Thomas Hellstrom: > On Tue, 2019-01-15 at 21:58 +0100, h...@lst.de wrote: >> On Tue, Jan 15, 2019 at 07:13:11PM +, Koenig, Christian wrote: >>> Thomas is correct that the interface you propose here doesn't work >>> at >>> all for GPUs. >>> >>> The kernel driver is

Re: [PATCH] staging: comedi: Removed not necessary braces for single block

2019-01-15 Thread Jitendra
"interesting" email name you used here :) Please fix up, it has to match the signed-off-by line. I fixed and resent the patch again. --- Jitendra

[PATCH v3] arm64: dts: qcom: sdm845: Expand soc bus address range

2019-01-15 Thread Bjorn Andersson
DMA addresses for devices on the soc bus must be constrained to the 36 address bits that the bus provides. When no IOMMU is present then this is easy--DMA addresses are just physical addresses and physical addresses are (by definition) within the address bits of the bus. When an IOMMU is

Re: [PATCH net-next] mlxsw: spectrum_nve: Use struct_size() in kzalloc()

2019-01-15 Thread Ido Schimmel
On Tue, Jan 15, 2019 at 05:14:29PM -0600, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct

Re: [PATCH] lib/scatterlist: Provide a DMA page iterator

2019-01-15 Thread Thomas Hellstrom
On Tue, 2019-01-15 at 21:58 +0100, h...@lst.de wrote: > On Tue, Jan 15, 2019 at 07:13:11PM +, Koenig, Christian wrote: > > Thomas is correct that the interface you propose here doesn't work > > at > > all for GPUs. > > > > The kernel driver is not informed of flush/sync, but rather just > >

Re: [PATCH V2] mm: Introduce GFP_PGTABLE

2019-01-15 Thread Christophe Leroy
Le 16/01/2019 à 07:21, Anshuman Khandual a écrit : All architectures have been defining their own PGALLOC_GFP as (GFP_KERNEL | __GFP_ZERO) and using it for allocating page table pages. This causes some code duplication which can be easily avoided. GFP_KERNEL allocated and cleared out pages

Re: [PATCH v2 2/2] x86, kexec_file_load: make it work with efi=noruntime or efi=old_map

2019-01-15 Thread Kairui Song
On Wed, Jan 16, 2019 at 7:10 AM Borislav Petkov wrote: > > +#ifdef CONFIG_ACPI > > + /* Setup ACPI RSDP pointer in case EFI is not available in second > > kernel */ > > + if (!acpi_disabled && (!efi_enabled(EFI_RUNTIME_SERVICES) || > > efi_enabled(EFI_OLD_MEMMAP))) { > > +

RE: [PATCH 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-15 Thread Ran Wang
Hi, On 16, 2019 14:48 Ran Wang wrote: > It seems the preface patch (0/2) failed to be accepted by patchwork (could anyone tell me how to generate it properly with some sommand?), I paste its content here for your reference : This to fix USB enumeration compatibility issue found on DWC3 (host

Re: [PATCH v3] memcg: schedule high reclaim for remote memcgs on high_work

2019-01-15 Thread Michal Hocko
On Tue 15-01-19 11:38:23, Shakeel Butt wrote: > On Mon, Jan 14, 2019 at 11:25 PM Michal Hocko wrote: > > > > On Mon 14-01-19 12:18:07, Shakeel Butt wrote: > > > On Sun, Jan 13, 2019 at 10:34 AM Michal Hocko wrote: > > > > > > > > On Fri 11-01-19 14:54:32, Shakeel Butt wrote: > > > > > Hi

Re: [PATCH 4.20 00/57] 4.20.3-stable review

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

Re: [PATCH V2] mm: Introduce GFP_PGTABLE

2019-01-15 Thread Michal Hocko
On Wed 16-01-19 11:51:32, Anshuman Khandual wrote: > All architectures have been defining their own PGALLOC_GFP as (GFP_KERNEL | > __GFP_ZERO) and using it for allocating page table pages. This causes some > code duplication which can be easily avoided. GFP_KERNEL allocated and > cleared out pages

Re: [PATCH V2] mm: Introduce GFP_PGTABLE

2019-01-15 Thread Mike Rapoport
On Wed, Jan 16, 2019 at 11:51:32AM +0530, Anshuman Khandual wrote: > All architectures have been defining their own PGALLOC_GFP as (GFP_KERNEL | > __GFP_ZERO) and using it for allocating page table pages. This causes some > code duplication which can be easily avoided. GFP_KERNEL allocated and >

Re: [PATCH v2 00/15] powerpc/32s: Use BATs/LTLBs for STRICT_KERNEL_RWX

2019-01-15 Thread Christophe Leroy
Le 16/01/2019 à 01:35, Jonathan Neuschäfer a écrit : On Tue, Jan 15, 2019 at 07:51:01AM +0100, Christophe Leroy wrote: Le 15/01/2019 à 01:33, Jonathan Neuschäfer a écrit : [...] I've checked it patch-by-patch now (with STRICT_KERNEL_RWX): - patches 1 and 2 build and boot fine - patches 3

Re: [PATCH] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-15 Thread Nathan Chancellor
On Wed, Jan 16, 2019 at 07:42:02AM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 15, 2019 at 11:03:02PM -0700, Nathan Chancellor wrote: > > When CONFIG_NO_AUTO_INLINE was present in linux-next (which added > > '-fno-inline-functions' to KBUILD_CFLAGS), an allyesconfig build with > > Clang failed

Re: [PATCH -next] binderfs: fix error return code in binderfs_fill_super()

2019-01-15 Thread Greg KH
On Wed, Jan 16, 2019 at 07:28:26AM +0100, Christian Brauner wrote: > On Wed, Jan 16, 2019 at 07:25:46AM +0100, Christian Brauner wrote: > > On Wed, Jan 16, 2019 at 03:01:04AM +, Wei Yongjun wrote: > > > Fix to return a negative error code -ENOMEM from the new_inode() and > > > d_make_root()

[PATCH] mm/page_alloc: check return value of memblock_alloc_node_nopanic()

2019-01-15 Thread Mike Rapoport
There are two early memory allocations that use memblock_alloc_node_nopanic() and do not check its return value. While this happens very early during boot and chances that the allocation will fail are diminishing, it is still worth to have proper checks for the allocation errors. Signed-off-by:

Re: [PATCH v2 2/2] x86, kexec_file_load: make it work with efi=noruntime or efi=old_map

2019-01-15 Thread Dave Young
On 01/16/19 at 01:09pm, Kairui Song wrote: > On Wed, Jan 16, 2019 at 11:32 AM Dave Young wrote: > > > > On 01/16/19 at 12:10am, Borislav Petkov wrote: > > > On Tue, Jan 15, 2019 at 05:58:34PM +0800, Kairui Song wrote: > > > > When efi=noruntime or efi=oldmap is used, EFI services won't be > > >

[PATCH v2] arm64: dts: qcom: sdm845: Expand soc bus address range

2019-01-15 Thread Bjorn Andersson
DMA addresses for devices on the soc bus must be constrained to the 36 address bits that the bus provides. When no IOMMU is present then this is easy--DMA addresses are just physical addresses and physical addresses are (by definition) within the address bits of the bus. When an IOMMU is

[PATCH v5] staging: Mediatek: Use individual config flags in Makefile

2019-01-15 Thread George Hilliard
These drivers can be useful on other MT76xx SoCs, which have compatible peripherals. The drivers were selectable in Kconfig, but they were quietly excluded from the build because the SOC_MT7621 chip was not selected. So, make the Makefiles use the same flags as Kconfig for these drivers.

[PATCH 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-15 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VUBS (or its control signal) will on immediately on related Root Hub ports. Then the VUBS will be de-asserted for a little while during xhci reset (conducted by xhci driver) for a little while and back to normal. This VBUS glitch

[PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-01-15 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VUBS (or its control signal) will be turned on immediately on related Root Hub ports. Then, the VUBS is turned off for a little while(15us) when do xhci reset (conducted by xhci driver) and back to normal finally, we can observed a

[PATCH 0/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-15 Thread Ran Wang
This to fix USB enumeration compatibility issue found on DWC3 (host mode) IP only. Some pre-discussion mails can be referred from: https://lkml.org/lkml/2018/11/23/387 https://lkml.org/lkml/2018/11/22/683 As to the workaround, I know programming xhci register in DWC3 dirver (probe function) is

RE: [RESEND] arm64: defconfig: Add i.MX8MQ boot necessary configs

2019-01-15 Thread Aisheng Dong
Hi Abel, > -Original Message- > From: Abel Vesa > Sent: Saturday, January 12, 2019 6:05 PM > Subject: [RESEND] arm64: defconfig: Add i.MX8MQ boot necessary configs > > Enable all the i.MX8MQ configs necessary to boot. > > Signed-off-by: Abel Vesa Would you rebase and resend with GPCV2

Re: [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-15 Thread Oleksandr Andrushchenko
On 1/16/19 8:36 AM, Christoph Hellwig wrote: > On Wed, Jan 16, 2019 at 07:30:02AM +0100, Gerd Hoffmann wrote: >>Hi, >> >>> + if (!dma_map_sg(dev->dev, xen_obj->sgt->sgl, xen_obj->sgt->nents, >>> + DMA_BIDIRECTIONAL)) { >>> + ret = -EFAULT; >>> + goto

Re: [PATCH v12 00/16] tracing: Hist trigger snapshot and onchange additions

2019-01-15 Thread Namhyung Kim
Hi Tom, On Tue, Jan 15, 2019 at 04:05:44PM -0600, Tom Zanussi wrote: > From: Tom Zanussi > > Hi, > > This is v12 of the hist trigger snapshot and onchange additions > patchset. > > It addresses some comments from Namhyung regarding the 'tracing: Add > alternative synthetic event trace action

Re: [PATCH] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-15 Thread Greg Kroah-Hartman
On Tue, Jan 15, 2019 at 11:03:02PM -0700, Nathan Chancellor wrote: > When CONFIG_NO_AUTO_INLINE was present in linux-next (which added > '-fno-inline-functions' to KBUILD_CFLAGS), an allyesconfig build with > Clang failed at the modpost stage: > > ERROR: "is_broadcast_mac_addr"

linux-next: Tree for Jan 16

2019-01-15 Thread Stephen Rothwell
Hi all, Changes since 20190115: The vfs tree still had its build failure for which I applied a patch. The drm-misc tree gained conflicts against the drm-intel tree. The mali-dp tree still had its failure for which I applied a merge fix patch. The block tree gained a conflict against

Re: [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-15 Thread Oleksandr Andrushchenko
On 1/16/19 8:30 AM, Gerd Hoffmann wrote: >Hi, > >> +if (!dma_map_sg(dev->dev, xen_obj->sgt->sgl, xen_obj->sgt->nents, >> +DMA_BIDIRECTIONAL)) { >> +ret = -EFAULT; >> +goto fail_free_sgt; >> +} > Hmm, so it seems the arm guys could not come up

Re: [PATCH 4.20 14/57] CIFS: Do not hide EINTR after sending network packets

2019-01-15 Thread Greg Kroah-Hartman
On Tue, Jan 15, 2019 at 07:22:38PM +, Pavel Shilovskiy wrote: > Hi Greg, > > I am wondering if it is possible to include exact stable kernel > version (e.g. 4.20.3 in this case) in the email. This would help to > quickly understand which kernel version should be installed in order > to get

Re: [PATCH 3/9] drm/mediatek: using different flags of clk for HDMI phy

2019-01-15 Thread CK Hu
Hi, Chunhui: On Fri, 2019-01-04 at 15:03 +0800, chunhui dai wrote: > The parent rate of hdmi phy had set by DPI driver. The difference of DPI driver in MT8173 and MT2701 is static const struct mtk_dpi_conf mt8173_conf = { .cal_factor = mt8173_calculate_factor, .reg_h_fre_con =

Re: [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-15 Thread Christoph Hellwig
On Wed, Jan 16, 2019 at 07:30:02AM +0100, Gerd Hoffmann wrote: > Hi, > > > + if (!dma_map_sg(dev->dev, xen_obj->sgt->sgl, xen_obj->sgt->nents, > > + DMA_BIDIRECTIONAL)) { > > + ret = -EFAULT; > > + goto fail_free_sgt; > > + } > > Hmm, so it seems the

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Dominique Martinet
Linus Torvalds wrote on Wed, Jan 16, 2019: > Anybody willing to test the above patch instead? And replace the > >|| capable(CAP_SYS_ADMIN) > > check with something like > >|| inode_permission(inode, MAY_WRITE) == 0 > > instead? > > (This is obviously after you've reverted the "only

Re: linux-next: Fixes tag needs some work in the nfs-anna tree

2019-01-15 Thread Takashi Iwai
On Wed, 16 Jan 2019 00:38:11 +0100, Paul Gortmaker wrote: > > [Re: linux-next: Fixes tag needs some work in the nfs-anna tree] On > 15/01/2019 (Tue 23:12) Takashi Iwai wrote: > > > On Tue, 15 Jan 2019 22:41:21 +0100, > > Chuck Lever wrote: > > > > > > Hi Stephen- > > > > > > On Jan 15, 2019,

Re: [PATCH v2] dt-bindings: net: dsa: ksz9477: fix indentation for switch spi bindings

2019-01-15 Thread David Miller
From: Sergio Paracuellos Date: Sun, 13 Jan 2019 09:56:48 +0100 > Switch bindings for spi managed mode are using spaces instead of tabs. > Fix them to get a file with a proper kernel indentation style. > > Reviewed-by: Florian Fainelli > Signed-off-by: Sergio Paracuellos > --- > Changes in v2:

Re: [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-15 Thread Gerd Hoffmann
Hi, > + if (!dma_map_sg(dev->dev, xen_obj->sgt->sgl, xen_obj->sgt->nents, > + DMA_BIDIRECTIONAL)) { > + ret = -EFAULT; > + goto fail_free_sgt; > + } Hmm, so it seems the arm guys could not come up with a suggestion how to solve that one in a

Re: [PATCH net] net: phy: meson-gxl: Use the genphy_soft_reset callback

2019-01-15 Thread David Miller
From: Timotej Lazar Date: Sun, 13 Jan 2019 01:22:55 +0100 > Since the referenced commit, Ethernet fails to come up at boot on the > board meson-gxl-s905x-libretech-cc. Fix this by re-enabling the > genphy_soft_reset callback for the Amlogic Meson GXL PHY driver. > > Fixes: 6e2d85ec0559 ("net:

Re: [PATCH -next] binderfs: fix error return code in binderfs_fill_super()

2019-01-15 Thread Christian Brauner
On Wed, Jan 16, 2019 at 07:25:46AM +0100, Christian Brauner wrote: > On Wed, Jan 16, 2019 at 03:01:04AM +, Wei Yongjun wrote: > > Fix to return a negative error code -ENOMEM from the new_inode() and > > d_make_root() error handling cases instead of 0, as done elsewhere in > > this function. >

Re: [PATCH -next] binderfs: fix error return code in binderfs_fill_super()

2019-01-15 Thread Christian Brauner
On Wed, Jan 16, 2019 at 03:01:04AM +, Wei Yongjun wrote: > Fix to return a negative error code -ENOMEM from the new_inode() and > d_make_root() error handling cases instead of 0, as done elsewhere in > this function. > > Fixes: 3ad20fe393b3 ("binder: implement binderfs") > Signed-off-by: Wei

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2019-01-15 Thread Frederic Weisbecker
On Fri, Dec 28, 2018 at 12:11:12AM +0100, Heiner Kallweit wrote: > > # tracer: nop > # > # _-=> irqs-off > # / _=> need-resched > #| / _---=> hardirq/softirq > #|| / _--=>

[PATCH V2] mm: Introduce GFP_PGTABLE

2019-01-15 Thread Anshuman Khandual
All architectures have been defining their own PGALLOC_GFP as (GFP_KERNEL | __GFP_ZERO) and using it for allocating page table pages. This causes some code duplication which can be easily avoided. GFP_KERNEL allocated and cleared out pages (__GFP_ZERO) are required for page tables on any given

Re: [PATCH v7 2/5] mtd: spi-nor: add octal read flag for flash mt35xu512aba

2019-01-15 Thread Tudor.Ambarus
On 01/15/2019 12:05 PM, Yogesh Narayan Gaur wrote: > Add octal read flag for flash mt35xu512aba. > This flash, mt35xu512aba, is only complaint to SFDP JESD216B and does > not seem to support newer JESD216C standard that provides auto > detection of Octal mode capabilities and opcodes. Therefore,

Re: [alsa-devel] [PATCH v3 3/3] ASoC: cros_ec_codec: Add codec driver for Cros EC

2019-01-15 Thread Guenter Roeck
On Wed, Dec 26, 2018 at 03:03:19PM +0800, Cheng-Yi Chiang wrote: > Add a codec driver to control ChromeOS EC codec. > > Use EC Host command to enable/disable I2S recording and control other > configurations. > > Signed-off-by: Cheng-Yi Chiang > --- > Changes in v3: > 1.remove cros_ec_codec.h. >

[PATCH] mtd: spinand: Add support for all Toshiba Memory products

2019-01-15 Thread Yoshio Furuyama
Add device table for Toshiba Memory products. Also, generalize OOB layout structure and function names. Signed-off-by: Yoshio Furuyama --- drivers/mtd/nand/spi/toshiba.c | 79 +--- 1 file changed, 65 insertions(+), 14 deletions(-) diff --git

Re: [PATCH] arm64: dts: sdm845: Add lpasscc node

2019-01-15 Thread Bjorn Andersson
On Wed 05 Dec 00:00 PST 2018, Taniya Das wrote: > This adds the low pass audio clock controller node to sdm845 based on > the example in the bindings. > Applying this causes my MTP to reboot as clk_disable_unused() tries to disable "lpass_qdsp6ss_core_clk". Am I missing something? Regards,

Re: [PATCH v2 3/3] mtd: spi-nor: mtk-quadspi: rename config to a common one

2019-01-15 Thread Tudor.Ambarus
On 01/16/2019 04:12 AM, Ryder Lee wrote: > The quadspi is a generic communication interface which could be shared > with other MediaTek SoCs. Hence rename it to a common one. > > Signed-off-by: Ryder Lee Reviewed-by: Tudor Ambarus > --- > Changes since v2: > -rebase to v5.0-rc1. > -sort the

Re: [PATCH v2 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to spi_nor_hwcaps mask

2019-01-15 Thread Tudor.Ambarus
On 01/16/2019 04:12 AM, Ryder Lee wrote: > From: Guochun Mao > > SNOR_HWCAPS_READ should be supported by this controller, so add this > flag to spi_nor_hwcaps mask. > > Signed-off-by: Guochun Mao > Signed-off-by: Ryder Lee Reviewed-by: Tudor Ambarus > --- > Changes since v2: Revise

[PATCH] staging: rtl8723bs: Fix build error with Clang when inlining is disabled

2019-01-15 Thread Nathan Chancellor
When CONFIG_NO_AUTO_INLINE was present in linux-next (which added '-fno-inline-functions' to KBUILD_CFLAGS), an allyesconfig build with Clang failed at the modpost stage: ERROR: "is_broadcast_mac_addr" [drivers/staging/rtl8723bs/r8723bs.ko] undefined! ERROR: "is_zero_mac_addr"

Re: [GIT PULL] SELinux fixes for v5.0 (#1)

2019-01-15 Thread pr-tracker-bot
The pull request you sent on Tue, 15 Jan 2019 17:24:58 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git > tags/selinux-pr-20190115 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/47bfa6d9dc8c060bf56554a465c9031e286d2f80 Thank you! --

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Linus Torvalds
On Wed, Jan 16, 2019 at 5:46 PM Dominique Martinet wrote: > > "Being owner or has cap" (whichever cap) is probably OK. > On the other hand, writeability check makes more sense in general - > could we somehow check if the user has write access to the file instead > of checking if it currently is

Re: [PATCH v11 0/9] Add power domain driver for corners on msm8996/sdm845

2019-01-15 Thread Bjorn Andersson
On Wed 09 Jan 22:33 PST 2019, Viresh Kumar wrote: > +Rafael > > On 10-01-19, 09:32, Rajendra Nayak wrote: > > Changes in v11: > > * Updated opp-level binding description based on feedback > > from Viresh > > * Other minor fixups in 'PATCH 2/9' > > >

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Linus Torvalds
On Wed, Jan 16, 2019 at 4:54 PM Linus Torvalds wrote: > > On Wed, Jan 16, 2019 at 11:45 AM Dave Chinner wrote: > > > > I'm assuming that you can invalidate the page cache reliably by a > > means that does not repeated require probing to detect invalidation > > has occurred. I've mentioned one

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Dominique Martinet
Linus Torvalds wrote on Wed, Jan 16, 2019: > *Very* few people want to run their databases as root. In the case of happycache, this isn't the database doing the dump/restore, but a separate process that could have the cap - it's better if we can do without though, and from his readme he runs as

Re: [PATCH -next] LSM: Make some functions static

2019-01-15 Thread YueHaibing
Pls ignore this duplicated patch. On 2019/1/16 13:33, YueHaibing wrote: > Fix the follow sparse warning: > > security/security.c:533:5: warning: symbol 'lsm_task_alloc' was not declared. > Should it be static? > security/security.c:554:5: warning: symbol 'lsm_ipc_alloc' was not declared. >

[PATCH -next] LSM: Make some functions static

2019-01-15 Thread YueHaibing
Fix the follow sparse warning: security/security.c:533:5: warning: symbol 'lsm_task_alloc' was not declared. Should it be static? security/security.c:554:5: warning: symbol 'lsm_ipc_alloc' was not declared. Should it be static? security/security.c:575:5: warning: symbol 'lsm_msg_msg_alloc' was

[PATCH -next] soc: bcm: bcm2835-pm: Make local symbol static

2019-01-15 Thread Wei Yongjun
Fixes the following sparse warning: drivers/soc/bcm/bcm2835-power.c:556:32: warning: symbol 'bcm2835_reset_ops' was not declared. Should it be static? Fixes: 670c672608a1 ("soc: bcm: bcm2835-pm: Add support for power domains under a new binding.") Signed-off-by: Wei Yongjun ---

Re: [PATCH net] Revert "rxrpc: Allow failed client calls to be retried"

2019-01-15 Thread David Miller
From: David Howells Date: Thu, 10 Jan 2019 16:59:13 + > The changes introduced to allow rxrpc calls to be retried creates an issue > when it comes to refcounting afs_call structs. The problem is that when > rxrpc_send_data() queues the last packet for an asynchronous call, the > following

Re: [PATCH -next] drm/vmwgfx: Remove set but not used variable 'srf'

2019-01-15 Thread Thomas Hellstrom
Yue, Thanks, Reviewed-by: Thomas Hellstrom Will include in the next -next pull. /Thomas On Wed, 2019-01-16 at 01:55 +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/vmwgfx/vmwgfx_surface.c: In function > 'vmw_hw_surface_destroy': >

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Linus Torvalds
On Wed, Jan 16, 2019 at 5:25 PM Andy Lutomirski wrote: > > Something like CAP_DAC_READ_SEARCH might not be crazy. I agree that it would work. In fact' it's what Jiri's patch basically did. Except Jiri used CAP_SYS_ADMIN instead. But that then basically limits it to root (or root-like with

[PATCH] ipmi: fix use-after-free of user->release_barrier.rda

2019-01-15 Thread Yang Yingliang
When we do the following test, we got oops in ipmi_msghandler driver while((1)) do service ipmievd restart & service ipmievd restart done --- [ 294.230186] Unable to handle kernel paging request at virtual address

[PATCH] m68k: Add -ffreestanding to CFLAGS

2019-01-15 Thread Finn Thain
This patch fixes a build failure when using GCC 8.1: /usr/bin/ld: block/partitions/ldm.o: in function `ldm_parse_tocblock': block/partitions/ldm.c:153: undefined reference to `strcmp' This is caused by a new optimization which effectively replaces a strncmp() call with a strcmp() call. This

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Andy Lutomirski
> On Jan 15, 2019, at 9:00 PM, Linus Torvalds > wrote: > >> On Wed, Jan 16, 2019 at 12:42 PM Josh Snyder wrote: >> >> For Netflix, losing accurate information from the mincore syscall would >> lengthen database cluster maintenance operations from days to months. We >> rely on

Re: [PATCH v2 2/2] x86, kexec_file_load: make it work with efi=noruntime or efi=old_map

2019-01-15 Thread Kairui Song
On Wed, Jan 16, 2019 at 11:32 AM Dave Young wrote: > > On 01/16/19 at 12:10am, Borislav Petkov wrote: > > On Tue, Jan 15, 2019 at 05:58:34PM +0800, Kairui Song wrote: > > > When efi=noruntime or efi=oldmap is used, EFI services won't be available > > > in the second kernel, therefore the second

[PATCH 0/3] Remove self-implemented queue of Mediatek cmdq

2019-01-15 Thread CK Hu
Mediatek mailbox controller implement its own data queue rather than using mailbox framework's queue. This series let the framework provide abort function and Mediatek mailbox controller implement the abort-function, so it could use framework's queue. The reason that Mediatek mailbox controller

[PATCH 2/3] mailbox: mediatek: Implement abort_data function.

2019-01-15 Thread CK Hu
For client driver which need to reorganize the command buffer, it could use this function to abort the sent but not executed command buffer. Signed-off-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 40 ++ 1 file changed, 40 insertions(+) diff --git

[PATCH 3/3] mailbox: mediatek: Remove busylist

2019-01-15 Thread CK Hu
After implement abort_data, controller need not to implement its own queue. Remove busylist because it's useless. Signed-off-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 255 - 1 file changed, 29 insertions(+), 226 deletions(-) diff --git

[PATCH 1/3] mailbox: Add ability for clients to abort data in channel

2019-01-15 Thread CK Hu
This patch supplies a new framework API, mbox_abort_channel(), and a new controller interface, abort_data(). For some client's application, it need to clean up the data in channel but keep the channel so it could send data to channel later. Signed-off-by: CK Hu --- drivers/mailbox/mailbox.c

[PATCH v2 1/2] gpio: sprd: Fix the incorrect data register

2019-01-15 Thread Baolin Wang
From: Neo Hou Since differnt type EICs have its own data register to read, thus fix the incorrect data register. Fixes: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support") Cc: Signed-off-by: Neo Hou Signed-off-by: Baolin Wang --- Changes from v1: - Add fix tag and CC stable. ---

[PATCH v2 2/2] gpio: sprd: Fix incorrect irq type setting for the async EIC

2019-01-15 Thread Baolin Wang
From: Neo Hou When setting async EIC as IRQ_TYPE_EDGE_BOTH type, we missed to set the SPRD_EIC_ASYNC_INTMODE register to 0, which means detecting edge signals. Thus this patch fixes the issue. Fixes: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support") Cc: Signed-off-by: Neo Hou

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Linus Torvalds
On Wed, Jan 16, 2019 at 12:42 PM Josh Snyder wrote: > > For Netflix, losing accurate information from the mincore syscall would > lengthen database cluster maintenance operations from days to months. We > rely on cross-process mincore to migrate the contents of a page cache from > machine to

Re: [PATCH v5 4/6] usb: gadget: add mechanism to specify an explicit status stage

2019-01-15 Thread Paul Elder
On Mon, Jan 14, 2019 at 10:24:44AM -0500, Alan Stern wrote: > On Mon, 14 Jan 2019, Paul Elder wrote: > > > > > > Can you check your uvc > > > > > changes using dummy_hcd with the patch below? > > > > > > > > I'm not sure what to make of the test results. I get the same results > > > > with or

Re: [PATCH] Input: synaptics - add PNP IDs for Dell XPS models to forcepad

2019-01-15 Thread Kim Phillips
On 1/15/19 2:57 AM, Benjamin Tissoires wrote: On Mon, Jan 14, 2019 at 7:40 PM Dmitry Torokhov wrote: On Sat, Jan 12, 2019 at 04:04:36PM -0600, Kim Phillips wrote: On 1/11/19 7:40 PM, Dmitry Torokhov wrote: Hi Kim, Hi Dmitry, On Fri, Jan 11, 2019 at 02:54:30PM -0600, Kim Phillips wrote:

Re: [PATCH v12 01/16] tracing: Use str_has_prefix() in synth_event_create()

2019-01-15 Thread Joe Perches
On Tue, 2019-01-15 at 16:05 -0600, Tom Zanussi wrote: > Since we now have a str_has_prefix() that returns the length, we can > use that instead of explicitly calculating it. [] > diff --git a/kernel/trace/trace_events_hist.c > b/kernel/trace/trace_events_hist.c [] > @@ -1200,8 +1200,7 @@ static

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-15 Thread Linus Torvalds
On Wed, Jan 16, 2019 at 11:45 AM Dave Chinner wrote: > > I'm assuming that you can invalidate the page cache reliably by a > means that does not repeated require probing to detect invalidation > has occurred. I've mentioned one method in this discussion > already... Yes. And it was made clear to

Re: [PATCH v3 2/3] drivers: platform: goldfish: goldfish_address_space: add a driver

2019-01-15 Thread Roman Kiryanov
> > Do you have a pointer to the QEMU commit that matches up with the device > > that this driver is supposed to be supporting? > > The device code is here: > > https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/hw/pci/goldfish_address_space.c Hi Greg, do you need anything

Re: [PATCH v4] staging: Mediatek: Use individual config flags in Makefile

2019-01-15 Thread kbuild test robot
Hi George, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] [cannot apply to v5.0-rc2 next-20190115] [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: [RFC] perf tools: Filter out hidden symbols from labels

2019-01-15 Thread Namhyung Kim
Hi, On Tue, Jan 15, 2019 at 01:35:40PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 15, 2019 at 04:13:16PM +, Nick Clifton escreveu: > > Hi Jiri, > > > > > When perf is built with annobin plugin (RHEL8 build) extra symbols > > > are added to its binary: > > > > A bit of background

Re: [PATCH 0/3] doc: networking: integrate scaling document into doc tree

2019-01-15 Thread David Miller
From: Otto Sabart Date: Wed, 9 Jan 2019 20:57:01 +0100 > These patches integrate scaling document into documentation tree. > > There are no semantic changes. Jon, I assume this is another series you will take in. Again, I expect no major conflicts with the networking tree.

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2019-01-15 Thread Dave Chinner
On Tue, Jan 15, 2019 at 09:23:12PM -0500, Jerome Glisse wrote: > On Tue, Jan 15, 2019 at 06:01:09PM -0800, Dan Williams wrote: > > On Tue, Jan 15, 2019 at 5:56 PM Jerome Glisse wrote: > > > On Tue, Jan 15, 2019 at 04:44:41PM -0800, John Hubbard wrote: > > [..] > > > To make it clear. > > > > > >

Re: [PATCH] usb: dwc3: gadget: Fail request submission if it was already queued

2019-01-15 Thread Manu Gautam
Hi, On 1/11/2019 2:51 PM, Felipe Balbi wrote: > Hi, > > Manu Gautam writes: >>> Manu Gautam writes: If a function driver tries to re-submit an already queued request, it can results in corruption of pending/started request lists. Catch such conditions and fail the request

RE: [PATCH] USB: Fix configuration selection issues introduced in v4.20.0

2019-01-15 Thread Gopal, Saranya
Hi Yakimov, As per UAC3 configuration, the first configuration will always be backward-compatible. So, there cannot be any UAC3-compatible device which has first configuration as UAC3. And secondly, the commit ff2a8c532c14 does not break the pre-existing logic. I also thought so much about

[PATCH] iommu/amd: Fix IOMMU page flush when detach all devices from a domain

2019-01-15 Thread Suthikulpanit, Suravee
From: Suravee Suthikulpanit When a VM is terminated, the VFIO driver detaches all pass-through devices from VFIO domain by clearing domain id and page table root pointer from each device table entry (DTE), and then invalidates the DTE. Then, the VFIO driver unmap pages and invalidate IOMMU

[PATCH] iommu/amd: Mark translation invalid during device detach

2019-01-15 Thread Suthikulpanit, Suravee
From: Suravee Suthikulpanit When a device switches domain, IOMMU driver detach device from the old domain, and attach device to the new domain. During this period the host table root pointer is not set, which means DMA translation should be marked as invalid (clear TV bit). So, clear the TV bit

Re: [PATCH v2 2/3] dt-bindings: arm: fsl: Add devicetree binding for Oxalis

2019-01-15 Thread Rob Herring
On Tue, Jan 15, 2019 at 8:21 PM Shawn Guo wrote: > > On Mon, Jan 14, 2019 at 12:02:47PM -0600, Rob Herring wrote: > > On Mon, Jan 14, 2019 at 4:21 AM Manivannan Sadhasivam > > wrote: > > > > > > Add devicetree binding for Oxalis board in JSON format. While adding > > > that, let's fix the

Re: [RFC v2 1/6] dt-bindings: Add a binding for Mediatek SCP

2019-01-15 Thread Peter Shih
On Wed, Jan 16, 2019 at 4:34 AM Rob Herring wrote: > > On Tue, Jan 08, 2019 at 01:26:01PM +0800, Pi-Hsun Shih wrote: > > From: Erin Lo > > > > Add a DT binding documentation of SCP for the > > MT8183 SoC from Mediatek. > > > > Signed-off-by: Erin Lo > > --- > > Changes from v1: > > - no change

RE: [PATCHv4 1/4] dt-bindings: add DT binding for the layerscape PCIe controller with EP mode

2019-01-15 Thread Xiaowei Bao
-Original Message- From: Rob Herring Sent: 2019年1月11日 22:31 To: Xiaowei Bao Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; kis...@ti.com; lorenzo.pieral...@arm.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai Hu ;

Re: [RFC PATCH 0/4] watchdog: hpwdt: Fix NMI-related behaviour when CONFIG_HPWDT_NMI_DECODING is enabled

2019-01-15 Thread Jerry Hoemann
On Mon, Jan 14, 2019 at 07:36:13AM +0500, Ivan Mironov wrote: > Hi, > > I found out that hpwdt alters NMI behaviour unexpectedly if compiled > with enabled CONFIG_HPWDT_NMI_DECODING: > > * System starts to panic on any NMI with misleading message. hpwdt doesn't start to panic on any NMI. It

Re: [PATCH v2] plugin python: Adjust the handling after PyRun_String() failed

2019-01-15 Thread Steven Rostedt
On Thu, 27 Apr 2017 11:55:58 +0900 Taeung Song wrote: > Even though PyRun_String() failed, > just 0 will be returned but we need to return -1 > that means error status, so fix it. Ug, I just noticed this patch floating in the flood of my INBOX. I just applied it, and will be pushing it out

Re: [RFC PATCH 4/4] watchdog: hpwdt: Make panic behaviour configurable

2019-01-15 Thread Jerry Hoemann
On Mon, Jan 14, 2019 at 07:36:17AM +0500, Ivan Mironov wrote: > This adds an option to not panic on NMI even if it was caused by iLO. > > Signed-off-by: Ivan Mironov > --- > drivers/watchdog/hpwdt.c | 19 --- > 1 file changed, 16 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region

2019-01-15 Thread Yueyi Li
OK, thanks. But seems this mail be ignored, do i need re-sent the patch? On 2018/12/26 21:49, Ard Biesheuvel wrote: > On Tue, 25 Dec 2018 at 03:30, Yueyi Li wrote: >> Hi Ard, >> >> >> On 2018/12/24 17:45, Ard Biesheuvel wrote: >>> Does the following change fix your issue as well? >>> >>> index

Re: [PATCH v2 2/2] x86, kexec_file_load: make it work with efi=noruntime or efi=old_map

2019-01-15 Thread Dave Young
On 01/16/19 at 12:10am, Borislav Petkov wrote: > On Tue, Jan 15, 2019 at 05:58:34PM +0800, Kairui Song wrote: > > When efi=noruntime or efi=oldmap is used, EFI services won't be available > > in the second kernel, therefore the second kernel will not be able to get > > the ACPI RSDP address from

  1   2   3   4   5   6   7   8   9   10   >