From patchwork Wed Apr 11 07:04:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 133139 Delivered-To: patches@linaro.org Received: by 10.46.84.29 with SMTP id i29csp346832ljb; Wed, 11 Apr 2018 00:04:33 -0700 (PDT) X-Received: by 2002:a17:902:32a2:: with SMTP id z31-v6mr3847690plb.41.1523430273852; Wed, 11 Apr 2018 00:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523430273; cv=none; d=google.com; s=arc-20160816; b=aNGkVszVVFsuosrQot61sVRm/YAx8ZAReYEvtH0lfZ0QeQr8q+ih2xboMrz9g4KrdA HVl/cMUh7VAxHSMF16TCzR6Rq60c4jm0lJ3fwAXadqrUtlnPuL2gNMCEna8yBsgd5yaP cLJ3probN6dyuERK7gFAVgfCptN7yLOQWPZpt7zNd7KtEIybwlJFRZe14Ee958KUMwm+ taxFEGiAqjCPG3S25sdLxeStqctWE4HC6X6M6UBUjeyya76l4CWvFZ30HmlNTLgwPoN9 mUZ5wCkID787lRXDbCvyhBeUtjV9FU1q3cCWEvaQk94Bg8Vqqkha0dPvubHgCd06u3Fa T28g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=vSDCjlBIPYzAQIsLyEixOcq0QDCGl9MvvQJOnhSwxcs=; b=Mq+7Gph2Cu999+BP5Ulj/G95x0I4yZqH2mdrl/3IV9c/6FI53Ol+Aqgs8/4Ca8ZNEC Wr+w3LR5yOttmLXWRS40io071q42T0XyM2u1QBEothaJF8j1bDpjQu2OWJOJRDForzxi WizCtPoesLxPmT9sY312GEqU1lk2+C6eoVLzNNb0onctgmtQnycy3iE0YJFcVCs9buN5 NKchfzsAqr25qbMsDByce8VV/LrfZixvSMOHVaZtNf77BgtwhYxwIWBu50npa1+s25FO BVxnRm61fj4utpypAGfxRKFU8xkPmissiXYt5hSwD3WKxHAcNE3na+7IXJLeoV41+CEq wm8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=exwkEAQr; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a8sor90314pgq.293.2018.04.11.00.04.33 for (Google Transport Security); Wed, 11 Apr 2018 00:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=exwkEAQr; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vSDCjlBIPYzAQIsLyEixOcq0QDCGl9MvvQJOnhSwxcs=; b=exwkEAQrxmS8hiXPJDrjbGGoe8Xv8GSVQF39ZoUJ/AjB/4yK0KM/UbVWhXh+CjFlU4 NYFlMJDA6i3RwP+sWvUuHa2tqyXfmq7ZrmcyQL5I8SlP0wPAoHmUK7xZOXmYuBurd2np 3wyPzQYXb5Otu7sH4R8p6WIsz8ytrQ5Nht1Do= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vSDCjlBIPYzAQIsLyEixOcq0QDCGl9MvvQJOnhSwxcs=; b=ZzBLdSYiI90ueM/fqmoRev6yXCDO/nIRGBM3FRP5SzCv6uGOPvjhor78JJIJgli1K1 iz/McoDRyHYh1rRL7+4d2PPkWFeFLZw0x815ATlLKdcRqbxkHIFPQDXqF5X7er7iPxzd cvi1bgBPQp4MfPHcTtpSVECtARsQ99+UIz9RPQ3BBRXwS5M8tUQTFAj23HEQmKcX0gi9 JWBexu+SYoACedLE6RTEqKkrwz9rv3C2T10KTz3m9jCotvO0uiKAJKMaupz0p2pFg9N3 zJsaf8o7c1NDLoaMYJb0SJUc67ojEYTdxFy600lx6KDWWX5ij2gg0sxbldTfOBSPn8aq T/Dg== X-Gm-Message-State: ALQs6tDu2HG/UGGQKyjqgYiW6fLk3l2s2r09QGZwnBXvdYROSbJGiU2j Dkb3YXNBw0HL40ABhBdd5R1dpLP3 X-Google-Smtp-Source: AIpwx4+svBCy6sCGaT6AWRuC46uWka0cv4nABr5Yzg0utjS6SgkRN31ayoK16hSfEOcFjHiQCq8Brw== X-Received: by 10.99.166.10 with SMTP id t10mr2532118pge.357.1523430273298; Wed, 11 Apr 2018 00:04:33 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:600:5100:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id j11sm1329054pgs.13.2018.04.11.00.04.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 00:04:32 -0700 (PDT) From: John Stultz To: Leo Yan , Haojian Zhuang Cc: John Stultz Subject: [PATCH] mini horizontal-offset fix Date: Wed, 11 Apr 2018 00:04:27 -0700 Message-Id: <1523430267-29032-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 I've been trying to chase down exactly what's going wrong, and so far this is the simplest change to make things work on HiKey. --- lib/psci/psci_suspend.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/lib/psci/psci_suspend.c b/lib/psci/psci_suspend.c index 40ecdee..726b548 100644 --- a/lib/psci/psci_suspend.c +++ b/lib/psci/psci_suspend.c @@ -147,6 +147,8 @@ void psci_cpu_suspend_start(entry_point_info_t *ep, int skip_wfi = 0; unsigned int idx = plat_my_core_pos(); + if (is_power_down_state) + return; /* * This function must only be called on platforms where the * CPU_SUSPEND platform hooks have been implemented.