Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2383940pxa; Mon, 24 Aug 2020 12:36:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7Tu1/oa0KIjvO9FPDiUu1gn5WWF16x/hx0dKpkMfreVv8subEc8F0gaFfcE/zpm/2dZ3Z X-Received: by 2002:a17:906:957:: with SMTP id j23mr7101767ejd.344.1598297789288; Mon, 24 Aug 2020 12:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598297789; cv=none; d=google.com; s=arc-20160816; b=h5CXPIuO3B+b5T9JWjiEi3UhREiRXKMQorzkXUrq6BGe/vOASscCKjIaYFTZyGwU+e deNCKSbvA8AsMK0JZGNwB6i9TcACIesIyJyp1NhzZ9GcDlCD0s1wC3rfTivPMuXm/VfB FafxN4WfB3bEihAnxCldm7kJwUcSmUk0JzXaOPkfvyHydpA0Mt4T7gHDlSCcqM+MhFYg 117/7925nsz6OIV8nG+9VPm8PLZFunYCjqnZBpH8kf49kOwTq0shNpJ9yOBhXu5V69zN Fk2rIdZj2ShQNXIv0D1K09ahUqV2WwZa/cYVE4OwfEH4VyZgcTau+iezIvPx2WaMjD5m Kq+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from :dkim-signature:dkim-signature:date; bh=s1UXCq2sCaXk8D9Ftb5SFZUbL2VtwY3Bdh1ohHy/nq0=; b=pN+0o985wyJmGsdyuX7ZV0CQxWrSO0g5n1jzsLv3GM9DJ0HbdPGqhRFsQ4anbSclNg UI7Rxm9R7Exuz0MoDYHQ6cdDZpKDO79ABxhBGfiR7HrlDm3c1YV34Nl7gdoEVFzjWtqP CWhG8zvfODjMSUtA8dJ5TQI5904Ys1LEIePsZUvHxqwD+gYTHLkLSXL+OCe8x2OL+reI ITfEpalFfwPNzrqy7XQUIl7QRivj0nPXMIsoCMXTEZcvDmCQ5LwWmTdMrjKEmMvW0KeZ do/IW+b7QdbTf/aluTbU3uZmchyamf1PO2pdUzjABribU87P8A7MO7i8/9DoEdoNPTL6 TFLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1H+z8gNo; dkim=neutral (no key) header.i=@vger.kernel.org; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv10si7855595ejb.522.2020.08.24.12.36.06; Mon, 24 Aug 2020 12:36:29 -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=pass header.i=@linutronix.de header.s=2020 header.b=1H+z8gNo; dkim=neutral (no key) header.i=@vger.kernel.org; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbgHXTfb (ORCPT + 99 others); Mon, 24 Aug 2020 15:35:31 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44446 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgHXTf3 (ORCPT ); Mon, 24 Aug 2020 15:35:29 -0400 Date: Mon, 24 Aug 2020 21:35:25 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598297727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=s1UXCq2sCaXk8D9Ftb5SFZUbL2VtwY3Bdh1ohHy/nq0=; b=1H+z8gNouO152NAeUgGE/+lFf0x5m7yXvhjIBQKe7rY/L+0Ma/xmY+HEoyu15U/Nyv6FWP b3u6Vxct3tkicdHE/OEdruk91HjETkCvJ77h3JBEKELtqtLdwv+6G2/WKQx7uncf7+Gb6e eR5uCtWGGTV/F1QyrKS+aT/OX2ZSQz2Z471TqdXM4L+V8j3Kh3Wn6Fh2yhDByOpZl6uRpM /7aoeAAJGVwCqOoSKH8cIgWHMLGqf8Ip6ITxIT17v2dYxfuCTHIncUXwzcNXg1Yz8xp43/ wgr7mqO+9lKYyefs7jLmTmmm19gqO902VG1wJyVab7ujw/3emzTNvicnIj4iAQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598297727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=s1UXCq2sCaXk8D9Ftb5SFZUbL2VtwY3Bdh1ohHy/nq0=; b=fZa/eesRoqGb6lVXqdy4Hl63qcEQvwOr3IKcp1Cl/dW6Y9lnPDr9FVk7yAfiFU6clSAJG6 aYGQIu+YQB4LKXCw== From: Sebastian Andrzej Siewior To: Vineet Gupta Cc: kernel test robot , "linux-snps-arc@lists.infradead.org" , Peter Zijlstra , "kbuild-all@lists.01.org" , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ofer Levi , Alexey Brodkin Subject: Re: {standard input}:5973: Error: operand out of range (512 is not between -512 and 511) Message-ID: <20200824193525.utkbrhgvwpi2i37m@linutronix.de> References: <202008241018.RkyIlLKd%lkp@intel.com> <20200824095831.5lpkmkafelnvlpi2@linutronix.de> <28384fea-4a07-c57d-04b0-f44f1c70adc2@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <28384fea-4a07-c57d-04b0-f44f1c70adc2@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-24 18:21:21 [+0000], Vineet Gupta wrote: > >>>> {standard input}:5973: Error: operand out of range (512 is not between -512 and 511) > >> > > The error above was fixed back in April: > 799587d5731db9dc ("ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT") This commit is |git describe --contains 799587d5731db9dc |v5.7-rc7~32^2~2 and CI said: |head: d012a7190fc1fd72ed48911e77ca97ba4521bccd ^^ v5.9-rc2 |commit: de8f5e4f2dc1f032b46afda0a78cab5456974f89 lockdep: Introduce wait-type checks ^^ v5.7-rc1 so my assumption was that it tested rc2 and bisected it down to that commit. Otherwise I don't see the point in testing such an old commit on a recent -rc2 and complaining about things not related to one another. > > I have here gcc 10 and the output is: > > I suppose this is mainline gcc 10 ? Although it doesn't seem like compiler version > related. Sorry for that. It is |$ ~/cross-gcc/gcc-10.1.0-nolibc/arc-linux/bin/arc-linux-gcc -v |Using built-in specs. |COLLECT_GCC=/home/bigeasy/cross-gcc/gcc-10.1.0-nolibc/arc-linux/bin/arc-linux-gcc |COLLECT_LTO_WRAPPER=/home/bigeasy/cross-gcc/gcc-10.1.0-nolibc/arc-linux/bin/../libexec/gcc/arc-linux/10.1.0/lto-wrapper |Target: arc-linux |Configured with: /home/arnd/git/gcc/configure --target=arc-linux --enable-targets=all --prefix=/home/arnd/cross/x86_64/gcc-10.1.0-nolibc/arc-linux --enable-languages=c --without-headers --disable-bootstrap --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --disable-libquadmath --disable-libatomic --disable-libcc1 --disable-libmpx --enable-checking=release |Thread model: single |Supported LTO compression algorithms: zlib |gcc version 10.1.0 (GCC) This is the one built by Arnd and hosted at https://www.kernel.org/pub/tools/crosstool/ Is it suitable for testing? > > and the assembler does not like that. > > After the removal CONFIG_ARC_PLAT_EZNPS I got to stage 2: > > |drivers/irqchip/irq-eznps.c:80:16: error: 'CTOP_AUX_IACK' undeclared (first use in this function) > > | 80 | write_aux_reg(CTOP_AUX_IACK, 1 << irq); > > > > Indeed this is a problem I can reproduce. Enabling CONFIG_EZNPS_GIC on a non > ARC700 build causes the issue: the ctop header is inside platform code > (arch/arc/plat-eznps/include/plat/ctop.h) which obviously fails if not building > for ARC. > > My solution is to move ctop.h to include/soc/nps/plat/. You know probably best :) > > so I removed CONFIG_EZNPS_GIC. And then I ended with: > > | LD vmlinux.o > > |arc-linux-ld: gcc-10.1.0-nolibc/arc-linux/bin/../lib/gcc/arc-linux/10.1.0/arc700/libgcc.a(_muldi3.o): compiled for a little endian system and target is big endian > > |arc-linux-ld: failed to merge target specific data of file gcc-10.1.0-nolibc/arc-linux/bin/../lib/gcc/arc-linux/10.1.0/arc700/libgcc.a(_muldi3.o) > > This is unrelated since original .config with CONFIG_ARC_PLAT_EZNPS would have > selected Big endina build, but you need a BE toolchain to get that working (since > libgcc emulation code still comes from toolchain). Is a switch missing while building the gcc, another gcc target needed or is this something that is not part of upstream gcc? > > > > Please update CI and ARC. > > Nothing to update in CI. I'll send the ARC patch as a follow up. but it shouldn't complain about a commit merged in v5.7-rc1 because it caused an error which was then fixed in v5.7-rc7 while using HEAD v5.9-rc2? > Thx for reporting. You are welcome. > -Vineet Sebastian