Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp810052ybt; Wed, 8 Jul 2020 12:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUbBwIPj9OEoC3VcTl/xnHr5zOmhMScFz+zP7SZZ8Cpo4Pr/gsmbhM6RwsxOSPIW3QxCQw X-Received: by 2002:aa7:cdca:: with SMTP id h10mr55605410edw.285.1594235627575; Wed, 08 Jul 2020 12:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594235627; cv=none; d=google.com; s=arc-20160816; b=tptUwydV3VJuwoTVcfziqGyx8st5i0HqyG7CxUbVNXlzZFEER9GsGOvbXUPPC9iQeO HWkEDlHxOkGnXg/bZikxHX3xhOHOTJoNBpEw9AP+iqr/5xotqAnsIF6ivmh3iF2feDyd VxMcKRczhGov/3IJ34xakFstKXFstVgH8zAxE/LDnt4m1FLX9I3XPixFXwZRPs8SJJwZ BdkHn4Ot4R82/UDX38TD93XDqXhJ+vPsHn7vjVoZnwQEeg3k+SYFOYn3FjLDne9U7i3F LOVU+gnkwkz5+ooHtnU1iTgiwTErP98cule8qe+oLQTFan7zX868rI3rIw+B7dREvc4u EIGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=dLXDbdD3tq5gDxGkxbvF5RLU0N3KNJ8yEFdDrQUR7lE=; b=vkSEoqapcFm0OSIKMTwOWwkCPphr8MRzGCD/++XKG7pl2d9qOj7dMo8LnpEVKw5VtW oDGh/5szFENrhXKAXzzAnxOSz0ddzSR4KhOAJFJRWkckGh6zXQ/39L8EJ90UyHco//Ul AYj7v0g1G1ib2fuopxSrTjWBp4gACkLDyRC4pqjRjcg9AVyWSI2BN5udr0hNjtcLZHul U3lAeIhPo/tLv1NTVZSN6v2cP762bX9JN/CCHexwpHZJPEDLyBVAXF+lcX1USR9c4H8v +cg/3Rxe5z9pzR/nDPktPIjSnOdtBMW/yUZLR/Jg1hxWp07ULK790JAfUpXKglSQEOaI FibQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Qot4vl7X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si519821edn.115.2020.07.08.12.13.24; Wed, 08 Jul 2020 12:13:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Qot4vl7X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726319AbgGHTK6 (ORCPT + 99 others); Wed, 8 Jul 2020 15:10:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgGHTK5 (ORCPT ); Wed, 8 Jul 2020 15:10:57 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C58DC061A0B for ; Wed, 8 Jul 2020 12:10:57 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id u185so18338464pfu.1 for ; Wed, 08 Jul 2020 12:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dLXDbdD3tq5gDxGkxbvF5RLU0N3KNJ8yEFdDrQUR7lE=; b=Qot4vl7XmJWCqWjMWIN/aQ3y9aQGIyTYwBtR/40aP7+KkXf9L7mPJoxzzWMgonM52y zbz2srKXuVhETnrA85kx4jlJSBM/f+aeayJO0NJFsegRR8fwCVv0WouKmpNTLXaEaSu0 5vKbs0r6+36zo7BtIvUwaKqp0hVy1X+K2rc3CjOmI7q3GYfD2IEO71xzzrJg0hZLC8eY PGxpsbpRQEtBmU+Ir4Z/RNZ67jpPDyfMGWY/BkNmYdxqTXNxpSDGm7+dtqAoYi/CZvdW UlB6LstmGvROCxuVvbh4hnXcDKbgKx9vjnM0oCb9DT222HBF/FWx9Cob1ri0Tw8vTEfF fD5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=dLXDbdD3tq5gDxGkxbvF5RLU0N3KNJ8yEFdDrQUR7lE=; b=bBtWraVur6YMa7XQuf4EwpNjkZfrLlxNqudk6v7NKNK6gm30ouIUnsvHrLi0Lo5txf yFm17LrIOCt9Jc9Q362ydRU6o9aPuojf1H7o6SrGL+GEhASWddqU1Bd5Bq8rtREnHVB4 yonCDOApQqzb9Gev9FNFGRl/kGzy5D/KNcWc1gmEio2YUWhsoFT8MoBgn0guI3mGt8/2 vCJr2gcKUYvnL8/tV7weC3yWdOjZFzJZvwVcWBmPaW44fwpefbnI1tnpVJIHD7w1nMTJ 7bgOZn0BDwwn+W6EIQCDvm3EyuyvF/Me7VlOD/S3y0YKjG/u+TMrgEbCtQYUO6HKv5rw 2+XQ== X-Gm-Message-State: AOAM532nWCYzcjd5JxVLMpBArHbtyV7eeKDLkGiCFXxGRAqnLHhENj1Y OBt8mZmiDGM/RaD7IwVE43Y= X-Received: by 2002:a63:5c55:: with SMTP id n21mr48561050pgm.27.1594235456757; Wed, 08 Jul 2020 12:10:56 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id q14sm482992pgk.86.2020.07.08.12.10.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jul 2020 12:10:56 -0700 (PDT) Subject: Re: chrome-platform/for-kernelci bisection: baseline.bootrr.rockchip-dp-probed on rk3399-gru-kevin To: "kernelci.org bot" , gtucker@collabora.com, kernelci-results@groups.io, Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Benson Leung , Guenter Roeck References: <5f06177f.1c69fb81.ed8e4.1a92@mx.google.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN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Ldertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <0d0475a1-c042-8025-f215-d81d04748b75@roeck-us.net> Date: Wed, 8 Jul 2020 12:10:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <5f06177f.1c69fb81.ed8e4.1a92@mx.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/8/20 11:59 AM, kernelci.org bot wrote: > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * 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. * > * * > * If you do send a fix, please include this trailer: * > * Reported-by: "kernelci.org bot" * > * * > * Hope this helps! * > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > chrome-platform/for-kernelci bisection: baseline.bootrr.rockchip-dp-probed on rk3399-gru-kevin > > Summary: > Start: 154353417996 KERNELCI: x86_64_defconfig: Enable support for Chromebooks devices > Plain log: https://storage.kernelci.org/chrome-platform/for-kernelci/v5.8-rc1-20-g154353417996/arm64/defconfig/gcc-8/lab-collabora/baseline-rk3399-gru-kevin.txt > HTML log: https://storage.kernelci.org/chrome-platform/for-kernelci/v5.8-rc1-20-g154353417996/arm64/defconfig/gcc-8/lab-collabora/baseline-rk3399-gru-kevin.html > Result: 8c9a6ef40bf4 platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes > > Checks: > revert: PASS > verify: PASS > > Parameters: > Tree: chrome-platform > URL: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git > Branch: for-kernelci > Target: rk3399-gru-kevin > CPU arch: arm64 > Lab: lab-collabora > Compiler: gcc-8 > Config: defconfig > Test case: baseline.bootrr.rockchip-dp-probed > > Breaking commit found: > > ------------------------------------------------------------------------------- > commit 8c9a6ef40bf400c64c9907031bd32b59f9d4aea2 > Author: Guenter Roeck > Date: Sat Jul 4 07:26:07 2020 -0700 > > platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes > > The EC reports a variety of error codes. Most of those, with the exception > of EC_RES_INVALID_VERSION, are converted to -EPROTO. As result, the actual > error code gets lost. Convert all EC errors to Linux error codes to report > a more meaningful error to the caller to aid debugging. > Interesting. Well, good that the patch was abandoned, so I don't expect this to be a problem in practice. Guenter > Cc: Yu-Hsuan Hsu > Cc: Prashant Malani > Signed-off-by: Guenter Roeck > Signed-off-by: Enric Balletbo i Serra > > diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c > index 3e745e0fe092..10aa9e483d35 100644 > --- a/drivers/platform/chrome/cros_ec_proto.c > +++ b/drivers/platform/chrome/cros_ec_proto.c > @@ -543,6 +543,29 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, > } > EXPORT_SYMBOL(cros_ec_cmd_xfer); > > +static const int cros_ec_error_map[] = { > + [EC_RES_INVALID_COMMAND] = -EOPNOTSUPP, > + [EC_RES_ERROR] = -EIO, > + [EC_RES_INVALID_PARAM] = -EINVAL, > + [EC_RES_ACCESS_DENIED] = -EACCES, > + [EC_RES_INVALID_RESPONSE] = -EPROTO, > + [EC_RES_INVALID_VERSION] = -ENOTSUPP, > + [EC_RES_INVALID_CHECKSUM] = -EBADMSG, > + [EC_RES_IN_PROGRESS] = -EINPROGRESS, > + [EC_RES_UNAVAILABLE] = -ENODATA, > + [EC_RES_TIMEOUT] = -ETIMEDOUT, > + [EC_RES_OVERFLOW] = -EOVERFLOW, > + [EC_RES_INVALID_HEADER] = -EBADR, > + [EC_RES_REQUEST_TRUNCATED] = -EBADR, > + [EC_RES_RESPONSE_TOO_BIG] = -EFBIG, > + [EC_RES_BUS_ERROR] = -EFAULT, > + [EC_RES_BUSY] = -EBUSY, > + [EC_RES_INVALID_HEADER_VERSION] = -EBADMSG, > + [EC_RES_INVALID_HEADER_CRC] = -EBADMSG, > + [EC_RES_INVALID_DATA_CRC] = -EBADMSG, > + [EC_RES_DUP_UNAVAILABLE] = -ENODATA, > +}; > + > /** > * cros_ec_cmd_xfer_status() - Send a command to the ChromeOS EC. > * @ec_dev: EC device. > @@ -555,8 +578,7 @@ EXPORT_SYMBOL(cros_ec_cmd_xfer); > * > * Return: > * >=0 - The number of bytes transferred > - * -ENOTSUPP - Operation not supported > - * -EPROTO - Protocol error > + * <0 - Linux error code > */ > int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, > struct cros_ec_command *msg) > @@ -566,13 +588,12 @@ int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, > ret = cros_ec_cmd_xfer(ec_dev, msg); > if (ret < 0) { > dev_err(ec_dev->dev, "Command xfer error (err:%d)\n", ret); > - } else if (msg->result == EC_RES_INVALID_VERSION) { > - dev_dbg(ec_dev->dev, "Command invalid version (err:%d)\n", > - msg->result); > - return -ENOTSUPP; > } else if (msg->result != EC_RES_SUCCESS) { > - dev_dbg(ec_dev->dev, "Command result (err: %d)\n", msg->result); > - return -EPROTO; > + if (msg->result < ARRAY_SIZE(cros_ec_error_map) && cros_ec_error_map[msg->result]) > + ret = cros_ec_error_map[msg->result]; > + else > + ret = -EPROTO; > + dev_dbg(ec_dev->dev, "Command result (err: %d [%d])\n", msg->result, ret); > } > > return ret; > ------------------------------------------------------------------------------- > > > Git bisection log: > > ------------------------------------------------------------------------------- > git bisect start > # good: [b3a9e3b9622ae10064826dccb4f7a52bd88c7407] Linux 5.8-rc1 > git bisect good b3a9e3b9622ae10064826dccb4f7a52bd88c7407 > # bad: [15435341799604f20adcbb5f69b7f0beb2a2f964] KERNELCI: x86_64_defconfig: Enable support for Chromebooks devices > git bisect bad 15435341799604f20adcbb5f69b7f0beb2a2f964 > # good: [3c5ca501b46b91e68b935b4bd752a0aba5232208] platform/chrome: cros_ec_spi: Document missing function parameters > git bisect good 3c5ca501b46b91e68b935b4bd752a0aba5232208 > # good: [20b736872f7f324438649a277ec711a646ce8e8d] platform/chrome: cros_ec_typec: Add PM support > git bisect good 20b736872f7f324438649a277ec711a646ce8e8d > # bad: [8c9a6ef40bf400c64c9907031bd32b59f9d4aea2] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes > git bisect bad 8c9a6ef40bf400c64c9907031bd32b59f9d4aea2 > # good: [e48bc01ed5adec203676c735365373b31c3c7600] platform/chrome: cros_ec_sensorhub: Fix EC timestamp overflow > git bisect good e48bc01ed5adec203676c735365373b31c3c7600 > # first bad commit: [8c9a6ef40bf400c64c9907031bd32b59f9d4aea2] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes > ------------------------------------------------------------------------------- >