On Thu, Oct 12, 2017 at 10:04 AM, Bhumika Goyal wrote:
> On Thu, Oct 12, 2017 at 2:20 PM, Bhumika Goyal wrote:
>> This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and
>> https://patchwork.kernel.org/patch/649/
>>
>> Make these structures const as they are either passed to th
> > This patch adds virtio-pmem driver for KVM guest.
> > Guest reads the persistent memory range information
> > over virtio bus from Qemu and reserves the range
> > as persistent memory. Guest also allocates a block
> > device corresponding to the pmem range which later
> > can be ac
>
> On Thu, Oct 12, 2017 at 8:50 AM, Pankaj Gupta wrote:
> > This patch moves common code to base header files
> > so that it can be used for both ACPI pmem and VIRTIO pmem
> > drivers. More common code needs to be moved out in future
> > based on functionality required for virtio_pmem drive
This is the start of the stable review cycle for the 4.13.7 release.
There are 2 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Sat Oct 14 21:25:27 UTC 2017.
Anything received
4.13-stable review patch. If anyone has any objections, please let me know.
--
From: Kees Cook
commit 96ca579a1ecc943b75beba58bebb0356f6cc4b51 upstream.
Adds missing access_ok() checks.
CVE-2017-5123
Reported-by: Chris Salls
Signed-off-by: Kees Cook
Acked-by: Al Viro
Fixe
4.13-stable review patch. If anyone has any objections, please let me know.
--
From: Wim Van Sebroeck
commit fc61e83a29308601e6e8a0759e24fc8fe2122692 upstream.
This reverts commit 1fccb73011ea8a5fa0c6d357c33fa29c695139ea.
Reported as Bug 196509 - iTCO_wdt regression reboot bef
Hi Namhyung,
On Thu, 2017-10-12 at 11:52 +0900, Namhyung Kim wrote:
> On Fri, Sep 22, 2017 at 03:00:02PM -0500, Tom Zanussi wrote:
> > Users should be able to directly specify event fields in hist trigger
> > 'actions' rather than being forced to explicitly create a variable for
> > that purpose.
On Thu, Oct 12 2017, Josh Poimboeuf wrote:
> On Thu, Oct 12, 2017 at 02:22:04PM +1100, NeilBrown wrote:
>>
>> If faddr2line is given a function name which is the
>> last one listed by "nm -n", it will fail because it
>> never finds the next symbol.
>>
>> So teach the awk script to catch that pos
Remove variables 'start' and 'end', which are set but never used.
Signed-off-by: Christos Gkekas
---
fs/btrfs/free-space-tree.c | 4
1 file changed, 4 deletions(-)
diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c
index 684f122..fe5e032 100644
--- a/fs/btrfs/free-space-t
On Thu, Oct 12, 2017 at 04:11:18PM -0500, Brijesh Singh wrote:
> The sev_exit() will be called for all the psp_device instance. we need
> to set psp_misc_dev = NULL after deregistering the device.
>
> if (psp_misc_dev) {
> misc_deregister(psp_misc_dev);
> psp_misc_dev = NULL;
Right, except w
On Thu, Oct 12, 2017 at 10:40:42PM +0100, Christos Gkekas wrote:
> Remove variables 'start' and 'end', which are set but never used.
Oops.
Reviewed-by: Omar Sandoval
> Signed-off-by: Christos Gkekas
> ---
> fs/btrfs/free-space-tree.c | 4
> 1 file changed, 4 deletions(-)
>
> diff --git
Hi Linus,
Here's round three of bug fixes and other build problems.
--D
The following changes since commit e12199f85d0ad1b04ce6c425ad93cd847fe930bb:
xfs: handle racy AIO in xfs_reflink_end_cow (2017-10-03 21:27:55 -0700)
are available in the git repository at:
git://git.kernel.org/pub/sc
On Thu, Oct 12, 2017 at 2:04 PM, Robin Murphy wrote:
> [+DMA API maintainers]
>
> On 11/10/17 23:34, Jim Quinlan wrote:
>> The Broadcom STB PCIe host controller is intimately related to the
>> memory subsystem. This close relationship adds complexity to how cpu
>> system memory is mapped to PCIe
On Thu, Oct 12, 2017 at 10:03 AM, Rohit Jain wrote:
> Hi Joel, Atish,
>
> Moving off-line discussions to LKML, just so everyone's on the same page,
> I actually like this version now and it is outperforming my previous
> code, so I am on board with this version. It makes the code simpler too.
I t
On Thu, Oct 12, 2017 at 09:24:45PM +0200, Peter Zijlstra wrote:
> On Thu, Oct 12, 2017 at 06:37:22PM +0100, Roman Gushchin wrote:
> > Attaching kernel threads to a non-root cgroup is generally a bad
> > idea. Kernel threads are generally performing the work required
> > to keep the system working a
On Wed, 11 Oct 2017, Roman Gushchin wrote:
> > But let's move the discussion forward to fix it. To avoid necessarily
> > accounting memory to the root mem cgroup, have we considered if it is even
> > necessary to address the root mem cgroup? For the users who opt-in to
> > this heuristic, wou
>
> I think I found the issue, could you please check following patch?
>
I did some testing and it appears to work. Thanks! Please submit it.
Tested-by: Andi Kleen
-Andi
On 10/12/17 4:41 PM, Borislav Petkov wrote:
> On Thu, Oct 12, 2017 at 04:11:18PM -0500, Brijesh Singh wrote:
>> The sev_exit() will be called for all the psp_device instance. we need
>> to set psp_misc_dev = NULL after deregistering the device.
>>
>> if (psp_misc_dev) {
>> misc_deregister(psp_mi
Remove variables in mds_client that are set but never used.
Signed-off-by: Christos Gkekas
---
fs/ceph/mds_client.c | 11 ---
1 file changed, 11 deletions(-)
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index f23c820..cadf9b6 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/m
On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta wrote:
>
>> > This patch adds virtio-pmem driver for KVM guest.
>> > Guest reads the persistent memory range information
>> > over virtio bus from Qemu and reserves the range
>> > as persistent memory. Guest also allocates a block
>> > device
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
In this particular case, notice that I replaced the "no break here,
fall through" comments with "fall through" comments, which is what
GCC is expecting to find.
Signed-off-by: Gustavo A. R
On Thu, 12 Oct 2017, Peter Zijlstra wrote:
> > Attaching kernel threads to a non-root cgroup is generally a bad
> > idea. Kernel threads are generally performing the work required
> > to keep the system working and healthy, and applying various
> > resource limits may affect system stability and p
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva
---
drivers/atm/fore200e.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
index f8b7e86..12
On Thu, Oct 12, 2017 at 05:13:34PM +0200, Thomas Gleixner wrote:
> On Thu, 12 Oct 2017, Ingo Molnar wrote:
> >
> > * Andi Kleen wrote:
> >
> > > --- /dev/null
> > > +++ b/arch/x86/kernel/cpu/cpuid-deps.c
> > > @@ -0,0 +1,109 @@
> > > +/* Declare dependencies between CPUIDs */
> > > +#include
>
This allows for future improvement of the driver.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-ds1305.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c
index 72b22935eb62..c3232c818e65 100644
--- a/driver
Instead of adding a binary sysfs attribute from the driver (which suffers
from a race condition as the attribute appears after the device), use the
core to register an nvmem device.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-ds1305.c | 59 +--
Instead of adding a binary sysfs attribute from the driver (which suffers
from a race condition as the attribute appears after the device), use the
core to register an nvmem device.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-m48t86.c | 48 +++
This allows for future improvement of the driver.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-abx80x.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c
index fea9a60b06cf..442e62a3c9a9 100644
--- a/drivers
There is a race condition that can happen if abx80x_probe() fails after the
rtc registration succeeded. Solve that by moving the registration at the
end of the probe function.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-abx80x.c | 10 +-
1 file changed, 5 insertions(+), 5 deleti
This allows for future improvement of the driver.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-m48t86.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-m48t86.c b/drivers/rtc/rtc-m48t86.c
index 02af045305dd..22656a90cfc5 100644
--- a/drivers
Instead of adding a binary sysfs attribute from the driver (which suffers
from a race condition as the attribute appears after the device), use the
core to register an nvmem device.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-ds1511.c | 58 ++-
Disabling interrupts when removing the driver is bad practice as this will
prevent some platform from waking up when using that RTC.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-ds1511.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/rtc/rtc-ds1511.
This allows for future improvement of the driver.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-ds1511.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index 1b2dcb58c0ab..d44635178771 100644
--- a/drivers/r
From: Steven Rostedt (VMware)
Commit d1898b73 ("x86/fpu: Add tracepoints to dump FPU state at key
points") added trace points x86_fpu_state and x86_fpu_deactivate_state,
but never used them. Today they are still not used. As they take up
and waste memory, remove them.
Signed-off-by: Steven Roste
This removes a possible race condition and crash and allows for further
improvement of the driver.
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-omap.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index 3bdc04
If pinctrl_register() fails probe will return with an error without locking
the RTC and disabling pm_runtime.
Set ret and jump to err instead.
Fixes: 97ea1906b3c2 ("rtc: omap: Support ext_wakeup configuration")
Signed-off-by: Alexandre Belloni
---
drivers/rtc/rtc-omap.c | 3 ++-
1 file changed,
An Ethernet switch may support having a MAC address, which can be used
as the switch's source address in transmitted full-duplex Pause frames.
If a DSA switch supports the related .set_addr operation, the DSA core
sets the master's MAC address on the switch.
This won't make sense anymore in a mul
>
> Why isn't this __initdata?
It's referenced during cpu hotplug. Actually it should never
change in this case, but it's hard to tell that to the dependency
checker.
-Andi
From: Steven Rostedt (VMware)
Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ take advantage of
numbered callbacks") removed the only instances of trace_rcu_prep_idle,
but did not remove the TRACE_EVENT() that creates it. As defined trace
events take up memory within the kernel even when they are n
On Thu, Oct 12, 2017 at 11:02:52AM +0200, Borislav Petkov wrote:
> On Wed, Oct 11, 2017 at 04:11:37PM -0700, Andi Kleen wrote:
> > Sorry I take back what I wrote earlier. This RCU is actually still needed,
> > otherwise the reader could see partially written entries.
>
> Why? All the readers and w
Remove variables that are set but never used.
Signed-off-by: Christos Gkekas
---
drivers/block/mtip32xx/mtip32xx.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/block/mtip32xx/mtip32xx.c
b/drivers/block/mtip32xx/mtip32xx.c
index 4a3cfc7..b8af735 100644
--- a/drivers/block/mt
From: Steven Rostedt (VMware)
The trace event rcu_nocb_wake is only used when CONFIG_RCU_NOCB_CPU is
defined. But the trace event is defined regardless. As defined trace
events take up memory, it is a waste to have it defined when not used.
Surround the trace event with an #ifdef to have it only
>
> On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta wrote:
> >
> >> > This patch adds virtio-pmem driver for KVM guest.
> >> > Guest reads the persistent memory range information
> >> > over virtio bus from Qemu and reserves the range
> >> > as persistent memory. Guest also allocates a blo
Prefer kcalloc over kzalloc to allocate an array.
This patch fixes checkcpatch issue.
Signed-off-by: Harsha Sharma
---
drivers/gpu/drm/drm_crtc_helper.c | 4 ++--
drivers/gpu/drm/drm_fb_helper.c| 2 +-
drivers/gpu/drm/drm_plane_helper.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(
On 10/12/2017 03:10 PM, Vivien Didelot wrote:
> An Ethernet switch may support having a MAC address, which can be used
> as the switch's source address in transmitted full-duplex Pause frames.
>
> If a DSA switch supports the related .set_addr operation, the DSA core
> sets the master's MAC addres
On Thu, Oct 12, 2017 at 04:52:32PM -0500, Brijesh Singh wrote:
> See my above comment, I think the simplest solution is remove psp->sev_misc
Ok, so far so good.
But now you still need to track which is the last psp device and to call
misc_deregister() only when the last device exits. Because if y
During a kdump kernel boot in PowerPC, we request a reset of the
PHBs to the FW. It makes sense, since if we are booting a kdump
kernel it means we had some trouble before and we cannot rely in
the adapters' health; they could be in a bad state, hence the
reset is needed.
But not only in a kdump k
Hi,
This patch set adds support for a ZSTD-compressed kernel and ramdisk
images in the kernel boot process. It only integrates the support with
x86, though the first patch is generic to all architectures.
Zstandard requires slightly more memory during the kernel decompression
on x86 (192 KB vs 64
Add support for extracting ZSTD-compressed kernel images, as well as
ZSTD-compressed ramdisk images in the kernel boot process.
When neither `fill' nor `flush' are used, the decompression function
requires a constant amount of memory (192 KB is sufficient). When either
is used the decompression fu
On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote:
> Latest llvm update excludes assembly instructions.
> As a result __ASM_SYSREGS_H define is not required.
> -target switch includes appropriate target specific files.
>
> Tested on x86 and arm64 with llvm with git revision
> commit
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
In this particular case, notice that I replaced the
"deliberate fall-through..." comment with a "fall through"
comment, which is what GCC is expecting to find.
Signed-off-by: Gustavo A. R.
Integrates the ZSTD decompression code to the x86 pre-boot code.
Zstandard requires slightly more memory during the kernel decompression
on x86 (192 KB vs 64 KB), and the memory usage is independent of the
window size.
Zstandard requires memory proportional to the window size used during
compress
From: Steven Rostedt (VMware)
The power_domain_target trace event is only used by the ARM OMAP2
platform. Defining events when they are not used wastes memory. Until
there are other users of the power_domain_target trace event,
encapsulate it with #ifdef CONFIG_ARM_OMAP2
Signed-off-by: Steven Ro
On Thu, Oct 12, 2017 at 06:12:57PM -0400, Steven Rostedt wrote:
> From: Steven Rostedt (VMware)
>
> Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ take advantage of
> numbered callbacks") removed the only instances of trace_rcu_prep_idle,
> but did not remove the TRACE_EVENT() that creates it. As
Hi,
On Thu, Oct 12, 2017 at 1:52 PM, Brian Norris wrote:
> Hi,
>
> This patch series should mostly be self-descriptive, but it's motivated by the
> fact that I've found differing requirements from PCIe endpoint makers
> regarding
> the state of PERST# when in system suspend (S3). Additionally, s
On Thu, 2017-10-12 at 18:18 -0400, Pankaj Gupta wrote:
> >
> > On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta
> > wrote:
> > >
> > > > > This patch adds virtio-pmem driver for KVM guest.
> > > > > Guest reads the persistent memory range information
> > > > > over virtio bus from Qemu and re
On 10/04, Geert Uytterhoeven wrote:
> Signed-off-by: Geert Uytterhoeven
> ---
Acked-by: Stephen Boyd
I take it this will come through some PR?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
On Thu, 12 Oct 2017 15:26:45 -0700
"Paul E. McKenney" wrote:
> On Thu, Oct 12, 2017 at 06:12:57PM -0400, Steven Rostedt wrote:
> > From: Steven Rostedt (VMware)
> >
> > Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ take advantage of
> > numbered callbacks") removed the only instances of trace_r
On 10/12/2017 04:15 PM, Christos Gkekas wrote:
> Remove variables that are set but never used.
Looks good, applied for 4.15.
--
Jens Axboe
Hi Florian,
Florian Fainelli writes:
> On 10/12/2017 03:10 PM, Vivien Didelot wrote:
>> An Ethernet switch may support having a MAC address, which can be used
>> as the switch's source address in transmitted full-duplex Pause frames.
>>
>> If a DSA switch supports the related .set_addr operatio
> > > >
> > > > > > This patch adds virtio-pmem driver for KVM guest.
> > > > > > Guest reads the persistent memory range information
> > > > > > over virtio bus from Qemu and reserves the range
> > > > > > as persistent memory. Guest also allocates a block
> > > > > > device correspondi
On Thu, 12 Oct 2017 16:06:11 +0200 Arnd Bergmann wrote:
> kdb is the only user of the __current_kernel_time() interface, which is
> not y2038 safe and should be removed at some point.
>
> The kdb code also goes to great lengths to print the time in a
> human-readable format from 'struct timespec
From: Steven Rostedt (VMware)
All the trace events defined in include/trace/events/bpf.h are only
used when CONFIG_BPF_SYSCALL is defined. But this file gets included by
include/linux/bpf_trace.h which is included by the networking code with
CREATE_TRACE_POINTS defined.
If a trace event is creat
On 10/12/2017 03:35 PM, Vivien Didelot wrote:
> Hi Florian,
>
> Florian Fainelli writes:
>
>> On 10/12/2017 03:10 PM, Vivien Didelot wrote:
>>> An Ethernet switch may support having a MAC address, which can be used
>>> as the switch's source address in transmitted full-duplex Pause frames.
>>>
>
On Thu, Oct 12, 2017 at 03:23:04PM -0700, Alexei Starovoitov wrote:
> On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote:
> > Latest llvm update excludes assembly instructions.
> > As a result __ASM_SYSREGS_H define is not required.
> > -target switch includes appropriate target speci
On Thu, Oct 12, 2017 at 06:16:41PM -0400, Steven Rostedt wrote:
> From: Steven Rostedt (VMware)
>
> The trace event rcu_nocb_wake is only used when CONFIG_RCU_NOCB_CPU is
> defined. But the trace event is defined regardless. As defined trace
> events take up memory, it is a waste to have it defin
On Thu, Oct 12, 2017 at 2:55 PM, Christos Gkekas wrote:
> Remove variables in mds_client that are set but never used.
Hmm, it looks like all the values removed here (except err) *are* used
and this patch would break the world. Specifically...
>
> Signed-off-by: Christos Gkekas
> ---
> fs/ceph/
On Thu, Oct 12, 2017 at 06:32:39PM -0400, Steven Rostedt wrote:
> On Thu, 12 Oct 2017 15:26:45 -0700
> "Paul E. McKenney" wrote:
>
> > On Thu, Oct 12, 2017 at 06:12:57PM -0400, Steven Rostedt wrote:
> > > From: Steven Rostedt (VMware)
> > >
> > > Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ ta
From: Steven Rostedt (VMware)
When trace events are defined but not used they still create data
structures and functions for their use, even though nothing may be
using them.
The trace events mm_vmscan_memcg_reclaim_begin,
mm_vmscan_memcg_softlimit_reclaim_begin, mm_vmscan_memcg_reclaim_end,
and
On 09/19, Weiyi Lu wrote:
> This series is based on v4.14-rc1 and composed of
> clock control (PATCH 1-4) and scpsys control (PATCH 5-9)
What's the merge plan? Can I apply the clk ones to clk tree and
ignore the rest?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux
Both DSA slave create and destroy functions call call_dsa_notifiers with
respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same
dsa_notifier_register_info structure.
Wrap this in a dsa_slave_notify helper so prevent cluttering these
functions.
Signed-off-by: Vivien Didelot
---
net/
Many part of the DSA slave code require to get the master device
assigned to a slave device. Remove dsa_master_netdev() in favor of a
dsa_slave_get_master() helper which does that.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa_priv.h | 13 -
net/dsa/slave.c| 26 +-
When dsa_slave_create is called, the related port already has a CPU port
assigned to it, available in its cpu_dp member. Use it instead of the
unique tree cpu_dp.
Signed-off-by: Vivien Didelot
---
net/dsa/slave.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/net/dsa/
> > > wrote:
> > > >
> > > > > > This patch adds virtio-pmem driver for KVM guest.
> > > > > > Guest reads the persistent memory range information
> > > > > > over virtio bus from Qemu and reserves the range
> > > > > > as persistent memory. Guest also allocates a block
> > > > > > devi
Many portions of DSA core code require to get the dsa_port structure
corresponding to a slave net_device. For this purpose, introduce a
dsa_slave_to_port() helper.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa_priv.h| 7 +++
net/dsa/legacy.c | 6 +-
net/dsa/slave.c | 167 +
On 10/12/2017 03:51 PM, Vivien Didelot wrote:
> When dsa_slave_create is called, the related port already has a CPU port
> assigned to it, available in its cpu_dp member. Use it instead of the
> unique tree cpu_dp.
>
> Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
--
Florian
This patch series adds a few helpers to DSA core for clarity and
readability but brings no functional changes.
A dsa_slave_notify helper calls the DSA notifiers when (un)registering a
slave device.
Most of the DSA slave code only needs to access the dsa_port structure,
not the dsa_slave_priv (whi
The dsa_port structure has a "netdev" member, which can be used for
either the master device, or the slave device, depending on its type.
It is true that today, CPU port are not exposed to userspace, thus the
port's netdev member can be used to point to its master interface.
But it is still sligh
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva
---
drivers/crypto/qat/qat_common/qat_uclo.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c
b/drivers/
On 10/12/2017 03:51 PM, Vivien Didelot wrote:
> Both DSA slave create and destroy functions call call_dsa_notifiers with
> respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same
> dsa_notifier_register_info structure.
>
> Wrap this in a dsa_slave_notify helper so prevent cluttering th
Remove typedef from struct as linux-kernel coding style tends to
avoid using typedefs.
Done using following coccinelle semantic patch
@r1@
type T;
@@
typedef struct { ... } T;
@script:python c1@
T2;
T << r1.T;
@@
if T[-2:] =="_t" or T[-2:] == "_T":
coccinelle.T2 = T[:-2];
else:
c
On Wed, 11 Oct 2017 20:54:32 -0400 Rik van Riel wrote:
> On Wed, 2017-10-11 at 15:37 -0700, Andrew Morton wrote:
> > On Wed, 11 Oct 2017 18:19:38 -0400 Gargi Sharma
> > wrote:
> >
> > > This patch replaces the current bitmap implemetation for
> > > Process ID allocation. Functions that are no l
Take an effort to recode the arm64 vdso code from assembler to C
previously submitted by Andrew Pinski , rework
it for use in both arm and arm64, overlapping any optimizations
for each architecture. But instead of landing it in arm64, land the
result into arm codebase and unify both implementations
Rename seq_count to tb_seq_count. Rename tk_is_cntvct to use_syscall.
Rename cs_mult to cs_mono_mult. All to align with the variables in the
arm64 vdso datapage. Rework vdso_read_begin() and vdso_read_retry()
functions to reflect modern access patterns for tb_seq_count field.
Update copyright mess
On Thu, Oct 12, 2017 at 3:52 PM, Pankaj Gupta wrote:
> Dan,
>
> I have a query regarding below patch [*]. My assumption is its halted
> because of memory hotplug restructuring work? Anything I am missing
> here?
>
> [*] https://www.mail-archive.com/linux-nvdimm@lists.01.org/msg02978.html
It's fal
Move compiler-specific code to a local compiler.h file. CONFIG_AEABI
dependency check. System call fallback functions standardized into
a DEFINE_FALLBACK macro. Accept that __arch_counter_get_cntvct()
is the API for aarch64. Deal with unresolved references emitted by
GCC. Optimize handling of fallb
On 10/12/2017 03:51 PM, Vivien Didelot wrote:
> Many portions of DSA core code require to get the dsa_port structure
> corresponding to a slave net_device. For this purpose, introduce a
> dsa_slave_to_port() helper.
>
> Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
--
Florian
Ensure monotonic and realtime are inline, small price to pay for
high volume common request.
Signed-off-by: Mark Salyzyn
v2: split first CL into 4 of 7 pieces
---
arch/arm/vdso/vgettimeofday.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/arch/arm/vdso/vgettimeofd
In variable timer reading loops, pick up just the values until all
are synchronized, then outside of loop pick up cntvct and perform
calculations to determine final offset, shifted and multiplied
output value.
This replaces get_ns with get_clock_shifted_nsec as cntvct reader.
Signed-off-by: Mark
Add a case for CLOCK_MONOTONIC_RAW to match up with support that
is available in arm64's vdso.
Signed-off-by: Mark Salyzyn
v2: split first CL into 6 of 7 pieces
---
arch/arm/include/asm/vdso_datapage.h | 4 +++
arch/arm/kernel/vdso.c | 5
arch/arm/vdso/vgettimeofday.c
Add clock_getres vdso support to match up with existing support in
the arcm64's vdso.
Signed-off-by: Mark Salyzyn
v2: split first CL into 7 of 7 pieces
---
arch/arm/kernel/vdso.c| 1 +
arch/arm/vdso/vdso.lds.S | 1 +
arch/arm/vdso/vgettimeofday.c | 23 +++
3 f
From: Steven Rostedt (VMware)
Commit ce8daef3580 ("drm/i915: Remove dead
i915_gem_evict_everything()") removed the only instances of
trace_i915_gem_evict_everything.
Commit a7b9761d0a ("drm/i915: Split i915_gem_flush_ring() into seperate
invalidate/flush funcs") removed the only instances of
tra
Make sure kasan and ubsan profiling, and kcov instrumentation,
is turned off for VDSO code.
Signed-off-by: Mark Salyzyn
v2: Added this to the split up of first CL, based on comments in second CL
---
arch/arm/vdso/Makefile | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/a
Define the prototype for __get_datapage() in local datapage.h header.
Rename all vdata variable that point to the datapage shortened to vd
to relect a consistent and concise style. Make sure that all
references to the datapage in vdso operations are readonly (const).
Make sure datapage is first par
Add a case for CLOCK_BOOTTIME as it is popular for measuring
relative time on systems expected to suspend() or hibernate().
Signed-off-by: Mark Salyzyn
v2: rebased and changed from 3/3 to 10/10, fortified commit message.
---
arch/arm/include/asm/vdso_datapage.h | 1 +
arch/arm/kernel/vdso.c
On 10/12/2017 03:51 PM, Vivien Didelot wrote:
> Many part of the DSA slave code require to get the master device
> assigned to a slave device. Remove dsa_master_netdev() in favor of a
> dsa_slave_get_master() helper which does that.
>
> Signed-off-by: Vivien Didelot
> ---
> +static inline struct
Take an effort represented in the previous 8 patches to recode the
arm64 vdso code from assembler to C previously submitted by
Andrew Pinski , rework it for use in both arm and
arm64, overlapping any optimizations for each architecture.
apin...@cavium.com makes the following claims in the original
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva
---
drivers/cpufreq/speedstep-lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/cpufre
Hi,
This v9 series addresses the debugger single-stepping problem for
restartable sequences by providing a new cpu_opv "cpu operation vector"
system call, and let userspace defer execution of the critical sections
to the kernel in case a restartable sequence gets restarted.
This cpu_opv system ca
Wire up the rseq system call on 32-bit ARM.
This provides an ABI improving the speed of a user-space getcpu
operation on ARM by skipping the getcpu system call on the fast path, as
well as improving the speed of user-space operations on per-cpu data
compared to using load-linked/store-conditional.
701 - 800 of 970 matches
Mail list logo