Received: by 10.192.165.148 with SMTP id m20csp829358imm; Fri, 27 Apr 2018 08:09:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqKlAGpiMrIGGu9LgScNfzaAu71jD5NOcLp0oxwUVeM9EVny1V+xWszu2KNWMOB5/q3U8qY X-Received: by 10.98.223.76 with SMTP id u73mr2558921pfg.10.1524841792702; Fri, 27 Apr 2018 08:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524841792; cv=none; d=google.com; s=arc-20160816; b=zgtQKkRynnmDDcCogDCnCExiFoYjAkgL5eUo7o2FWIRz4IkobqPl67dW/b/t9yoLqf tw1Sa6mvwzMJrN5Tj5CWy9tC9dzhdol2D86yjVzaUOXoIemlboQCleZfEOa3hjEpHx/L jyO0yRK+VLl041X1efu6f+48j0+REwAX2Q4CLtUCiNNKvql5O5QTmn7PKeBImD3mSNCj lzfUe16zwqjkM0TFzrG4/5X0Yd9CF/c0MwtjGkVa8bMSFyuifaMkL0zA2up2wMZwv9YN MaQXJ2mlJQwhov5ofOv6nxVQFu9M8td5j8KX8bvlJVgo3paeEAHy6WxFMvrJdt7HEw3Q c62Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=5LW1SN+ycsUgRT9n9Q3wAEAO3gfNXUMDPVWgOJkl4LA=; b=UWwW3bY2XtCZHbA/nRyGdPewG1RaRazX/k+7pKQyw13/na16+9b3L6yQGiodO/oaqp sWLkPs8PG0tfU2ZxDbCKnajfzshZYHdqCJmapkZOLB4z1vR0CttfWa4WiUlvxWrL/t1W BHKcOns+hfp8nEjX1MWjQcpQBwN0T4Y9MXo0hW5rEkkZxSp6pBDnkSA38cDqHDDzWmgM jz90jdCjhaGZVY6mPNME3uwEh3bUQJJ+m69WAq7nlHNc0TIdSmPvDXvb4NaxcQ2yNg9B NMJYjg1CWlcCtSqVNhDNsT1YXnGK6/icOzARbT/Yy2YMa03fwGBZhVU0IjMBs/MnCpgH l7ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si1364814plx.211.2018.04.27.08.09.38; Fri, 27 Apr 2018 08:09:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933939AbeD0PH0 (ORCPT + 99 others); Fri, 27 Apr 2018 11:07:26 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:40930 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933738AbeD0OEj (ORCPT ); Fri, 27 Apr 2018 10:04:39 -0400 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtps (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1fC3zJ-0003cl-Pi from Jiada_Wang@mentor.com ; Fri, 27 Apr 2018 07:04:37 -0700 Received: from jiwang-OptiPlex-980.tokyo.mentorg.com (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.224.2; Fri, 27 Apr 2018 07:04:37 -0700 From: Jiada Wang To: CC: , , , , , Subject: Re: [PATCHv2,1/7] sched: Add static_key for asymmetric cpu capacity optimizations Date: Fri, 27 Apr 2018 23:04:38 +0900 Message-ID: <20180427140438.7433-1-jiada_wang@mentor.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <1521125224-15434-2-git-send-email-morten.rasmussen@arm.com> References: <1521125224-15434-2-git-send-email-morten.rasmussen@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi with this patch, if enable CONFIG_DEBUG_ATOMIC_SLEEP=y, then I am getting following BUG report during early startup Backtrace caused by [1] during early kernel startup: [ 5.325288] CPU: All CPU(s) started at EL2 [ 5.325700] alternatives: patching kernel code [ 5.329255] BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:34 [ 5.329525] in_atomic(): 0, irqs_disabled(): 0, pid: 1, name: swapper/0 [ 5.329657] 2 locks held by swapper/0/1: [ 5.329744] #0: (sched_domains_mutex){+.+.}, at: [] sched_init_smp+0x88/0x158 [ 5.329993] #1: (rcu_read_lock){....}, at: [] build_sched_domains+0x9cc/0x2f08 [ 5.330233] Preemption disabled at: [ 5.330256] [] rq_attach_root+0x28/0x1d8 [ 5.330511] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.17+ #123 [ 5.330635] Hardware name: Renesas Salvator-X board based on r8a7795 ES2.0+ (DT) [ 5.330779] Call trace: [ 5.330853] [] dump_backtrace+0x0/0x364 [ 5.330968] [] show_stack+0x14/0x1c [ 5.331080] [] dump_stack+0x108/0x174 [ 5.331194] [] ___might_sleep+0x43c/0x44c [ 5.331310] [] __might_sleep+0x164/0x178 [ 5.331429] [] cpus_read_lock+0x38/0x12c [ 5.331547] [] static_key_enable+0x14/0x2c [ 5.331665] [] build_sched_domains+0x2ee4/0x2f08 [ 5.331789] [] sched_init_domains+0xcc/0xe8 [ 5.331908] [] sched_init_smp+0x94/0x158 [ 5.332026] [] kernel_init_freeable+0x1ec/0x4c4 [ 5.332153] [] kernel_init+0x10/0x128 [ 5.332264] [] ret_from_fork+0x10/0x18 [ 5.343400] devtmpfs: initialized Thanks, Jiada