Re: [PATCH 24/30] x86, kaiser: disable native VSYSCALL

2017-11-13 Thread Andy Lutomirski
On Mon, Nov 13, 2017 at 1:07 PM, Dave Hansen wrote: > On 11/12/2017 07:52 PM, Andy Lutomirski wrote: >> On Fri, Nov 10, 2017 at 3:04 PM, Dave Hansen >> wrote: >>> On 11/10/2017 02:06 PM, Andy Lutomirski wrote: I have nothing against disabling native. I object to breaking the weird bina

Re: [RFC 7/7] x86/unwind/64: Add support for the SYSENTER stack

2017-11-13 Thread Andy Lutomirski
On Mon, Nov 13, 2017 at 2:46 PM, Josh Poimboeuf wrote: > On Fri, Nov 10, 2017 at 08:05:26PM -0800, Andy Lutomirski wrote: >> Signed-off-by: Andy Lutomirski > > I would make the subject more specific and less unwinder-centric, like: > > "x86/dumpstack: Add get_stack_info() support for the SYSENT

Re: [PATCH v9 3/7] mailbox: qcom: Move the apcs struct into a separate header

2017-11-13 Thread Stephen Boyd
On 10/27, Georgi Djakov wrote: > Hi Bjorn, > > Thanks for reviewing! > > On 10/26/2017 07:28 AM, Bjorn Andersson wrote: > > On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > > > >> Move the structure shared by the APCS IPC device and its subdevices > >> into a separate header file. > >> > >

Re: [f2fs-dev] [PATCH] f2fs: fix concurrent problem for updating free bitmap

2017-11-13 Thread Chao Yu
On 2017/11/13 21:06, LiFan wrote: > alloc_nid_failed and scan_nat_page can be called at the same time, > and we haven't protected add_free_nid and update_free_nid_bitmap > with the same nid_list_lock. That could lead to > > Thread A Thread B > - __build_free_nids > -

Re: [PATCH 3/3] clk/mmp: Adjust 12 checks for null pointers

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 09:00:21 +0200 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl” pointed information out like the following. > > Comparison to NULL coul

Re: [PATCH 1/2] clk/ux500: Delete an error message for a failed memory allocation in three functions

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 20:23:58 +0200 > > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-ne

Re: [PATCH 2/3] clk/mmp: Use common error handling code in mmp_clk_register_mix()

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 22:33:18 +0200 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > Signed-off-by: Markus Elfring > --- Applied to clk-next -- Qualcomm Innovation C

Re: [PATCH 1/2] clk/versatile: Delete two error messages for a failed memory allocation in icst_clk_setup()

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 21:21:23 +0200 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-next

Re: [PATCH 2/2] clk/versatile: Improve a size determination in icst_clk_setup()

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 21:24:43 +0200 > > 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 Lin

Re: [PATCH 2/2] clk/ux500: Improve a size determination in three functions

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 20:30:53 +0200 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer according to the Linux

Re: [PATCH] clk/spear: Delete five error messages for a failed memory allocation

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 18:00:21 +0200 > > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-ne

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

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 21:19:19 +0200 > > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-ne

Re: [PATCH 1/3] clk/mmp: Delete an error message for a failed memory allocation in three functions

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 22:25:38 +0200 > > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-ne

Re: [PATCH] clk/ti: Delete an error message for a failed memory allocation in two functions

2017-11-13 Thread Stephen Boyd
On 09/27, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 27 Sep 2017 19:14:01 +0200 > > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-ne

Re: [PATCH 2/4] clk-u300: Improve a size determination in two functions

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 19:33:02 +0200 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer according to the Linux

Re: [PATCH 3/4] clk-u300: Add some spaces for better code readability

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 19:46:51 +0200 > > Use space characters at some source code places according to > the Linux coding style convention. > > Signed-off-by: Markus Elfring > --- Applied to clk-next -- Qualcomm Innovation Center, I

Re: [PATCH 1/4] clk-u300: Delete an error message for a failed memory allocation in two functions

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 19:30:46 +0200 > > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-ne

Re: [PATCH 2/2] clk-xgene: Adjust six checks for null pointers

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 21:27:52 +0200 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl” pointed information out like the following. > > Comparison to NULL coul

Re: [PATCH 4/4] clk-u300: Fix a typo in two comment lines

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 19:57:50 +0200 > > Add a missing character in these descriptions. > > Signed-off-by: Markus Elfring > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Found

Re: [PATCH 1/2] clk-mux: Delete an error message for a failed memory allocation in clk_hw_register_mux_table()

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 17:23:04 +0200 > > 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 > --- Applied to clk-ne

Re: [PATCH] [media] clk-kona-setup: Delete two error messages for a failed memory allocation in parent_process()

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 16:54:20 +0200 > > Omit extra messages for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- Applied to clk-next

Re: [PATCH 2/2] clk-mux: Improve a size determination in clk_hw_register_mux_table()

2017-11-13 Thread Stephen Boyd
On 09/26, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Sep 2017 17:30:06 +0200 > > 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 Lin

Re: [PATCH][clk-next] ARC: clk: fix spelling mistake: "configurarion" -> "configuration"

2017-11-13 Thread Stephen Boyd
On 09/04, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_dbg message > > Signed-off-by: Colin Ian King > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH] clk: cdce925: remove redundant check for non-null parent_name

2017-11-13 Thread Stephen Boyd
On 09/05, Colin King wrote: > From: Colin Ian King > > The check for a non-null parent_name is always true as there is an > earlier check for a null parent_name that returns -ENODEV. Remove this > redundant check and always set init.num_parents to 1. > > Detected by CoverityScan CID#1309477 ("Lo

[GIT PULL] xfs: great scads of new stuff for 4.15

2017-11-13 Thread Darrick J. Wong
Hi Linus, This merge cycle, we're making some substantive changes to XFS. The in-core extent mappings have been refactored to use proper iterators and a btree to handle heavily fragmented files without needing high-order memory allocations; some important log recovery bug fixes; and the first par

RE: Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip KSZ8795 DSA driver

2017-11-13 Thread Tristram.Ha
> Subject: Microchip KSZ* DSA drivers Re: [PATCH v1 RFC 1/1] Add Microchip > KSZ8795 DSA driver > > Hi! > > Are there any news here? Is there new release planned? Is there a git > tree somewhere? I probably should get it working, soon.. so I guess I > can help with testing. > Reviewed patches w

Re: [v8, 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling

2017-11-13 Thread Guenter Roeck
On Mon, Nov 13, 2017 at 05:28:05PM -0800, Andi Kleen wrote: > Guenter, > > Do you have a command line that reproduces it and the exact log > output? > Hi Andi, It is what I use at kerneltests.org. See https://github.com/groeck/linux-build-test/tree/master/rootfs/x86_64 for configuration and scri

Re: [PATCH] arch, mm: introduce arch_tlb_gather_mmu_lazy (was: Re: [RESEND PATCH] mm, oom_reaper: gather each vma to prevent) leaking TLB entry

2017-11-13 Thread Minchan Kim
On Mon, Nov 13, 2017 at 10:51:07AM +0100, Michal Hocko wrote: > On Mon 13-11-17 09:28:33, Minchan Kim wrote: > [...] > > Thanks for the patch, Michal. > > However, it would be nice to do it tranparently without asking > > new flags from users. > > > > When I read tlb_gather_mmu's description, full

Re: video: fbdev: Convert timers to use timer_setup()

2017-11-13 Thread Guenter Roeck
0194] *pgd= Internal error: Oops: 5 [#1] ARM Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.0-next-20171113 #1 Hardware name: ARM-Versatile (Device Tree Support) task: c04df238 task.stack: c04da000 PC is at queue_work_on+0x1c/0x48 ... [] (queue_work_on) from []

[PATCH] fs/fcntl: restore checking against COMPAT_LOFF_T_MAX for F_GETLK64

2017-11-13 Thread Vitaly Lipatov
for fcntl64 with F_GETLK64 we need use checking against COMPAT_LOFF_T_MAX. Fixes: 94073ad77fff2 "fs/locks: don't mess with the address limit in compat_fcntl64" Signed-off-by: Vitaly Lipatov --- fs/fcntl.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a

[PATCH v2 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline

2017-11-13 Thread Jiaxun Yang
Since lemote-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7 +++

[PATCH v2 3/4] MIPS: Loongson64: Yeeloong add platform driver

2017-11-13 Thread Jiaxun Yang
Yeeloong is a laptop with a MIPS Loongson 2F processor, AMD CS5536 chipset, and KB3310B controller. This yeeloong_laptop module enables access to sensors, battery, video camera switch, external video connector event, and some additional buttons. This driver was orginally from linux-loongson-commu

Re: [PATCHv4 0/6] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-11-13 Thread Sergey Senozhatsky
On (11/13/17 18:17), Helge Deller wrote: > On 10.11.2017 00:48, Sergey Senozhatsky wrote: > > All Ack-s/Tested-by-s were dropped, since the patch set has been > > reworked. I'm kindly asking arch-s maintainers and developers to test it > > once again. Sorry for any inconveniences and thanks for

Re: [PATCH 1/2] kallsyms: fix building without printk

2017-11-13 Thread Sergey Senozhatsky
On (11/13/17 17:50), Arnd Bergmann wrote: > Building kallsyms fails without CONFIG_PRINTK due to a missing > declaration: > > kernel/kallsyms.c: In function 'kallsyms_show_value': > kernel/kallsyms.c:670:10: error: 'kptr_restrict' undeclared (first use in > this function); did you mean 'keyring_r

Re: [v8, 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling

2017-11-13 Thread Andi Kleen
Guenter, Do you have a command line that reproduces it and the exact log output? I can't reproduce it here with different qemu settings. -Andi

[PATCH v2 4/4] MIPS: Loongson64: Load platform device during boot

2017-11-13 Thread Jiaxun Yang
This patch just add pdev during boot to load the platform driver Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 45 +++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644

[PATCH v2 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up

2017-11-13 Thread Jiaxun Yang
To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_kb3310b.h to include dir and clean up ec_kb3310b.h. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64/

Re: [PATCH v5 24/37] tracing: Add support for 'synthetic' events

2017-11-13 Thread Namhyung Kim
Hi Tom, On Thu, Nov 09, 2017 at 02:33:55PM -0600, Tom Zanussi wrote: > Synthetic events are user-defined events generated from hist trigger > variables saved from one or more other events. > > To define a synthetic event, the user writes a simple specification > consisting of the name of the new

Re: [GIT pull] printk updates for 4.15

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 1:36 AM, Thomas Gleixner wrote: > Linus, > > please pull the latest core-printk-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > core-printk-for-linus > > This update adds the mechanisms to emit printk timestamps based on > differ

Re: [PATCH] docs: dev-tools: coccinelle: delete out of date wiki reference

2017-11-13 Thread Masahiro Yamada
Hi Julia, Jon, 2017-11-14 1:50 GMT+09:00 Julia Lawall : > The wiki is no longer available. > > Signed-off-by: Julia Lawall > Jon sent the doc pull request yesterday. I will pick this up for Kbuild tree because I have not sent pull requests for this MW yet. > > diff --git a/Documentation/dev

Re: [PATCH 1/2] drm/vc4: Account for interrupts in flight

2017-11-13 Thread Eric Anholt
Stefan Schake writes: > Synchronously disable the IRQ to make the following cancel_work_sync > invocation effective. > > An interrupt in flight could enqueue further overflow mem work. As we > free the binner BO immediately following vc4_irq_uninstall this caused > a NULL pointer dereference in t

linux-next: build warning after merge of the bluetooth tree

2017-11-13 Thread Stephen Rothwell
Hi all, After merging the bluetooth tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/bluetooth/Kconfig:35:warning: multi-line strings not supported Introduced by commit 86be3c232877 ("Bluetooth: btusb: Add a Kconfig option to enable USB autosuspend by de

[RFC PATCH 10/20] x86/intel_rdt: Disable pseudo-locking if CDP enabled

2017-11-13 Thread Reinette Chatre
Pseudo-locking can work when Code and Data Prioritization (CDP) is enabled, but there are a few additional checks and actions involved. At this time it is not clear if users would want to use pseudo-locking and CDP at the same time so the support of this is delayed until we understand the usage bet

[RFC PATCH 09/20] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2017-11-13 Thread Reinette Chatre
Knowing the model specific prefetch disable bits is required to support cache pseudo-locking because the hardware prefetchers need to be disabled when the kernel memory is pseudo-locked to cache. We add these bits only for platforms known to support cache pseudo-locking. If we have not validated p

[RFC PATCH 08/20] x86/intel_rdt: Introduce pseudo-locking resctrl files

2017-11-13 Thread Reinette Chatre
Each sub-directory within the pseudo-lock directory represents a pseudo-locked region. Each of these sub-directories now receive the files that will be used by the user to specify requirements for the particular region and for the kernel to communicate some details about the region. Only support r

[RFC PATCH 11/20] x86/intel_rdt: Associate pseudo-locked regions with its domain

2017-11-13 Thread Reinette Chatre
After a pseudo-locked region is locked it needs to be associated with the RDT domain representing the pseudo-locked cache so that its life cycle can be managed correctly. Only a single pseudo-locked region can exist on any cache instance so we maintain a single pointer to a pseudo-locked region fr

[RFC PATCH 20/20] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2017-11-13 Thread Reinette Chatre
Deeper C-states impact cache content through shrinking of the cache or flushing entire cache to memory before reducing power to the cache. Deeper C-states will thus negatively impact the pseudo-locked regions. To avoid impacting pseudo-locked regions we limit C-states on pseudo-locked region creat

[RFC PATCH 18/20] x86/intel_rdt: More precise L2 hit/miss measurements

2017-11-13 Thread Reinette Chatre
Intel Goldmont processors supports non-architectural precise events that can be used to give us more insight into the success of L2 cache pseudo-locking on these platforms. Introduce a new measurement trigger that will enable two precise events, MEM_LOAD_UOPS_RETIRED.L2_HIT and MEM_LOAD_UOPS_RETIR

[RFC PATCH 19/20] x86/intel_rdt: Support L3 cache performance event of Broadwell

2017-11-13 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that we can measure the success of pseudo-locking. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 57 +++ a

[RFC PATCH 04/20] x86/intel_rdt: Introduce test to determine if closid is in use

2017-11-13 Thread Reinette Chatre
During CAT feature discovery the capacity bitmasks (CBMs) associated with all the classes of service are initialized to all ones, even if the class of service is not in use. Introduce a test that can be used to determine if a class of service is in use. This test enables code interested in parsing

[RFC PATCH 05/20] x86/intel_rdt: Print more accurate pseudo-locking availability

2017-11-13 Thread Reinette Chatre
A region of cache is considered available for pseudo-locking when: * Cache area is in use by default COS. * Cache area is NOT in use by any other (other than default) COS. * Cache area is not shared with any other entity. Specifically, the cache area does not appear in "Bitmask of Shareable R

[RFC PATCH 06/20] x86/intel_rdt: Create pseudo-locked regions

2017-11-13 Thread Reinette Chatre
System administrator creates/removes pseudo-locked regions by creating/removing directories in the pseudo-lock subdirectory of the resctrl filesystem. Here we add directory creation and removal support. A "pseudo-lock region" is introduced, which represents an instance of a pseudo-locked cache reg

[RFC PATCH 02/20] x86/intel_rdt: Make useful functions available internally

2017-11-13 Thread Reinette Chatre
In preparation for support of pseudo-locking we move some static functions to be available for sharing amongst all RDT components. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 2 +- arch/x86/kernel/cpu/int

[RFC PATCH 14/20] x86/intel_rdt: Enable testing for pseudo-locked region

2017-11-13 Thread Reinette Chatre
Introduce a new test that can be used to determine if a provided CBM intersects with an existing pseudo-locked region of cache domain. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 19 +++ 2 fi

[RFC PATCH 13/20] x86/intel_rdt: Support schemata write - pseudo-locking core

2017-11-13 Thread Reinette Chatre
When a user writes the requested pseudo-locking schemata it will trigger the pseudo-locking of equivalent sized memory. A successful return from this schemata write means that the pseudo-locking succeeded. To support the pseudo-locking we first initialize as much as we can about the region that wi

[RFC PATCH 17/20] x86/intel_rdt: Create character device exposing pseudo-locked region

2017-11-13 Thread Reinette Chatre
Once a pseudo-locked region has been created it needs to be made available to user space to provide benefit there. A character device supporting mmap() is created for each pseudo-locked region. A user space application can now use mmap() system call to map pseudo-locked region into its virtual add

[RFC PATCH 12/20] x86/intel_rdt: Support CBM checking from value and character buffer

2017-11-13 Thread Reinette Chatre
Validity check of capacity bitmask (CBM) is currently only done on character buffer when user writes new schemata to resctrl file. In preparation for support of CBM checking within other areas of the RDT code the CBM validity check is split up to support checking with CBM provided as character buf

[RFC PATCH 16/20] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2017-11-13 Thread Reinette Chatre
There is no simple yes/no test to determine if pseudo-locking was successful. In order to test pseudo-locking we expose a debugfs file for each pseudo-locked region that will record the latency of reading the pseudo-locked memory at a stride of 32 bytes (hardcoded). These numbers will give us an id

[RFC PATCH 15/20] x86/intel_rdt: Prevent new allocations from pseudo-locked regions

2017-11-13 Thread Reinette Chatre
When a user requests a new cache allocation we need to enforce that it does not intersect with an existing pseudo-locked region. An allocation with a bitmask intersection with a pseudo-locked region will enable cache allocations to that region and thus evict pseudo-locked data. Signed-off-by: Rein

[RFC PATCH 07/20] x86/intel_rdt: Connect pseudo-locking directory to operations

2017-11-13 Thread Reinette Chatre
As a dependent of RDT/CAT we hook up the pseudo-locking files initialization to that of RDT/CAT. The initial operations of mkdir/rmdir used to create pseudo-locked regions are now hooked up also. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 17 -

[RFC PATCH 03/20] x86/intel_rdt: Introduce hooks to create pseudo-locking files

2017-11-13 Thread Reinette Chatre
We create a new file to host pseudo-locking specific code. The first of this code are the functions that create the initial pseudo_lock directory with its first file, "avail", starting by reporting zero. This will be expanded in future commits. Signed-off-by: Reinette Chatre --- arch/x86/kernel/

[RFC PATCH 01/20] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2017-11-13 Thread Reinette Chatre
Add description of Cache Pseudo-Locking feature, its interface, as well as an example of its usage. Signed-off-by: Reinette Chatre --- Documentation/x86/intel_rdt_ui.txt | 229 - 1 file changed, 228 insertions(+), 1 deletion(-) diff --git a/Documentation/x86/

[RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2017-11-13 Thread Reinette Chatre
Dear Maintainers, Cache Allocation Technology (CAT), part of Intel(R) Resource Director Technology (Intel(R) RDT), enables a user to specify the amount of cache space into which an application can fill. Cache pseudo-locking builds on the fact that a CPU can still read and write data pre-allocated

Re: linux-next: Tree for Nov 7

2017-11-13 Thread Stephen Rothwell
Hi Andrew, On Mon, 13 Nov 2017 16:03:14 -0800 Andrew Morton wrote: > > Does this kernel have "fs/binfmt_elf.c: drop MAP_FIXED usage from > elf_map" applied? That patch was dropped due to runtime issues. next-20171107 has that patch in it, next-20171108 does not. -- Cheers, Stephen Rothwell

Re: mmotm 2017-11-10-15-56 uploaded (lib/test_find_bit.c)

2017-11-13 Thread Randy Dunlap
On 11/13/2017 04:17 PM, Andrew Morton wrote: > On Fri, 10 Nov 2017 18:00:57 -0800 Randy Dunlap wrote: > >> On 11/10/2017 03:56 PM, a...@linux-foundation.org wrote: >>> The mm-of-the-moment snapshot 2017-11-10-15-56 has been uploaded to >>> >>>http://www.ozlabs.org/~akpm/mmotm/ >>> >>> mmotm-r

Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel lockdown

2017-11-13 Thread Alan Cox
On Mon, 13 Nov 2017 14:09:10 -0800 Linus Torvalds wrote: > On Mon, Nov 13, 2017 at 1:44 PM, David Howells wrote: > > > > Whilst that may be true, we either have to check signatures on every bit of > > firmware that the appropriate driver doesn't say is meant to be signed or > > not > > bother.

Re: [PATCH 11/14] nubus: Repopulate /proc/bus/nubus/s/

2017-11-13 Thread Finn Thain
On Mon, 13 Nov 2017, Geert Uytterhoeven wrote: > On Sat, Nov 11, 2017 at 7:12 AM, Finn Thain > wrote: > > > --- > > drivers/nubus/nubus.c | 117 +++--- > > drivers/nubus/proc.c | 170 > > +++--- > > include/linux/nubus.h

Re: [PATCH 12/14] nubus: Rename struct nubus_dev

2017-11-13 Thread Finn Thain
On Mon, 13 Nov 2017, Geert Uytterhoeven wrote: > Hi Finn, > > On Sat, Nov 11, 2017 at 7:12 AM, Finn Thain > wrote: > > It is misleading to use "dev" to mean a functional resource. And in > > adopting the Linux Driver Model, struct nubus_board will embed a > > struct device. Drivers will then

Re: [PATCH 2/2] drm/vc4: Ensure interrupts are disabled

2017-11-13 Thread Eric Anholt
Stefan Schake writes: > The overflow mem work callback vc4_overflow_mem_work reenables its > associated interrupt upon completion. To ensure all interrupts are disabled > when we return from vc4_irq_uninstall, we need to disable it again if > cancel_work_sync indicated pending work. Is there a r

Re: mmotm 2017-11-10-15-56 uploaded (lib/test_find_bit.c)

2017-11-13 Thread Andrew Morton
On Fri, 10 Nov 2017 18:00:57 -0800 Randy Dunlap wrote: > On 11/10/2017 03:56 PM, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2017-11-10-15-56 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-mom

Re: [PATCH 1/3] perf help: Document missing options

2017-11-13 Thread Namhyung Kim
Hi Arnaldo, On Mon, Nov 13, 2017 at 03:29:56PM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Nov 12, 2017 at 10:10:45AM +0900, Sihyeon Jang escreveu: > > Cc: Jiri Olsa > > Cc: Namhyung Kim > > Signed-off-by: Sihyeon Jang > > --- > > tools/perf/Documentation/perf-help.txt | 14 +-

[PATCH] HID: cp2112: Fix I2C_BLOCK_DATA transactions

2017-11-13 Thread Eudean Sun
The existing driver erroneously treats I2C_BLOCK_DATA and BLOCK_DATA commands the same. Fix the logic for I2C_BLOCK_DATA reads and writes. Signed-off-by: Eudean Sun --- drivers/hid/hid-cp2112.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-c

Re: linux-next: Tree for Nov 7

2017-11-13 Thread Andrew Morton
On Sun, 12 Nov 2017 11:38:02 +1030 Joel Stanley wrote: > On Fri, Nov 10, 2017 at 11:00 PM, Michal Hocko wrote: > > Hi Joel, > > > > On Wed 08-11-17 15:20:50, Michal Hocko wrote: > > [...] > >> > There are a lot of messages on the way up that look like this: > >> > > >> > [2.527460] Uhuuh, el

Re: [RFC PATCH v2] fw_lockdown: new micro LSM module to prevent loading unsigned firmware

2017-11-13 Thread Luis R. Rodriguez
On Mon, Nov 13, 2017 at 08:51:54PM +0100, Luis R. Rodriguez wrote: > On Mon, Nov 13, 2017 at 02:36:47PM -0500, Mimi Zohar wrote: > > On Mon, 2017-11-13 at 20:05 +0100, Luis R. Rodriguez wrote: > > > > + * fw_lockdown_read_file - prevent loading of unsigned firmware > > > > + * @file: pointer to fir

Re: bit tweaks [was: Re: [nfsd4] potentially hardware breaking regression in 4.14-rc and 4.13.11]

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 3:30 PM, Linus Torvalds wrote: > > So let's just rewrite that mnt_flags conversion that way, justr to get > gcc to generate the obvious code. Oh wow. I tried to do the same thing in fs/namespace.c where it does the reverse bit translation, and gcc makes a _horrible_ mess o

Re: CONFIG_DEBUG_INFO_SPLIT impacts on faddr2line

2017-11-13 Thread Andi Kleen
> I wonder if there is some way to use the split format for the > intermediate files, but then for the very final link bring them all in > and make the end result be a traditional single binary. I'm not > talking the separate "dwp" package that packs multiple dwo files into > one, but to actually l

[PATCH v3 1/2] sched/deadline: Add cpudl_maximum_dl() for clean-up

2017-11-13 Thread Byungchul Park
Changes from v2 - Run spellchecker over the text and fix typos - Add acked-by Daniel Changes from v1 - Enhance commit msg - Prevent WARN in cpumask_test_cpu() in cpudl_find() when best_cpu == -1 -8<- >From 7735382d07ae6a61d740ae39ba2ecf169d43b8a2 Mon Sep 17 00:00:00 2001 From: Byungch

[PATCH v3 2/2] sched/deadline: Initialize cp->elements[].cpu to an invalid value

2017-11-13 Thread Byungchul Park
Currently, migrating tasks to cpu0 unconditionally happens when the heap is empty, since cp->elements[].cpu was initialized to 0(=cpu0). We have to distinguish between the empty case and cpu0 to avoid the unnecessary migrations. Therefore, it has to return an invalid value e.i. -1 in that case. Si

Re: [PATCH v5 06/11] intel_sgx: driver for Intel Software Guard Extensions

2017-11-13 Thread James Morris
On Mon, 13 Nov 2017, Jarkko Sakkinen wrote: > + > + secs_epc = sgx_alloc_page(0); Use SGX_ALLOC_ATOMIC instead of 0 ? > + if (IS_ERR(secs_epc)) { > + ret = PTR_ERR(secs_epc); > + goto out; > + } > +out: > + if (encl) > + kref_put(&encl->refcou

Re: [GIT PULL] Btrfs changes for 4.15

2017-11-13 Thread Qu Wenruo
On 2017年11月13日 23:35, David Sterba wrote: > Hi, > > please pull the following btrfs changes. There are some new user features and > the usual load of invisible enhancements or cleanups. The branch merges > cleanly, has been frozen in case rc7 was the last one, so I send out the pull > request ea

[PATCH v2 3/8] clocksource: owl: Adopt TIMER_OF_DECLARE()

2017-11-13 Thread Andreas Färber
Commit 1727339590fdb5a1ded881b540cd32121278d414 ("clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE") deprecated CLOCKSOURCE_OF_DECLARE(), so adopt the new macro TIMER_OF_DECLARE(). Reported-by: Daniel Lezcano Signed-off-by: Andreas Färber --- v2: New (Daniel) drivers/cl

[PATCH v2 6/8] dt-bindings: power: Add Actions Semi S700 SPS

2017-11-13 Thread Andreas Färber
Define power domains for Actions Semi S700 SoC Smart Power System (SPS). Signed-off-by: Andreas Färber --- v2: New .../devicetree/bindings/power/actions,owl-sps.txt| 2 ++ include/dt-bindings/power/owl-s700-powergate.h | 20 2 files changed, 22 insertions(+) c

[PATCH v2 5/8] arm64: dts: actions: Add S700 and CubieBoard7

2017-11-13 Thread Andreas Färber
Add Device Trees for S700 SoC and Cubietech CubieBoard7. Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged arch/arm64/boot/dts/actions/Makefile | 2 + arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 47 +++ arch/arm64/boot/dts/actions/s700.dtsi| 164 +

[PATCH v2 1/8] dt-bindings: arm: actions: Add S700 and CubieBoard7

2017-11-13 Thread Andreas Färber
Document the Actions Semi S700 SoC and the Cubietech CubieBoard7. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged Documentation/devicetree/bindings/arm/actions.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindin

[PATCH v2 2/8] dt-bindings: timer: Add Actions Semi S700

2017-11-13 Thread Andreas Färber
Define a compatible string for the Actions Semi S700 SoC timer. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged Documentation/devicetree/bindings/timer/actions,owl-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/time

[PATCH v2 4/8] clocksource: owl: Prepare S700

2017-11-13 Thread Andreas Färber
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900. Signed-off-by: Andreas Färber --- v1 -> v2: * Adopted TIMER_OF_DECLARE() (Daniel) drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/owl-timer.c b/drivers/clocksour

[PATCH v2 8/8] arm64: dts: actions: Add S700 SPS node

2017-11-13 Thread Andreas Färber
Add a node to the S700 Device Tree for the Smart Power System (SPS). Signed-off-by: Andreas Färber --- v2: New To be squashed into 5/8 if binding gets acked. arch/arm64/boot/dts/actions/s700.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dts

[PATCH v2 7/8] soc: actions: sps: Add S700

2017-11-13 Thread Andreas Färber
Add power domains for S700 SoC. Signed-off-by: Andreas Färber --- v2: New drivers/soc/actions/owl-sps.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/soc/actions/owl-sps.c b/drivers/soc/actions/owl-sps.c index 875225bfa21c..8477f0f18e2

[PATCH v2 0/8] arm64: Add initial Actions Semi S700 and CubieBoard7 support

2017-11-13 Thread Andreas Färber
Hello, This series prepares the Actions Semi S700 SoC and Cubietech CubieBoard7. It boots equally far as the S900 based Bubblegum-96 these patches are based on, i.e. into an initrd with serial and all four cores up. v2 modifies the clocksource driver patches and adds SPS patches. Not having succ

Re: [RESEND PATCH v2 2/2] sched/deadline: Initialize cp->elements[].cpu to an invalid value

2017-11-13 Thread Byungchul Park
On 11/13/2017 9:46 PM, Daniel Bristot de Oliveira wrote: On 10/12/2017 09:57 AM, Byungchul Park wrote: On Tue, Oct 10, 2017 at 03:44:04PM +0900, Byungchul Park wrote: Currently, migrating tasks to cpu0 unconditionally happens when the heap is empty, since cp->elements[].cpu was initialized to 0

Re: bit tweaks [was: Re: [nfsd4] potentially hardware breaking regression in 4.14-rc and 4.13.11]

2017-11-13 Thread Linus Torvalds
On Mon, Nov 13, 2017 at 2:59 PM, Rasmus Villemoes wrote: >> Sadly, gcc makes a mess of it and actually generates code that looks >> like the original C.[...] > > Actually, new enough gcc (7.1, I think) does contain a pattern that does > this, but unfortunately only if one spells it > > y |= (x &

Re: [PATCH] xen/9pfs: Add MODULE_LICENSE()

2017-11-13 Thread Stefano Stabellini
On Mon, 13 Nov 2017, Boris Ostrovsky wrote: > Since commit ba1029c9cbc5 ("modpost: detect modules without a > MODULE_LICENSE") modules without said macro will generate > > WARNING: modpost: missing MODULE_LICENSE() in net/9p/9pnet_xen.o > > Reported-by: Stephen Rothwell > Signed-off-by: Boris Os

Re: [PATCH 4/9] posix-clocks: Enable compat syscalls always

2017-11-13 Thread Deepa Dinamani
On Mon, Nov 13, 2017 at 1:03 PM, Thomas Gleixner wrote: > On Fri, 10 Nov 2017, Deepa Dinamani wrote: >> >> -#ifdef CONFIG_COMPAT >> - >> COMPAT_SYSCALL_DEFINE2(nanosleep, struct compat_timespec __user *, rqtp, >> struct compat_timespec __user *, rmtp) >> { >> @@ -1574,7 +157

[PATCH] xen/9pfs: Add MODULE_LICENSE()

2017-11-13 Thread Boris Ostrovsky
Since commit ba1029c9cbc5 ("modpost: detect modules without a MODULE_LICENSE") modules without said macro will generate WARNING: modpost: missing MODULE_LICENSE() in net/9p/9pnet_xen.o Reported-by: Stephen Rothwell Signed-off-by: Boris Ostrovsky --- net/9p/trans_xen.c | 1 + 1 file changed, 1

[PATCH v1 4/4] PCI/ASPM: Add L1 Substates definitions

2017-11-13 Thread Bjorn Helgaas
From: Bjorn Helgaas Add and use #defines for L1 Substate register fields instead of hard-coding the masks. Also update comments to use names from the spec. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/aspm.c | 34 --

[PATCH v1 3/4] PCI/ASPM: Reformat ASPM register definitions

2017-11-13 Thread Bjorn Helgaas
From: Bjorn Helgaas Reformat register field definitions in the style used elsewhere and align comments with names used in the spec. No functional change intended. Signed-off-by: Bjorn Helgaas --- include/uapi/linux/pci_regs.h | 28 ++-- 1 file changed, 14 insertions(

[PATCH v1 1/4] PCI/ASPM: Account for downstream device's Port Common_Mode_Restore_Time

2017-11-13 Thread Bjorn Helgaas
From: Bjorn Helgaas Every Port that supports the L1.2 substate advertises its Port Common_Mode_Restore_Time, i.e., the time the Port requires to re-establish common mode when exiting L1.2 (see PCIe r3.1, sec 7.33.2). Per sec 5.5.3.3.1, when exiting L1.2, the Downstream Port (the device at the up

[PATCH v1 2/4] PCI/ASPM: Use correct capability pointer to program LTR_L1.2_THRESHOLD

2017-11-13 Thread Bjorn Helgaas
From: Bjorn Helgaas Previously we programmed the LTR_L1.2_THRESHOLD in the parent (upstream) device using the capability pointer of the *child* (downstream) device, which corrupted some random word of the parent's config space. Use the parent's L1 SS capability pointer to program its LTR_L1.2_TH

[PATCH v1 0/4] PCI/ASPM: Fix some L1 substate configuration

2017-11-13 Thread Bjorn Helgaas
The first two patches fix typos that cause incorrect L1 substate configuration. The last two are cosmetic for maintainability. These are minor enough that I'd like to squeeze them into v4.15 unless anybody objects. --- Bjorn Helgaas (4): PCI/ASPM: Account for downstream device's Port Comm

[GIT PULL 2nd resend] leaking_addresses updates for 4.15

2017-11-13 Thread Tobin C. Harding
The following changes since commit: bebc6082da0a9f5d47a1ea2edc099bf671058bd4 Linux 4.14 (2017-11-12 10:46:13 -0800) are available in the git repository at: https://github.com/tcharding/linux tags/leaking_addresses-4.15 for you to fetch changes up to a11949ec20635b43d82ee229315fd2e3c80c22a3:

<    1   2   3   4   5   6   7   8   9   10   >