Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/806260/?format=api
{ "id": 806260, "url": "http://patchwork.ozlabs.org/api/patches/806260/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170827152351.20609-4-sjg@chromium.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170827152351.20609-4-sjg@chromium.org>", "list_archive_url": null, "date": "2017-08-27T15:23:48", "name": "[U-Boot,v2,3/6] dm: x86: Update timer_get_boot_us to work before DM is ready", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "56750d55ad29d1bd06ab4195e7316c9e76b8e60b", "submitter": { "id": 6170, "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api", "name": "Simon Glass", "email": "sjg@chromium.org" }, "delegate": { "id": 56520, "url": "http://patchwork.ozlabs.org/api/users/56520/?format=api", "username": "bmeng", "first_name": "Bin", "last_name": "Meng", "email": "bmeng.cn@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170827152351.20609-4-sjg@chromium.org/mbox/", "series": [ { "id": 26, "url": "http://patchwork.ozlabs.org/api/series/26/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=26", "date": "2017-08-27T15:23:45", "name": "x86: bootstage: Fix bootstage operation on link", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/26/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/806260/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/806260/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"fjA3fVEc\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xgJgd13mgz9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 01:27:56 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid C037CC2221A; Sun, 27 Aug 2017 15:24:53 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 0CBCCC22249;\n\tSun, 27 Aug 2017 15:24:25 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 17F10C2222A; Sun, 27 Aug 2017 15:24:08 +0000 (UTC)", "from mail-oi0-f48.google.com (mail-oi0-f48.google.com\n\t[209.85.218.48])\n\tby lists.denx.de (Postfix) with ESMTPS id 0862DC2222F\n\tfor <u-boot@lists.denx.de>; Sun, 27 Aug 2017 15:24:04 +0000 (UTC)", "by mail-oi0-f48.google.com with SMTP id r9so29308170oie.3\n\tfor <u-boot@lists.denx.de>; Sun, 27 Aug 2017 08:24:03 -0700 (PDT)", "from kaki.bld.corp.google.com ([100.100.197.131])\n\tby smtp.gmail.com with ESMTPSA id\n\tc10sm15396905oih.52.2017.08.27.08.23.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 27 Aug 2017 08:24:01 -0700 (PDT)", "by kaki.bld.corp.google.com (Postfix, from userid 121222)\n\tid D15DD40032; Sun, 27 Aug 2017 09:23:58 -0600 (MDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=ltUTvDmZw+SZJRuWWiwb/t6g2Qa8MGXaOuy/Z/aglVQ=;\n\tb=fjA3fVEc3jNyB8NXYjEeZVYRwoUYAzLwqKS1FXxrDg6MiO855H2TGaC2JLwWg23juO\n\tyTlhv44DbKBPgqUrY15yiIcwYw+TWlyg62HXTc+NiOettmBxxbAWPTHU0Z+KBycp7jmF\n\ts/EBsVMn8QQzmQkJiRoZjav8fMqNtb2YH5Ue5GuiixSE+gZaPPK1qXyPIp5mSMQU23kH\n\tNNs8FB17MrA92xPVrh7VXuf5iIKG+HxRgkt3G+lLtq2oaAfvcIm6lvtQLt7TNihsj318\n\tV//3wZCbPZ0+lseHvzb3mHgHs+LzrfPktZnAX6Bk/cqrt4NcLkhacpYda2cEl42sQmz3\n\ta3Gg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=ltUTvDmZw+SZJRuWWiwb/t6g2Qa8MGXaOuy/Z/aglVQ=;\n\tb=lp6y8vyfaBK8fXA3mMOHwR4sIKYQguTXZFAidsgKMp4fhFXQoyA1KkvYqiWKH4+ZHh\n\tVVMHKnGrSMPZ5YP/w9aOuqzDDzIsfVSUbYUWPMPpxH2WTg+NQfo+ZtsOvnFXWjBsMGM/\n\thqyBdrNULGoWc1Ed5DGRIV0ByY9VEQztQv0nQ3475r8n5AsuB0qVw79gekTjyIpVx6wL\n\t8QXLFheL8S/kXmsqeqIRhObfVio5y7bX/YwfcsbROgk8NYbB2UsnjS+GnADt9K9FYPUD\n\tC1g8kIypzV8MwhQjFG8EuqbPRYGhGy+k+z09h8sqV1SbBjaOJLC36oc4y8fqJt5wyvCf\n\tAj1w==", "X-Gm-Message-State": "AHYfb5je5aMS8h6Zsyix2Ewt7VxavspvBs7JheRfF/NGEmEx5d2qoq51\n\tWZH9H9yBUWTwgJrT", "X-Google-Smtp-Source": "ADKCNb5XgrNzeIRdA0zhKXbmwMJ7ZGMdhetHefXTzy/yDd29PSwR4Lf6ZgK65ExJA9rsHeNzHYxVRA==", "X-Received": "by 10.202.177.11 with SMTP id a11mr5420970oif.166.1503847442583; \n\tSun, 27 Aug 2017 08:24:02 -0700 (PDT)", "From": "Simon Glass <sjg@chromium.org>", "To": "U-Boot Mailing List <u-boot@lists.denx.de>", "Date": "Sun, 27 Aug 2017 09:23:48 -0600", "Message-Id": "<20170827152351.20609-4-sjg@chromium.org>", "X-Mailer": "git-send-email 2.14.1.342.g6490525c54-goog", "In-Reply-To": "<20170827152351.20609-1-sjg@chromium.org>", "References": "<20170827152351.20609-1-sjg@chromium.org>", "Subject": "[U-Boot] [PATCH v2 3/6] dm: x86: Update timer_get_boot_us to work\n\tbefore DM is ready", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "Use the new separate init function so that we can make use of the timer\nbefore driver model is started up.\n\nAt some point we should consider adding the microsecond timer to the timer\nuclass interface since it would reduce the amount of plumbing here\nslightly.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\nChanges in v2:\n- Rebase on top of early timer code and simplify slightly\n\n drivers/timer/tsc_timer.c | 19 ++++++++++++++-----\n 1 file changed, 14 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c\nindex 0012fecde09..db49de87a20 100644\n--- a/drivers/timer/tsc_timer.c\n+++ b/drivers/timer/tsc_timer.c\n@@ -295,11 +295,6 @@ ulong notrace timer_get_us(void)\n \treturn get_ticks() / get_tbclk_mhz();\n }\n \n-ulong timer_get_boot_us(void)\n-{\n-\treturn timer_get_us();\n-}\n-\n void __udelay(unsigned long usec)\n {\n \tu64 now = get_ticks();\n@@ -374,6 +369,20 @@ u64 notrace timer_early_get_count(void)\n \treturn rdtsc() - gd->arch.tsc_base;\n }\n \n+ulong timer_get_boot_us(void)\n+{\n+\tif (!gd->timer) {\n+\t\tu64 now_tick;\n+\n+\t\ttsc_timer_ensure_setup();\n+\t\tnow_tick = rdtsc() - gd->arch.tsc_base;\n+\n+\t\treturn now_tick / (gd->arch.clock_rate / 1000000);\n+\t}\n+\n+\treturn timer_get_us();\n+}\n+\n static const struct timer_ops tsc_timer_ops = {\n \t.get_count = tsc_timer_get_count,\n };\n", "prefixes": [ "U-Boot", "v2", "3/6" ] }