Re: [PATCH] kunit: Fix '--build_dir' option

2019-09-06 Thread shuah
On 9/6/19 6:05 AM, SeongJae Park wrote: kunit fails to run with '--build_dir' option because the option is not properly sent to kernel running procedure. This commit fixes the problem. Can you please include the failure you are seeing in the commit log thanks, -- Shuah

Re: [RFC 5/9] dt-bindings: arm: samsung: Convert Exynos PMU bindings to json-schema

2019-09-06 Thread Rob Herring
On Tue, Sep 3, 2019 at 12:03 PM Krzysztof Kozlowski wrote: > > On Tue, 3 Sep 2019 at 10:25, Rob Herring wrote: > > > > On Tue, Sep 3, 2019 at 8:58 AM Krzysztof Kozlowski wrote: > > > > > > On Mon, 26 Aug 2019 at 13:54, Rob Herring wrote: > > > > > > > > On Fri, Aug 23, 2019 at 9:54 AM

Re: [RFC v2 1/3] cpufreq: ti-cpufreq: add support for omap34xx and omap36xx

2019-09-06 Thread Tony Lindgren
* Viresh Kumar [190906 03:05]: > On 05-09-19, 07:32, Tony Lindgren wrote: > > Acked-by: Tony Lindgren > > Do you want to pick the series instead as this has lots of DT changes > ? It unlikely these dts changes will conflict with anything so I have no problem acking them for you for the next

[PATCH] ARM: don't export unused return_address()

2019-09-06 Thread Arnd Bergmann
Without the frame pointer enabled, return_address() is an inline function and does not need to be exported, as shown by this warning: WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL Move the EXPORT_SYMBOL_GPL() into the #ifdef as well. Signed-off-by: Arnd Bergmann ---

Re: [RFC v2 3/3] ARM: dts: omap3: bulk convert compatible to be explicitly ti,omap3430 or ti,omap36xx

2019-09-06 Thread Tony Lindgren
* H. Nikolaus Schaller [190906 07:53]: > > Am 05.09.2019 um 16:27 schrieb Tony Lindgren : > > compatible = "ti,omap3-ldp", "ti,omap3430", "ti,omap34xx", "ti,omap3"; > > After thinking a little about the whole topic the main rule of this change > must be: > > * do not break any existing in-tree

[PATCH] [RFC] Revert "iio: hid-sensor-attributes: Convert to use int_pow()"

2019-09-06 Thread Arnd Bergmann
The change to use the generic int_pow instead of the private version caused a number of build issues on 32-bit architectures and makes it generally less efficient because of the 64-bit math: drivers/iio/common/hid-sensors/hid-sensor-attributes.o: In function `hid_sensor_write_samp_freq_value':

Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged

2019-09-06 Thread Johannes Erdfelt
On Fri, Sep 06, 2019, Borislav Petkov wrote: > On Fri, Sep 06, 2019 at 07:40:39AM -0700, Johannes Erdfelt wrote: > > I ask because we have successfully used late microcode loading on tens > > of thousands of hosts. > > How do you deal with all the mitigations microcode loaded late? We developed

RE: [Patch v3] storvsc: setup 1:1 mapping between hardware queue and CPU queue

2019-09-06 Thread Michael Kelley
From: Long Li Sent: Thursday, September 5, 2019 8:35 PM > >> > >> Changes: > >> v2: rely on default upper layer function to map queues. (suggested by > >> Ming Lei > >> ) > >> v3: use num_present_cpus() instead of num_online_cpus(). Hyper-v > >> doesn't support hot-add CPUs. (suggested by Michael

[PATCH] ib_umem: fix type mismatch

2019-09-06 Thread Arnd Bergmann
On some 32-bit architectures, size_t is defined as 'int' rather than 'long', causing a harmless warning: drivers/infiniband/core/umem_odp.c:220:7: error: comparison of distinct pointer types ('typeof (umem_odp->umem.address) *' (aka 'unsigned long *') and 'typeof (umem_odp->umem.length) *' (aka

Re: [PATCH v3 04/17] arm64, hibernate: rename dst to page in create_safe_exec_page

2019-09-06 Thread Pavel Tatashin
On Fri, Sep 6, 2019 at 11:17 AM James Morse wrote: > > Hi Pavel, > > On 21/08/2019 19:31, Pavel Tatashin wrote: > > create_safe_exec_page() allocates a safe page and maps it at a > > specific location, also this function returns the physical address > > of newly allocated page. > > > > The

[PATCH] ssb: make array pwr_info_offset static const, makes object smaller

2019-09-06 Thread Colin King
From: Colin Ian King Don't populate the array pwr_info_offset on the stack but instead make it static const. Makes the object code smaller by 207 bytes. Before: textdata bss dec hex filename 260663000 64 2913071ca drivers/ssb/pci.o After: textdata

Re: [PATCH 1/2] watch_queue: make locked_vm accessible

2019-09-06 Thread Jens Axboe
On 9/6/19 9:32 AM, Arnd Bergmann wrote: > The locked_vm member of struct user_struct is guarded by an #ifdef, > which breaks building the new watch_queue driver when all the other > subsystems that need it are disabled: > > drivers/misc/watch_queue.c:315:38: error: no member named 'locked_vm' in

[PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-09-06 Thread Arnd Bergmann
HYPERVISOR_platform_op() is an inline function and should not be exported. Since commit 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions"), this causes a warning: WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static EXPORT_SYMBOL_GPL Remove the extraneous export. Fixes:

Re: [PATCH] kunit: add PRINTK dependency

2019-09-06 Thread Shuah Khan
On 9/6/19 9:27 AM, Arnd Bergmann wrote: The vprintk_emit() function is not available when CONFIG_PRINTK is disabled: kunit/test.c:22:9: error: implicit declaration of function 'vprintk_emit' [-Werror,-Wimplicit-function-declaration] I suppose without printk(), there is not much use in kunit

Re: [RFC PATCH 2/2] livepatch: Clear relocation targets on a module removal

2019-09-06 Thread Joe Lawrence
On 9/6/19 1:51 PM, Miroslav Benes wrote: Now, I don't think that replacing .ko on disk is a good idea. We've already discussed it. It would lead to a maintenance/packaging problem, because you never know which version of the module is loaded in the system. The state space grows rather rapidly

[PATCH] lz4: make LZ4HC_setExternalDict as non-static

2019-09-06 Thread Arnd Bergmann
kbuild warns for exported static symbols. This one seems to be meant as an external API but does not have any in-kernel users: WARNING: "LZ4HC_setExternalDict" [vmlinux] is a static EXPORT_SYMBOL I suppose the function should not just get removed since it would be nice to stay close to the

[GIT PULL] cpupower update for Linux 5.4-rc1

2019-09-06 Thread Shuah Khan
Hi Rafael, Please pull the following update for Linux 5.4-rc1 or 5.4-rc2 depending on your pull request schedule for Linus. This cpupower update for Linux 5.4-rc1 consists of bug fixes and German translation updates from Benjamin Weis. diff is attached. thanks, -- Shuah

[PATCH 2/2] [don't apply] watch_queue: disable sample

2019-09-06 Thread Arnd Bergmann
Building in a separate object directory causes a compilation failure for a missing header: samples/watch_queue/watch_test.c:23:10: fatal error: linux/watch_queue.h: No such file or directory I could not figure out why this does not work and applied this patch locally. It would be good to fix

[PATCH 1/2] watch_queue: make locked_vm accessible

2019-09-06 Thread Arnd Bergmann
The locked_vm member of struct user_struct is guarded by an #ifdef, which breaks building the new watch_queue driver when all the other subsystems that need it are disabled: drivers/misc/watch_queue.c:315:38: error: no member named 'locked_vm' in 'struct user_struct'; did you mean 'locked_shm'?

Re: [PATCH] unicode: make array 'token' static const, makes object smaller

2019-09-06 Thread Theodore Y. Ts'o
On Fri, Sep 06, 2019 at 02:58:07PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate the array 'token' on the stack but instead make it > static const. Makes the object code smaller by 234 bytes. > > Before: >text data bss dec hex filename >5371

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-06 Thread Petr Mladek
On Fri 2019-09-06 12:39:00, Sergey Senozhatsky wrote: > On (09/05/19 13:23), Steven Rostedt wrote: > > > I think we can queue significantly much less irq_work-s from printk(). > > > > > > Petr, Steven, what do you think? > > [..] > > I mean, really, do we need to keep calling wake up if it > >

RE: [PATCH] kunit: add PRINTK dependency

2019-09-06 Thread Tim.Bird
Minor spelling nit.. > -Original Message- > From: Arnd Bergmann > > The vprintk_emit() function is not available when CONFIG_PRINTK > is disabled: > > kunit/test.c:22:9: error: implicit declaration of function 'vprintk_emit' [- > Werror,-Wimplicit-function-declaration] > > I suppose

[PATCH] kunit: add PRINTK dependency

2019-09-06 Thread Arnd Bergmann
The vprintk_emit() function is not available when CONFIG_PRINTK is disabled: kunit/test.c:22:9: error: implicit declaration of function 'vprintk_emit' [-Werror,-Wimplicit-function-declaration] I suppose without printk(), there is not much use in kunit either, so add a Kconfig depenedency here.

Re: [PATCH -rcu dev 1/2] Revert b8c17e6664c4 ("rcu: Maintain special bits at bottom of ->dynticks counter")

2019-09-06 Thread Paul E. McKenney
On Fri, Sep 06, 2019 at 08:21:44AM -0700, Paul E. McKenney wrote: > On Fri, Sep 06, 2019 at 11:08:06AM -0400, Joel Fernandes wrote: > > On Thu, Sep 05, 2019 at 08:01:37PM -0400, Joel Fernandes wrote: > > [snip] > > > > > > @@ -3004,7 +3007,7 @@ static int rcu_pending(void) > > > > > >

[PATCH v2 4/5] selftest/exec: Add tests for O_MAYEXEC enforcing

2019-09-06 Thread Mickaël Salaün
Test propagation of noexec mount points or file executability through files open with or without O_MAYEXEC. Changes since v1: * move tests from yama to exec * fix _GNU_SOURCE in kselftest_harness.h * add a new test sysctl_access_write to check if CAP_MAC_ADMIN is taken into account * test

[PATCH v2 2/5] fs: Add a MAY_EXECMOUNT flag to infer the noexec mount propertie

2019-09-06 Thread Mickaël Salaün
An LSM doesn't get path information related to an access request to open an inode. This new (internal) MAY_EXECMOUNT flag enables an LSM to check if the underlying mount point of an inode is marked as executable. This is useful to implement a security policy taking advantage of the noexec mount

[PATCH v2 5/5] doc: Add documentation for the fs.open_mayexec_enforce sysctl

2019-09-06 Thread Mickaël Salaün
Changes since v1: * move from LSM/Yama to sysctl/fs Signed-off-by: Mickaël Salaün Reviewed-by: Philippe Trébuchet Reviewed-by: Thibaut Sautereau Cc: Jonathan Corbet Cc: Kees Cook Cc: Mickaël Salaün --- Documentation/admin-guide/sysctl/fs.rst | 43 + 1 file changed,

[PATCH v2 3/5] fs: Enable to enforce noexec mounts or file exec through O_MAYEXEC

2019-09-06 Thread Mickaël Salaün
Enable to either propagate the mount options from the underlying VFS mount to prevent execution, or to propagate the file execute permission. This may allow a script interpreter to check execution permissions before reading commands from a file. The main goal is to be able to protect the kernel

[PATCH v2 1/5] fs: Add support for an O_MAYEXEC flag on sys_open()

2019-09-06 Thread Mickaël Salaün
When the O_MAYEXEC flag is passed, sys_open() may be subject to additional restrictions depending on a security policy implemented by an LSM through the inode_permission hook. The underlying idea is to be able to restrict scripts interpretation according to a policy defined by the system

[PATCH v2 0/5] Add support for O_MAYEXEC

2019-09-06 Thread Mickaël Salaün
Hi, The goal of this patch series is to control script interpretation. A new O_MAYEXEC flag used by sys_open() is added to enable userspace script interpreter to delegate to the kernel (and thus the system security policy) the permission to interpret/execute scripts or other files containing

[PATCH] pinctrl: intel: hide unused intel_pin_to_gpio

2019-09-06 Thread Arnd Bergmann
The intel_pin_to_gpio() function is only called by the PM support functions and causes a warning when those are disabled: drivers/pinctrl/intel/pinctrl-intel.c:841:12: error: unused function 'intel_pin_to_gpio' [-Werror,-Wunused-function] As we cannot change the PM functions themselves to use

Re: [PATCH v8 0/7] mm / virtio: Provide support for unused page reporting

2019-09-06 Thread Alexander Duyck
On Fri, Sep 6, 2019 at 8:23 AM Michael S. Tsirkin wrote: > > On Fri, Sep 06, 2019 at 07:53:21AM -0700, Alexander Duyck wrote: > > This series provides an asynchronous means of reporting to a hypervisor > > that a guest page is no longer in use and can have the data associated > > with it dropped.

[PATCH] rtc: meson: mark PM functions as __maybe_unused

2019-09-06 Thread Arnd Bergmann
The meson_vrtc_set_wakeup_time() function is only used by the PM functions and causes a warning when they are disabled: drivers/rtc/rtc-meson-vrtc.c:32:13: error: unused function 'meson_vrtc_set_wakeup_time' [-Werror,-Wunused-function] Remove the #ifdef around the callers and add a

Re: [PATCH v8 0/7] mm / virtio: Provide support for unused page reporting

2019-09-06 Thread Michael S. Tsirkin
On Fri, Sep 06, 2019 at 07:53:21AM -0700, Alexander Duyck wrote: > This series provides an asynchronous means of reporting to a hypervisor > that a guest page is no longer in use and can have the data associated > with it dropped. To do this I have implemented functionality that allows > for what

Re: [PATCH -rcu dev 1/2] Revert b8c17e6664c4 ("rcu: Maintain special bits at bottom of ->dynticks counter")

2019-09-06 Thread Paul E. McKenney
On Fri, Sep 06, 2019 at 11:08:06AM -0400, Joel Fernandes wrote: > On Thu, Sep 05, 2019 at 08:01:37PM -0400, Joel Fernandes wrote: > [snip] > > > > > @@ -3004,7 +3007,7 @@ static int rcu_pending(void) > > > > > return 0; > > > > > > > > > > /* Is the RCU core waiting for a

Re: [PATCH] arm: fix page faults in do_alignment

2019-09-06 Thread Russell King - ARM Linux admin
On Mon, Sep 02, 2019 at 12:36:56PM -0500, Eric W. Biederman wrote: > Russell King - ARM Linux admin writes: > > > On Fri, Aug 30, 2019 at 04:02:48PM -0500, Eric W. Biederman wrote: > >> Russell King - ARM Linux admin writes: > >> > >> > On Fri, Aug 30, 2019 at 02:45:36PM -0500, Eric W.

Re: [PATCH v3 07/17] arm64, hibernate: move page handling function to new trans_pgd.c

2019-09-06 Thread James Morse
Hi Pavel, On 21/08/2019 19:31, Pavel Tatashin wrote: > Now, that we abstracted the required functions move them to a new home. > Later, we will generalize these function in order to be useful outside > of hibernation. > diff --git a/arch/arm64/mm/trans_pgd.c b/arch/arm64/mm/trans_pgd.c > new

Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged

2019-09-06 Thread Borislav Petkov
On Fri, Sep 06, 2019 at 07:40:39AM -0700, Johannes Erdfelt wrote: > You say that switching of CPU feature bits is problematic, but adding > new features should result only in a warning ("x86/CPU: CPU features > have changed after loading microcode, but might not take effect."). That's the only

[RESEND PATCH] memory: atmel-ebi: switch to SPDX license identifiers

2019-09-06 Thread Tudor.Ambarus
From: Tudor Ambarus Adopt the SPDX license identifiers to ease license compliance management. Signed-off-by: Tudor Ambarus --- drivers/memory/atmel-ebi.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c index

[git pull] IOMMU Fixes for Linux v5.3-rc7

2019-09-06 Thread Joerg Roedel
Hi Linus, The following changes since commit a55aa89aab90fae7c815b0551b07be37db359d76: Linux 5.3-rc6 (2019-08-25 12:01:23 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.3-rc7 for you to fetch changes up to

[PATCH] fbdev/sa1100fb: Remove even more dead code

2019-09-06 Thread Arnd Bergmann
This function lost its only call site as part of earlier dead code removal, so remove it as well: drivers/video/fbdev/sa1100fb.c:975:21: error: unused function 'sa1100fb_min_dma_period' [-Werror,-Wunused-function] Fixes: 390e5de11284 ("fbdev/sa1100fb: Remove dead code") Signed-off-by: Arnd

[PATCH] mostpost: don't warn about symbols from another file

2019-09-06 Thread Arnd Bergmann
On architectures such as ARM that have a list of symbols exported from assembler in a separate C file, we get a lot of new warnings: WARNING: "__ashrdi3" [vmlinux] is a static (unknown) WARNING: "__lshrdi3" [vmlinux] is a static (unknown) WARNING: "__aeabi_llsr" [vmlinux] is a static (unknown)

[PATCH net-next] netfilter: nf_tables: avoid excessive stack usage

2019-09-06 Thread Arnd Bergmann
The nft_offload_ctx structure is much too large to put on the stack: net/netfilter/nf_tables_offload.c:31:23: error: stack frame size of 1200 bytes in function 'nft_flow_rule_create' [-Werror,-Wframe-larger-than=] Use dynamic allocation here, as we do elsewhere in the same function. Fixes:

[PATCH] net/mlx5: reduce stack usage in FW tracer

2019-09-06 Thread Arnd Bergmann
It's generally not ok to put a 512 byte buffer on the stack, as kernel stack is a scarce resource: drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:660:13: error: stack frame size of 1032 bytes in function 'mlx5_fw_tracer_handle_traces' [-Werror,-Wframe-larger-than=] This is done in a

[PATCH] rdma/siw: fix NOMMU build

2019-09-06 Thread Arnd Bergmann
On kernels without CONFIG_MMU, we get a link error for the siw driver: drivers/infiniband/sw/siw/siw_mem.o: In function `siw_umem_get': siw_mem.c:(.text+0x4c8): undefined reference to `can_do_mlock' I don't know whether this driver is able to work at all without an MMU, but it's easy to avoid

Re: [PATCH -rcu dev 1/2] Revert b8c17e6664c4 ("rcu: Maintain special bits at bottom of ->dynticks counter")

2019-09-06 Thread Joel Fernandes
On Thu, Sep 05, 2019 at 08:01:37PM -0400, Joel Fernandes wrote: [snip] > > > > @@ -3004,7 +3007,7 @@ static int rcu_pending(void) > > > > return 0; > > > > > > > > /* Is the RCU core waiting for a quiescent state from this CPU? > > > > */ > > > > - if

Re: /dev/mem and secure boot

2019-09-06 Thread Jean Delvare
D'oh, I hit reply while still editing... Sorry for the noise, a better answer will come later when ready. -- Jean Delvare SUSE L3 Support

[PATCH 2/2] exfat: stop using 32-bit time_t

2019-09-06 Thread Arnd Bergmann
time_t suffers from overflow problems and should not be used. In exfat, it is currently used in two open-coded time64_to_tm() implementations. Changes those to use the existing function instead. Signed-off-by: Arnd Bergmann --- drivers/staging/exfat/exfat_super.c | 164

Re: /dev/mem and secure boot

2019-09-06 Thread Jean Delvare
On Fri, 6 Sep 2019 14:15:10 +0200, Greg Kroah-Hartman wrote: > On Fri, Sep 06, 2019 at 01:02:21PM +0200, Jean Delvare wrote: > > I've been bitten recently by mcelog not working on machines started in > > secure boot mode. mcelog tries to read DMI information from /dev/mem > > and fails to open it.

[PATCH] media: imx7-mipi-csis: make array 'registers' static const, makes object smaller

2019-09-06 Thread Colin King
From: Colin Ian King Don't populate the array 'registers' on the stack but instead make it static const. Makes the object code smaller by 10 bytes. Before: textdata bss dec hex filename 201385196 128 254626376 staging/media/imx/imx7-mipi-csis.o After: text

[PATCH 1/2] exfat stopusing CONFIG_FAT_DEFAULT_IOCHARSET

2019-09-06 Thread Arnd Bergmann
When CONFIG_VFAT_FS is disabled, the reference to CONFIG_FAT_DEFAULT_IOCHARSET causes a link failure: drivers/staging/exfat/exfat_super.c:46:41: error: use of undeclared identifier 'CONFIG_FAT_DEFAULT_IOCHARSET' static char exfat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET; I could not

Re: [PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-06 Thread Srinivas Pandruvada
On Fri, 2019-09-06 at 07:50 -0700, Srinivas Pandruvada wrote: > On Fri, 2019-09-06 at 16:46 +0300, Andy Shevchenko wrote: > > On Fri, Sep 06, 2019 at 05:39:54AM -0400, Prarit Bhargava wrote: > > > On 9/5/19 7:37 PM, Srinivas Pandruvada wrote: > > > > Read the bucket and core count relationship via

[RESEND PATCH] memory: atmel-ebi: move NUM_CS definition inside EBI driver

2019-09-06 Thread Tudor.Ambarus
From: Tudor Ambarus The total number of EBI CS lines is described by the EBI controller and not by the Matrix. Move the definition for the number of CS inside EBI driver. Signed-off-by: Tudor Ambarus --- drivers/memory/atmel-ebi.c | 6 --

revert: ASoC: Fail card instantiation if DAI format setup fails

2019-09-06 Thread Ricard Wanderlof
Sorry for the repost, I relized I stupidly got Greg's email adress wrong first time around. > > On Tue, Aug 27, 2019 at 12:00:14PM +0100, Mark Brown wrote: > > > On Sun, Aug 25, 2019 at 09:35:15PM -0400, Sasha Levin wrote: > > > > On Wed, Aug 14, 2019 at 10:22:13AM +0100, Mark Brown wrote: > >

Re: [PATCH v2] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-06 Thread Matthew Wilcox
On Fri, Sep 06, 2019 at 09:57:47PM +0800, Jia He wrote: >* This really shouldn't fail, because the page is there >* in the page tables. But it might just be unreadable, >* in which case we just give up and fill the result with > - *

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-06 Thread Petr Mladek
On Thu 2019-09-05 20:32:08, Sergey Senozhatsky wrote: > On (09/04/19 16:42), Qian Cai wrote: > > > Let me think more. > > > > To summary, those look to me are all good long-term improvement that would > > reduce the likelihood of this kind of livelock in general especially for > > other > >

[PATCH v8 QEMU 2/3] virtio-balloon: Add bit to notify guest of unused page reporting

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck Add a bit for the page reporting feature provided by virtio-balloon. This patch should be replaced once the feature is added to the Linux kernel and the bit is backported into this exported kernel header. Signed-off-by: Alexander Duyck ---

[PATCH v8 QEMU 1/3] virtio-ballon: Implement support for page poison tracking feature

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck We need to make certain to advertise support for page poison tracking if we want to actually get data on if the guest will be poisoning pages. So if free page hinting is active we should add page poisoning support and let the guest disable it if it isn't using it. Page

[PATCH v8 QEMU 3/3] virtio-balloon: Provide a interface for unused page reporting

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck Add support for what I am referring to as "unused page reporting". Basically the idea is to function very similar to how the balloon works in that we basically end up madvising the page as not being used. However we don't really need to bother with any deflate type logic

[PATCH v8 7/7] virtio-balloon: Add support for providing unused page reports to host

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck Add support for the page reporting feature provided by virtio-balloon. Reporting differs from the regular balloon functionality in that is is much less durable than a standard memory balloon. Instead of creating a list of pages that cannot be accessed the pages are only

[PATCH v8 6/7] virtio-balloon: Pull page poisoning config out of free page hinting

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck Currently the page poisoning setting wasn't being enabled unless free page hinting was enabled. However we will need the page poisoning tracking logic as well for unused page reporting. As such pull it out and make it a separate bit of config in the probe function. In

[PATCH v8 5/7] mm: Introduce Reported pages

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck In order to pave the way for free page reporting in virtualized environments we will need a way to get pages out of the free lists and identify those pages after they have been returned. To accomplish this, this patch adds the concept of a Reported Buddy, which is

[PATCH v8 4/7] mm: Use zone and order instead of free area in free_list manipulators

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck In order to enable the use of the zone from the list manipulator functions I will need access to the zone pointer. As it turns out most of the accessors were always just being directly passed >free_area[order] anyway so it would make sense to just fold that into the

[PATCH v8 1/7] mm: Add per-cpu logic to page shuffling

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck Change the logic used to generate randomness in the suffle path so that we can avoid cache line bouncing. The previous logic was sharing the offset and entropy word between all CPUs. As such this can result in cache line bouncing and will ultimately hurt performance when

[PATCH v8 3/7] mm: Move set/get_pcppage_migratetype to mmzone.h

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck In order to support page reporting it will be necessary to store and retrieve the migratetype of a page. To enable that I am moving the set and get operations for pcppage_migratetype into the mm/internal.h header so that they can be used outside of the page_alloc.c file.

[PATCH v8 2/7] mm: Adjust shuffle code to allow for future coalescing

2019-09-06 Thread Alexander Duyck
From: Alexander Duyck Move the head/tail adding logic out of the shuffle code and into the __free_one_page function since ultimately that is where it is really needed anyway. By doing this we should be able to reduce the overhead and can consolidate all of the list addition bits in one spot.

[PATCH v8 0/7] mm / virtio: Provide support for unused page reporting

2019-09-06 Thread Alexander Duyck
This series provides an asynchronous means of reporting to a hypervisor that a guest page is no longer in use and can have the data associated with it dropped. To do this I have implemented functionality that allows for what I am referring to as unused page reporting The functionality for this is

Re: [PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-06 Thread Srinivas Pandruvada
On Fri, 2019-09-06 at 16:46 +0300, Andy Shevchenko wrote: > On Fri, Sep 06, 2019 at 05:39:54AM -0400, Prarit Bhargava wrote: > > On 9/5/19 7:37 PM, Srinivas Pandruvada wrote: > > > Read the bucket and core count relationship via MSR and display > > > when displaying turbo ratio limits. > > > + ret

Re: [PATCH] eeprom: Deprecate the legacy eeprom driver

2019-09-06 Thread Jean Delvare
Hi Greg, On Wed, 4 Sep 2019 09:57:29 +0200, Greg Kroah-Hartman wrote: > On Mon, Sep 02, 2019 at 10:48:38AM +0200, Jean Delvare wrote: > > Time has come to get rid of the old eeprom driver. The at24 driver > > should be used instead. So mark the eeprom driver as deprecated and > > give users some

Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged

2019-09-06 Thread Johannes Erdfelt
On Fri, Sep 06, 2019, Thomas Gleixner wrote: > What your customers are asking for is a receipe for disaster. They can > check the safety of late loading forever, it will not magically become safe > because they do so. > > If you want late loading, then the whole approach needs to be reworked

Re: Regression in 5.1.20: Reading long directory fails

2019-09-06 Thread J. Bruce Fields
On Tue, Sep 03, 2019 at 08:50:39PM -0500, Jason L Tibbitts III wrote: > I asked the XFS folks who mentioned that the issues with 64 bit inodes > are old, constrained to larger filesystems than what I'm using, not an > issue with nfsv4, and not present on anything but 32bit clients with old >

Re: [PATCH] lan743x: remove redundant assignment to variable rx_process_result

2019-09-06 Thread David Miller
From: Colin King Date: Thu, 5 Sep 2019 15:01:35 +0100 > From: Colin Ian King > > The variable rx_process_result is being initialized with a value that > is never read and is being re-assigned immediately afterwards. The > assignment is redundant, so replace it with the return from function >

[PATCH -next] perf/arm-cci: use devm_platform_ioremap_resource() to simplify code

2019-09-06 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/perf/arm-cci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/perf/arm-cci.c b/drivers/perf/arm-cci.c index 8f8606b..1b8e337

Re: [PATCH] mailmap: Update email address for Quentin Perret

2019-09-06 Thread Jonathan Corbet
On Fri, 6 Sep 2019 10:22:47 +0100 Will Deacon wrote: > > If there's some value to having an entry in the mailmap file, then > > obviously it should be added. I didn't resist so much as engage in a > > little muttering under my breath as I applied the patch... > > Ok, just wanted to make sure

Re: [v2] ACPI: support for NXP i2c controller

2019-09-06 Thread Oleksij Rempel
On Fri, Sep 06, 2019 at 03:53:19PM +0800, Biwen Li wrote: > From: Chuanhua Han > > Enable NXP i2c controller to boot with ACPI > > Signed-off-by: Meenakshi Aggarwal > Signed-off-by: Udit Kumar > Signed-off-by: Chuanhua Han > Signed-off-by: Biwen Li for i2c-imx.c: Acked-by: Oleksij Rempel

[PATCH -next] perf/arm-ccn: use devm_platform_ioremap_resource() to simplify code

2019-09-06 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/perf/arm-ccn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c index 6fc0273..fee5cb2

[PATCH -next] perf/smmuv3: gpio: creg-snps: use devm_platform_ioremap_resource() to simplify code

2019-09-06 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/perf/arm_smmuv3_pmu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/perf/arm_smmuv3_pmu.c b/drivers/perf/arm_smmuv3_pmu.c

[PATCH -next] perf: xgene: use devm_platform_ioremap_resource() to simplify code

2019-09-06 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/perf/xgene_pmu.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index

[PATCH v4 5/5] locking/qspinlock: Introduce the shuffle reduction optimization into CNA

2019-09-06 Thread Alex Kogan
This optimization reduces the probability threads will be shuffled between the main and secondary queues when the secondary queue is empty. It is helpful when the lock is only lightly contended. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare --- kernel/locking/qspinlock_cna.h | 20

[PATCH -next] perf: hisi: use devm_platform_ioremap_resource() to simplify code

2019-09-06 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 5 + drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 4 +--- drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 4 +---

[PATCH v4 2/5] locking/qspinlock: Refactor the qspinlock slow path

2019-09-06 Thread Alex Kogan
Move some of the code manipulating the spin lock into separate functions. This would allow easier integration of alternative ways to manipulate that lock. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare --- kernel/locking/qspinlock.c | 38 -- 1 file

[PATCH v4 1/5] locking/qspinlock: Rename arch_mcs_spin_unlock_contended to arch_mcs_pass_lock and make it more generic

2019-09-06 Thread Alex Kogan
The new macro should accept the value to be stored into the lock argument as another argument. This allows using the same macro in cases where the value to be stored when passing the lock is different from 1. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare ---

[PATCH v4 0/5] Add NUMA-awareness to qspinlock

2019-09-06 Thread Alex Kogan
Changes from v3: - Store encoded pointer in @locked, as suggested by Longman. As a result, mcs_node size is now intact. - Add a new kernel boot command-line option "numa_spinlock=on/off/auto", which may override the selection of the NUMA-aware spinlock during boot, as requested

[PATCH v4 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-09-06 Thread Alex Kogan
In CNA, spinning threads are organized in two queues, a main queue for threads running on the same node as the current lock holder, and a secondary queue for threads running on other nodes. At the unlock time, the lock holder scans the main queue looking for a thread running on the same node. If

[PATCH v4 4/5] locking/qspinlock: Introduce starvation avoidance into CNA

2019-09-06 Thread Alex Kogan
Choose the next lock holder among spinning threads running on the same node with high probability rather than always. With small probability, hand the lock to the first thread in the secondary queue or, if that queue is empty, to the immediate successor of the current lock holder in the main

RE: [PATCH v3 net-next] net: stmmac: Add support for MDIO interrupts

2019-09-06 Thread Jose Abreu
From: Andrew Lunn Date: Sep/06/2019, 15:24:46 (UTC+00:00) > On Fri, Sep 06, 2019 at 01:31:14PM +, Jose Abreu wrote: > > From: Voon Weifeng > > Date: Sep/05/2019, 13:05:30 (UTC+00:00) > > > > > DW EQoS v5.xx controllers added capability for interrupt generation > > > when MDIO interface is

[RESEND PATCH v3 3/3] arm64: dts: meson-g12b-ugoos-am6: add initial device-tree

2019-09-06 Thread Christian Hewitt
The Ugoos AM6 is based on the Amlogic W400 (G12B) reference design using the S922X chipset. Hardware specifications: - 2GB LPDDR4 RAM - 16GB eMMC storage - 10/100/1000 Base-T Ethernet using External RGMII PHY - 802.11 a/b/g/b/ac + BT 5.0 sdio wireless (Ampak 6398S) - HDMI 2.0 (4k@60p) video -

[RESEND PATCH v3 2/3] dt-bindings: arm: amlogic: Add support for the Ugoos AM6

2019-09-06 Thread Christian Hewitt
The Ugoos AM6 is based on the Amlogic W400 (G12B) reference design using the S922X chipset. Acked-by: Rob Herring Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[RESEND PATCH v3 1/3] dt-bindings: Add vendor prefix for Ugoos

2019-09-06 Thread Christian Hewitt
Ugoos Industrial Co., Ltd. are a manufacturer of ARM based TV Boxes/Dongles, Digital Signage and Advertisement Solutions [0]. [0] (https://ugoos.com) Acked-by: Rob Herring Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2

[RESEND PATCH v3 0/3] arm64: meson-g12b: Add support for the Ugoos AM6

2019-09-06 Thread Christian Hewitt
This patchset adds support for the Ugoos AM6, an Android STB based on the Amlogic W400 reference design with the S922X chipset. v2: correction of minor nits v3: address regulator and GPIO corrections from Neil Armstrong (using schematic excerpts from Ugoos) and related v2 comments from Martin

Re: [RFC PATCH 1/9] sched,cgroup: Add interface for latency-nice

2019-09-06 Thread Vincent Guittot
On Fri, 6 Sep 2019 at 16:13, Valentin Schneider wrote: > > On 06/09/2019 13:45, Parth Shah wrote:> > > I guess there is some usecase in case of thermal throttling. > > If a task is heating up the core then in ideal scenarios POWER systems > > throttle > > down to rated frequency. > > In such

Re: [PATCH] ABI: Update dev-kmsg documentation to match current kernel behaviour

2019-09-06 Thread Petr Mladek
On Tue 2019-09-03 14:02:20, Sergey Senozhatsky wrote: > On (09/02/19 11:18), James Byrne wrote: > > Commit 5aa068ea4082 ("printk: remove games with previous record flags") > > abolished the practice of setting the log flag to 'c' for the first > > continuation line and '+' for subsequent lines.

LOAN OFFER NOW @ 3% INTEREST RATE

2019-09-06 Thread TRUST LOAN
-- DEAR SIR / MADAM, ARE YOU TIRED OF SEEKING LOANS AND MORTGAGES? OR WERE YOU REJECTED BY BANKS AND OTHER FINANCIAL INSTITUTIONS? THIS IS TO INFORM YOU INSTANT TRUST LOAN COMPANY OFFERS ALL TYPES OF CREDIT INTEREST @ 3%. CONTACT US WITH THE FOLLOWING INFORMATION SO WE CAN MOVE ON TO THE

[PATCH] mm/shmem.c: make array 'values' static const, makes object smaller

2019-09-06 Thread Colin King
From: Colin Ian King Don't populate the array 'values' on the stack but instead make it static const. Makes the object code smaller by 111 bytes. Before: textdata bss dec hex filename 108612 11169 512 120293 1d5e5 mm/shmem.o After: textdata bss dec

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-06 Thread Keith Busch
On Fri, Sep 06, 2019 at 09:48:21AM +0800, Ming Lei wrote: > When one IRQ flood happens on one CPU: > > 1) softirq handling on this CPU can't make progress > > 2) kernel thread bound to this CPU can't make progress > > For example, network may require softirq to xmit packets, or another irq >

Re: [PATCH v3 net-next] net: stmmac: Add support for MDIO interrupts

2019-09-06 Thread Andrew Lunn
On Fri, Sep 06, 2019 at 01:31:14PM +, Jose Abreu wrote: > From: Voon Weifeng > Date: Sep/05/2019, 13:05:30 (UTC+00:00) > > > DW EQoS v5.xx controllers added capability for interrupt generation > > when MDIO interface is done (GMII Busy bit is cleared). > > This patch adds support for this

Re: [PATCH v4 4/4] KVM: X86: Tune PLE Window tracepoint

2019-09-06 Thread Sean Christopherson
On Fri, Sep 06, 2019 at 10:17:22AM +0800, Peter Xu wrote: > The PLE window tracepoint triggers even if the window is not changed, > and the wording can be a bit confusing too. One example line: > > kvm_ple_window: vcpu 0: ple_window 4096 (shrink 4096) > > It easily let people think of "the

Re: [RFC PATCH v4 0/9] printk: new ringbuffer implementation

2019-09-06 Thread Peter Zijlstra
On Fri, Sep 06, 2019 at 04:01:26PM +0200, Peter Zijlstra wrote: > On Fri, Sep 06, 2019 at 02:42:11PM +0200, Petr Mladek wrote: > > 7. People would complain when continuous lines become less > >reliable. It might be most visible when mixing backtraces > >from all CPUs. Simple sorting by

Re: [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test

2019-09-06 Thread Cristian Marussi
On 06/09/2019 14:55, Andrey Konovalov wrote: > On Fri, Sep 6, 2019 at 3:51 PM Will Deacon wrote: >> >> On Wed, Sep 04, 2019 at 06:41:00PM +0200, Andrey Konovalov wrote: >>> tags_test.c relies on PR_SET_TAGGED_ADDR_CTRL/PR_TAGGED_ADDR_ENABLE being >>> present in system headers. When this is not

Re: [PATCH v4 3/4] KVM: VMX: Change ple_window type to unsigned int

2019-09-06 Thread Sean Christopherson
On Fri, Sep 06, 2019 at 10:17:21AM +0800, Peter Xu wrote: > The VMX ple_window is 32 bits wide, so logically it can overflow with > an int. The module parameter is declared as unsigned int which is > good, however the dynamic variable is not. Switching all the > ple_window references to use

<    1   2   3   4   5   6   7   8   9   >