[PATCH v3 1/4] mm/memory_hotplug: enforce block size aligned range check

2018-02-13 Thread Pavel Tatashin
Start qemu with the following arguments: -m 64G,slots=2,maxmem=66G -object memory-backend-ram,id=mem1,size=2G Which: boots machine with 64G, and adds a device mem1 with 2G which can be hotplugged later. Also make sure that config has the following turned on: CONFIG_MEMORY_HOTPLUG

[PATCH v3 0/4] optimize memory hotplug

2018-02-13 Thread Pavel Tatashin
Changelog: v2 - v3 Fixed two issues found during testing Addressed Kbuild warning reports v1 - v2 Added struct page poisoning checking in order to verify that struct pages are never accessed until initialized during memory hotplug This

Schnelle Kredite

2018-02-13 Thread Sec Capital Loan
Darlehen Angebot bei 3%, zögern Sie nicht, uns für weitere Informationen zu kontaktieren

[PATCH] ARC: Don't check presense of Timer1 in SMP builds

2018-02-13 Thread Alexey Brodkin
In case of SMP we use GFRC from ARconnect and Timer1 is left untouched. Still with that check in place we're panicing if Timer1 is missing in current hardware which is quite unexpected. Signed-off-by: Alexey Brodkin --- arch/arc/kernel/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] arm64: acpi,efi: fix alignment fault in accessing ACPI tables at kdump

2018-02-13 Thread Ard Biesheuvel
On 9 February 2018 at 16:03, James Morse wrote: > Hi Akashi, Ard, > > On 02/02/18 04:35, AKASHI Takahiro wrote: >> On Thu, Feb 01, 2018 at 05:34:26PM +, Ard Biesheuvel wrote: >>> On 1 February 2018 at 09:04, AKASHI Takahiro >>> wrote: * Initial ACPI tables are normally stored in system

Re: [PATCH] mm/gup: Fixed coding style error and warnings.

2018-02-13 Thread Matthew Wilcox
On Tue, Feb 13, 2018 at 02:17:22PM -0500, Mario Leinweber wrote: > if (flags & FOLL_SPLIT && PageTransCompound(page)) { > int ret; > + > get_page(page); Hi Mario, Thanks for your patch, but this kind of change to the Linux core is not generally welcomed. There

[tip:x86/urgent 14/14] drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1690:22: sparse: incorrect type in argument 1 (different base types)

2018-02-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent head: 0fc8483b698620ea3d8cc6635b54eccc613c23a3 commit: 0fc8483b698620ea3d8cc6635b54eccc613c23a3 [14/14] x86/io: Define readq()/writeq() to use 64-bit type reproduce: # apt-get install sparse git

Re: [PATCH] vsprintf: replace space with readable '=' before crng is ready

2018-02-13 Thread Tobin C. Harding
On Tue, Feb 13, 2018 at 08:16:57AM +0100, Rasmus Villemoes wrote: > On 13 February 2018 at 07:20, Shunyong Yang > wrote: > > > > > This patch replaces space with readable "=" when output needs padding. > > Following is the output after applying the patch, > > > Suggested-by: Rasmus Villemoes >

Re: [PATCH 2/2] powerpc/pseries: Declare optional dummy function for find_and_online_cpu_nid

2018-02-13 Thread Tyrel Datwyler
On 02/12/2018 02:34 PM, Guenter Roeck wrote: > Commit e67e02a544e9 ("powerpc/pseries: Fix cpu hotplug crash with > memoryless nodes") adds an unconditional call to find_and_online_cpu_nid(), > which is only declared if CONFIG_PPC_SPLPAR is enabled. This results in > the following build error if

Re: [PATCH 14/14] x86/crypto: aesni: Update aesni-intel_glue to use scatter/gather

2018-02-13 Thread Junaid Shahid
[Resending after delivery failure] Hi Dave, On 02/13/2018 10:22 AM, Dave Watson wrote: > > Yes, these both sound reasonable. I will send a V2. > > Thanks! Another minor suggestion for v2: It might be a good idea to check if the first assoclen bytes are already contiguous and only do the

Re: [PATCH v9 2/3] arm: dts: add Nuvoton NPCM750 device tree

2018-02-13 Thread Arnd Bergmann
On Tue, Feb 13, 2018 at 8:12 PM, Brendan Higgins wrote: > On Tue, Feb 13, 2018 at 1:29 AM, Avi Fishman wrote: >> On Tue, Feb 13, 2018 at 10:30 AM, Arnd Bergmann wrote: >>> On Tue, Feb 6, 2018 at 12:57 AM, Brendan Higgins >>> wrote: Add a common device tree for all Nuvoton NPCM750 BMCs and

Re: [PATCH] ARC: Don't check presense of Timer1 in SMP builds

2018-02-13 Thread Vineet Gupta
On 02/13/2018 11:35 AM, Alexey Brodkin wrote: In case of SMP we use GFRC from ARconnect and Timer1 is left untouched. Still with that check in place we're panicing if Timer1 is missing in current hardware which is quite unexpected. Signed-off-by: Alexey Brodkin --- arch/arc/kernel/setup.c |

[PATCH] Fix cleanup when VAS is not configured

2018-02-13 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Fri, 9 Feb 2018 11:49:06 -0600 Subject: [PATCH 1/1] powerpc/vas: Fix cleanup when VAS is not configured When VAS is not configured, unregister the platform driver. Also simplify cleanup by delaying vas debugfs init until we know VAS is configured. Signed-off-by:

Re: Calling Good Hackers - Xay Glu Deliar Hackers.

2018-02-13 Thread Ywe Cærlyn
Den 2/11/2018 23:32, skrev Ywe Cærlyn: Ii is an unique time to do something good, with available source, and dethrone Microsoft, its dodgy background, and lack of decent thread prioritation Unix had already in the 70s. People should move to the BSD 3-clause licence though. Research shows

Re: [tip:x86/urgent 14/14] drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1690:22: sparse: incorrect type in argument 1 (different base types)

2018-02-13 Thread Andy Shevchenko
On Wed, 2018-02-14 at 03:41 +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86/urgent > head: 0fc8483b698620ea3d8cc6635b54eccc613c23a3 > commit: 0fc8483b698620ea3d8cc6635b54eccc613c23a3 [14/14] x86/io: > Define readq()/writeq() to use

Re: [PATCH] headers: untangle kmemleak.h from mm.h

2018-02-13 Thread Randy Dunlap
On 02/13/2018 02:09 AM, Michael Ellerman wrote: > Randy Dunlap writes: > >> On 02/12/2018 04:28 AM, Michael Ellerman wrote: >>> Randy Dunlap writes: >>> From: Randy Dunlap Currently #includes for no obvious reason. It looks like it's only a convenience, so remove

4.16-rc1: UBSAN warning in nouveau/nvkm/subdev/therm/base.c + oops in nvkm_therm_clkgate_fini

2018-02-13 Thread Meelis Roos
This is 4.16-rc1+todays git ona lowly P4 with NV5, worked fine in 4.15: [7.361155] nouveau :01:00.0: NVIDIA NV05 (20154000) [7.386601] nouveau :01:00.0: bios: version 02.05.19.03.00 [7.386715] nouveau :01:00.0: bios: DCB table not found [7.386983] nouveau :01:00.0:

[PATCH v10 0/3] arm: npcm: add basic support for Nuvoton BMCs

2018-02-13 Thread Brendan Higgins
Addressed comments from: - Joel: https://www.spinics.net/lists/arm-kernel/msg634074.html - Arnd: https://www.spinics.net/lists/arm-kernel/msg634091.html Summary of changes since previous update: - Replaced "nuvoton,npcm7xx-smp" compatibility string with "nuvoton,npcm750-smp". - Fixed some

[PATCH v10 2/3] arm: dts: add Nuvoton NPCM750 device tree

2018-02-13 Thread Brendan Higgins
Add a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Reviewed-by: Joel Stanley Reviewed-by: Rob Herring Tested-by: Tomer Maimon

[PATCH v10 1/3] arm: npcm: add basic support for Nuvoton BMCs

2018-02-13 Thread Brendan Higgins
Adds basic support for the Nuvoton NPCM750 BMC. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman Tested-by: Tomer Maimon Tested-by: Avi Fishman --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile| 1 + arch/arm/mach-npcm/Kconfig | 48

[PATCH v10 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2018-02-13 Thread Brendan Higgins
Add maintainers and reviewers for the Nuvoton NPCM architecture. Signed-off-by: Brendan Higgins Reviewed-by: Tomer Maimon Reviewed-by: Avi Fishman --- MAINTAINERS | 14 ++ 1 file changed, 14 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 44cb004c765d..2fa95aba0f7f

[RFC PATCH martinbrandenburg] orangefs: orangefs_write_inode() can be static

2018-02-13 Thread kbuild test robot
Fixes: 525e7273bc80 ("orangefs: let setattr write to cached inode") Signed-off-by: Fengguang Wu --- super.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index 49bb1ce..c38310c 100644 --- a/fs/orangefs/super.c +++

[martinbrandenburg:for-next 13/13] fs/orangefs/super.c:153:5: sparse: symbol 'orangefs_write_inode' was not declared. Should it be static?

2018-02-13 Thread kbuild test robot
tree: https://github.com/martinbrandenburg/linux for-next head: 525e7273bc80995f5bcfdc2780b870aa3ab37a18 commit: 525e7273bc80995f5bcfdc2780b870aa3ab37a18 [13/13] orangefs: let setattr write to cached inode reproduce: # apt-get install sparse git checkout

Re: KASAN: use-after-free Read in rds_find_bound

2018-02-13 Thread Dmitry Vyukov
On Sat, Dec 30, 2017 at 8:41 PM, santosh.shilim...@oracle.com wrote: > On 12/30/17 1:17 AM, syzbot wrote: >> >> Hello, >> >> syzkaller hit the following crash on >> fba961ab29e5ffb055592442808bb0f7962e05da >> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master >> compiler: gcc

[PATCH v1 3/4] platform/mellanox: mlxreg-hotplug: Change input for device create routine

2018-02-13 Thread Vadim Pasternak
Change the first input parameter in mlxreg_hotplug_device_create to the pointer to mlxreg_hotplug private data in order to allow to use the fields from the private data structure inside this routine. Signed-off-by: Vadim Pasternak --- drivers/platform/mellanox/mlxreg-hotplug.c | 12 ++--

[PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-02-13 Thread Vadim Pasternak
This patchset: - Adds define for the channels number for mux device. - Adds differed bus functionality. - Changes input for device create routine in mlxreg-hotplug driver. - Adds physical bus number auto detection. Vadim Pasternak (4): platform/x86: mlx-platform: Use define for the channel

[PATCH v1 1/4] platform/x86: mlx-platform: Use define for the channel numbers

2018-02-13 Thread Vadim Pasternak
Add define for the channels number for mux device, instead of using hardcoded value inside the code in order to improve code readability. Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v1 2/4] platform/x86: mlx-platform: Add differed bus functionality

2018-02-13 Thread Vadim Pasternak
Add deferred bus functionality in order to enforce probing flow execution order. Driver mlx-platform activates platform driver i2c-mux-reg, which creates busses infrastructure, after that it activates mlxreg-hotplug driver, which uses these busses, for connecting devices. The possible

[PATCH v1 4/4] platform/x86: mlx-platform: Add physical bus number auto detection

2018-02-13 Thread Vadim Pasternak
Add physical bus number auto detection mechanism in order to avoid a possible collision with I2C physical bus allocation. The mlx-platform driver activates i2c-mlxcpld driver with no bus number specification. It based on an assumption that on all Mellanox systems physical bus number is supposed to

Re: [PATCH] lib/scatterlist: Make sg_page_count() accessible to other modules

2018-02-13 Thread Andy Shevchenko
On Sat, Feb 10, 2018 at 8:06 PM, Alexey Skidanov wrote: > Currently, sg_page_count() may be used only inside the scatterlist.c file. > > However, the same calculation is done outside of scatterlist.c file > causing to code duplication. > > To fix this, we move the sg_page_count() to the

Re: BUG: free active (active state 0) object type: work_struct hint: strp_work

2018-02-13 Thread Dmitry Vyukov
On Thu, Jan 4, 2018 at 8:36 PM, Tom Herbert wrote: > On Thu, Jan 4, 2018 at 4:10 AM, syzbot > wrote: >> Hello, >> >> syzkaller hit the following crash on >> 6bb8824732f69de0f233ae6b1a8158e149627b38 >> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master >> compiler: gcc (GCC)

[PATCH 08/19 - v2] staging: lustre: simplify waiting in ldlm_completion_ast()

2018-02-13 Thread NeilBrown
If a signal-callback (lwi_on_signal) is set without lwi_allow_intr, as is the case in ldlm_completion_ast(), the behavior depends on the timeout set. If a timeout is set, then signals are ignored. If the timeout is reached, the timeout handler is called. If the timeout handler return 0, which

Re: [PATCH v10 0/3] arm: npcm: add basic support for Nuvoton BMCs

2018-02-13 Thread Florian Fainelli
On 02/13/2018 12:09 PM, Brendan Higgins wrote: > Addressed comments from: > - Joel: https://www.spinics.net/lists/arm-kernel/msg634074.html > - Arnd: https://www.spinics.net/lists/arm-kernel/msg634091.html > > Summary of changes since previous update: > - Replaced "nuvoton,npcm7xx-smp"

Re: [PATCH -next 0/3] sysvipc: introduce STAT_ALL commands

2018-02-13 Thread Eric W. Biederman
Davidlohr Bueso writes: > Hi, > > The following patches adds the discussed[1] new command for shm > as well as for sems and msq as they are subject to the same discrepancies > for ipc object permission checks between the syscall and via procfs. > These new commands are justified in that (1) we

[PATCH 0/2] DMA-PPC4xx: Adjustments for three function implementations

2018-02-13 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 13 Feb 2018 21:16:42 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in two functions Improve a size determination in

[PATCH 1/2] dma/ppc4xx: Delete an error message for a failed memory allocation in two functions

2018-02-13 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 13 Feb 2018 20:42:40 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/dma/ppc4xx/adma.c | 2 -- 1 file changed, 2 deletions(-)

[PATCH 2/2] dma/ppc4xx: Improve a size determination in ppc440spe_adma_alloc_chan_resources()

2018-02-13 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 13 Feb 2018 20:54:30 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was

Re: [PATCH v3] rtc: Add tracepoints for RTC system

2018-02-13 Thread Alexandre Belloni
On 14/12/2017 at 13:31:43 +0800, Baolin Wang wrote: > It will be more helpful to add some tracepoints to track RTC actions when > debugging RTC driver. Below sample is that we set/read the RTC time, then > set 2 alarms, so we can see the trace logs: > > set/read RTC time: > kworker/0:1-67 [000]

Re: [RESEND PATCH] rtc: Fix overflow when converting time64_t to rtc_time

2018-02-13 Thread Alexandre Belloni
On 26/01/2018 at 13:06:01 +0800, Baolin Wang wrote: > If we convert one large time values to rtc_time, in the original formula > 'days * 86400' can be overflowed in 'unsigned int' type to make the formula > get one incorrect remain seconds value. Thus we can use div_s64_rem() > function to avoid

[PATCH V3 00/10] sched/deadline: fix cpusets bandwidth accounting

2018-02-13 Thread Mathieu Poirier
This is the third installment of a patchset that attempt to fix a problem reported by Steve Rostedt [1] where DL bandwidth accounting is not recomputed after CPUset and CPU hotplug operations took place. When CPU hotplug and some CUPset manipulation take place root domains are destroyed and new

[PATCH V3 02/10] sched/topology: Adding function partition_sched_domains_locked()

2018-02-13 Thread Mathieu Poirier
Introducing function partition_sched_domains_locked() by taking the mutex locking code out of the original function. That way the work done by partition_sched_domains_locked() can be reused without dropping the mutex lock. No change of functionality is introduced by this patch. Signed-off-by:

[PATCH V3 08/10] cgroup: Constrain the addition of CPUs to a new CPUset

2018-02-13 Thread Mathieu Poirier
Care must be taken when CPUs are added to a new CPUset. If an ancestor of that set has its sched_load_balance flag switch off then the CPUs in the new CPUset will be added to a new root domain. If the ancestor also had DL tasks those will end up covering more than one root domain, breaking at

[PATCH V3 10/10] sched/deadline: Prevent CPU hotplug operation if DL task on CPU

2018-02-13 Thread Mathieu Poirier
When a DL task is assigned a CPU the "utilisation" (this_bw) and the "active utilisation" (running_bw) fields of rq->dl are incremented accordingly. If the CPU is hotplugged out the DL task is transferred to another CPU but the task's contribution to this_bw and running_bw isn't substracted from

[PATCH V3 06/10] sched/deadline: Keep new DL task within root domain's boundary

2018-02-13 Thread Mathieu Poirier
When considering to move a task to the DL policy we need to make sure the CPUs it is allowed to run on matches the CPUs of the root domain of the runqueue it is currently assigned to. Otherwise the task will be allowed to roam on CPUs outside of this root domain, something that will skew system

[PATCH V3 09/10] sched/core: Don't change the affinity of DL tasks

2018-02-13 Thread Mathieu Poirier
Now that we mandate that on creation, the ->cpus_allowed mask of a future DL task has to be equal to the rd->span of the root domain it will be associated with, changing the affinity of a DL task doesn't make sense anymore. Indeed, if we set the task to a smaller affinity set then we may be

[PATCH V3 05/10] cpuset: Rebuild root domain deadline accounting information

2018-02-13 Thread Mathieu Poirier
When the topology of root domains is modified by CPUset or CPUhotplug operations information about the current deadline bandwidth held in the root domain is lost. This patch address the issue by recalculating the lost deadline bandwidth information by circling through the deadline tasks held in

[PATCH V3 07/10] cgroup: Constrain 'sched_load_balance' flag when DL tasks are present

2018-02-13 Thread Mathieu Poirier
This patch prevents the 'sched_load_balance' flag from being set to 0 when DL tasks are present in a CPUset. Otherwise we end up with the DL tasks using CPUs belonging to different root domains, something that breaks the mathematical model behind DL bandwidth management. For example on a 4 core

[PATCH V3 03/10] sched/core: Streamlining calls to task_rq_unlock()

2018-02-13 Thread Mathieu Poirier
Calls to task_rq_unlock() are done several times in function __sched_setscheduler(). This is fine when only the rq lock needs to be handled but not so much when other locks come into play. This patch streamline the release of the rq lock so that only one location need to be modified when dealing

[PATCH V3 01/10] sched/topology: Add check to backup comment about hotplug lock

2018-02-13 Thread Mathieu Poirier
The comment above function partition_sched_domains() clearly state that the cpu_hotplug_lock should be held but doesn't mandate one to abide to it. Adding an explicit check backs that comment and make it impossible for anyone to miss the requirement. Suggested-by: Juri Lelli Signed-off-by:

[PATCH V3 04/10] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-02-13 Thread Mathieu Poirier
No synchronisation mechanism exist between the cpuset subsystem and calls to function __sched_setscheduler(). As such it is possible that new root domains are created on the cpuset side while a deadline acceptance test is carried out in __sched_setscheduler(), leading to a potential oversell of

Re: [PATCH 1/2] dma/ppc4xx: Delete an error message for a failed memory allocation in two functions

2018-02-13 Thread Joe Perches
On Tue, 2018-02-13 at 21:25 +0100, SF Markus Elfring wrote: > Omit an extra message for a memory allocation failure in these functions. [] > diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c [] > @@ -4183,7 +4183,6 @@ static int ppc440spe_adma_probe(struct platform_device >

[PATCH 1/3] memory: brcmstb: dpfe: properly mask vendor error bits

2018-02-13 Thread Markus Mayer
We were printing the entire 32 bit register rather than just the lower 8 bits. Anything above bit 7 is reserved and may be any random value. Fixes: 2f330caff577 ("memory: brcmstb: Add driver for DPFE") Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 3 ++- 1 file changed, 2

[PATCH 0/3] Update for the Broadcom STB DPFE driver

2018-02-13 Thread Markus Mayer
This series primarily introduces a new way of passing information from the DCPU to the host CPU. Previously, all communication was via the DCPU data RAM. This communication mode is still supported. In addition, we now support passing data via the message RAM. The driver will dynamically detect

[PATCH 2/3] memory: brcmstb: dpfe: fix type declaration of variable "ret"

2018-02-13 Thread Markus Mayer
In some functions, variable "ret" should be ssize_t, so we fix it. Fixes: 2f330caff577 ("memory: brcmstb: Add driver for DPFE") Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/memory/brcmstb_dpfe.c

[PATCH 3/3] memory: brcmstb: dpfe: support new way of passing data from the DCPU

2018-02-13 Thread Markus Mayer
The DCPU can now send message data in two ways: - via the data RAM, as before (this is now message type 0) - via the message RAM (this is message type 1) In order to support both methods, we check the message type of the response (bits 31:28) and then treat the offset (bits 27:0) accordingly.

Re: [PATCH] lib/scatterlist: Make sg_page_count() accessible to other modules

2018-02-13 Thread Alexey Skidanov
On 02/13/2018 10:14 PM, Andy Shevchenko wrote: > On Sat, Feb 10, 2018 at 8:06 PM, Alexey Skidanov > wrote: >> Currently, sg_page_count() may be used only inside the scatterlist.c file. >> >> However, the same calculation is done outside of scatterlist.c file >> causing to code duplication. >>

Re: [PATCH] rtc: goldfish: Add missing MODULE_LICENSE

2018-02-13 Thread Alexandre Belloni
On 16/01/2018 at 14:45:21 +, James Hogan wrote: > Fix the following warning in MIPS allmodconfig by adding a > MODULE_LICENSE() at the end of rtc-goldfish.c, based on the file header > comment which says GNU General Public License version 2: > > WARNING: modpost: missing MODULE_LICENSE() in

Re: [PATCH] loop: Fix lost writes caused by missing flag

2018-02-13 Thread Dan Williams
On Tue, Feb 13, 2018 at 11:22 AM, Ross Zwisler wrote: > On Tue, Feb 13, 2018 at 03:54:04PM +0100, Christoph Hellwig wrote: >> Looks good: >> >> Reviewed-by: Christoph Hellwig >> >> Can you wire up your test cases for blktests? > > Is blktests really the right place for this test? This failure

RE: [PATCH] igb: Fix a test with HWTSTAMP_TX_ON

2018-02-13 Thread Brown, Aaron F
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Christophe JAILLET > Sent: Tuesday, February 6, 2018 11:48 AM > To: Kirsher, Jeffrey T > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org;

[PATCH] dmaengine: at_xdmac: Delete an error message for a failed memory allocation in at_xdmac_probe()

2018-02-13 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 13 Feb 2018 21:48:26 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/dma/at_xdmac.c | 4 +--- 1 file changed, 1 insertion(+), 3

Re: [PATCH v2 8/8] platform: vivid-cec: use 64-bit arithmetic instead of 32-bit

2018-02-13 Thread Pavel Machek
On Mon 2018-02-05 22:29:41, Hans Verkuil wrote: > On 02/05/2018 09:36 PM, Gustavo A. R. Silva wrote: > > Add suffix ULL to constant 10 in order to give the compiler complete > > information about the proper arithmetic to use. Notice that this > > constant is used in a context that expects an

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-13 Thread Pavel Machek
On Thu 2018-02-08 20:52:40, Alan Cox wrote: > > > Also worth nothing that the difference between the cpu and memory > > > speeds is much lower - so far fewer instructions could be speculatively > > > executed while waiting a cache miss. > > But they also have more instructions that take a lot of

Re: [BUG] x86 : i486 reporting to be vulnerable to Meltdown/Spectre_V1/Spectre_V2

2018-02-13 Thread Pavel Machek
Hi! > > You might think this absolutely crazy, but I would be willing to test > > such systems if I can get my hands on the needed hardware that I lack. > > I am already doing sanity testing on Intel > > i486/i586/i586-MMX/i686-PentiumPro systems, I just don't have the > > clone cpus (Cyrix,

Re: [RFC PATCH v1 00/13] lru_lock scalability

2018-02-13 Thread Daniel Jordan
On 02/08/2018 06:36 PM, Andrew Morton wrote: On Wed, 31 Jan 2018 18:04:00 -0500 daniel.m.jor...@oracle.com wrote: lru_lock, a per-node* spinlock that protects an LRU list, is one of the hottest locks in the kernel. On some workloads on large machines, it shows up at the top of lock_stat. Do

Re: [RFC 1/3] seccomp: add a return code to trap to userspace

2018-02-13 Thread Kees Cook
On Sun, Feb 4, 2018 at 2:49 AM, Tycho Andersen wrote: > This patch introduces a means for syscalls matched in seccomp to notify > some other task that a particular filter has been triggered. > > The motivation for this is primarily for use with containers. For example, > if a container does an

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-13 Thread Shakeel Butt
On Mon, Feb 12, 2018 at 10:30 PM, Amir Goldstein wrote: > On Thu, Jan 25, 2018 at 10:36 PM, Amir Goldstein wrote: >> On Thu, Jan 25, 2018 at 10:20 PM, Shakeel Butt wrote: >>> On Wed, Jan 24, 2018 at 11:51 PM, Amir Goldstein wrote: There is a nicer alternative, instead of failing the

Re: [PATCH] tracing: Fix incorrect file name

2018-02-13 Thread Jonathan Corbet
On Sun, 04 Feb 2018 18:14:24 +0800 Xiongwei Song wrote: > There is no file named 'enabled' in the directory tracing/events. It should > be the file 'enable'. Makes sense, applied to the docs tree, thanks. jon

[PATCH] PM / devfreq: exynos-ppmu: Delete an error message for a failed memory allocation in exynos_ppmu_probe()

2018-02-13 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 13 Feb 2018 22:10:42 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/devfreq/event/exynos-ppmu.c | 6 ++ 1 file changed, 2

Re: [PATCH] selftests: memfd: add config fragment for fuse

2018-02-13 Thread Shuah Khan
On 02/06/2018 03:20 PM, Daniel Díaz wrote: > From: Anders Roxell > > The memfd test requires to insert the fuse module (CONFIG_FUSE_FS). > > Signed-off-by: Anders Roxell > Signed-off-by: Daniel Díaz > --- > tools/testing/selftests/memfd/config | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH] selftests/memfd: add run_fuse_test.sh to TEST_FILES

2018-02-13 Thread Shuah Khan
On 02/06/2018 03:22 PM, Daniel Díaz wrote: > From: Anders Roxell > > While testing memfd tests, there is a missing script, as reported by > kselftest: > > ./run_tests.sh: line 7: ./run_fuse_test.sh: No such file or directory > > Signed-off-by: Anders Roxell > Signed-off-by: Daniel Díaz > ---

Re: [PATCH v2] selftests: sync: missing CFLAGS while compiling

2018-02-13 Thread Shuah Khan
On 02/06/2018 03:23 PM, Daniel Díaz wrote: > From: Anders Roxell > > Based on patch: https://patchwork.kernel.org/patch/10042045/ > > arch64-linux-gnu-gcc -c sync.c -o sync/sync.o > sync.c:42:29: fatal error: linux/sync_file.h: No such file or directory > #include >

Re: [PATCH] selftests/android: Fix line continuation in Makefile

2018-02-13 Thread Shuah Khan
On 02/06/2018 04:52 PM, Daniel Díaz wrote: > The Makefile lacks a couple of line continuation backslashes > in an `if' clause, which can make the subsequent rsync > command go awry over the whole filesystem (`rsync -a / /`). > > /bin/sh: -c: line 5: syntax error: unexpected end of file >

Re: [PATCH] selftests/futex: Fix line continuation in Makefile

2018-02-13 Thread Shuah Khan
On 02/07/2018 10:24 AM, Daniel Díaz wrote: > The Makefile lacks a couple of line continuation backslashes > in an `if' clause, which produces an error while make'ing: > > $ make > make[1]: Entering directory `/[...]/linux/tools/testing/selftests/futex' > /bin/sh: -c: line 5: syntax error:

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-13 Thread Kees Cook
On Tue, Feb 13, 2018 at 2:32 AM, Michal Hocko wrote: > On Tue 13-02-18 21:16:55, Michael Ellerman wrote: >> Kees Cook writes: >> >> > On Mon, Feb 12, 2018 at 7:25 PM, Michael Ellerman >> > wrote: >> >> Michal Hocko writes: >> >>> Hi, >> >>> my build test machinery chokes on samples/seccomp

Re: [PATCH] selftests/x86: Remove 5lvl test from Makefile

2018-02-13 Thread Shuah Khan
On 02/08/2018 12:51 AM, Kirill A. Shutemov wrote: > On Wed, Feb 07, 2018 at 11:50:28PM -0600, Daniel Díaz wrote: >> The 5lvl.c test file was incorporated into another one in >> selftests/vm (va_128TBswitch.c) in commit 235266b8. >> >> Signed-off-by: Daniel Díaz > > Acked-by: Kirill A. Shutemov

Re: [RFC 2/3] seccomp: hoist out filter resolving logic

2018-02-13 Thread Kees Cook
On Sun, Feb 4, 2018 at 2:49 AM, Tycho Andersen wrote: > Hoist out the nth filter resolving logic that ptrace uses into a new > function. We'll use this in the next patch to implement the new > PTRACE_SECCOMP_GET_FILTER_FLAGS command. This is based on an older patch > that I had sent a while ago;

Re: [PATCH] selftest/vDSO: fix O=

2018-02-13 Thread Shuah Khan
On 02/11/2018 03:59 AM, Dominik Brodowski wrote: > The vDSO selftests ignored the O= or KBUILD_OUTPUT= parameters. Fix it. > > Signed-off-by: Dominik Brodowski > --- > tools/testing/selftests/vDSO/Makefile | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git

Re: [RFC 3/3] seccomp: add a way to get a listener fd from ptrace

2018-02-13 Thread Kees Cook
On Sun, Feb 4, 2018 at 2:49 AM, Tycho Andersen wrote: > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > version which can acquire filters is useful. There are at least two reasons > this is preferable, even though it uses ptrace: > > 1. You can control tasks that

Re: [PATCH v2 06/11] watchdog/hpwdt: Modify to use watchdog core.

2018-02-13 Thread Jerry Hoemann
Thanks for the review. Comments inline. On Mon, Feb 12, 2018 at 10:06:21AM +0100, Marcus Folkesson wrote: > Hi Jerry, > > On Sun, Feb 11, 2018 at 10:21:06PM -0700, Jerry Hoemann wrote: > > Follow Documentation/watchdog/convert_drivers_to_kernel_api.txt to > > convert hpwdt from legacy watchdog

Re: x86/stack protector: X86_32_LAZY_GS=n hangs kernel on old processors

2018-02-13 Thread Kees Cook
On Tue, Feb 13, 2018 at 8:57 AM, tedheadster wrote: > Changing X86_32_LAZY_GS to 'y' does not cause the kernel to hang. > >> On Tue, Feb 13, 2018 at 11:40:17AM -0500, tedheadster wrote: >>> in your patch "x86: make lazy %gs optional on x86_32" were you able >>> to test it on really old

Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support

2018-02-13 Thread Raj, Ashok
Hi Joerg, On Tue, Feb 13, 2018 at 03:03:03PM +0100, Joerg Roedel wrote: > On Fri, Feb 02, 2018 at 04:49:56PM -0800, Sohil Mehta wrote: > > This series aims to add debugfs support for Intel IOMMU. It exposes IOMMU > > registers, internal context and dumps individual table entries to help debug > >

Re: [PATCH] kthread: Export kthread_data()

2018-02-13 Thread Waiman Long
On 02/13/2018 10:50 AM, Christoph Hellwig wrote: > On Fri, Feb 09, 2018 at 09:52:21AM -0500, Waiman Long wrote: >> When multiple kernel threads are created to cooperatively work on >> a common task, we may need a convenient way to access data that are >> specific to each kthread. >> >> The

Re: [PATCH] kthread: Export kthread_data()

2018-02-13 Thread Waiman Long
On 02/13/2018 04:40 PM, Waiman Long wrote: > On 02/13/2018 10:50 AM, Christoph Hellwig wrote: >> On Fri, Feb 09, 2018 at 09:52:21AM -0500, Waiman Long wrote: >>> When multiple kernel threads are created to cooperatively work on >>> a common task, we may need a convenient way to access data that

Re: [kernel-hardening] [PATCH 4/6] Protectable Memory

2018-02-13 Thread Kees Cook
On Tue, Feb 13, 2018 at 8:09 AM, Laura Abbott wrote: > No, arm64 doesn't fixup the aliases, mostly because arm64 uses larger > page sizes which can't be broken down at runtime. CONFIG_PAGE_POISONING > does use 4K pages which could be adjusted at runtime. So yes, you are > right we would have

[PATCH] selftests: memory-hotplug: silence test command echo

2018-02-13 Thread Shuah Khan
Silence the following command being printed while running test. ./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" Signed-off-by: Shuah Khan --- tools/testing/selftests/memory-hotplug/Makefile | 2 +- 1 file changed, 1 insertion(+),

[PATCH] selftests: vm: update .gitignore with new test

2018-02-13 Thread Shuah Khan
Update .gitignore with new test. Signed-off-by: Shuah Khan --- tools/testing/selftests/vm/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/vm/.gitignore b/tools/testing/selftests/vm/.gitignore index 63c94d776e89..342c7bc9dc8c 100644 ---

Re: [PATCH] lib: Rename compiler intrinsic selects to GENERIC_LIB_*

2018-02-13 Thread Palmer Dabbelt
On Fri, 09 Feb 2018 05:22:52 PST (-0800), matt.redfe...@mips.com wrote: When these are included into arch Kconfig files, maintaining alphabetical ordering of the selects means these get split up. To allow for keeping things tidier and alphabetical, rename the selects to GENERIC_LIB_*

Re: [PATCH RESENT] nvme-pci: suspend queues based on online_queues

2018-02-13 Thread Keith Busch
On Mon, Feb 12, 2018 at 09:05:13PM +0800, Jianchao Wang wrote: > @@ -1315,9 +1315,6 @@ static int nvme_suspend_queue(struct nvme_queue *nvmeq) > nvmeq->cq_vector = -1; > spin_unlock_irq(>q_lock); > > - if (!nvmeq->qid && nvmeq->dev->ctrl.admin_q) > -

Re: [PATCH v3 0/4] optimize memory hotplug

2018-02-13 Thread Andrew Morton
On Tue, 13 Feb 2018 14:31:55 -0500 Pavel Tatashin wrote: > This patchset: > - Improves hotplug performance by eliminating a number of > struct page traverses during memory hotplug. > > - Fixes some issues with hotplugging, where boundaries > were not properly checked. And on x86 block size was

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-13 Thread Amir Goldstein
On Tue, Feb 13, 2018 at 11:10 PM, Shakeel Butt wrote: > On Mon, Feb 12, 2018 at 10:30 PM, Amir Goldstein wrote: >> On Thu, Jan 25, 2018 at 10:36 PM, Amir Goldstein wrote: >>> On Thu, Jan 25, 2018 at 10:20 PM, Shakeel Butt wrote: On Wed, Jan 24, 2018 at 11:51 PM, Amir Goldstein

Re: [PATCH v2 06/11] watchdog/hpwdt: Modify to use watchdog core.

2018-02-13 Thread Guenter Roeck
On Tue, Feb 13, 2018 at 02:36:48PM -0700, Jerry Hoemann wrote: > > > Thanks for the review. Comments inline. > > On Mon, Feb 12, 2018 at 10:06:21AM +0100, Marcus Folkesson wrote: > > Hi Jerry, > > > > On Sun, Feb 11, 2018 at 10:21:06PM -0700, Jerry Hoemann wrote: > > > Follow

Re: [PATCH v2 03/11] watchdog/hpwdt: Update nmi_panic message.

2018-02-13 Thread Jerry Hoemann
On Tue, Feb 13, 2018 at 09:41:35AM -0800, Guenter Roeck wrote: > On Sun, Feb 11, 2018 at 10:21:03PM -0700, Jerry Hoemann wrote: > > + unsigned int mynmi = hpwdt_my_nmi(); > > + static char panic_msg[] = > > + "00: An NMI occurred. Depending on your system the reason " > > +

Re: [PATCH] powerpc/xmon: Dont register sysrq key when kernel param xmon=off

2018-02-13 Thread Balbir Singh
On Mon, Feb 12, 2018 at 11:35 PM, Vaibhav Jain wrote: > Thanks for reviewing this patch Balbir > > Balbir Singh writes: > >> Any specific issue you've run into without this patch? > Without this patch since xmon is still accessible via sysrq and there is > no indication/warning on the xmon

Re: [PATCH v2 1/4] arm64: dts: renesas: r8a77995: add FCPV nodes

2018-02-13 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Tuesday, 13 February 2018 21:30:34 EET Kieran Bingham wrote: > From: Kieran Bingham > > The FCPVB handles the interface between the VSPB and memory, while the > FCPVD handles the interface between the VSPD and memory. > > Signed-off-by: Kieran Bingham

Re: [PATCH v2 2/4] arm64: dts: renesas: r8a77995: add VSP instances

2018-02-13 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Tuesday, 13 February 2018 21:30:35 EET Kieran Bingham wrote: > From: Kieran Bingham > > The r8a77995 has a VSPBS to support image processing such as blending of > two input images, and has two VSPDs to handle display pipelines with a > DU. > >

Re: [PATCH v2 3/4] arm64: dts: renesas: r8a7795: Fix register mappings on VSPs

2018-02-13 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Tuesday, 13 February 2018 21:30:36 EET Kieran Bingham wrote: > From: Kieran Bingham > > The VSPD includes a CLUT on RPF2. Ensure that the register space is > mapped correctly to support this. > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent

Re: [PATCH v2 4/4] arm64: dts: renesas: r8a7796: Fix register mappings on VSPs

2018-02-13 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Tuesday, 13 February 2018 21:30:37 EET Kieran Bingham wrote: > From: Kieran Bingham > > The VSPD includes a CLUT on RPF2. Ensure that the register space is > mapped correctly to support this. > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent

[PATCH] Documentation/process/howto: Remove outdated info about bugzilla mailing lists

2018-02-13 Thread Jonathan Neuschäfer
The mailing list archives[1,2] show no activity since September 2011. [1]: https://lists.linuxfoundation.org/pipermail/bugme-new/ [2]: https://lists.linuxfoundation.org/pipermail/bugme-janitors/ Signed-off-by: Jonathan Neuschäfer --- Documentation/process/howto.rst | 8 1 file

Re: [PATCH 2/3] Documentation: bindings: add usb3-host-disable and usb3-host-port for Rockchip USB Type-C PHY

2018-02-13 Thread Enric Balletbo Serra
Hi, 2018-02-13 10:18 GMT+01:00 Emil Renner Berthing : > On 12 February 2018 at 23:29, Rob Herring wrote: >> On Mon, Feb 12, 2018 at 3:26 PM, Brian Norris >> wrote: >>> Hi, >>> >>> On Mon, Feb 12, 2018 at 10:43:41AM -0600, Rob Herring wrote: On Thu, Feb 8, 2018 at 3:23 PM, Enric Balletbo

plan9 semantics on Linux - mount namespaces

2018-02-13 Thread Enrico Weigelt
Hi folks, I'm currently trying to implement plan9 semantics on Linux and yet sorting out how to do the mount namespace handling. On plan9, any unprivileged process can create its own namespace and mount/bind at will, while on Linux this requires CAP_SYS_ADMIN. What is the reason for not

<    5   6   7   8   9   10   11   12   13   14   >