It is a datasheet bug, for current SoCs, the RB_EDGE3(i.e. bit 27)
of HSMC_SR register does not exist, the RB_EDGE0 (i.e. bit 24) is
the ready/busy line edge status bit. So the compatible
"atmel,sama5d4-nfc" is unneeded.
Wenyou Yang (2):
Revert "mtd: atmel_nand: Support variable RB_EDGE interru
This reverts commit 5ddc7bd43ccc ("mtd: atmel_nand: Support variable
RB_EDGE interrupts")
Because for current SoCs, the RB_EDGE3(i.e. bit 27) of HSMC_SR
register does not exist, the RB_EDGE0 (i.e. bit 24) is the ready/busy
line edge status bit. It is a datasheet bug.
Signed-off-by: Wenyou Yang
-
Set general "critical" trip temperatures for cpu, gpu, mem and pllx
thermal zones for all Tegra124 platform, these trips can trigger
shut down or reset.
Tegra124 Jetson TK1 was already set "critical" trips before, so it
can overwrite the general values.
Signed-off-by: Wei Ni
---
arch/arm/boot/dt
Enable throttle function for SOC_THERM.
Set "hot" trips for cpu and gpu thermal zones, which
can trigger the SOC_THERM hardware throttle.
Signed-off-by: Wei Ni
---
arch/arm/boot/dts/tegra124.dtsi | 39 ++-
1 file changed, 30 insertions(+), 9 deletions(-)
diff
The MTA says:
: unknown user:
"yasutake.koi...@jp.panasonic.com"
Signed-off-by: Jiri Slaby
Cc: David Howells
Cc: linux-am33-l...@redhat.com
---
MAINTAINERS | 1 -
1 file changed, 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 0607ad9f6b29..2f17e7c2ab5c 100644
--- a/MAINTAINERS
Set general "critical" trip temperatures for cpu, gpu, mem and pllx
thermal zones on Tegra132, these trips can trigger shut down or reset.
Signed-off-by: Wei Ni
---
arch/arm64/boot/dts/nvidia/tegra132.dtsi | 60
1 file changed, 60 insertions(+)
diff --git a/arch
This series add following functions for Tegra soctherm:
1. add HW throttle function.
2. enable soctherm node for Tegra124, Tegra132, Tegra210, and
set "critical", "hot" trips for them.
Main changes from v3:
1. change some properties'name and descriptions, per Rob's comments.
2. change the correspo
The Tegra132 has the specific settings for soctherm,
so change to use campatible "nvidia,tegra132-soctherm" for it.
And adds cpu, gpu, mem and pllx thermal zones.
Signed-off-by: Wei Ni
---
arch/arm64/boot/dts/nvidia/tegra132.dtsi | 36 ++--
1 file changed, 34 insertio
Enable throttle function for SOC_THERM.
Set "hot" trips for cpu and gpu thermal zones, which
can trigger the SOC_THERM hardware throttle.
Signed-off-by: Wei Ni
---
arch/arm64/boot/dts/nvidia/tegra210.dtsi | 41 +---
1 file changed, 32 insertions(+), 9 deletions(-)
di
Set general "critical" trip temperatures for cpu, gpu, mem and pllx
thermal zones on Tegra210, these trips can trigger shut down or reset.
Signed-off-by: Wei Ni
---
arch/arm64/boot/dts/nvidia/tegra210.dtsi | 60
1 file changed, 60 insertions(+)
diff --git a/arch
Tegra soctherm support HW throttle, when the soctherm snesors'
temperature is above the throttle trip point, it will trigger
pulse skiper to tune clocks accroding to the throttle depth.
Add this function for Tegra124 and Tegra210.
Since Tegra132 use different registers to configure pulse skiper,
wi
Add HW throttle configuration sub-node for soctherm, which
is used to describe the throttle event, and worked as a
cooling device. The "hot" type trip in thermal zone can
be bound to this cooling device, and trigger the throttle
function.
Signed-off-by: Wei Ni
---
.../bindings/thermal/nvidia,teg
Enable throttle function for SOC_THERM.
Set "hot" trips for cpu and gpu thermal zones, which
can trigger the SOC_THERM hardware throttle.
Signed-off-by: Wei Ni
---
arch/arm64/boot/dts/nvidia/tegra132.dtsi | 41 +---
1 file changed, 32 insertions(+), 9 deletions(-)
di
Tegra132 use CCROC throttle registers to configure
pulse skiper, set these registers to enable throttle
function for Tegra132.
Signed-off-by: Wei Ni
---
drivers/thermal/tegra/soctherm.c| 234 +---
drivers/thermal/tegra/tegra132-soctherm.c | 17 ++
inclu
Adds soctherm node for Tegra210, and add cpu,
gpu, mem, pllx as thermal-zones. Set critical
trip temperatures for them.
Signed-off-by: Wei Ni
---
arch/arm64/boot/dts/nvidia/tegra210.dtsi | 44
1 file changed, 44 insertions(+)
diff --git a/arch/arm64/boot/dts/nvi
Sorry,the order here is not right, please ignore this patch.
I will RESEND it.
On 2016/5/9 14:24, Chen Feng wrote:
> Add ion cached pool in system heap.
>
> Signed-off-by: Chen Feng
> Signed-off-by: Xia Qing
> ---
> drivers/staging/android/ion/ion_system_heap.c | 120
> +
Dear kernel hackers,
I have a problem with the signal handling under qemu-system-m68k
emulating coldfire mcf5208 evalboard. Following example code
provided by Busybox maintainer Denys Vlasenko
shows the problem when running on qemu:
#include
Commit-ID: 58fe9c4621b7219e724c0b7af053112f974a08c3
Gitweb: http://git.kernel.org/tip/58fe9c4621b7219e724c0b7af053112f974a08c3
Author: Davidlohr Bueso
AuthorDate: Sun, 8 May 2016 20:58:10 -0700
Committer: Ingo Molnar
CommitDate: Mon, 9 May 2016 08:39:52 +0200
sched/core: Fix comment ty
Commit-ID: 8c5e95548d41a48b1eb2be741107a259251ebd86
Gitweb: http://git.kernel.org/tip/8c5e95548d41a48b1eb2be741107a259251ebd86
Author: Muhammad Falak R Wani
AuthorDate: Thu, 5 May 2016 15:21:19 +0530
Committer: Ingo Molnar
CommitDate: Mon, 9 May 2016 08:39:52 +0200
sched/core: Remove u
Hi Stephen,
On Fri, 2016-05-06 at 16:11 -0700, Stephen Boyd wrote:
> On 04/14, James Liao wrote:
> > diff --git a/drivers/clk/mediatek/clk-mt2701.c
> > b/drivers/clk/mediatek/clk-mt2701.c
> > new file mode 100644
> > index 000..b4db141
> > --- /dev/null
> > +++ b/drivers/clk/mediatek/clk-mt27
From: René Nyffenegger
In include/linux/syscalls.h, the four functions sys_kill, sys_tgkill,
sys_tkill and sys_rt_sigqueueinfo are declared with "int pid" and
"int tgid".
However, in kernel/signal.c, the corresponding definitions use
the more appropriate "pid_t" (which is a typedef'd int).
This
Hi all,
On Mon, 9 May 2016 10:59:27 +1000 Stephen Rothwell
wrote:
>
> On Fri, 6 May 2016 09:22:25 -0500 Josh Poimboeuf wrote:
> >
> > I've also seen no problems on powerpc with 4.4 and 4.8. I suspect it's
> > specific to gcc 4.6. Stephen, can you confirm this patch fixes it?
>
> That will
* Andrey Ryabinin wrote:
> Exchange between user and kernel memory is coded in assembly language.
> Which means that such accesses won't be spotted by KASAN as a compiler
> instruments only C code.
> Add explicit KASAN checks to user memory access API to ensure that
> userspace writes to (or rea
On Mon, 9 May 2016, Jarkko Sakkinen wrote:
> On Fri, May 06, 2016 at 01:54:14PM +0200, Thomas Gleixner wrote:
> > On Fri, 6 May 2016, Jarkko Sakkinen wrote:
> >
> > > On Tue, May 03, 2016 at 04:06:27AM -0500, Dr. Greg Wettstein wrote:
> > > > It would be helpful and instructive for anyone involved
Add ion cached pool in system heap.
Signed-off-by: Chen Feng
Signed-off-by: Xia Qing
---
drivers/staging/android/ion/ion_system_heap.c | 120 +-
1 file changed, 79 insertions(+), 41 deletions(-)
diff --git a/drivers/staging/android/ion/ion_system_heap.c
b/drivers/stag
Include the CPU thermal nodes directly in Odroid XU3-family common DTS
because it is the only user of it. Keeping it in separate DTSI node does
not bring benefits because:
1. It is not re-usable on other non-fan boards (fan is referenced),
2. It won't be re-used on future Odroid XU board because di
>>> Heinrich Schuchardt 05/08/16 8:13 AM >>>
>--- a/drivers/xen/gntdev.c
>+++ b/drivers/xen/gntdev.c
>@@ -915,36 +915,43 @@ static int gntdev_grant_copy_seg(struct
>gntdev_copy_batch *batch,
>static long gntdev_ioctl_grant_copy(struct gntdev_priv *priv, void __user *u)
>{
>struct ioctl_gntdev_gra
> >> Thank you for the review!
> >>
> >> > > + switch (alloc_data.state) {
> >> > > + case KASAN_STATE_QUARANTINE:
> >> > > + case KASAN_STATE_FREE:
> >> > > + kasan_report((unsigned long)object, 0, false,
> >> > > + (unsigned long)__builtin_return_address(1));
> >>
The _PTS control method is defined in the section 7.4.1 of acpi 6.0
spec. The _PTS control method is executed by the OS during the sleep
transition process for S1, S2, S3, S4, and for orderly S5 shutdown.
The sleeping state value (For example, 1, 2, 3, 4 or 5 for the S5
soft-off state) is passed to
Hi all,
Changes since 20160506:
Dropped tree: hsi (at the maintainer's request)
The f2fs tree gained a conflict against the ext4 tree.
The libata tree gained a build failure so I used the version from
next-20160506 for today.
The net-next tree gained conflicts against the wireless-drivers and
On Sun, May 8, 2016 at 11:17 AM, Yury Norov wrote:
> On Sat, May 07, 2016 at 03:15:59PM +, Luruo, Kuthonuzo wrote:
>> Thank you for the review!
>>
>> > > + switch (alloc_data.state) {
>> > > + case KASAN_STATE_QUARANTINE:
>> > > + case KASAN_STATE_FREE:
>> > > + kasan_report((unsigned
Hi Stephen,
On Fri, 2016-05-06 at 16:12 -0700, Stephen Boyd wrote:
> On 04/14, James Liao wrote:
> > Some system clocks should be turned on by default on MT2701.
> > This patch enable these clocks when related clocks have
> > been registered.
> >
> > Signed-off-by: James Liao
> > ---
>
> critic
On 5/9/16, Stephen Rothwell wrote:
> Hi Josh,
>
> On Fri, 6 May 2016 09:22:25 -0500 Josh Poimboeuf
> wrote:
>>
>> I've also seen no problems on powerpc with 4.4 and 4.8. I suspect it's
>> specific to gcc 4.6. Stephen, can you confirm this patch fixes it?
>
> That will obviously fix the problem
On Fri, May 06, 2016 at 01:54:14PM +0200, Thomas Gleixner wrote:
> On Fri, 6 May 2016, Jarkko Sakkinen wrote:
>
> > On Tue, May 03, 2016 at 04:06:27AM -0500, Dr. Greg Wettstein wrote:
> > > It would be helpful and instructive for anyone involved in this debate
> > > to review the following URL whi
HI Stephen,
On Fri, 2016-05-06 at 16:02 -0700, Stephen Boyd wrote:
> On 04/14, James Liao wrote:
> > MT2701 subsystem clocks are optional and should be enabled only if
> > their subsystem drivers are ready to control these clocks.
> >
> > Signed-off-by: James Liao
> > ---
>
> Why is this patch
On 05/08/2016 09:56 PM, Davidlohr Bueso wrote:
> The field is obviously updated w.o the lock and needs a READ_ONCE
> while waiting for lock holder(s) to go away, just like we do with
> all other ->count accesses.
This isn't actually fixing a bug because it's passed through
several full barriers wh
On Fri, May 6, 2016 at 1:50 PM, Kuthonuzo Luruo wrote:
> This patch adds a new 'test_kasan' test for KASAN double-free error
> detection when the same slab object is concurrently deallocated.
>
> Signed-off-by: Kuthonuzo Luruo
> ---
> Changes in v2:
> - This patch is new for v2.
> ---
> lib/test
On Fri, Apr 29, 2016 at 03:22:19PM -0700, Jethro Beekman wrote:
> On 29-04-16 13:04, Jarkko Sakkinen wrote:
> >>> Why would you want to do that?
> >>
> >> ...
> >
> > Do you see this as a performance issue or why do you think that this
> > would hurt that much?
>
> I don't think it's a performance
On 07/05/16 10:17, Heinrich Schuchardt wrote:
> Commit a4cdb556cae0 ("xen/gntdev: add ioctl for grant copy")
> leads to a warning
> xen/gntdev.c: In function ‘gntdev_ioctl_grant_copy’:
> xen/gntdev.c:949:1: warning: the frame size of 1248 bytes
> is larger than 1024 bytes [-Wframe-larger-than=]
>
Hi Corey,
I am trying to review this patch now, and these fixes contained are very
great. Just several concerns are added in inline comment.
By the way, did you run this in your side?
Hi Vivek,
Member variable was added into task_struct in below commit replacing
pids[PIDTYPE_TGID], and from the
Hi,
> This patch converts the Qualcomm SCM driver to use the streaming DMA
> APIs for communication buffers.
>
> Signed-off-by: Andy Gross
> ---
Reviewed-by: sricha...@codeaurora.org
Regards,
Sricharan
> drivers/firmware/qcom_scm-32.c | 152
+
>
> dr
On Fri, May 6, 2016 at 2:45 PM, Andrey Ryabinin wrote:
> Exchange between user and kernel memory is coded in assembly language.
> Which means that such accesses won't be spotted by KASAN as a compiler
> instruments only C code.
> Add explicit KASAN checks to user memory access API to ensure that
>
On Fri, May 06, 2016 at 06:33:42PM +0900, Sergey Senozhatsky wrote:
> On (05/06/16 18:08), Sergey Senozhatsky wrote:
> [..]
> > and it's not 45 iterations that we are getting rid of, but around 31:
> > not every class reaches it's ideal 100% ratio on the first iteration.
> > so, no, sorry, I don't
Read waiters are currently reference counted from the time it enters
the slowpath until the lock is released and the waiter is awoken. This
is fragile and superfluous considering everything occurs within down_read()
without returning to the caller, and the very nature of the primitive does
not sugg
As wake_qs gain users, we can teach rwsems about them such that
waiters can be awoken without the wait_lock. This is for both
readers and writer, the former being the most ideal candidate
as we can batch the wakeups shortening the critical region that
much more -- ie writer task blocking a bunch of
The field is obviously updated w.o the lock and needs a READ_ONCE
while waiting for lock holder(s) to go away, just like we do with
all other ->count accesses.
Signed-off-by: Davidlohr Bueso
---
kernel/locking/rwsem-xadd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kerne
Readers that are awoken will expect a nil ->task indicating
that a wakeup has occurred. There is a mismatch between the
smp_mb() and its documentation, in that the serialization is
done between reading the task and the nil store. Furthermore,
in addition to having the overlapping of loads and store
Hi,
This is a follow up series while reviewing Waiman's reader-owned
state work[1]. While I have based it on -tip instead of that change,
I can certainly rebase the series in some future iteration.
Changes are mainly around reader-waiter optimizations, in no particular
order. Has passed numerous
1) Check klogctl failure correctly, from Colin Ian King.
2) Prevent OOM when under memory pressure in flowcache, from Steffen
Klassert.
3) Fix info leak in llc and rtnetlink ifmap code, from Kangjie Lu.
4) Memory barrier and multicast handling fixes in bnxt_en, from
Michael Chan.
5) Endi
Quoting Tyler Hicks (tyhi...@canonical.com):
> The capability check should not be audited since it is only being used
> to determine the inode permissions. A failed check does not indicate a
> violation of security policy but, when an LSM is enabled, a denial audit
> message was being generated.
>
Quoting Tyler Hicks (tyhi...@canonical.com):
> When checking the current cred for a capability in a specific user
> namespace, it isn't always desirable to have the LSMs audit the check.
> This patch adds a noaudit variant of ns_capable() for when those
> situations arise.
>
> The common logic bet
Dear purchasing manager,
We have rich experience in manufacturing and exporting all kinds of bags, We
have our own production base with advanced machine equipment, and employ
professional workforce of technicians and engineers.
Our products range from tote bags, drawstring bags, luggage bags,
Somewhere else, pid_t is a typedef for an int.
Rene
On 09.05.2016 03:25, Andy Lutomirski wrote:
> On Sun, May 8, 2016 at 12:38 PM, René Nyffenegger
> wrote:
>> Use pid_t instead of int in the declarations of sys_kill, sys_tgkill,
>> sys_tkill and sys_rt_sigqueueinfo in include/linux/syscalls.h
>
On Mon, May 09, 2016 at 05:52:51AM +0200, Mike Galbraith wrote:
> On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote:
>
> > In addition, I would argue maybe beefing up idle balancing is a more
> > productive way to spread load, as work-stealing just does what needs
> > to be done. And seems it has
Hi Octavian,
Apologies for missing this earlier, just catching up on this thread...
On 04/19/2016 06:39 PM, Octavian Purdila wrote:
> This patch allows SSDTs to be loaded from EFI variables. It works by
> specifying the EFI variable name containing the SSDT to be loaded. All
> variables with the
We got a warning below:
WARNING: CPU: 1 PID: 2468 at kernel/sched/core.c:1161
set_task_cpu+0x1af/0x1c0
CPU: 1 PID: 2468 Comm: bugon Not tainted 4.6.0-rc3+ #16
Hardware name: Intel Corporation Broadwell Client
0086 89618374 8800897a7d50 8133dc8c
0
On Mon, May 09, 2016 at 05:45:40AM +0200, Mike Galbraith wrote:
> On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote:
> > On Sun, May 08, 2016 at 10:08:55AM +0200, Mike Galbraith wrote:
> > > > Maybe give the criteria a bit margin, not just wakees tend to equal
> > > > llc_size,
> > > > but the nu
On 05/08/2016 09:14 PM, Shanker Donthineni wrote:
> Since device IDs are extremely sparse, the single, a.k.a flat table is
> not sufficient for the following two reasons.
>
> 1) According to ARM-GIC spec, ITS hw can access maximum of 256(pages)*
>64K(pageszie) bytes. In the best case, it supp
... the comment clearly refers to wake_up_q, and not
wake_up_list.
Signed-off-by: Davidlohr Bueso
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c82ca6eccfec..c59e4df38591 100644
--- a/kernel/sched/core.
From: Daniel Borkmann
Date: Fri, 06 May 2016 00:46:56 +0200
> On 05/06/2016 12:39 AM, Colin King wrote:
>> From: Colin Ian King
>>
>> klogctl can fail and return -ve len, so check for this and
>> return NULL to avoid passing a (size_t)-1 to malloc.
>>
>> Signed-off-by: Colin Ian King
>
> [ wou
From: Tyler Hicks
Date: Fri, 6 May 2016 18:04:12 -0500
> This pair of patches does away with what I believe is a useless denial
> audit message when a privileged process initially accesses a net sysctl.
The LSM folks can apply this if they agree with you.
From: Caesar Wang
Date: Fri, 6 May 2016 20:19:16 +0800
> Doing tx_clean() inside poll() may scramble the tx ring buffer if
> tx() is running. This will cause tx to stop working, which can be
> reproduced by simultaneously downloading two large files at high speed.
>
> Moving tx_clean() into tx(
From: Bjorn Andersson
Date: Fri, 6 May 2016 07:09:07 -0700
> Introduce compile stubs for the SMD API, allowing consumers to be
> compile tested.
>
> Acked-by: Andy Gross
> Signed-off-by: Bjorn Andersson
Applied.
From: Bjorn Andersson
Date: Fri, 6 May 2016 07:09:08 -0700
> From: Courtney Cavin
>
> Add an implementation of Qualcomm's IPC router protocol, used to
> communicate with service providing remote processors.
>
> Signed-off-by: Courtney Cavin
> Signed-off-by: Bjorn Andersson
> [bjorn: Cope wi
On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote:
> In addition, I would argue maybe beefing up idle balancing is a more
> productive way to spread load, as work-stealing just does what needs
> to be done. And seems it has been (sub-unconsciously) neglected in this
> case, :)
P.S. Nope, I'm din
On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote:
> On Sun, May 08, 2016 at 10:08:55AM +0200, Mike Galbraith wrote:
> > > Maybe give the criteria a bit margin, not just wakees tend to equal
> > > llc_size,
> > > but the numbers are so wild to easily break the fragile condition, like:
> >
> > Se
From: Dan Carpenter
Date: Thu, 5 May 2016 16:21:30 +0300
> "data_split" was never set to false. It's just uninitialized.
>
> Fixes: 2950219d87b0 ('qede: Add basic network device support')
> Signed-off-by: Dan Carpenter
Applied, thanks Dan.
> From: Thomas Gleixner [mailto:t...@linutronix.de]
> On Sun, 8 May 2016, Du, Changbin wrote:
> > > From: Thomas Gleixner [mailto:t...@linutronix.de]
> > > > raw_spin_unlock_irqrestore(&db->lock, flags);
> > > > /*
> > > > -* Maybe the object is stati
+ linux-rockchip
I just hacked my local branch to fix the issues found on rockchip
platform. The reaseon is that mmc core fail to get status
after switching from hs200 to hs. So I disabled sending status for it
just like what Chaotian does here. But I didn't deeply dig out the root
cause but I a
the "ch" from brd structure could be NULL, it need to
check for NULL.
Signed-off-by: Daeseok Youn
---
drivers/staging/dgnc/dgnc_neo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c
index 9eae1a6..ba57e95 10064
fix checkpatch.pl warning about 'line over 80 characters'.
Signed-off-by: Daeseok Youn
---
drivers/staging/dgnc/dgnc_sysfs.c | 20 +++-
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/dgnc/dgnc_sysfs.c
b/drivers/staging/dgnc/dgnc_sysfs.c
index d825
dgnc_board(brd) was already checked for NULL before calling
neo_parse_isr(). And also port doesn't need to check.
Signed-off-by: Daeseok Youn
---
drivers/staging/dgnc/dgnc_neo.c | 6 --
1 file changed, 6 deletions(-)
diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_n
When we get the sched_slice of a sched_entity, we use cfs_rq->nr_running
to calculate the whole __sched_period. But cfs_rq->nr_running is the
number of sched_entity in that cfs_rq, rq->nr_running is the number
of all the tasks that are not throttled. So we should use the
rq->nr_running to calculate
On Mon, May 09, 2016 at 11:45:43AM +1000, Dave Chinner wrote:
> [ OT, but I'll reply anyway :P ]
>
> On Fri, May 06, 2016 at 02:29:23PM -0400, J. Bruce Fields wrote:
> > On Thu, May 05, 2016 at 08:56:02AM +1000, Dave Chinner wrote:
> > > In the latest XFS filesystem format, we randomise the genera
On Sun, May 08, 2016 at 10:08:55AM +0200, Mike Galbraith wrote:
> > Maybe give the criteria a bit margin, not just wakees tend to equal
> > llc_size,
> > but the numbers are so wild to easily break the fragile condition, like:
>
> Seems lockless traversal and averages just lets multiple CPUs sele
Recently, I got many reports about perfermance degradation in embedded
system(Android mobile phone, webOS TV and so on) and easy fork fail.
The problem was fragmentation caused by zram and GPU driver mainly.
With memory pressure, their pages were spread out all of pageblock and
it cannot be migrat
We have allowed migration for only LRU pages until now and it was
enough to make high-order pages. But recently, embedded system(e.g.,
webOS, android) uses lots of non-movable pages(e.g., zram, GPU memory)
so we have seen several reports about troubles of small high-order
allocation. For fixing the
Every zspage in a size_class has same number of max objects so
we could move it to a size_class.
Reviewed-by: Sergey Senozhatsky
Signed-off-by: Minchan Kim
---
mm/zsmalloc.c | 32 +++-
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/mm/zsmalloc.c b/mm
Use kernel standard bit spin-lock instead of custom mess. Even, it has
a bug which doesn't disable preemption. The reason we don't have any
problem is that we have used it during preemption disable section
by class->lock spinlock. So no need to go to stable.
Cc: Sergey Senozhatsky
Signed-off-by:
Now, VM has a feature to migrate non-lru movable pages so
balloon doesn't need custom migration hooks in migrate.c
and compaction.c. Instead, this patch implements
page->mapping->a_ops->{isolate|migrate|putback} functions.
With that, we could remove hooks for ballooning in general
migration functi
Upcoming patch will change how to encode zspage meta so for easy review,
this patch wraps code to access metadata as accessor.
Cc: Sergey Senozhatsky
Signed-off-by: Minchan Kim
---
mm/zsmalloc.c | 82 +++
1 file changed, 60 insertions(+),
Zsmalloc stores first free object's position into
freeobj in each zspage. If we change it with index from first_page
instead of position, it makes page migration simple because we
don't need to correct other entries for linked list if a page is
migrated out.
Cc: Sergey Senozhatsky
Signed-off-by:
Zsmalloc is ready for page migration so zram can use __GFP_MOVABLE
from now on.
I did test to see how it helps to make higher order pages.
Test scenario is as follows.
KVM guest, 1G memory, ext4 formated zram block device,
for i in `seq 1 8`;
do
dd if=/dev/vda1 of=mnt/test$i.txt bs=128M
Currently, putback_zspage does free zspage under class->lock
if fullness become ZS_EMPTY but it makes trouble to implement
locking scheme for new zspage migration.
So, this patch is to separate free_zspage from putback_zspage
and free zspage out of class->lock which is preparation for
zspage migrat
This patch introduces run-time migration feature for zspage.
For migration, VM uses page.lru field so it would be better to not use
page.next field which is unified with page.lru for own purpose.
For that, firstly, we can get first object offset of the page via
runtime calculation instead of using
We have squeezed meta data of zspage into first page's descriptor.
So, to get meta data from subpage, we should get first page first
of all. But it makes trouble to implment page migration feature
of zsmalloc because any place where to get first page from subpage
can be raced with first page migrat
Procedure of page migration is as follows:
First of all, it should isolate a page from LRU and try to
migrate the page. If it is successful, it releases the page
for freeing. Otherwise, it should put the page back to LRU
list.
For LRU pages, we have used putback_lru_page for both freeing
and putb
For page migration, we need to create page chain of zspage dynamically
so this patch factors it out from alloc_zspage.
Cc: Sergey Senozhatsky
Signed-off-by: Minchan Kim
---
mm/zsmalloc.c | 59 +++
1 file changed, 35 insertions(+), 24 delet
Since device IDs are extremely sparse, the single, a.k.a flat table is
not sufficient for the following two reasons.
1) According to ARM-GIC spec, ITS hw can access maximum of 256(pages)*
64K(pageszie) bytes. In the best case, it supports upto DEVid=21
sparse with minimum device table entry
The function is getting out of control, it has too many goto
statements and would be too complicated for adding a feature
two-level device table. So, it is time for us to cleanup and
move some of the logic to a separate function without affecting
the existing functionality.
Signed-off-by: Shanker
09.05.2016 04:32, Andy Lutomirski пишет:
On May 7, 2016 7:38 AM, "Stas Sergeev" wrote:
03.05.2016 20:31, Andy Lutomirski пишет:
If a signal stack is set up with SS_AUTODISARM, then the kernel
inherently avoids incorrectly resetting the signal stack if signals
recurse: the signal stack will be
Fom: Philippe Reynes Sent: Monday, May 09, 2016 5:45 AM
> To: Fugang Duan ; da...@davemloft.net;
> b...@decadent.org.uk; kan.li...@intel.com; de...@googlers.com;
> adu...@mirantis.com; j...@mellanox.com; jacob.e.kel...@intel.com;
> t...@herbertland.com; and...@lunn.ch
> Cc: net...@vger.kernel.org;
Hi,
Not getting the bad block message after disable metadata_csum.
Best Regards,
Lay
> -Original Message-
> From: Philipp Hahn [mailto:pmh...@pmhahn.de]
> Sent: Monday, May 2, 2016 2:43 PM
> To: Lay, Kuan Loon ; ty...@mit.edu;
> adilger.ker...@dilger.ca; linux-e...@vger.kernel.org; linux
perf_evlist__mmap_read_backward() is introduced for reading backward
ring buffer. Since direction for reading such ring buffer is different
from the direction kernel writing to it, and since user need to fetch
most recent record from it, a perf_evlist__mmap_read_catchup() is
introduced to move the
This test checks reading from backward ring buffer.
Test result:
# ~/perf test 'ring buffer'
45: Test backward reading from ring buffer : Ok
Test case is a while loop which calls prctl(PR_SET_NAME) multiple
times. Each prctl should issue 2 events: one PERF_RECORD_SAMPLE,
one
Commit 9ecda41acb97 ("perf/core: Add ::write_backward attribute to
perf event") introduces backward ring buffer. This 2 patches add basic
support for reading from it, and add a new test case for it.
v2 -> v3:
Improve commit message, add more comments (patch 1/2). patch 1-2/4 in
v2 have been co
[ OT, but I'll reply anyway :P ]
On Fri, May 06, 2016 at 02:29:23PM -0400, J. Bruce Fields wrote:
> On Thu, May 05, 2016 at 08:56:02AM +1000, Dave Chinner wrote:
> > In the latest XFS filesystem format, we randomise the generation
> > value during every inode allocation to make it hard to guess th
On May 7, 2016 8:02 AM, "Stas Sergeev" wrote:
>
> 03.05.2016 20:31, Andy Lutomirski пишет:
>
>> The handling for old kernels was wrong. Fix it.
>>
>> Reported-by: Ingo Molnar
>> Cc: Stas Sergeev
>> Cc: Al Viro
>> Cc: Andrew Morton
>> Cc: Andy Lutomirski
>> Cc: Borislav Petkov
>> Cc: Brian G
On May 7, 2016 7:38 AM, "Stas Sergeev" wrote:
>
> 03.05.2016 20:31, Andy Lutomirski пишет:
>
>> If a signal stack is set up with SS_AUTODISARM, then the kernel
>> inherently avoids incorrectly resetting the signal stack if signals
>> recurse: the signal stack will be reset on the first signal
>> d
On May 8, 2016 2:59 AM, "Dr. Greg Wettstein" wrote:
>
>
> This now means the security of SGX on 'unlocked' platforms, at least
> from a trust perspective, will be dependent on using TXT so as to
> provide a hardware root of trust on which to base the SGX trust model.
Can you explain what you mean
1 - 100 of 247 matches
Mail list logo