From patchwork Mon Nov 19 21:44:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 10689509 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED77C13BB for ; Mon, 19 Nov 2018 21:45:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCE852A70A for ; Mon, 19 Nov 2018 21:45:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD8D52A73C; Mon, 19 Nov 2018 21:45:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8AA102A70A for ; Mon, 19 Nov 2018 21:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KImlm6vzHiBwGoLrt/qMro/Fhf7U8KmcjZV9SCP38gg=; b=sLIJa8xNHWaObE HpibjNxUtAjds7qVz8cmW90S28Q2IDLlJnYzAb6l1xwUsBJMh0JFGnK1kG48/a4dE0J8nK0newoZ6 7qn/sYIHhmZgoA2J8cwyJ+RBmwVa99So6JH4JReq66lukrq29TIH/O7/q4vTb4BUI5WLOmG0XrDa2 VoDjRfU5Cm1P9m6YOn1WDqejayyBTOQFH+y8SE8veTc/qu7e8gkwsjqNsC7Nm9Hx6kWfTpTi0mRUv FL00EShKOFTwxQR//qFXK3wWKJ7udDHK100bNPA4H41KKZz4qUrL4rdzwEWMeFFUxrNrM40jCJF9g /FzSMSeZSbxra3BGBSxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOrLp-00039j-HQ; Mon, 19 Nov 2018 21:45:01 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOrLl-00038M-IA for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2018 21:44:59 +0000 Received: by mail-qk1-x741.google.com with SMTP id q1so51235130qkf.13 for ; Mon, 19 Nov 2018 13:44:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0UloynJx4FD/pgAzOgUkwGUsAXEVRg/vVo9Gep3eslQ=; b=axKNw1Pk+n3TbtNQl91iKltb06dXmDlBM8GXD+DQwsuCSOl0JZze1Qa/AM+qxSnmSV 0KgWmG/UoZA4SCl6CWcCQERX1SSM3cgBS+0QVUcTMFPm8XnfkMU3s55ZMq3y8BwGvb8h auPWs8Nao93vjtDAGK3BSISVpxxC9gPbTwnddrUq0kFWNDVNQYYyH7LebXtdx1iNJ2Jq XSULpw9i6SfCUAxiO+WMbIyUcAUygh297vYWrhDGp688oRz96AKkLDy6RWHm8LDaVeeC cr1e7BttdymrUl3U5GA/OSufPDnqltO93YJp76BIrPhNjW3LCRyNFB8GYKD5U053Tra8 1QiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0UloynJx4FD/pgAzOgUkwGUsAXEVRg/vVo9Gep3eslQ=; b=H331Ta1lRInKsQG8ldvH3c9Wtrtla6+KLAswP6QOIxhUSvvxWub2dl7MctT7cPmqo2 IEwBa4X2q2jr/SbrxpQbHF9aWx+dC3KlopNCh69uOAzQMHeyYGGF3iVKPa72bXZWdsvl dq69jL//N+CO+qL5tztRNpE/b2owiYTtTZbs8RBG+3R5FWzfd+SVbLzdAtnMh/cOu0sU yjAkBl4teFxDOG1q7+K0a6exf4O+pzYs7Y9Bo5sRhD+LafBaj8FMAjNmmAxoGRXxPgBx kkiyfN45ilK1MKVsH5FuEIAzCMHJR1lbzIMvogRAN9IA8vI3D3OlCUmjH61dMGxyDgK0 q2xw== X-Gm-Message-State: AGRZ1gJsCx2t8znVvH3UKiMMpBin1KsIDetdHd/4oKhOYYcOgXK8pT0e bR7bqOc+B+KwVpEkaLdxnoHqng== X-Google-Smtp-Source: AJdET5fHGvFw2W1hFj5pm+GF7fa8pN7yNozvtQ0B8/O/nASArwr1DH1sX7cTtCxejQBCMK/3ntkfvg== X-Received: by 2002:a37:9f87:: with SMTP id i129mr20883056qke.255.1542663885411; Mon, 19 Nov 2018 13:44:45 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id x5sm27493714qtc.43.2018.11.19.13.44.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 13:44:44 -0800 (PST) From: Pavel Tatashin To: catalin.marinas@arm.com, will.deacon@arm.com, akpm@linux-foundation.org, rppt@linux.vnet.ibm.com, mhocko@suse.com, ard.biesheuvel@linaro.org, andrew.murray@arm.com, james.morse@arm.com, marc.zyngier@arm.com, sboyd@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pasha.tatashin@soleen.com Subject: [PATCH v1 0/1] Early boot time stamps for arm64 Date: Mon, 19 Nov 2018 16:44:42 -0500 Message-Id: <20181119214443.25175-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181119_134457_595611_6126D0C6 X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP I made early boot time stamps available for SPARC and X86. x86: https://lore.kernel.org/lkml/20180719205545.16512-1-pasha.tatashin@oracle.com sparc: https://www.spinics.net/lists/sparclinux/msg18063.html As discussed at plumbers, I would like to add the same for arm64. The implementation does not have to be perfect, and should work only when early clock is easy to determine. arm64 defines a clock register, and thus makes it easy, but on some platforms frequency register is broken, so if it is not known, simply don't initialize clock early. dmesg before: https://paste.ubuntu.com/p/3pJ5kgJHyN dmesg after: https://paste.ubuntu.com/p/RHKGVd9nSM As seen from the above with base smp_init is finished after 0.47s: [ 0.464585] SMP: Total of 8 processors activated. But, in reality, 3.2s is missing which is a quiet long considering this is only 60G domain. Pavel Tatashin (1): arm64: early boot clock for aarch64 arch/arm64/kernel/setup.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)