[PATCH] fpga: dfl: use driver core functions, not sysfs ones.

2019-07-03 Thread Greg Kroah-Hartman
This is a driver, do not call "raw" sysfs functions, instead call driver core ones. Specifically convert the use of sysfs_create_files() and sysfs_remove_files() to use device_add_groups() and device_remove_groups() Cc: Wu Hao Cc: Alan Tull Cc: Moritz Fischer Cc: linux-f...@vger.kernel.org

Re: [PATCH 2/2] ftrace/selftest: Test if set_event/ftrace_pid exists before writing

2019-07-03 Thread Masami Hiramatsu
On Wed, 3 Jul 2019 22:01:05 -0400 Steven Rostedt wrote: > On Thu, 4 Jul 2019 10:51:26 +0900 > Masami Hiramatsu wrote: > > > > > diff --git a/tools/testing/selftests/ftrace/test.d/functions > > > > b/tools/testing/selftests/ftrace/test.d/functions > > > > index 779ec11f61bd..a7b06291e32c

Re: [PATCH RFC 0/3] Support CPU hotplug for ARM64

2019-07-03 Thread Jia He
Hi Xiongfeng On 2019/7/4 11:26, Xiongfeng Wang wrote: Hi Justin, On 2019/7/4 11:00, Jia He wrote: Hi Xiongfeng It is a little bit awkful that I am also  investigating acpi based cpu hotplug issue silimar with your idea. My question is your purpose to implement the vcpu hotplug in arm64

Re: [PATCH] checkpatch: avoid default n

2019-07-03 Thread Miles Chen
On Wed, 2019-07-03 at 08:37 -0700, Joe Perches wrote: > On Wed, 2019-07-03 at 17:03 +0800, Yingjoe Chen wrote: > > On Wed, 2019-07-03 at 01:42 -0700, Joe Perches wrote: > > > On Wed, 2019-07-03 at 16:30 +0800, Miles Chen wrote: > > > > This change reports a warning when "default n" is used. > > >

Re: [PATCH v1 OPT1] driver core: Fix use-after-free and double free on glue directory

2019-07-03 Thread Greg KH
On Thu, Jul 04, 2019 at 08:57:53AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2019-07-03 at 21:37 +0200, Greg KH wrote: > > Ok, I guess I have to take this patch, as the other one is so bad :) > > > > But, I need a very large comment here saying why we are poking around in > > a kref and why

Re: [PATCH v4 OPT2] driver core: Fix use-after-free and double free on glue directory

2019-07-03 Thread Greg KH
On Thu, Jul 04, 2019 at 08:57:13AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2019-07-03 at 21:36 +0200, Greg KH wrote: > > > > > -static struct kobject *get_device_parent(struct device *dev, > > > - struct device *parent) > > > +/** > > > + *

Re: [PATCH v2 1/2] ASoC: tas5720.c: cleanup variant management

2019-07-03 Thread Nikolaus Voss
On Wed, 3 Jul 2019, Andrew F. Davis wrote: On 7/2/19 6:12 AM, Nikolaus Voss wrote: On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 11:35 AM, Nikolaus Voss wrote: On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 9:42 AM, Nikolaus Voss wrote: Replace enum tas572x_type with struct

Re: [PATCH 4.19 00/72] 4.19.57-stable review

2019-07-03 Thread Bharath Vedartham
Tested and booted in my x86 system. No regressions.

Re: [PATCH 5.1 00/55] 5.1.16-stable review

2019-07-03 Thread Bharath Vedartham
Tested and booted on my x86 system. No regressions.

Re: [PATCH 4.14 00/43] 4.14.132-stable review

2019-07-03 Thread Bharath Vedartham
Booted and tested in my x86 systems. No regressions.

pci memory resources not being assigned to bridge

2019-07-03 Thread Chris Packham
Hi, I'm in the process of updating our products from a 4.4 based kernel to 5.1 (and probably 5.2 since that release is imminent). On one product which uses a Freescale/NXP P2041 CPU, IDT pcie bridge and Marvell switch chip[1]. Annoyingly the hardware has a reset line that holds the switch

Re: [PATCH v2] gen_compile_command: Add support for separate KBUILD_OUTPUT directory

2019-07-03 Thread Masahiro Yamada
On Tue, Jun 25, 2019 at 1:31 AM Matthias Kaehlcke wrote: > > gen_compile_command.py currently assumes that the .cmd files and the > source code live in the same directory, which is not the case when > a separate KBUILD_OUTPUT directory is used. > > Add a new option to specify this the kbuild

[PATCH] rcuperf: Make rcuperf kernel test more robust for !expedited mode

2019-07-03 Thread Joel Fernandes (Google)
It is possible that the rcuperf kernel test runs concurrently with init starting up. During this time, the system is running all grace periods as expedited. However, rcuperf can also be run for normal GP tests. Right now, it depends on a holdoff time before starting the test to ensure grace

Re: [RFC v2] vhost: introduce mdev based hardware vhost backend

2019-07-03 Thread Jason Wang
On 2019/7/3 下午9:08, Tiwei Bie wrote: On Wed, Jul 03, 2019 at 08:16:23PM +0800, Jason Wang wrote: On 2019/7/3 下午7:52, Tiwei Bie wrote: On Wed, Jul 03, 2019 at 06:09:51PM +0800, Jason Wang wrote: On 2019/7/3 下午5:13, Tiwei Bie wrote: Details about this can be found here:

[PATCH] genirq: update irq stats from NMI handlers

2019-07-03 Thread Shijith Thotton
The NMI handlers handle_percpu_devid_fasteoi_nmi() and handle_fasteoi_nmi() added by commit 2dcf1fbcad35 ("genirq: Provide NMI handlers") do not update the interrupt counts. Due to that the NMI interrupt count does not show up correctly in /proc/interrupts. Update the functions to fix this. With

[PATCH v2] gpiolib: Preserve desc->flags when setting state

2019-07-03 Thread Chris Packham
desc->flags may already have values set by of_gpiochip_add() so make sure that this isn't undone when setting the initial direction. Fixes: 3edfb7bd76bd1cba ("gpiolib: Show correct direction from the beginning") Signed-off-by: Chris Packham --- Notes: Changes in v2: - add braces to

Re: [PATCH] percpu: Make pcpu_setup_first_chunk() void function

2019-07-03 Thread Dennis Zhou
On Wed, Jul 03, 2019 at 04:25:52PM +0800, Kefeng Wang wrote: > pcpu_setup_first_chunk() will panic or BUG_ON if the are some > error and doesn't return any error, hence it can be defined to > return void. > > Signed-off-by: Kefeng Wang > --- > arch/ia64/mm/contig.c| 5 + >

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

2019-07-03 Thread wangxi
在 2019/7/4 12:07, wangxi 写道: > > > 在 2019/7/4 10:04, Jason Gunthorpe 写道: >> On Thu, Jul 04, 2019 at 12:02:35PM +1000, Stephen Rothwell wrote: >>> Hi all, >>> >>> On Mon, 1 Jul 2019 14:14:31 +1000 Stephen Rothwell >>> wrote: Hi all, After merging the rdma tree, today's

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

2019-07-03 Thread wangxi
在 2019/7/4 10:04, Jason Gunthorpe 写道: > On Thu, Jul 04, 2019 at 12:02:35PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> On Mon, 1 Jul 2019 14:14:31 +1000 Stephen Rothwell >> wrote: >>> >>> Hi all, >>> >>> After merging the rdma tree, today's linux-next build (x86_64 >>> allmodconfig)

Re: [PATCH v2 2/3] vsock/virtio: stop workers during the .remove()

2019-07-03 Thread Jason Wang
On 2019/6/28 下午8:36, Stefano Garzarella wrote: Before to call vdev->config->reset(vdev) we need to be sure that no one is accessing the device, for this reason, we add new variables in the struct virtio_vsock to stop the workers during the .remove(). This patch also add few comments before

Re: [PATCH v2 1/3] vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock

2019-07-03 Thread Jason Wang
On 2019/7/3 下午6:41, Stefano Garzarella wrote: On Wed, Jul 03, 2019 at 05:53:58PM +0800, Jason Wang wrote: On 2019/6/28 下午8:36, Stefano Garzarella wrote: Some callbacks used by the upper layers can run while we are in the .remove(). A potential use-after-free can happen, because we free

linux-next: manual merge of the device-mapper tree with the jc_docs tree

2019-07-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the device-mapper tree got a conflict in: Documentation/device-mapper/snapshot.rst between commit: f0ba43774cea ("docs: convert docs to ReST and rename to *.rst") from the jc_docs tree and commit: a8a9f1434a86 ("dm snapshot: add optional discard

[PATCH] tpm: fixes uninitialized allocated banks for IBM vtpm driver

2019-07-03 Thread Nayna Jain
The nr_allocated_banks and allocated banks are initialized as part of tpm_chip_register. Currently, this is done as part of auto startup function. However, some drivers, like the ibm vtpm driver, do not run auto startup during initialization. This results in uninitialized memory issue and causes a

Re: [PATCH v1 net-next] net: stmmac: enable clause 45 mdio support

2019-07-03 Thread Andrew Lunn
On Thu, Jul 04, 2019 at 01:33:16AM +, Voon, Weifeng wrote: > > > @@ -155,22 +171,26 @@ static int stmmac_mdio_read(struct mii_bus *bus, > > int phyaddr, int phyreg) > > > struct stmmac_priv *priv = netdev_priv(ndev); > > > unsigned int mii_address = priv->hw->mii.addr; > > > unsigned int

Re: [PATCH RFC 0/3] Support CPU hotplug for ARM64

2019-07-03 Thread Xiongfeng Wang
Hi Justin, On 2019/7/4 11:00, Jia He wrote: > Hi Xiongfeng > > It is a little bit awkful that I am also  investigating acpi based cpu > hotplug issue silimar with > > your idea. My question is your purpose to implement the vcpu hotplug in arm64 > qemu? Yes, my purpose is to implement the

Re: [PATCH] dax: Fix missed PMD wakeups

2019-07-03 Thread Matthew Wilcox
On Wed, Jul 03, 2019 at 02:28:41PM -0700, Dan Williams wrote: > On Wed, Jul 3, 2019 at 12:53 PM Matthew Wilcox wrote: > > @@ -211,7 +215,8 @@ static void *get_unlocked_entry(struct xa_state *xas) > > for (;;) { > > entry = xas_find_conflict(xas); > > if

[PATCH 1/1] tools/dtrace: initial implementation of DTrace

2019-07-03 Thread Kris Van Hees
This initial implementation of a tiny subset of DTrace functionality provides the following options: dtrace [-lvV] [-b bufsz] -s script -b set trace buffer size -l list probes (only works with '-s script' for now) -s enable or list probes for the

[PATCH 0/1] tools/dtrace: initial implementation of DTrace

2019-07-03 Thread Kris Van Hees
This patch is also available, applied to bpf-next, at the following URL: https://github.com/oracle/dtrace-linux-kernel/tree/dtrace-bpf As suggested in feedback to my earlier patch submissions, this code takes an approach to avoid kernel code changes as much as possible. The current

Re: [PATCH RFC 0/3] Support CPU hotplug for ARM64

2019-07-03 Thread Jia He
Hi Xiongfeng It is a little bit awkful that I am also  investigating acpi based cpu hotplug issue silimar with your idea. My question is your purpose to implement the vcpu hotplug in arm64 qemu? Thanks for the ellaboration --- Cheers, Justin (Jia He) On 2019/6/28 19:13, Xiongfeng Wang

RE: [PATCHv5 02/20] PCI: mobiveil: Format the code without functionality change

2019-07-03 Thread Z.q. Hou
Hi Lorenzo, Thanks for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年7月3日 23:19 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com;

[PATCH] net: ethernet: allwinner: Remove unneeded memset

2019-07-03 Thread Hariprasad Kelam
Remove unneeded memset as alloc_etherdev is using kvzalloc which uses __GFP_ZERO flag Signed-off-by: Hariprasad Kelam --- drivers/net/ethernet/allwinner/sun4i-emac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/allwinner/sun4i-emac.c

linux-next: manual merge of the mlx5-next tree with the rdma tree

2019-07-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mlx5-next tree got a conflict in: drivers/infiniband/hw/mlx5/cq.c between commit: e39afe3d6dbd ("RDMA: Convert CQ allocations to be under core responsibility") from the rdma tree and commit: 38164b771947 ("net/mlx5: mlx5_core_create_cq()

[PATCH] trace:add "gfp_t" support in synthetic_events

2019-07-03 Thread Zhengjun Xing
Add "gfp_t" support in synthetic_events, then the "gfp_t" type parameter in some functions can be traced. Signed-off-by: Zhengjun Xing --- kernel/trace/trace_events_hist.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c

[PATCH] ACPI: PM: Make acpi_sleep_state_supported() non-static

2019-07-03 Thread Dexuan Cui
With some upcoming patches to save/restore the Hyper-V drivers related states, a Linux VM running on Hyper-V will be able to hibernate. When a Linux VM hibernates, unluckily we must disable the memory hot-add/remove and balloon up/down capabilities in the hv_balloon driver

RE: [PATCHv5 02/20] PCI: mobiveil: Format the code without functionality change

2019-07-03 Thread Z.q. Hou
Hi Lorenzo, Thanks for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年7月3日 23:10 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com;

RE: [PATCHv5 03/20] PCI: mobiveil: Correct the returned error number

2019-07-03 Thread Z.q. Hou
Hi Lorenzo, Thanks for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年7月3日 22:17 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com;

[Patch v2 10/10] platform/x86/asus-wmi: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

[Patch v2 09/10] net/ethernet: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

[Patch v2 08/10] net/can: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

[Patch v2 05/10] iio: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

[Patch v2 07/10] mailbox: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

[Patch v2 04/10] drm/panfrost: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

[Patch v2 03/10] drm/omapdrm: using dev_get_drvdata directly

2019-07-03 Thread Fuqian Huang
Several drivers cast a struct device pointer to a struct platform_device pointer only to then call platform_get_drvdata(). To improve readability, these constructs can be simplified by using dev_get_drvdata() directly. Signed-off-by: Fuqian Huang --- Changes in v2: - Make the commit message

RE: [PATCHv5 00/20] PCI: mobiveil: fixes for Mobiveil PCIe Host Bridge IP driver

2019-07-03 Thread Z.q. Hou
Hi Lorenzo, Thanks a lot for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2019年7月3日 18:33 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com;

[PATCH] rtc: pcf85063: Add support for specifying the clkout frequency from device tree node.

2019-07-03 Thread Michael McCormick
Primarily this allows the clkout signal to be disabled and save some power when running off battery backup. However, all hardware implemented values are implemented. Uses default value of 32768Hz if node is not specified. Signed-off-by: Michael McCormick --- drivers/rtc/rtc-pcf85063.c | 52

Re: [PATCH] soc: rockchip: work around clang warning

2019-07-03 Thread Olof Johansson
On Wed, Jul 03, 2019 at 05:30:59PM +0200, Arnd Bergmann wrote: > clang emits a warning about a negative shift count for an > unused part of a conditional constant expression: > > drivers/soc/rockchip/pm_domains.c:795:21: error: shift count is negative > [-Werror,-Wshift-count-negative] >

[PATCH v3] locking/spinlocks, paravirt, hyperv: Correct the hv_nopvspin case

2019-07-03 Thread Zhenzhong Duan
With the boot parameter "hv_nopvspin" specified a Hyperv guest should not make use of paravirt spinlocks, but behave as if running on bare metal. This is not true, however, as the qspinlock code will fall back to a test-and-set scheme when it is detecting a hypervisor. In order to avoid this

Re: [GIT PULL] tracing: A few fixes for this rc release

2019-07-03 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Jul 2019 10:55:11 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > trace-v5.2-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/550d1f5bda33fa3b203d8cf8df1396825dbfd213 Thank you! --

Re: [GIT PULL] GPIO fix for v5.2

2019-07-03 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Jul 2019 14:30:51 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git > tags/gpio-v5.2-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/179c96d9f715a619811ded5dcbd35b1fee8caf69 Thank you! --

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

2019-07-03 Thread oulijun
在 2019/7/4 10:04, Jason Gunthorpe 写道: > On Thu, Jul 04, 2019 at 12:02:35PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> On Mon, 1 Jul 2019 14:14:31 +1000 Stephen Rothwell >> wrote: >>> Hi all, >>> >>> After merging the rdma tree, today's linux-next build (x86_64 >>> allmodconfig) failed like

RE: [EXT] [BUG BISECT] Net boot fails on VF50 after "dmaengine: fsl-edma: support little endian for edma driver"

2019-07-03 Thread Peng Ma
Hi Krzysztof, I am sorry, It is my mistake to forget about VF50 used EDMA IP with little endian. The Register(CHCFG0 - CHCFG15) of our platform designed as follows: *---* | Offset | Big endian Register| Little

linux-next: manual merge of the net-next tree with the net tree

2019-07-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: tools/testing/selftests/net/config between commit: ff95bf28c234 ("selftests/net: skip psock_tpacket test if KALLSYMS was not enabled") from the net tree and commit: af5136f95045 ("selftests/net: SO_TXTIME with

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

2019-07-03 Thread Jason Gunthorpe
On Thu, Jul 04, 2019 at 12:02:35PM +1000, Stephen Rothwell wrote: > Hi all, > > On Mon, 1 Jul 2019 14:14:31 +1000 Stephen Rothwell > wrote: > > > > Hi all, > > > > After merging the rdma tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > WARNING: modpost:

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

2019-07-03 Thread Stephen Rothwell
Hi all, On Mon, 1 Jul 2019 14:14:31 +1000 Stephen Rothwell wrote: > > Hi all, > > After merging the rdma tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/infiniband/hw/hns/hns_roce_ah.o > see

Re: [PATCH 2/2] ftrace/selftest: Test if set_event/ftrace_pid exists before writing

2019-07-03 Thread Steven Rostedt
On Thu, 4 Jul 2019 10:51:26 +0900 Masami Hiramatsu wrote: > > > diff --git a/tools/testing/selftests/ftrace/test.d/functions > > > b/tools/testing/selftests/ftrace/test.d/functions > > > index 779ec11f61bd..a7b06291e32c 100644 > > > --- a/tools/testing/selftests/ftrace/test.d/functions > > >

Re: [PATCH 2/2] ftrace/selftest: Test if set_event/ftrace_pid exists before writing

2019-07-03 Thread Masami Hiramatsu
On Wed, 3 Jul 2019 16:00:09 -0400 Steven Rostedt wrote: > On Wed, 03 Jul 2019 15:50:01 -0400 > Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > While testing on a very old kernel (3.5), the tests failed because the write > > to set_event_pid in the setup code, did not

Re: [PATCH 2/2] ftrace/selftest: Test if set_event/ftrace_pid exists before writing

2019-07-03 Thread Masami Hiramatsu
On Wed, 03 Jul 2019 15:50:01 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > While testing on a very old kernel (3.5), the tests failed because the write > to set_event_pid in the setup code, did not exist. The tests themselves > could pass, but the setup failed causing an

Re: [PATCH 1/2] ftrace/selftests: Return the skip code when tracing directory not configured in kernel

2019-07-03 Thread Masami Hiramatsu
On Wed, 03 Jul 2019 15:50:00 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > If the kernel is not configured with ftrace enabled, the ftracetest > selftests should return the error code of "4" as that is the kselftests > "skip" code, and not "1" which means an error. > > To

Re: [RFC v2] vhost: introduce mdev based hardware vhost backend

2019-07-03 Thread Tiwei Bie
On Wed, Jul 03, 2019 at 12:31:57PM -0600, Alex Williamson wrote: > On Wed, 3 Jul 2019 17:13:39 +0800 > Tiwei Bie wrote: > > diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h > > index 8f10748dac79..6c5718ab7eeb 100644 > > --- a/include/uapi/linux/vfio.h > > +++

RE: [PATCH v1 net-next] net: stmmac: enable clause 45 mdio support

2019-07-03 Thread Voon, Weifeng
> > @@ -155,22 +171,26 @@ static int stmmac_mdio_read(struct mii_bus *bus, > int phyaddr, int phyreg) > > struct stmmac_priv *priv = netdev_priv(ndev); > > unsigned int mii_address = priv->hw->mii.addr; > > unsigned int mii_data = priv->hw->mii.data; > > - u32 v; > > - int data; >

Re: [PATCH -next] integrity: Remove set but not used variable 'acl'

2019-07-03 Thread Yuehaibing
On 2019/7/3 21:57, David Howells wrote: > YueHaibing wrote: > >> Fixes gcc '-Wunused-but-set-variable' warning: >> >> security/integrity/digsig.c: In function 'integrity_init_keyring': >> security/integrity/digsig.c:99:18: warning: >> variable 'acl' set but not used [-Wunused-but-set-variable]

[PATCH v5 2/4] x86: Add "nopv" parameter to disable PV extensions

2019-07-03 Thread Zhenzhong Duan
In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking) we want to disable PV extensions. We have "xen_nopv" for that purpose but only for XEN.

[PATCH v5 1/4] x86/xen: Mark xen_hvm_need_lapic() and xen_x2apic_para_available() as __init

2019-07-03 Thread Zhenzhong Duan
.. as they are only called at early bootup stage. In fact, other functions in x86_hyper_xen_hvm.init.* are all marked as __init. Unexport xen_hvm_need_lapic as it's never used outside. Signed-off-by: Zhenzhong Duan Reviewed-by: Juergen Gross Cc: Boris Ostrovsky Cc: Stefano Stabellini Cc:

[PATCH v5 4/4] x86/xen: Add "nopv" support for HVM guest

2019-07-03 Thread Zhenzhong Duan
PVH guest needs PV extentions to work, so "nopv" parameter should be ignored for PVH but not for HVM guest. If PVH guest boots up via the Xen-PVH boot entry, xen_pvh is set early, we know it's PVH guest and ignore "nopv" parameter directly. If PVH guest boots up via the normal boot entry same as

[PATCH v5 0/4] misc fixes to PV extentions code

2019-07-03 Thread Zhenzhong Duan
Hi, In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking, etc) we want to disable PV extensions. We have xen_nopv for that purpose but only

[PATCH v5 3/4] xen: Map "xen_nopv" parameter to "nopv" and mark it obsolete

2019-07-03 Thread Zhenzhong Duan
Clean up unnecessory code after that operation. Signed-off-by: Zhenzhong Duan Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ arch/x86/xen/enlighten_hvm.c

Re: [PATCH] builddeb: generate multi-arch friendly linux-libc-dev package

2019-07-03 Thread Masahiro Yamada
CCed a couple of people. On Mon, Jun 17, 2019 at 3:15 PM Cedric Hombourger wrote: > > Debian-based distributions place libc header files in a machine > specific directory (/usr/include/) instead of > /usr/include/asm to support installation of the linux-libc-dev > package from multiple

Re: [PATCH v4 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-07-03 Thread Wanpeng Li
On Wed, 3 Jul 2019 at 22:13, Paolo Bonzini wrote: > > On 03/07/19 02:48, Wanpeng Li wrote: > > Hi Paolo, how about this patchset? Patch 2/2 is easy to take, do you > > have more concern about patch 1/2? > > I don't know. It seems somewhat hard to tune and in cyclictest it only > happens for

Re: [PATCH -mm] autonuma: Fix scan period updating

2019-07-03 Thread Huang, Ying
Mel Gorman writes: > On Tue, Jun 25, 2019 at 09:23:22PM +0800, huang ying wrote: >> On Mon, Jun 24, 2019 at 10:25 PM Mel Gorman wrote: >> > >> > On Mon, Jun 24, 2019 at 10:56:04AM +0800, Huang Ying wrote: >> > > The autonuma scan period should be increased (scanning is slowed down) >> > > if

Re: [PATCH v2 0/8] pinctrl: aspeed: Preparation for AST2600

2019-07-03 Thread Andrew Jeffery
On Wed, 3 Jul 2019, at 18:40, Linus Walleij wrote: > Hi Andrew, > > On Fri, Jun 28, 2019 at 4:39 AM Andrew Jeffery wrote: > > > > Hello! > > > > The ASPEED AST2600 is in the pipeline, and we have enough information to > > start > > preparing to upstream support for it. This series lays some

Re: [PATCH v2] powerpc/boot: pass CONFIG options in a simpler and more robust way

2019-07-03 Thread Michael Ellerman
Masahiro Yamada writes: > Commit 5e9dcb6188a4 ("powerpc/boot: Expose Kconfig symbols to wrapper") > was wrong, but commit e41b93a6be57 ("powerpc/boot: Fix build failures > with -j 1") was also wrong. > > The correct dependency is: > > $(obj)/serial.o: $(obj)/autoconf.h > > However, I do not

Re: [PATCH 2/3 linux,dev-5.1 v1] ARM: dts: aspeed: Add SGPIO driver

2019-07-03 Thread Andrew Jeffery
Hello Hongwei, As this is patch is sent to the upstream lists (linux-gpio@ etc) please drop the OpenBMC-specific "linux,dev-5.1" from the subject. Also, it looks like you may have manually added the series revision (v1). For the record you can make `git format-patch` do this for you with the

[PATCH] arm64: mm: free the initrd reserved memblock in a aligned manner

2019-07-03 Thread Yi Wang
From: Junhua Huang We should free the reserved memblock in an aligned manner because the initrd reserves the memblock in an aligned manner in arm64_memblock_init(). Otherwise there are some fragments in memblock_reserved regions. e.g.: /sys/kernel/debug/memblock # cat reserved 0:

Re: [Question] Should direct reclaim time be bounded?

2019-07-03 Thread Mike Kravetz
On 7/3/19 2:43 AM, Mel Gorman wrote: > Indeed. I'm getting knocked offline shortly so I didn't give this the > time it deserves but it appears that part of this problem is > hugetlb-specific when one node is full and can enter into this continual > loop due to __GFP_RETRY_MAYFAIL requiring both

Re: [PATCH v2 2/2] nvmet-loop: Flush nvme_delete_wq when removing the port

2019-07-03 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: [PATCH v2 1/2] nvmet: Fix use-after-free bug when a port is removed

2019-07-03 Thread Sagi Grimberg
Reviewed-by: Sagi Grimberg

Re: [PATCH] kbuild: Add ability to test Clang's integrated assembler

2019-07-03 Thread Masahiro Yamada
On Fri, Jun 28, 2019 at 4:15 AM Nathan Chancellor wrote: > > There are some people interested in experimenting with Clang's > integrated assembler. To make it easy to do so without source > modification, allow the user to specify 'AS=clang' as part of the > make command to avoid adding

Re: [PATCH 0/2] Use Media Dev Allocator to fix vimc dev lifetime bugs

2019-07-03 Thread Shuah Khan
On 7/3/19 5:25 PM, Laurent Pinchart wrote: Hi Shuah, On Wed, Jul 03, 2019 at 10:52:17AM -0600, Shuah Khan wrote: On 7/3/19 10:17 AM, Niklas Söderlund wrote: On 2019-06-30 14:41:02 +0300, Laurent Pinchart wrote: On Fri, Jun 28, 2019 at 10:41:07AM -0600, Shuah Khan wrote: On 6/16/19 12:45 PM,

Re: [PATCH 0/2] Use Media Dev Allocator to fix vimc dev lifetime bugs

2019-07-03 Thread Laurent Pinchart
Hi Shuah, On Wed, Jul 03, 2019 at 10:52:17AM -0600, Shuah Khan wrote: > On 7/3/19 10:17 AM, Niklas Söderlund wrote: > > On 2019-06-30 14:41:02 +0300, Laurent Pinchart wrote: > >> On Fri, Jun 28, 2019 at 10:41:07AM -0600, Shuah Khan wrote: > >>> On 6/16/19 12:45 PM, Laurent Pinchart wrote: >

Re: [PATCH v2 6/7] dt-bindings: net: realtek: Add property to configure LED mode

2019-07-03 Thread Matthias Kaehlcke
Hi Florian, On Wed, Jul 03, 2019 at 02:37:47PM -0700, Florian Fainelli wrote: > On 7/3/19 12:37 PM, Matthias Kaehlcke wrote: > > The LED behavior of some Realtek PHYs is configurable. Add the > > property 'realtek,led-modes' to specify the configuration of the > > LEDs. > > > > Signed-off-by:

Re: [patch v3 1/5] AST2500 DMA UART driver

2019-07-03 Thread Benjamin Herrenschmidt
On Wed, 2019-07-03 at 19:49 +0200, Greg KH wrote: > > + > > + if (tx_sts & UART_SDMA0_INT) { > > + ast_uart_sdma_write(sdma, UART_SDMA0_INT, UART_TX_SDMA_ISR); > > + ast_sdma_bufffdone(&(sdma->dma_ch->tx_dma_info[0])); > > + } else if (tx_sts & UART_SDMA1_INT) { > >

[PATCH] PM: sleep: Drop dev_pm_skip_next_resume_phases()

2019-07-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After recent hibernation-related changes, there are no more callers of dev_pm_skip_next_resume_phases() except for the PM core itself in which it is more straightforward to run the statements from that function directly, so do that and drop it. Signed-off-by: Rafael J.

Re: [PATCH v3 0/2] Hugetlbfs support for riscv

2019-07-03 Thread Christoph Hellwig
On Mon, Jul 01, 2019 at 01:58:58PM -0400, Alexandre Ghiti wrote: > - icache-hygiene succeeds after patch #3 of this series which lowers > > the base address of mmap. > I think іcache-hygiene will also need a call to

[PATCH v2 2/2] nvmet-loop: Flush nvme_delete_wq when removing the port

2019-07-03 Thread Logan Gunthorpe
After calling nvme_loop_delete_ctrl(), the controllers will not yet be deleted because nvme_delete_ctrl() only schedules work to do the delete. This means a race can occur if a port is removed but there are still active controllers trying to access that memory. To fix this, flush the

[PATCH v2 1/2] nvmet: Fix use-after-free bug when a port is removed

2019-07-03 Thread Logan Gunthorpe
When a port is removed through configfs, any connected controllers are still active and can still send commands. This causes a use-after-free bug which is detected by KASAN for any admin command that dereferences req->port (like in nvmet_execute_identify_ctrl). To fix this, disconnect all active

[PATCH v2 0/2] Fix use-after-free bug when ports are removed

2019-07-03 Thread Logan Gunthorpe
Hey, This is the second attempt at fixing this. Per Sagi's feedback on the first attempt, I've found an approach that disconnects active controllers when the subsys is removed from the port (Patch 1). Patch 2 fixes a race that still exists in the loop transport which requires us to flush the

[PATCH] ACPI: PM: Unexport acpi_device_get_power()

2019-07-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Using acpi_device_get_power() outside of ACPI device initialization and ACPI sysfs is problematic due to the way in which power resources are handled by it, so unexport it and add a paragraph explaining the pitfalls to its kerneldoc comment. Signed-off-by: Rafael J.

[PATCH v5 2/4] drm/panel: set display info in panel attach

2019-07-03 Thread Derek Basehore
Devicetree systems can set panel orientation via a panel binding, but there's no way, as is, to propagate this setting to the connector, where the property need to be added. To address this, this patch sets orientation, as well as other fixed values for the panel, in the drm_panel_attach function.

[PATCH v5 4/4] drm/mtk: add panel orientation property

2019-07-03 Thread Derek Basehore
This inits the panel orientation property for the mediatek dsi driver if the panel orientation (connector.display_info.panel_orientation) is not DRM_MODE_PANEL_ORIENTATION_UNKNOWN. Signed-off-by: Derek Basehore --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 1 file changed, 8 insertions(+)

[PATCH] gpiolib: Preserve desc->flags when setting state

2019-07-03 Thread Chris Packham
desc->flags may already have values set by of_gpiochip_add() so make sure that this isn't undone when setting the initial direction. Fixes: 3edfb7bd76bd1cba ("gpiolib: Show correct direction from the beginning") Signed-off-by: Chris Packham --- drivers/gpio/gpiolib.c | 8 1 file

Re: [PATCH v1 OPT1] driver core: Fix use-after-free and double free on glue directory

2019-07-03 Thread Benjamin Herrenschmidt
On Wed, 2019-07-03 at 21:37 +0200, Greg KH wrote: > Ok, I guess I have to take this patch, as the other one is so bad :) > > But, I need a very large comment here saying why we are poking around in > a kref and why we need to do this, at the expense of anything else. > > So can you respin this

Re: [PATCH v4 OPT2] driver core: Fix use-after-free and double free on glue directory

2019-07-03 Thread Benjamin Herrenschmidt
On Wed, 2019-07-03 at 21:36 +0200, Greg KH wrote: > > > -static struct kobject *get_device_parent(struct device *dev, > > -struct device *parent) > > +/** > > + * __get_device_parent() - Get the parent device kobject. > > + * @dev: Pointer to the device

Re: [PATCH v3 0/2] Hugetlbfs support for riscv

2019-07-03 Thread Paul Walmsley
Hi Alex, Thanks for writing and testing these patches, and thanks for your patience waiting for reviews and testing. On Mon, 1 Jul 2019, Alexandre Ghiti wrote: > This series introduces hugetlbfs support for both riscv 32/64. Riscv32 > > is architecturally limited to huge pages of

Re: [PATCH v2 4/7] net: phy: realtek: Enable accessing RTL8211E extension pages

2019-07-03 Thread Matthias Kaehlcke
On Wed, Jul 03, 2019 at 11:27:41PM +0200, Heiner Kallweit wrote: > On 03.07.2019 23:24, Matthias Kaehlcke wrote: > > On Wed, Jul 03, 2019 at 11:01:09PM +0200, Heiner Kallweit wrote: > >> On 03.07.2019 22:36, Matthias Kaehlcke wrote: > >>> On Wed, Jul 03, 2019 at 10:12:12PM +0200, Heiner Kallweit

Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute

2019-07-03 Thread Luis Chamberlain
On Wed, Jul 03, 2019 at 09:31:33PM +0200, Enrico Weigelt, metux IT consult wrote: > On 03.07.19 19:35, Luis Chamberlain wrote: > > Hi, > > >> Okay, but IIRC this will add more boilerplate those modules. > > > > Just one module attribute. > > Yes, but still one per module. This raises the

Re: [PATCH 0/3] serdev support for n_gsm

2019-07-03 Thread Pavel Machek
Hi! > and sorry about the reply latency. This is quite a lot to think about. > > I'm also adding Kishon and Mark on CC (e.g. for the phy and ASoC > bits). I just wanted to ask... any news here? > > For some user space examples, I have posted scripts to send and receive > > SMS at [3], and

Re: [PATCH 3/3] x86/mm, tracing: Fix CR2 corruption

2019-07-03 Thread Andy Lutomirski
On Wed, Jul 3, 2019 at 3:01 PM Peter Zijlstra wrote: > > On Wed, Jul 03, 2019 at 01:27:09PM -0700, Andy Lutomirski wrote: > > On Wed, Jul 3, 2019 at 3:28 AM root wrote: > > > > @@ -1338,18 +1347,9 @@ ENTRY(error_entry) > > > movq%rax, %rsp /* switch stack */ > >

[PATCH] kernel/cpu: hotplug; fix non-SYSFS build errors in arch/x86/power/

2019-07-03 Thread Randy Dunlap
From: Randy Dunlap Fix link errors when building almost-allmodconfig but CONFIG_SYSFS is not set/enabled. The missing functions should not be inside #if CONFIG_SYSFS/#endif. The non-SYSFS stub for __store_smt_control() is no longer needed. This is almost all code movement and a little

Re: [PATCH v3 0/4] Solve postboot supplier cleanup and optimize probe ordering

2019-07-03 Thread Saravana Kannan
On Tue, Jul 2, 2019 at 5:59 PM Saravana Kannan wrote: > > On Tue, Jul 2, 2019 at 5:03 PM David Collins wrote: > > > > Hello Saravana, > > > > On 7/1/19 5:48 PM, Saravana Kannan wrote: > > ... > > > TODO: > > > - For the case of consumer child sub-nodes being added by a parent > > > device

[PATCH] perf parse-events: Remove unused variable i

2019-07-03 Thread Luke Mujica
Remove int i because it is declared but not used in parse-events.y or in the generated parse-events.c. Signed-off-by: Luke Mujica --- tools/perf/util/parse-events.y | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index

  1   2   3   4   5   6   7   8   9   10   >