Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp48099ybg; Mon, 27 Jul 2020 23:03:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjMx/K+yDDOPA06MqH2P2VgYgd2wEFdsOgL8UKos3xiapEVKPCgDzUcAaf+Bp6+AB+0lm5 X-Received: by 2002:a50:ee07:: with SMTP id g7mr25337044eds.320.1595916207841; Mon, 27 Jul 2020 23:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595916207; cv=none; d=google.com; s=arc-20160816; b=sGX6JnKe7iJ+E3o3B6OpCiWG9IcLox6WWEvW2pTBVdQCzWVVTYA5dVluZYgvUvD+jA s8BoSuNLvokxmyaJAnSyJBSvaRS080tbQ9xOVPr/DIbTwNvBkXJV9TNNpWXOukNYWawp 0/duJ7ZTj7A1Qi0WEr1Il0QVGBG2F2a0Gt1C9kQ/jcK2Tk4+e7VH5SEqhjC8Ey1YhFSa gJQK3LHgJznmt8a3njWvoZeaK8WIfHUFZED/VB1MM7spobcOm6sXt80LuwUGWHWcpn0p TJ57VTXUWxhbSOREnM8SnGzpuIOO3fjyTfpwSqdYfrVxnr2CkD5kS0tGGzAhFDMgrwK9 /xgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dO2pBnYPKZ6d8t4cUcGcx1gqSeO9zzimNRYDHdbpixM=; b=jbmlsQn4hYJ30j5dC7/i8rhJHvR+HhtAUnl3IBBITyKmtP0YnwZo4pSgRca4FFDDVx ud+4GvawYDjzut2pa4HKAFFtNZy4d7eItI9i9AW8vSJCjtlh2GGmnA+OpsH8zcr7zooU yBS0BQcb3txoZiTXzj3Ob0JflXOM+xk03mpCcsZZzqMetQ7B6DhtGI1NRB5IwD357e9b naeP0KYUz0bVKMaW2J4x2hBKlopynbzzGOV0O04yM5XSJI/BieUe2bmcOZt9Vn6MyTOd 0JfWheWGenUYF/G5EhHGmLA/ne8i1tFrWDfNGQC9tfdKSnJ5Mi1XOxs0VLOLxKA8hMMv xIJA== ARC-Authentication-Results: i=1; mx.google.com; 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 a6si5502620edr.403.2020.07.27.23.03.03; Mon, 27 Jul 2020 23:03:27 -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; 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 S1727114AbgG1GAu (ORCPT + 99 others); Tue, 28 Jul 2020 02:00:50 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:54478 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbgG1GAt (ORCPT ); Tue, 28 Jul 2020 02:00:49 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1k0IfI-0004sg-7H; Tue, 28 Jul 2020 16:00:41 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 28 Jul 2020 16:00:40 +1000 Date: Tue, 28 Jul 2020 16:00:40 +1000 From: Herbert Xu To: kernel test robot Cc: Corentin Labbe , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: sun8i-ce - Fix writel byte-order on big-endian Message-ID: <20200728060040.GA15882@gondor.apana.org.au> References: <202007281310.eciiVHmF%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202007281310.eciiVHmF%lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 01:10:13PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 92ed301919932f777713b9172e525674157e983d > commit: 93c7f4d357de68f1e3a998b2fc775466d75c4c07 crypto: sun8i-ce - enable working on big endian > date: 8 months ago > config: arm64-randconfig-s031-20200728 (attached as .config) > compiler: aarch64-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.2-94-geb6779f6-dirty > git checkout 93c7f4d357de68f1e3a998b2fc775466d75c4c07 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot This looks like a real bug. ---8<--- As writel does endianness swapping by default we need to undo any swapping that we have done before using it. Reported-by: kernel test robot Fixes: 93c7f4d357de ("crypto: sun8i-ce - enable working on big...") Signed-off-by: Herbert Xu diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c index 138759dc8190..703a60d4e2f6 100644 --- a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c +++ b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c @@ -120,7 +120,7 @@ int sun8i_ce_run_task(struct sun8i_ce_dev *ce, int flow, const char *name) /* Be sure all data is written before enabling the task */ wmb(); - v = 1 | (ce->chanlist[flow].tl->t_common_ctl & 0x7F) << 8; + v = 1 | (le32_to_cpu(ce->chanlist[flow].tl->t_common_ctl) & 0x7F) << 8; writel(v, ce->base + CE_TLR); mutex_unlock(&ce->mlock); -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt