From patchwork Thu Mar 7 07:13:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "kernelci.org bot" X-Patchwork-Id: 159795 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp7108177jad; Wed, 6 Mar 2019 23:13:36 -0800 (PST) X-Google-Smtp-Source: APXvYqy/cczyoSuvlKRRXRr53BtmmCVc+EzINkG0h+yWwQ7oSwbLR2GL3I3kXX/CQq2bh8jpCJ6K X-Received: by 2002:a62:a10c:: with SMTP id b12mr11305919pff.234.1551942816238; Wed, 06 Mar 2019 23:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551942816; cv=none; d=google.com; s=arc-20160816; b=RvuMKba8DzHHbz7xIc5UHm6RKLJnChyxwQh7o1/FGkYZpzMKKGtqlP833rYD/4RdKK 5ZH8ustwvFGg7aLNaudkELJlWOKrePrNHAWJYEGZ9z4LtoZ3ifqkJVh1Je1CrmNp5CB9 uNt8QZ3crlvS31rIDb+q09itRtC7nIZF7c2F5dCOkOfQhg07+ctxar5bsDm0N3wuFJaK lBdIfZ26RUmjlOa9WYzDgPP69KFwycfH8K/+sKNZXZaJnyE46iG3rwhc4IV8D2TwQM6b QN5zxB2RnG9Ba2KT96/Eru5+Th9Zn7StW+DIOKujRvC8hBSwmkeh+v49VDP057KeiEnP 23ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:from:to:subject :content-transfer-encoding:mime-version:date:message-id :dkim-signature; bh=sayuyPupiA3rjZBNEtk4HbXcZcRHfhMukjQTApU0hl4=; b=fThtiUhg80zSK7gy+UVm9UTf2E1JMhq77DV+Sh1EF5aA3bMDfFcx5lr8Hgv6m7Sa5r aWrdHf5qkzkJgngKopJD5b6Pf3NAjOC+5n2MVwSkyUZ+FHt6LfenhL/70Jz/aHw/t7AS LNRmHVKG9h8eLaxmGceIpUKa4GMYEZrjPVgXC9Z0YairVzuG3seiScYw15M5n1ORESpS 9osNpWX+kgCj+hbXI1uwy9t1pclST5dKUjttywwsyvTfMGVUxeOqzjuz+E23ya1Wz3iY TDJb3KtitQOwPq1Q0LzO0euW4Fxl1T+poay7HM770eS2T5Ha8PRY9fDZCaj4bA6oqGve Tj5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernelci-org.20150623.gappssmtp.com header.s=20150623 header.b=lvqCzY4b; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 c6si3352186pgj.347.2019.03.06.23.13.36; Wed, 06 Mar 2019 23:13:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernelci-org.20150623.gappssmtp.com header.s=20150623 header.b=lvqCzY4b; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726180AbfCGHNe (ORCPT + 3 others); Thu, 7 Mar 2019 02:13:34 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38034 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfCGHNe (ORCPT ); Thu, 7 Mar 2019 02:13:34 -0500 Received: by mail-wr1-f65.google.com with SMTP id g12so16107724wrm.5 for ; Wed, 06 Mar 2019 23:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernelci-org.20150623.gappssmtp.com; s=20150623; h=message-id:date:mime-version:content-transfer-encoding:subject:to :from:cc; bh=sayuyPupiA3rjZBNEtk4HbXcZcRHfhMukjQTApU0hl4=; b=lvqCzY4bF9MHP887P/FdvwlI4R1Sq7344uTDJfS56fi5uS3NmAQDxmy5VbvxWhjtL7 FE5p2f+/hwd59VkjKgXiNaE/sy/BzKrbj7U2hagx2unkbsnbgprvWX5yzwFn4S7ckKEB zX3e4GnTzMhfwde8NVygS9bMtRTC9wSUEweVcG4W38lxe2lvQEyAVU6qtqrC5dG8rAGo S2v1kBpjBAxNkcyw1GSiEXme6PZnfGSK9MX17uyrnKs1rnJvc7AXrU0qciXPqC1Cmw1+ LBBvPR8Jv76UmZtlrxEeuGCUJT/6cTCMMA0OyBxF03KAZwzkHxYN1I7J5BdZvBoBxkpb i4jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:mime-version :content-transfer-encoding:subject:to:from:cc; bh=sayuyPupiA3rjZBNEtk4HbXcZcRHfhMukjQTApU0hl4=; b=uYloWdcmXFOCq5DTAgk8PNmHugQVoIQitX99E3v60br40RaKUmboP8PlUubJckUg7k grrXuXeY01p7plDxasLJf/Hqf3AMxl8n+Sev1fzbSEMmZoBtMDV38qOGXl8HdIAHAHAY deNmeWFhPvf4gNqmuKuH7KweAOWGJUsseDfmGF6jeinF8WWz/Dj08tPiaejDbZyvT5gz AodNQtXLXsaU52BPOSnNEkD4pNzw4Mpabs7EOKVtgqlh2FO1qXWFhU/1vFizYWzoB3R3 uVegHSI5UO7X+5dT6fdKmisXfjrlv97tc3db9CiXfNyjU0Qvj12d6g483hh1OJRn0C+u jhVg== X-Gm-Message-State: APjAAAVzYILhBFpoeyF+5xlcqz239+SweSN+ezcRruvDoJ5qodz2Vpi0 X+2k9BwvQAQvrpneQ0bQZu51ww== X-Received: by 2002:a5d:6682:: with SMTP id l2mr5422817wru.271.1551942811946; Wed, 06 Mar 2019 23:13:31 -0800 (PST) Received: from [148.251.42.114] ([2a01:4f8:201:9271::2]) by smtp.gmail.com with ESMTPSA id m16sm6730680wro.78.2019.03.06.23.13.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 23:13:31 -0800 (PST) Message-ID: <5c80c49b.1c69fb81.605bf.26ea@mx.google.com> Date: Wed, 06 Mar 2019 23:13:31 -0800 (PST) MIME-Version: 1.0 X-Kernelci-Kernel: v5.0-4854-g8dcd175bc3d5 X-Kernelci-Report-Type: bisect X-Kernelci-Tree: mainline X-Kernelci-Lab-Name: lab-collabora X-Kernelci-Branch: master Subject: mainline/master boot bisection: v5.0-4854-g8dcd175bc3d5 on odroid-xu3 To: tomeu.vizoso@collabora.com, guillaume.tucker@collabora.com, broonie@kernel.org, matthew.hart@linaro.org, Herbert Xu , khilman@baylibre.com, enric.balletbo@collabora.com, Kamil Konieczny , Krzysztof Kozlowski From: "kernelci.org bot" Cc: linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Vladimir Zapolskiy , linux-kernel@vger.kernel.org, "David S. Miller" Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the problem may be somewhere else. * * Hope this helps! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * mainline/master boot bisection: v5.0-4854-g8dcd175bc3d5 on odroid-xu3 Summary: Start: 8dcd175bc3d5 Merge branch 'akpm' (patches from Andrew) Details: https://kernelci.org/boot/id/5c8052c159b5146b7bfe6018 Plain log: https://storage.kernelci.org//mainline/master/v5.0-4854-g8dcd175bc3d5/arm/exynos_defconfig/gcc-7/lab-collabora/boot-exynos5422-odroidxu3.txt HTML log: https://storage.kernelci.org//mainline/master/v5.0-4854-g8dcd175bc3d5/arm/exynos_defconfig/gcc-7/lab-collabora/boot-exynos5422-odroidxu3.html Result: 0918f18c7179 crypto: s5p - add AES support for Exynos5433 Checks: revert: PASS verify: PASS Parameters: Tree: mainline URL: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Branch: master Target: odroid-xu3 CPU arch: arm Lab: lab-collabora Compiler: gcc-7 Config: exynos_defconfig Test suite: boot Breaking commit found: ------------------------------------------------------------------------------- commit 0918f18c7179e8cdf718d01531a81b28130b4217 Author: Kamil Konieczny Date: Fri Feb 22 13:21:44 2019 +0100 crypto: s5p - add AES support for Exynos5433 Add AES crypto HW acceleration for Exynos5433, with the help of SlimSSS IP. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kamil Konieczny Signed-off-by: Herbert Xu Git bisection log: ------------------------------------------------------------------------------- git bisect start # good: [a215ce8f0e00c2d707080236f1aafec337371043] Merge tag 'iommu-fix-v5.0-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu git bisect good a215ce8f0e00c2d707080236f1aafec337371043 # bad: [8dcd175bc3d50b78413c56d5b17d4bddd77412ef] Merge branch 'akpm' (patches from Andrew) git bisect bad 8dcd175bc3d50b78413c56d5b17d4bddd77412ef # good: [096461de96a94c856190ba892ebf62dfba5a38f1] net/sched: avoid unused-label warning git bisect good 096461de96a94c856190ba892ebf62dfba5a38f1 # bad: [3478588b5136966c80c571cf0006f08e9e5b8f04] Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect bad 3478588b5136966c80c571cf0006f08e9e5b8f04 # good: [6456300356433873309a1cae6aa05e77d6b59153] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next git bisect good 6456300356433873309a1cae6aa05e77d6b59153 # bad: [8feed3efa8022107bcb3432ac3ec9917e078ae70] Merge branch 'parisc-5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux git bisect bad 8feed3efa8022107bcb3432ac3ec9917e078ae70 # good: [cf64e495fe221479866c1ea7c6f5cd9698d8a3af] crypto: caam - weak key checking for cbc des, 3des git bisect good cf64e495fe221479866c1ea7c6f5cd9698d8a3af # good: [fcc082f35c6d565d351b5b89bb03a82333e9ffe8] Revert "s390/cpum_cf: Add kernel message exaplanations" git bisect good fcc082f35c6d565d351b5b89bb03a82333e9ffe8 # good: [d3ff9f851b7ad892df8dc168f0d589308fb42ac3] dt-bindings: crypto: document Exynos5433 SlimSSS git bisect good d3ff9f851b7ad892df8dc168f0d589308fb42ac3 # good: [d578bf28cfc40375b4fc9f7571a3faf17bd2373c] parisc: Add constant for PDC_PAT_COMPLEX firmware call git bisect good d578bf28cfc40375b4fc9f7571a3faf17bd2373c # good: [bf6341664ad16070bed675bec659aa54b161ed82] m68k/apollo: Fix comment in Makefile git bisect good bf6341664ad16070bed675bec659aa54b161ed82 # bad: [eac616557050737a8d6ef6fe0322d0980ff0ffde] x86: Deprecate a.out support git bisect bad eac616557050737a8d6ef6fe0322d0980ff0ffde # bad: [63bdf4284c38a48af21745ceb148a087b190cd21] Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 git bisect bad 63bdf4284c38a48af21745ceb148a087b190cd21 # bad: [0918f18c7179e8cdf718d01531a81b28130b4217] crypto: s5p - add AES support for Exynos5433 git bisect bad 0918f18c7179e8cdf718d01531a81b28130b4217 # first bad commit: [0918f18c7179e8cdf718d01531a81b28130b4217] crypto: s5p - add AES support for Exynos5433 ------------------------------------------------------------------------------- diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 8d0afdc220ff..f4e625cf53ca 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -232,6 +232,7 @@ * struct samsung_aes_variant - platform specific SSS driver data * @aes_offset: AES register offset from SSS module's base. * @hash_offset: HASH register offset from SSS module's base. + * @clk_names: names of clocks needed to run SSS IP * * Specifies platform specific configuration of SSS module. * Note: A structure for driver specific platform data is used for future @@ -240,6 +241,7 @@ struct samsung_aes_variant { unsigned int aes_offset; unsigned int hash_offset; + const char *clk_names[]; }; struct s5p_aes_reqctx { @@ -296,6 +298,7 @@ struct s5p_aes_ctx { struct s5p_aes_dev { struct device *dev; struct clk *clk; + struct clk *pclk; void __iomem *ioaddr; void __iomem *aes_ioaddr; int irq_fc; @@ -384,11 +387,19 @@ struct s5p_hash_ctx { static const struct samsung_aes_variant s5p_aes_data = { .aes_offset = 0x4000, .hash_offset = 0x6000, + .clk_names = { "secss", }, }; static const struct samsung_aes_variant exynos_aes_data = { .aes_offset = 0x200, .hash_offset = 0x400, + .clk_names = { "secss", }, +}; + +static const struct samsung_aes_variant exynos5433_slim_aes_data = { + .aes_offset = 0x400, + .hash_offset = 0x800, + .clk_names = { "pclk", "aclk", }, }; static const struct of_device_id s5p_sss_dt_match[] = { @@ -400,6 +411,10 @@ static const struct of_device_id s5p_sss_dt_match[] = { .compatible = "samsung,exynos4210-secss", .data = &exynos_aes_data, }, + { + .compatible = "samsung,exynos5433-slim-sss", + .data = &exynos5433_slim_aes_data, + }, { }, }; MODULE_DEVICE_TABLE(of, s5p_sss_dt_match); @@ -2218,18 +2233,39 @@ static int s5p_aes_probe(struct platform_device *pdev) return PTR_ERR(pdata->ioaddr); } - pdata->clk = devm_clk_get(dev, "secss"); + pdata->clk = devm_clk_get(dev, variant->clk_names[0]); if (IS_ERR(pdata->clk)) { - dev_err(dev, "failed to find secss clock source\n"); + dev_err(dev, "failed to find secss clock %s\n", + variant->clk_names[0]); return -ENOENT; } err = clk_prepare_enable(pdata->clk); if (err < 0) { - dev_err(dev, "Enabling SSS clk failed, err %d\n", err); + dev_err(dev, "Enabling clock %s failed, err %d\n", + variant->clk_names[0], err); return err; } + if (variant->clk_names[1]) { + pdata->pclk = devm_clk_get(dev, variant->clk_names[1]); + if (IS_ERR(pdata->pclk)) { + dev_err(dev, "failed to find clock %s\n", + variant->clk_names[1]); + err = -ENOENT; + goto err_clk; + } + + err = clk_prepare_enable(pdata->pclk); + if (err < 0) { + dev_err(dev, "Enabling clock %s failed, err %d\n", + variant->clk_names[0], err); + goto err_clk; + } + } else { + pdata->pclk = NULL; + } + spin_lock_init(&pdata->lock); spin_lock_init(&pdata->hash_lock); @@ -2305,8 +2341,11 @@ static int s5p_aes_probe(struct platform_device *pdev) tasklet_kill(&pdata->tasklet); err_irq: - clk_disable_unprepare(pdata->clk); + if (pdata->pclk) + clk_disable_unprepare(pdata->pclk); +err_clk: + clk_disable_unprepare(pdata->clk); s5p_dev = NULL; return err; @@ -2333,6 +2372,9 @@ static int s5p_aes_remove(struct platform_device *pdev) pdata->use_hash = false; } + if (pdata->pclk) + clk_disable_unprepare(pdata->pclk); + clk_disable_unprepare(pdata->clk); s5p_dev = NULL; -------------------------------------------------------------------------------