Re: [bugreport] kernel 5.2 pblk bad header/extent: invalid extent entries

2019-05-27 Thread Mikhail Gavrilov
On Mon, 27 May 2019 at 21:16, Mikhail Gavrilov wrote: > > I am bisected issue. I hope it help understand what is happened on my > computer. > > $ git bisect log > git bisect start > # good: [e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd] Linux 5.1 > git bisect good

[RFCv1 03/12] media: mtk-vcodec: constify formats

2019-05-27 Thread Alexandre Courbot
Formats are read-only internal memory structures, so make them const. Signed-off-by: Alexandre Courbot --- .../platform/mtk-vcodec/mtk_vcodec_dec.c | 19 ++- .../platform/mtk-vcodec/mtk_vcodec_drv.h | 2 +- .../platform/mtk-vcodec/mtk_vcodec_enc.c | 19

[RFCv1 08/12] media: mtk-vcodec: add SCP firmware ops

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Add support for communicating with the SCP firmware, which will be used by MT8183. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 3

Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-27 Thread Christoph Hellwig
On Thu, May 23, 2019 at 09:07:55AM +0200, Greg KH wrote: > I have no objection for you just taking this whole series as-is, no need > to worry about merge conflicts with the USB tree, I doubt anything will > be touching this area of code anytime soon. > > So if you want to take it now, feel free

[RFCv1 12/12] media: mtk-vcodec: enable MT8183 decoder

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Now that all the supporting blocks are present, enable decoder for MT8183. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] Change-Id: I5696b186fae16f12b97745247331732beb1192e2 ---

[RFCv1 06/12] media: mtk-vcodec: move stateful ops into their own file

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong We are planning to add support for stateless formats to this driver. Part of the driver will be shared between stateful and stateless formats, but a few ops need to be specialized for both. Extract the stateful part of the driver and move it into its own file, accessible

[RFCv1 09/12] media: mtk-vcodec: vdec: support stateless API

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Support the stateless codec API that will be used by MT8183. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- drivers/media/platform/mtk-vcodec/Makefile| 2 +

[RFCv1 11/12] media: mtk-vcodec: vdec: add media device if using stateless api

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong The stateless API requires a media device for issuing requests. Add one if it turns out we are using it. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] ---

[RFCv1 10/12] media: mtk-vcodec: vdec: support stateless H.264 decoding

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Add the firmware interface allowing to decode H.264 in a stateless manner. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- .../mtk-vcodec/vdec/vdec_h264_req_if.c| 533

[RFCv1 05/12] media: mtk-vcodec: support single-buffer frames

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong MT8183 will use a multi-planar format backed by a single buffer. Adapt the existing code to be able to handle such frames instead of assuming each frame is backed by two buffers. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot

[RFCv1 04/12] media: mtk-vcodec: fix copyright indent

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Minor identation fix for copyright notice in a few source files. Signed-off-by: Yunfei Dong [acourbot: refactor, cleanup and split] Signed-off-by: Alexandre Courbot --- .../platform/mtk-vcodec/mtk_vcodec_drv.h | 26 +--

[RFCv1 01/12] media: mtk-vcodec: avoid unneeded pointer-to-long conversions

2019-05-27 Thread Alexandre Courbot
The interface used to communicate with the firmware casts pointers into unsigned longs and back again in order to store private references, all of this for pointers that remain purely in the kernel. Replace these unsigned longs with void pointers to make the code a bit sturdier and easier to

[RFCv1 07/12] media: mtk-vcodec: abstract firmware interface

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong MT8183's codec firwmare is run by a different remote processor from MT8173. While the firmware interface is basically the same, the way to invoke it differs. Abstract all firmware calls under a layer that will allow us to handle both firmware types transparently.

[RFCv1 02/12] media: mtk-vcodec: remove unneeded proxy functions

2019-05-27 Thread Alexandre Courbot
We were getting the codec interface through a proxy function that does not bring anything compared to just accessing the interface definition directly, so just do that. Also make the decoder interfaces const. Signed-off-by: Alexandre Courbot --- .../media/platform/mtk-vcodec/vdec/vdec_h264_if.c

[RFCv1 00/12] media: mtk-vcodec: support for MT8183 decoder

2019-05-27 Thread Alexandre Courbot
This series is a refactoring/split of the initial patch for MT8183 codec support that was posted for Chrome OS [1] in order to make it upstreamable. The line count has been significantly reduced compared to the initial patch, although support for the MT8183 encoder is not here yet to limit the

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Shawn Anastasio
On 5/28/19 12:36 AM, Oliver wrote: On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: Introduce a new pcibios function pcibios_ignore_alignment_request which allows the PCI core to defer to platform-specific code to determine whether or not to ignore alignment requests for PCI

KASAN: invalid-free in tomoyo_realpath_from_path

2019-05-27 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f4aa8012 cxgb4: Make t4_get_tp_e2c_map static git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=173328baa0 kernel config: https://syzkaller.appspot.com/x/.config?x=d137eb988ffd93c3 dashboard link:

Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE

2019-05-27 Thread Michael Ellerman
Christophe Leroy writes: > Le 23/05/2019 à 09:00, Christophe Leroy a écrit : > > [...] > >>> arch/powerpc/kernel/head_fsl_booke.o: In function `SystemCall': >>> arch/powerpc/kernel/head_fsl_booke.S:416: undefined reference to >>> `kvmppc_handler_BOOKE_INTERRUPT_SYSCALL_SPRN_SRR1' >>>

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Oliver
On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: > > Introduce a new pcibios function pcibios_ignore_alignment_request > which allows the PCI core to defer to platform-specific code to > determine whether or not to ignore alignment requests for PCI resources. > > The existing behavior is to

Re: [PATCH 1/4] arm64: module: create module allocations without exec permissions

2019-05-27 Thread Anshuman Khandual
On 05/23/2019 03:52 PM, Ard Biesheuvel wrote: > Now that the core code manages the executable permissions of code > regions of modules explicitly, it is no longer necessary to create I guess the permission transition for various module sections happen through module_enable_[ro|nx]() after

Re: [PATCH] userfaultfd: selftest: fix compiler warning

2019-05-27 Thread Mike Rapoport
On Mon, May 27, 2019 at 03:18:59PM +, Alakesh Haloi wrote: > Fixes following compiler warning > > userfaultfd.c: In function ‘usage’: > userfaultfd.c:126:2: warning: format not a string literal and no format > arguments [-Wformat-security] > fprintf(stderr, examples); > >

Re: [PATCH 0/5] firmware: Add support for loading compressed files

2019-05-27 Thread Takashi Iwai
On Mon, 20 May 2019 11:26:42 +0200, Takashi Iwai wrote: > > Hi, > > this is a patch set to add the support for loading compressed firmware > files. > > The primary motivation is to reduce the storage size; e.g. currently > the amount of /lib/firmware on my machine counts up to 419MB, and this >

Re: MIPS r4k cache operations with SMP enabled

2019-05-27 Thread Chris Packham
On 28/05/19 2:52 PM, Chris Packham wrote: > Hi, > > I'm trying to port a fairly old Broadcom integrated chip (BCM6818) to > the latest Linux kernel using the mips/bmips support. > > The chip has a BMIPS4355 core. This has two "thread processors" (cpu > cores) with separate I-caches but a shared

Re: [PATCH v4 00/30] coresight: Support for ACPI bindings

2019-05-27 Thread Leo Yan
Hi Suzuki, On Wed, May 22, 2019 at 11:34:33AM +0100, Suzuki K Poulose wrote: > This series adds the support for CoreSight devices on ACPI based > platforms. The device connections are encoded as _DSD graph property[0], > with CoreSight specific extensions to indicate the direction of data > flow

Re: [PATCH net 4/4] net/udpgso_bench_tx: audit error queue

2019-05-27 Thread Fred Klassen
> On May 27, 2019, at 6:15 PM, Willem de Bruijn > wrote: >> I wanted to discuss whether or not to attach a buffer to the >> recvmsg(fd, , MSG_ERRQUEUE). Without it, I have >> MSG_TRUNC errors in my msg_flags. Either I have to add >> a buffer, or ignore that error flag. > > Either sounds

[PATCH v3] coredump: Split pipe command whitespace before expanding template

2019-05-27 Thread Paul Wise
Save the offsets of the start of each argument to avoid having to update pointers to each argument after every corename krealloc and to avoid having to duplicate the memory for the dump command. Executable names containing spaces were previously being expanded from %e or %E and then split in the

[PATCH v2] phy: renesas: rcar-gen2: Fix memory leak at error paths

2019-05-27 Thread Yoshihiro Shimoda
This patch fixes memory leak at error paths of the probe function. In for_each_child_of_node, if the loop returns, the driver should call of_put_node() before returns. Reported-by: Julia Lawall Fixes: 1233f59f745 ("phy: Renesas R-Car Gen2 PHY driver") Signed-off-by: Yoshihiro Shimoda

linux-next: Tree for May 28

2019-05-27 Thread Stephen Rothwell
Hi all, Changes since 20190524: The drm-fixes tree lost its build failure. The akpm-current tree gained a build failure due to an interaction with the ftrace tree for which I reverted 2 commits. Non-merge commits (relative to Linus' tree): 2262 2431 files changed, 83504 insertions(+), 36801

[PATCH 1/1] arm64: dts: rockchip: add core dtsi file for RK3399Pro SoCs

2019-05-27 Thread Jianqun Xu
This patch adds core dtsi file for Rockchip RK3399Pro SoCs, include rk3399.dtsi. Also enable these nodes: - dfi/dmc for ddr devfreq - pcie/pcie_phy - sdhci/sdio/emmc/sdmmc Signed-off-by: Jianqun Xu --- arch/arm64/boot/dts/rockchip/rk3399pro.dtsi | 111 1 file changed, 111

Re: [RESEND PATCH 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Oliver
On Tue, May 28, 2019 at 2:09 PM Shawn Anastasio wrote: > > > > On 5/27/19 11:01 PM, Oliver wrote: > > On Tue, May 28, 2019 at 8:56 AM Shawn Anastasio wrote: > >> > >> Hello all, > >> > >> This patch set implements support for user-specified PCI resource > >> alignment on the pseries platform for

RE: [EXT] Re: [V3 1/2] dmaengine: fsl-dpaa2-qdma: Add the DPDMAI(Data Path DMA Interface) support

2019-05-27 Thread Peng Ma
Hi Vinod Sorry to replay so late. The dpaa2 qdma driver is based on FSL_MC_BUS and FSL_MC_DPIO, so It will used those two drivers Functions or structs. This patch provides some necessary functions and structs for qdma driver(next patch: dpaa2-qdma.c) The dpaa2 driver is not only to write some

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Sergey Senozhatsky
On (05/28/19 13:15), Sergey Senozhatsky wrote: > On (05/28/19 01:24), Dmitry Safonov wrote: > [..] > > While handling sysrq the console_loglevel is bumped to default to print > > sysrq headers. It's done to print sysrq messages with WARNING level for > > consumers of /proc/kmsg, though it sucks by

Re: [PATCH] list_lru: fix memory leak in __memcg_init_list_lru_node

2019-05-27 Thread Shakeel Butt
On Mon, May 27, 2019 at 9:32 PM Shakeel Butt wrote: > > Syzbot reported following memory leak: > > da RBX: 0003 RCX: 00441f79 > BUG: memory leak > unreferenced object 0x888114f26040 (size 32): > comm "syz-executor626", pid 7056, jiffies 4294948701 (age 39.410s) >

[PATCH] list_lru: fix memory leak in __memcg_init_list_lru_node

2019-05-27 Thread Shakeel Butt
Syzbot reported following memory leak: da RBX: 0003 RCX: 00441f79 BUG: memory leak unreferenced object 0x888114f26040 (size 32): comm "syz-executor626", pid 7056, jiffies 4294948701 (age 39.410s) hex dump (first 32 bytes): 40 60 f2 14 81 88 ff ff 40 60 f2

[PATCH] vt: configurable number of console devices

2019-05-27 Thread Trevor Bourget
Having 63 vt devices for embedded systems might be overkill, so provide a configuration MAX_NR_CONSOLES to allow this consumption to be reduced. Signed-off-by: Trevor Bourget --- drivers/tty/Kconfig | 9 + include/uapi/linux/vt.h | 4 2 files changed, 13 insertions(+) diff

Re: [PATCH] scsi: ufs: Check that space was properly alloced in copy_query_response

2019-05-27 Thread Alim Akhtar
Hi Avri On 5/21/19 1:54 PM, Avri Altman wrote: > struct ufs_dev_cmd is the main container that supports device management > commands. In the case of a read descriptor request, we assume that the > proper space was allocated in dev_cmd to hold the returning descriptor. > > This is no longer true,

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Sergey Senozhatsky
On (05/28/19 12:21), Tetsuo Handa wrote: [..] > What I suggested in my proposal ("printk: Introduce "store now but print > later" prefix." at > https://lore.kernel.org/lkml/1550896930-12324-1-git-send-email-penguin-ker...@i-love.sakura.ne.jp/T/#u > ) > is "whether the caller wants to defer

Re: [PATCH 1/2] vfio: ABI for setting mdev display flip eventfd

2019-05-27 Thread Alex Williamson
On Tue, 28 May 2019 01:42:57 + "Zhang, Tina" wrote: > > -Original Message- > > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > > Behalf Of Alex Williamson > > Sent: Monday, May 27, 2019 10:05 PM > > To: Zhang, Tina > > Cc: k...@vger.kernel.org;

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Sergey Senozhatsky
On (05/28/19 01:24), Dmitry Safonov wrote: [..] > While handling sysrq the console_loglevel is bumped to default to print > sysrq headers. It's done to print sysrq messages with WARNING level for > consumers of /proc/kmsg, though it sucks by the following reasons: > - changing console_loglevel may

Re: [RESEND PATCH 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Shawn Anastasio
On 5/27/19 11:01 PM, Oliver wrote: On Tue, May 28, 2019 at 8:56 AM Shawn Anastasio wrote: Hello all, This patch set implements support for user-specified PCI resource alignment on the pseries platform for hotplugged PCI devices. Currently on pseries, PCI resource alignments specified with

[PATCH v3 3/3] powerpc/pseries: Allow user-specified PCI resource alignment after init

2019-05-27 Thread Shawn Anastasio
On pseries, custom PCI resource alignment specified with the commandline argument pci=resource_alignment is disabled due to PCI resources being managed by the firmware. However, in the case of PCI hotplug the resources are managed by the kernel, so custom alignments should be honored in these

[PATCH v3 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Shawn Anastasio
Changes from v2 to v3: - Fix wrong return type of ppc pcibios_ignore_alignment_request (Not sure how my local compile didn't catch that!) Hello all, This patch set implements support for user-specified PCI resource alignment on the pseries platform for hotplugged PCI devices. Currently on

[PATCH v3 2/3] powerpc/64: Enable pcibios_after_init hook on ppc64

2019-05-27 Thread Shawn Anastasio
Enable the pcibios_after_init hook on all powerpc platforms. This hook is executed at the end of pcibios_init and was previously only available on CONFIG_PPC32. Since it is useful and not inherently limited to 32-bit mode, remove the limitation and allow it on all powerpc platforms.

[PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Shawn Anastasio
Introduce a new pcibios function pcibios_ignore_alignment_request which allows the PCI core to defer to platform-specific code to determine whether or not to ignore alignment requests for PCI resources. The existing behavior is to simply ignore alignment requests when PCI_PROBE_ONLY is set. This

Re: [RESEND PATCH 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Oliver
On Tue, May 28, 2019 at 8:56 AM Shawn Anastasio wrote: > > Hello all, > > This patch set implements support for user-specified PCI resource > alignment on the pseries platform for hotplugged PCI devices. > Currently on pseries, PCI resource alignments specified with the > pci=resource_alignment

RE: [v4 PATCH] RISC-V: Add an Image header that boot loader can parse.

2019-05-27 Thread Anup Patel
> -Original Message- > From: Troy Benjegerdes > Sent: Tuesday, May 28, 2019 5:11 AM > To: Karsten Merker > Cc: Ard Biesheuvel ; Albert Ou > ; Jonathan Corbet ; Anup Patel > ; Zong Li ; Atish Patra > ; Nick Kossifidis ; Palmer Dabbelt > ; paul.walms...@sifive.com; linux- >

linux-next: build failure after merge of the akpm-current tree

2019-05-27 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/mm/extable.c:6: include/linux/uaccess.h:302:29: error: static declaration of 'probe_user_read' follows non-static declaration static __always_inline

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-27 Thread Minchan Kim
On Mon, May 27, 2019 at 02:44:11PM +0200, Michal Hocko wrote: > On Mon 27-05-19 16:58:11, Minchan Kim wrote: > > On Tue, May 21, 2019 at 08:26:28AM +0200, Michal Hocko wrote: > > > On Tue 21-05-19 11:55:33, Minchan Kim wrote: > > > > On Mon, May 20, 2019 at 11:28:01AM +0200, Michal Hocko wrote: >

[net-next,v3 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-27 Thread Ruslan Babayev
Lookup I2C adapter using the "i2c-bus" device property on ACPI based systems similar to how it's done with DT. An example DSD describing an SFP on an ACPI based system: Device (SFP0) { Name (_HID, "PRP0001") Name (_CRS, ResourceTemplate() { GpioIo(Exclusive, PullDefault, 0,

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Tetsuo Handa
On 2019/05/28 9:24, Dmitry Safonov wrote: > Provide KERN_UNSUPPRESSED printk() annotation for such legacy places. > Make sysrq print the headers unsuppressed instead of changing > console_loglevel. I think that kdb also wants to use KERN_UNSUPPRESSED for making sure that messages are printed. But

[net-next,v3 0/2] Enable SFP on ACPI based systems

2019-05-27 Thread Ruslan Babayev
Changes: v2: more descriptive commit body v3: made 'i2c_acpi_find_adapter_by_handle' static inline Ruslan Babayev (2): i2c: acpi: export i2c_acpi_find_adapter_by_handle net: phy: sfp: enable i2c-bus detection on ACPI based systems drivers/i2c/i2c-core-acpi.c | 3 ++- drivers/net/phy/sfp.c

Re: [PATCH v3 3/3] tests: add close_range() tests

2019-05-27 Thread Michael Ellerman
Christian Brauner writes: > This adds basic tests for the new close_range() syscall. > - test that no invalid flags can be passed > - test that a range of file descriptors is correctly closed > - test that a range of file descriptors is correctly closed if there there > are already closed file

[net-next,v3 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
This allows drivers to lookup i2c adapters on ACPI based systems similar to of_get_i2c_adapter_by_node() with DT based systems. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/i2c/i2c-core-acpi.c | 3 ++- include/linux/i2c.h | 6 ++ 2 files changed, 8

RE: [PATCH 25/44] tools headers UAPI: Sync drm/drm.h with the kernel

2019-05-27 Thread Zhou, David(ChunMing)
Which branch are you based? Seems all the structs are already synced except DRM_CAP_SYNCOBJ_TIMELINE. -David -Original Message- From: Arnaldo Carvalho de Melo Sent: Tuesday, May 28, 2019 6:37 AM To: Ingo Molnar ; Thomas Gleixner Cc: Jiri Olsa ; Namhyung Kim ; Clark Williams ;

[PATCH V13 5/5] arm64: dts: imx: add i.MX8QXP thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and below my patch: https://patchwork.kernel.org/patch/10962185/ --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 ++ 1

[PATCH V13 3/5] thermal: imx_sc: add i.MX system controller thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system

[PATCH V13 1/5] dt-bindings: fsl: scu: add thermal binding

2019-05-27 Thread Anson . Huang
From: Anson Huang NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature

[PATCH V13 4/5] defconfig: arm64: add i.MX system controller thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and based on below my patch: https://patchwork.kernel.org/patch/10959025/ --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1

[PATCH V13 2/5] thermal: of-thermal: add API for getting sensor ID from DT

2019-05-27 Thread Anson . Huang
From: Anson Huang On some platforms like i.MX8QXP, the thermal driver needs a real HW sensor ID from DT thermal zone, the HW sensor ID is used to get temperature from SCU firmware, and the virtual sensor ID starting from 0 to N is NOT used at all, this patch adds new API

[PATCH v2] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-05-27 Thread Harry Pan
Refer to the Intel SDM Vol.4, the package C-state residency counters of modern IA micro-architecture are all ticking in TSC frequency, hence we can apply simple math to transform the ticks into microseconds. i.e., residency (ms) = count / tsc_khz residency (us) = count / tsc_khz * 1000 This also

[PATCH] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-05-27 Thread Harry Pan
Refer to the Intel SDM Vol.4, the package C-state residency counters of modern IA micro-architecture are all ticking in TSC frequency, hence we can apply simple math to transform the ticks into microseconds. i.e., residency (ms) = count / tsc_khz residency (us) = count / tsc_khz * 1000 This also

MIPS r4k cache operations with SMP enabled

2019-05-27 Thread Chris Packham
Hi, I'm trying to port a fairly old Broadcom integrated chip (BCM6818) to the latest Linux kernel using the mips/bmips support. The chip has a BMIPS4355 core. This has two "thread processors" (cpu cores) with separate I-caches but a shared D-cache. I've got things booting but I encounter the

Re: [PATCH 1/2] vfio: ABI for setting mdev display flip eventfd

2019-05-27 Thread Zhenyu Wang
On 2019.05.27 14:22:37 +0200, Gerd Hoffmann wrote: > On Mon, May 27, 2019 at 05:07:41PM +0800, Zhenyu Wang wrote: > > On 2019.05.27 16:43:11 +0800, Tina Zhang wrote: > > > Add VFIO_DEVICE_SET_GFX_FLIP_EVENTFD ioctl command to set eventfd > > > based signaling mechanism to deliver vGPU framebuffer

[PATCH v2] arm64: dts: ls1028a: Add temperature sensor node

2019-05-27 Thread Yuantian Tang
Add nxp sa56004 chip node for temperature monitor. Signed-off-by: Yuantian Tang --- v2: - change the node name and add vcc-supply arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++ arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++ 2 files

Re: [PATCH] ia64: fix build errors by exporting paddr_to_nid()

2019-05-27 Thread Randy Dunlap
ping... On 5/3/19 9:42 PM, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build errors on ia64 when DISCONTIGMEM=y and NUMA=y by > exporting paddr_to_nid(). > > Fixes these build errors: > > ERROR: "paddr_to_nid" [sound/core/snd-pcm.ko] undefined! > ERROR: "paddr_to_nid"

Re: [PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
Mika Westerberg writes: > On Fri, May 24, 2019 at 05:53:01PM -0700, Ruslan Babayev wrote: >> +struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle); >> #else >> static inline bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, >>

[PATCH] clk-sunxi: fix a missing-check bug in sunxi_divs_clk_setup()

2019-05-27 Thread Gen Zhang
In sunxi_divs_clk_setup(), 'derived_name' is allocated by kstrndup(). It returns NULL when fails. 'derived_name' should be checked. Signed-off-by: Gen Zhang --- diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index f5b1c00..830bfb7 100644 ---

[PATCH v4 1/2] drivers: base: cacheinfo: Add variable to record max cache line size

2019-05-27 Thread Shaokun Zhang
Add coherency_max_size variable to record the maximum cache line size for different cache levels. If it is available, we will synchronize it as cache line size, otherwise we will use CTR_EL0.CWG reporting in cache_line_size() for arm64. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Sudeep

[PATCH v4 2/2] arm64: cacheinfo: Update cache_line_size detected from DT or PPTT

2019-05-27 Thread Shaokun Zhang
cache_line_size is derived from CTR_EL0.CWG field and is called mostly for I/O device drivers. For HiSilicon certain plantform, like the Kunpeng920 server SoC, cache line sizes are different between L1/2 cache and L3 cache while L1 cache line size is 64-byte and L3 is 128-byte, but CTR_EL0.CWG is

Re: [PATCH] userfaultfd: selftest: fix compiler warning

2019-05-27 Thread Peter Xu
On Mon, May 27, 2019 at 03:18:59PM +, Alakesh Haloi wrote: > Fixes following compiler warning > > userfaultfd.c: In function ‘usage’: > userfaultfd.c:126:2: warning: format not a string literal and no format > arguments [-Wformat-security] > fprintf(stderr, examples); > >

[PATCH RESEND v2] KVM: X86: Implement PV sched yield hypercall

2019-05-27 Thread Wanpeng Li
From: Wanpeng Li The target vCPUs are in runnable state after vcpu_kick and suitable as a yield target. This patch implements the sched yield hypercall. 17% performance increase of ebizzy benchmark can be observed in an over-subscribe environment. (w/ kvm-pv-tlb disabled, testing TLB flush

Re: [PATCH -next v2] staging: kpc2000: Remove set but not used variable ‘status’

2019-05-27 Thread maowenan
please ignore v2 version. I will send v3 later according to Sven Van Asbroeck 's comments. On 2019/5/25 16:13, Mao Wenan wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/staging/kpc2000/kpc_spi/spi_driver.c: In function > ‘kp_spi_transfer_one_message’: >

[PATCH net] Documentation: net-sysfs: Remove duplicate PHY device documentation

2019-05-27 Thread Florian Fainelli
Both sysfs-bus-mdio and sysfs-class-net-phydev contain the same duplication information. There is not currently any MDIO bus specific attribute, but there are PHY device (struct phy_device) specific attributes. Use the more precise description from sysfs-bus-mdio and carry that over to

Re: [PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
Wolfram Sang writes: > On Fri, May 24, 2019 at 05:53:01PM -0700, Ruslan Babayev wrote: >> This allows drivers to lookup i2c adapters on ACPI based systems similar to >> of_get_i2c_adapter_by_node() with DT based systems. >> >> Signed-off-by: Ruslan Babayev >> Cc: xe-linux-exter...@cisco.com >

Re: [PATCH v1] KVM: x86: PMU Whitelist

2019-05-27 Thread Wei Wang
On 05/23/2019 06:23 AM, Eric Hankland wrote: - Add a VCPU ioctl that can control which events the guest can monitor. Signed-off-by: ehankland --- Some events can provide a guest with information about other guests or the host (e.g. L3 cache stats); providing the capability to restrict access

[PATCH v2 3/3] powerpc/pseries: Allow user-specified PCI resource alignment after init

2019-05-27 Thread Shawn Anastasio
On pseries, custom PCI resource alignment specified with the commandline argument pci=resource_alignment is disabled due to PCI resources being managed by the firmware. However, in the case of PCI hotplug the resources are managed by the kernel, so custom alignments should be honored in these

[PATCH v2 2/3] powerpc/64: Enable pcibios_after_init hook on ppc64

2019-05-27 Thread Shawn Anastasio
Enable the pcibios_after_init hook on all powerpc platforms. This hook is executed at the end of pcibios_init and was previously only available on CONFIG_PPC32. Since it is useful and not inherently limited to 32-bit mode, remove the limitation and allow it on all powerpc platforms.

[PATCH v2 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Shawn Anastasio
Introduce a new pcibios function pcibios_ignore_alignment_request which allows the PCI core to defer to platform-specific code to determine whether or not to ignore alignment requests for PCI resources. The existing behavior is to simply ignore alignment requests when PCI_PROBE_ONLY is set. This

[PATCH v2 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Shawn Anastasio
Changes from v1 to v2: - Fix function declaration warnings caught by sparse Hello all, This patch set implements support for user-specified PCI resource alignment on the pseries platform for hotplugged PCI devices. Currently on pseries, PCI resource alignments specified with the

Re: [v3, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-27 Thread biao huang
Dear David, On Mon, 2019-05-27 at 10:08 -0700, David Miller wrote: > From: Biao Huang > Date: Mon, 27 May 2019 11:14:27 +0800 > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > > b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > > index 5e98da4..029a3db 100644 > > ---

Re: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-27 Thread Yunsheng Lin
On 2019/5/28 9:17, Stephen Hemminger wrote: > On Tue, 28 May 2019 09:04:18 +0800 > Yunsheng Lin wrote: > >> On 2019/5/27 22:58, Stephen Hemminger wrote: >>> On Mon, 27 May 2019 09:47:54 +0800 >>> Yunsheng Lin wrote: >>> When user has configured a large number of virtual netdev, such

Re: [PATCH v3 0/8] Fix Elan I2C touchpads in latest generation from Lenovo

2019-05-27 Thread Dmitry Torokhov
On Fri, May 24, 2019 at 03:50:38PM +0200, Benjamin Tissoires wrote: > Here comes the v3. > > Very few changes from v2: > - dropped the last 2 patches where I tried to be smart, and it turns out > that it was not very a good idea > - also removed the only other blacklisted model, as it has been

Re: linux-next: manual merge of the scsi tree with Linus' tree

2019-05-27 Thread Stephen Rothwell
Hi all, On Wed, 22 May 2019 10:08:34 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the scsi tree got conflicts in: > > drivers/scsi/hosts.c > drivers/scsi/libsas/sas_task.c > drivers/scsi/scsi.c > drivers/scsi/scsi_error.c > drivers/scsi/scsi_ioctl.c >

RE: [PATCH 1/2] vfio: ABI for setting mdev display flip eventfd

2019-05-27 Thread Zhang, Tina
> -Original Message- > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > Behalf Of Alex Williamson > Sent: Monday, May 27, 2019 10:05 PM > To: Zhang, Tina > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > zhen...@linux.intel.com; Yuan, Hang ; >

答复: [PATCH] input: alps-fix the issue alps cs19 trackstick do not work.

2019-05-27 Thread Xiaoxiao Liu
Add Saito-san. Hi Hui, Does it mean that your device (reported to kernel) sends only trackstick packets and not touchpad? -> Yes. I guess that you want parenthesis around (param[1] & 0x20). And also describe what that 0x20 constant means. It is not a warning. -> Yes, it should

Re: memory leak in sctp_process_init

2019-05-27 Thread Marcelo Ricardo Leitner
On Mon, May 27, 2019 at 05:48:06PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:9c7db500 Merge tag 'selinux-pr-20190521' of git://git.kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=10388530a0 >

Re: [PATCH RFC 3/9] PM / devfreq: Add cpu based scaling support to passive_governor

2019-05-27 Thread Chanwoo Choi
Hi Sibi, On 19. 5. 27. 오후 5:23, Sibi Sankar wrote: > Hey Chanwoo, > > Thanks a lot for reviewing the patch. Like I > had indicated earlier we decided to go with > a simpler approach instead on qualcomm SoCs. > I am happy to re-spin this patch with your > comments addressed if we do find other

[Patch v2] target/iscsi: fix possible condition with no effect (if == else)

2019-05-27 Thread Hariprasad Kelam
fix below warning reported by coccicheck drivers/target/iscsi/iscsi_target_nego.c:175:6-8: WARNING: possible condition with no effect (if == else) Signed-off-by: Hariprasad Kelam --- Changes in v2: treat SRP as unsupported authtype. Remove unnecessary else return 2

Re: [PATCH v2 08/10] Input: elan_i2c - export true width/height

2019-05-27 Thread 'Dmitry Torokhov'
Hi Benjamin, KT, On Mon, May 27, 2019 at 11:55:01AM +0800, 廖崇榮 wrote: > Hi > > -Original Message- > From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] > Sent: Friday, May 24, 2019 5:37 PM > To: Dmitry Torokhov; KT Liao; Rob Herring; Aaron Ma; Hans de Goede > Cc: open

Re: memory leak in hsr_create_self_node

2019-05-27 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:cd6c84d8 Linux 5.2-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10aa46c4a0 kernel config: https://syzkaller.appspot.com/x/.config?x=64479170dcaf0e11 dashboard link:

Re: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-27 Thread Stephen Hemminger
On Tue, 28 May 2019 09:04:18 +0800 Yunsheng Lin wrote: > On 2019/5/27 22:58, Stephen Hemminger wrote: > > On Mon, 27 May 2019 09:47:54 +0800 > > Yunsheng Lin wrote: > > > >> When user has configured a large number of virtual netdev, such > >> as 4K vlans, the carrier on/off operation of the

Re: [PATCH] PM / devfreq: try_then_request_governor should not return NULL

2019-05-27 Thread Chanwoo Choi
Hi Rob, You're right. It have to be posted to sta...@vger.kernel.org. As you recommended, I send it[1] to sta...@vger.kernel.org for fixup. [1]https://lkml.org/lkml/2019/5/27/547 Best Regards, Chanwoo Choi On 19. 5. 24. 오후 10:15, Rob Clark wrote: > Ahh, thanks, I've not moved to the latest -rc

Re: [PATCH v2] powerpc/power: Expose pfn_is_nosave prototype

2019-05-27 Thread Michael Ellerman
"Rafael J. Wysocki" writes: > On Friday, May 24, 2019 12:44:18 PM CEST Mathieu Malaterre wrote: >> The declaration for pfn_is_nosave is only available in >> kernel/power/power.h. Since this function can be override in arch, >> expose it globally. Having a prototype will make sure to avoid warning

Re: [PATCH v2] powerpc/power: Expose pfn_is_nosave prototype

2019-05-27 Thread Michael Ellerman
Mathieu Malaterre writes: > The declaration for pfn_is_nosave is only available in > kernel/power/power.h. Since this function can be override in arch, > expose it globally. Having a prototype will make sure to avoid warning > (sometime treated as error with W=1) such as: > >

Re: [PATCH net 4/4] net/udpgso_bench_tx: audit error queue

2019-05-27 Thread Willem de Bruijn
On Mon, May 27, 2019 at 6:56 PM Fred Klassen wrote: > > > > > On May 27, 2019, at 2:46 PM, Willem de Bruijn > > wrote: > >> Also, I my v2 fix in net is still up for debate. In its current state, it > >> meets my application’s requirements, but may not meet all of yours. > > > I gave more

Re: [RESEND PATCH] PM / devfreq: Fix static checker warning in try_then_request_governor

2019-05-27 Thread Chanwoo Choi
Cc: sta...@vger.kernel.org Dear all, It missed to send this patch to 'sta...@vger.kernel.org'. So, I add it to mailing list. Regards, Chanwoo Choi On 19. 3. 13. 오후 9:22, Enric Balletbo i Serra wrote: > The patch 23c7b54ca1cd: "PM / devfreq: Fix devfreq_add_device() when > drivers are built as

[PATCH] dfs_cache: fix a wrong use of kfree in flush_cache_ent()

2019-05-27 Thread Gen Zhang
In flush_cache_ent(), 'ce->ce_path' is allocated by kstrdup_const(). It should be freed by kfree_const(), rather than kfree(). Signed-off-by: Gen Zhang --- diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index 85dc89d..e3e1c13 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@

Re: [PATCH v6 4/4] x86/acrn: Add hypercall for ACRN guest

2019-05-27 Thread Zhao, Yakui
On 2019年05月28日 06:46, Borislav Petkov wrote: On Mon, May 27, 2019 at 10:57:09AM +0800, Zhao, Yakui wrote: I refer to the Xen/KVM hypercall to add the ACRN hypercall in one separate header. And? The ACRN hypercall is defined in one separate acrn_hypercall.h and can be included explicitly

Re: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-27 Thread Yunsheng Lin
On 2019/5/27 22:58, Stephen Hemminger wrote: > On Mon, 27 May 2019 09:47:54 +0800 > Yunsheng Lin wrote: > >> When user has configured a large number of virtual netdev, such >> as 4K vlans, the carrier on/off operation of the real netdev >> will also cause it's virtual netdev's link state to be

Re: [PATCH 00/12] ti-sysc driver changes to drop custom hwmods property

2019-05-27 Thread Keerthy
On 27/05/19 5:43 PM, Tony Lindgren wrote: Hi all, Here are changes to improve ti-sysc driver to the point where we can finally drop the custom hwmods property for most cases. This series drops hwmods property only for omap4 UART and MMC as those can be tested with core retention idle. I'll

  1   2   3   4   5   6   7   8   9   >