{"push_id":2184200140,"size":8,"distinct_size":8,"ref":"refs/heads/R2","head":"d3966725f94e0b93416c3dc064958b6a52a56a28","before":"145dfb29a2cd964a1bc631d7b1cac797c7e7067e","commits":[{"sha":"76d6c6b3f52703d9257c5aa5ca94e8d67f9d5600","author":{"name":"Peter Zijlstra","email":"4d3106856cce90e8f40acc5180f60ddda3a23b6e@infradead.org"},"message":"UPSTREAM: sched/core: Add missing update_rq_clock() call in set_user_nice()\n\nAddress this rq-clock update bug:\n\n  WARNING: CPU: 30 PID: 195 at ../kernel/sched/sched.h:797 set_next_entity()\n  rq->clock_update_flags < RQCF_ACT_SKIP\n\n  Call Trace:\n    dump_stack()\n    __warn()\n    warn_slowpath_fmt()\n    set_next_entity()\n    ? _raw_spin_lock()\n    set_curr_task_fair()\n    set_user_nice.part.85()\n    set_user_nice()\n    create_worker()\n    worker_thread()\n    kthread()\n    ret_from_fork()\n\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: linux-kernel@vger.kernel.org\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry picked from commit 2fb8d36787affe26f3536c3d8ec094995a48037d)\nChange-Id: I53ba056e72820c7fadb3f022e4ee3b821c0de17d\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/76d6c6b3f52703d9257c5aa5ca94e8d67f9d5600"},{"sha":"e45307d96a126bbdc0a0b87b92c4d5f90a686b4c","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"UPSTREAM: sched/fair: Force balancing on nohz balance if local group has capacity\n\nThe \"goto force_balance\" here is intended to mitigate the fact that\navg_load calculations can result in bad placement decisions when\npriority is asymmetrical.\n\nThe original commit that adds it:\n\n  fab476228ba3 (\"sched: Force balancing on newidle balance if local group has capacity\")\n\nexplains:\n\n    Under certain situations, such as a niced down task (i.e. nice =\n    -15) in the presence of nr_cpus NICE0 tasks, the niced task lands\n    on a sched group and kicks away other tasks because of its large\n    weight. This leads to sub-optimal utilization of the\n    machine. Even though the sched group has capacity, it does not\n    pull tasks because sds.this_load >> sds.max_load, and f_b_g()\n    returns NULL.\n\nA similar but inverted issue also affects ARM big.LITTLE (asymmetrical CPU\ncapacity) systems - consider 8 always-running, same-priority tasks on a\nsystem with 4 \"big\" and 4 \"little\" CPUs. Suppose that 5 of them end up on\nthe \"big\" CPUs (which will be represented by one sched_group in the DIE\nsched_domain) and 3 on the \"little\" (the other sched_group in DIE), leaving\none CPU unused. Because the \"big\" group has a higher group_capacity its\navg_load may not present an imbalance that would cause migrating a\ntask to the idle \"little\".\n\nThe force_balance case here solves the problem but currently only for\nCPU_NEWLY_IDLE balances, which in theory might never happen on the\nunused CPU. Including CPU_IDLE in the force_balance case means\nthere's an upper bound on the time before we can attempt to solve the\nunderutilization: after DIE's sd->balance_interval has passed the\nnext nohz balance kick will help us out.\n\nChange-Id: I807ba5cba0ef1b8bbec02cbcd4755fd32af10135\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Paul Turner <pjt@google.com>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nLink: http://lkml.kernel.org/r/20170807163900.25180-1-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry-picked-from: commit 583ffd99d765 tip:sched/core)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/e45307d96a126bbdc0a0b87b92c4d5f90a686b4c"},{"sha":"ecf72881ef5e426029ae97199dd78fe01f3c3ac3","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"BACKPORT: sched/fair: Move select_task_rq_fair slow-path into its own function\n\nIn preparation for changes that would otherwise require adding a new\nlevel of indentation to the while(sd) loop, create a new function\nfind_idlest_cpu() which contains this loop, and rename the existing\nfind_idlest_cpu() to find_idlest_group_cpu().\n\nCode inside the while(sd) loop is unchanged. @new_cpu is added as a\nvariable in the new function, with the same initial value as the\n@new_cpu in select_task_rq_fair().\n\nChange-Id: I9842308cab00dc9cd6c513fc38c609089a1aaaaf\nSuggested-by: Peter Zijlstra <peterz@infradead.org>\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nReviewed-by: Josef Bacik <jbacik@fb.com>\nReviewed-by: Vincent Guittot <vincent.guittot@linaro.org>\nCc: Dietmar Eggemann <dietmar.eggemann@arm.com>\nCc: Josef Bacik <josef@toxicpanda.com>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Thomas Gleixner <tglx@linutronix.de>\nLink: http://lkml.kernel.org/r/20171005114516.18617-2-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(reworked for eas/cas schedstats added in Android)\n(cherry-picked commit 18bd1b4bd53a from tip:sched/core)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/ecf72881ef5e426029ae97199dd78fe01f3c3ac3"},{"sha":"115be30d5f81016c5952682bc9e3dcb566ee190e","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"UPSTREAM: sched/fair: Remove unnecessary comparison with -1\n\nSince commit:\n\n  83a0a96a5f26 (\"sched/fair: Leverage the idle state info when choosing the \"idlest\" cpu\")\n\nfind_idlest_group_cpu() (formerly find_idlest_cpu) no longer returns -1,\nso we can simplify the checking of the return value in find_idlest_cpu().\n\nChange-Id: I98f4b9f178cd93a30408e024e608d36771764c7b\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nReviewed-by: Josef Bacik <jbacik@fb.com>\nReviewed-by: Vincent Guittot <vincent.guittot@linaro.org>\nCc: Dietmar Eggemann <dietmar.eggemann@arm.com>\nCc: Josef Bacik <josef@toxicpanda.com>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nLink: http://lkml.kernel.org/r/20171005114516.18617-3-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry-picked-from commit e90381eaecf6 in tip:sched/core)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/115be30d5f81016c5952682bc9e3dcb566ee190e"},{"sha":"ff918c9d1a244e5d3d119fa084518d3befc7249a","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"BACKPORT: sched/fair: Fix find_idlest_group when local group is not allowed\n\nWhen the local group is not allowed we do not modify this_*_load from\ntheir initial value of 0. That means that the load checks at the end\nof find_idlest_group cause us to incorrectly return NULL. Fixing the\ninitial values to ULONG_MAX means we will instead return the idlest\nremote group in that case.\n\nBACKPORT: Note 4.4 is missing commit 6b94780e45c1 \"sched/core: Use\nload_avg for selecting idlest group\", so we only have to fix\nthis_load instead of this_runnable_load and this_avg_load.\n\nChange-Id: I41f775b0e7c8f5e675c2780f955bb130a563cba7\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nReviewed-by: Vincent Guittot <vincent.guittot@linaro.org>\nReviewed-by: Josef Bacik <jbacik@fb.com>\nCc: Dietmar Eggemann <dietmar.eggemann@arm.com>\nCc: Vincent Guittot <vincent.guittot@linaro.org>\nCc: Josef Bacik <josef@toxicpanda.com>\nCc: Ingo Molnar <mingo@redhat.com>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Peter Zijlstra <peterz@infradead.org>\nLink: http://lkml.kernel.org/r/20171005114516.18617-4-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry-picked-from: commit 0d10ab952e99 tip:sched/core)\n(backport changes described above)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/ff918c9d1a244e5d3d119fa084518d3befc7249a"},{"sha":"5cea2e9f092e4306ad0669a8e52c58a07fd05c76","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"UPSTREAM: sched/fair: Fix usage of find_idlest_group() when no groups are allowed\n\nWhen 'p' is not allowed on any of the CPUs in the sched_domain, we\ncurrently return NULL from find_idlest_group(), and pointlessly\ncontinue the search on lower sched_domain levels (where 'p' is also not\nallowed) before returning prev_cpu regardless (as we have not updated\nnew_cpu).\n\nAdd an explicit check for this case, and add a comment to\nfind_idlest_group(). Now when find_idlest_group() returns NULL, it always\nmeans that the local group is allowed and idlest.\n\nChange-Id: I5f2648d2f7fb0465677961ecb7473df3d06f0057\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nReviewed-by: Vincent Guittot <vincent.guittot@linaro.org>\nReviewed-by: Josef Bacik <jbacik@fb.com>\nCc: Dietmar Eggemann <dietmar.eggemann@arm.com>\nCc: Josef Bacik <josef@toxicpanda.com>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nLink: http://lkml.kernel.org/r/20171005114516.18617-5-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry-picked-from: commit 6fee85ccbc76 tip:sched/core)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/5cea2e9f092e4306ad0669a8e52c58a07fd05c76"},{"sha":"4a1d2ceb854c8d4b1568a6220b4d52771877fa1c","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"UPSTREAM: sched/fair: Fix usage of find_idlest_group() when the local group is idlest\n\nfind_idlest_group() returns NULL when the local group is idlest. The\ncaller then continues the find_idlest_group() search at a lower level\nof the current CPU's sched_domain hierarchy. find_idlest_group_cpu() is\nnot consulted and, crucially, @new_cpu is not updated. This means the\nsearch is pointless and we return @prev_cpu from select_task_rq_fair().\n\nThis is fixed by initialising @new_cpu to @cpu instead of @prev_cpu.\n\nChange-Id: Ie531f5bb29775952bdc4c148b6e974b2f5f32b7a\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nReviewed-by: Josef Bacik <jbacik@fb.com>\nReviewed-by: Vincent Guittot <vincent.guittot@linaro.org>\nCc: Dietmar Eggemann <dietmar.eggemann@arm.com>\nCc: Josef Bacik <josef@toxicpanda.com>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nLink: http://lkml.kernel.org/r/20171005114516.18617-6-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry-picked-from: commit 93f50f90247e tip:sched/core)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/4a1d2ceb854c8d4b1568a6220b4d52771877fa1c"},{"sha":"d3966725f94e0b93416c3dc064958b6a52a56a28","author":{"name":"Brendan Jackman","email":"e272a0e92ea6b89465214d58715c88f86a8cd9f6@arm.com"},"message":"UPSTREAM: sched/fair: Sync task util before slow-path wakeup\n\nWe use task_util() in find_idlest_group() via capacity_spare_wake().\nThis task_util() updated in wake_cap(). However wake_cap() is not the\nonly reason for ending up in find_idlest_group() - we could have been sent\nthere by wake_wide(). So explicitly sync the task util with prev_cpu\nwhen we are about to head to find_idlest_group().\n\nWe could simply do this at the beginning of\nselect_task_rq_fair() (i.e. irrespective of whether we're heading to\nselect_idle_sibling() or find_idlest_group() & co), but I didn't want to\nslow down the select_idle_sibling() path more than necessary.\n\nDon't do this during fork balancing, we won't need the task_util and\nwe'd just clobber the last_update_time, which is supposed to be 0.\n\nChange-Id: I935f4bfdfec3e8b914457aac3387ce264d5fd484\nSigned-off-by: Brendan Jackman <brendan.jackman@arm.com>\nSigned-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>\nCc: Andres Oportus <andresoportus@google.com>\nCc: Dietmar Eggemann <dietmar.eggemann@arm.com>\nCc: Joel Fernandes <joelaf@google.com>\nCc: Josef Bacik <josef@toxicpanda.com>\nCc: Linus Torvalds <torvalds@linux-foundation.org>\nCc: Mike Galbraith <efault@gmx.de>\nCc: Morten Rasmussen <morten.rasmussen@arm.com>\nCc: Peter Zijlstra <peterz@infradead.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Vincent Guittot <vincent.guittot@linaro.org>\nLink: http://lkml.kernel.org/r/20170808095519.10077-1-brendan.jackman@arm.com\nSigned-off-by: Ingo Molnar <mingo@kernel.org>\n(cherry-picked-from: commit ea16f0ea6c3d tip:sched/core)\nSigned-off-by: Chris Redpath <chris.redpath@arm.com>","distinct":true,"url":"https://api.github.com/repos/kraatus90/Moto_X4_kernel/commits/d3966725f94e0b93416c3dc064958b6a52a56a28"}]}
{"actor":{"display_login":"kraatus90"}}