Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3630847ybl; Mon, 12 Aug 2019 03:52:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTuDvo5mtERMxqqAiPe8egHrzrbyBbhB0BD4Eu//XF9EntbWqA3IElTfrdG82x7W9BCMGr X-Received: by 2002:aa7:938d:: with SMTP id t13mr1653080pfe.180.1565607122927; Mon, 12 Aug 2019 03:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565607122; cv=none; d=google.com; s=arc-20160816; b=rYZcNoX6l1S5JotSMfZKW9138UeN9aeuHu18oHVuPKzE8L7G1HHDFAUB9Qlx7YdALm ZzWp+9Xc5tBcylXMozxD2n8eKz3x/GSYJ59EgRDjcaKQ1ebqQqejVGr3Mo1JlrvSAVEH 1dSmdTGVVn1HV0j0pEx/1wwzI5YaFundl27Xl3HMM9j7MlTamB8l5wqi/YcfZ77Fl1Eu 9qTbkEriIHWUHVydec83FSq6rrmOdjFwU1NUllUn+Toje7e1oiE+axP5UZr2uOgpzF3W zhQhhEbT9xhRVLhrbT74xVwDr9Ac+4CA5/TjfJkddeTP6qBA271fntt+QwV/HjSyFMNQ D2tA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=y182LJLNLOgNim6DXt3fsVsuobXTcZ1qbgN28KjkRFs=; b=aLYdZoQwxweMb5sy29gAthiFHIJgCgPbXerKJsogvvePxuHVHz3tJvzcdAVTLlrGG+ jbJcEWaYOf7LiBBg/GEFcoXZZ1HdFP9S/S6HJLj5UeuRErwoGEIm6pUo05oQzZ450Dkz ELateGCY9nyCYyH1KDlL9hssj5VNbujmI+N5xvAze903jK/zL+oF3dO5kToIx5mx07gC JkPtWOvfms12FKNTMog/wHCj72G8dcyK2cWbq/A1HF62uSCaaQi/bHiOy3vmLlv1oF0Y ITOUBbJI5R3GrDL/XsJ7s9mQ1vU45yZp0v4y9gqWBlKX2r7L2+YgO0Da10jEKIriBYxc gGqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 33si59980939plq.299.2019.08.12.03.51.41; Mon, 12 Aug 2019 03:52:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727917AbfHLKuD (ORCPT + 99 others); Mon, 12 Aug 2019 06:50:03 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54820 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727235AbfHLKuD (ORCPT ); Mon, 12 Aug 2019 06:50:03 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 941E4761203E8FFCC3F5; Mon, 12 Aug 2019 18:50:01 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Mon, 12 Aug 2019 18:49:54 +0800 Subject: Re: [cryptodev:master 124/144] drivers/crypto/hisilicon/qm.c:322:2: error: impossible constraint in 'asm' To: kbuild test robot References: <201908092005.GIPAS1Oq%lkp@intel.com> CC: , , Herbert Xu , Shiju Jose , "Kenneth Lee" , Hao Fang , "Jonathan Cameron" , John Garry From: Zhou Wang Message-ID: <5D514451.5000001@hisilicon.com> Date: Mon, 12 Aug 2019 18:49:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <201908092005.GIPAS1Oq%lkp@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2019/8/9 20:20, kbuild test robot wrote: > tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master > head: ec9c7d19336ee98ecba8de80128aa405c45feebb > commit: 62c455ca853e3e352e465d66a6cc39f1f88caa60 [124/144] crypto: hisilicon - add HiSilicon ZIP accelerator support > config: sparc64-allmodconfig (attached as .config) > compiler: sparc64-linux-gcc (GCC) 7.4.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 62c455ca853e3e352e465d66a6cc39f1f88caa60 > # save the attached .config to linux build tree > GCC_VERSION=7.4.0 make.cross ARCH=sparc64 > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > > All error/warnings (new ones prefixed by >>): > > drivers/crypto/hisilicon/qm.c: In function 'qm_mb.constprop': >>> drivers/crypto/hisilicon/qm.c:322:2: warning: asm operand 3 probably doesn't match constraints > asm volatile("ldp %0, %1, %3\n" > ^~~ > drivers/crypto/hisilicon/qm.c:322:2: warning: asm operand 4 probably doesn't match constraints >>> drivers/crypto/hisilicon/qm.c:322:2: error: impossible constraint in 'asm' > -- > drivers/crypto/hisilicon/sgl.c: In function 'hisi_acc_sg_buf_map_to_hw_sgl': >>> drivers/crypto/hisilicon/sgl.c:181:14: warning: 'curr_sgl_dma' may be used uninitialized in this function [-Wmaybe-uninitialized] > *hw_sgl_dma = curr_sgl_dma; > ~~~~~~~~~~~~^~~~~~~~~~~~~~ Hi Herbert, I will fix this and set dependency on arm64 for zip. Should I just post a fix patch or repost the whole series ([PATCH v3 0/7] crypto: hisilicon: Add HiSilicon QM and ZIP controller driver) with fixes? Best, Zhou > > vim +/asm +322 drivers/crypto/hisilicon/qm.c > > 263c9959c9376e Zhou Wang 2019-08-02 315 > 263c9959c9376e Zhou Wang 2019-08-02 316 /* 128 bit should be written to hardware at one time to trigger a mailbox */ > 263c9959c9376e Zhou Wang 2019-08-02 317 static void qm_mb_write(struct hisi_qm *qm, const void *src) > 263c9959c9376e Zhou Wang 2019-08-02 318 { > 263c9959c9376e Zhou Wang 2019-08-02 319 void __iomem *fun_base = qm->io_base + QM_MB_CMD_SEND_BASE; > 263c9959c9376e Zhou Wang 2019-08-02 320 unsigned long tmp0 = 0, tmp1 = 0; > 263c9959c9376e Zhou Wang 2019-08-02 321 > 263c9959c9376e Zhou Wang 2019-08-02 @322 asm volatile("ldp %0, %1, %3\n" > 263c9959c9376e Zhou Wang 2019-08-02 323 "stp %0, %1, %2\n" > 263c9959c9376e Zhou Wang 2019-08-02 324 "dsb sy\n" > 263c9959c9376e Zhou Wang 2019-08-02 325 : "=&r" (tmp0), > 263c9959c9376e Zhou Wang 2019-08-02 326 "=&r" (tmp1), > 263c9959c9376e Zhou Wang 2019-08-02 327 "+Q" (*((char *)fun_base)) > 263c9959c9376e Zhou Wang 2019-08-02 328 : "Q" (*((char *)src)) > 263c9959c9376e Zhou Wang 2019-08-02 329 : "memory"); > 263c9959c9376e Zhou Wang 2019-08-02 330 } > 263c9959c9376e Zhou Wang 2019-08-02 331 > > :::::: The code at line 322 was first introduced by commit > :::::: 263c9959c9376ec0217d6adc61222a53469eed3c crypto: hisilicon - add queue management driver for HiSilicon QM module > > :::::: TO: Zhou Wang > :::::: CC: Herbert Xu > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation >