Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1319244rwi; Thu, 13 Oct 2022 12:00:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5W6bD/bKdXF1G+P0D0NG5Q+K+X6YiHjR7ziaWSst7OoZzuVbeY/BR59tu4r8VejbrTPcTw X-Received: by 2002:a17:90a:2bcb:b0:20a:ea55:32ef with SMTP id n11-20020a17090a2bcb00b0020aea5532efmr12829463pje.59.1665687608516; Thu, 13 Oct 2022 12:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665687608; cv=none; d=google.com; s=arc-20160816; b=KJwL4Q9bAnWwY5ewbpvK8QG1gqy6kNyxQMawU1ES87FMG73JARHNRhVBlV/m2TGP0o c6PwTQtT534bya8V2QSKJZmU8ComtQa/pNjIrJTkYmZc8ofjGj74eK7w91LJMGDSQzim dmyBsgNP9zjwEKDYBTpYfnieui/0rxorMLaZMqsaGe9nhm3jV8RrTBSF8weyAnst9lww GiWnfulJl5oPrZyO3aeeoMeFBQ185BWwFSuXNT9hM5BtM0qqvIOfesWFS3P6tCCcmDnT xCrtp1oAs9u+w3LQrMM9FyMAtcRGXl6sGh59QwqlIQ7Bhz/VCB4YKYK7F4Lkg61irYzI LgMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6ELH2mk7RlryxX5S/msJ5Z1AkxFbKAy/Zm+9ghVAyfw=; b=PxUweaaqA2MeazskjLS1OuLHdURECUnhda1pgvV42NxTpeWEsyNK0CxFRrByUSK7sc P3GzO6BHdZo7hzgjtpwI/DENTT8KGkyuQE4YQFjx85vAr55LFX8BVpKgEqvtXQ8gHLjE h7p59RvRT4+ZpF7WwNdzq7ih+d+iJPnFstA2hdI6/27YFg5NxUZsuzDKwuA861RJtXy7 wavxZdjlXnA1d3aLFHux1lxvzAYzf1n0QRQ+X2737UHfdUuJgW+puiboDXomvciocnNq nU7Ibf6U8PXSz65zmlpBIte7PdrRETg9TLm0GrOyPJkb46lKDp7Eb9b8GNKN/Ic5pIFo 9ErQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PazBDFLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 70-20020a630249000000b0045f74df51e4si75876pgc.803.2022.10.13.11.59.54; Thu, 13 Oct 2022 12:00:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PazBDFLL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbiJMSvM (ORCPT + 99 others); Thu, 13 Oct 2022 14:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbiJMSuv (ORCPT ); Thu, 13 Oct 2022 14:50:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE6B97C1F6 for ; Thu, 13 Oct 2022 11:49:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CC877618F6 for ; Thu, 13 Oct 2022 18:47:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26C2AC433D6; Thu, 13 Oct 2022 18:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665686860; bh=YuUMePZ+vsNbKjlHx9yOeHLR/mA9M7RIxKfWjwX0qPk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PazBDFLLXt+GAi+mkSDU9TFTQyuUzl6qteLU+Qq7RRtLckPFKi6j6bJgVfJ9ZQqrX erfrZur+wzF9i6QDqQLAkHrHaKDJ0hpzv18XOrbsUuTMKKY+7dEueNMVTwh/pFOVhx Vm6sARenpfGClnv6W+nJYOd3dlJzEjxg/aOAvhyMJtNmLSo5+k4zIbg3KDqgKWiboT KHpaLWE4n+PU9fAYfUnWOD1K2j8XXbAg3Od+sHfWmucYF4yxGzF6CAPbEPKJ2Wc8Gg 1c13fXR1HTlXywmLDurUmQjDdCod/EhG65fJuA3o/B//MJt8MnKtACxnL8rJtTc4aN xrV9C3gqAHQiA== Date: Thu, 13 Oct 2022 19:47:35 +0100 From: Conor Dooley To: Greg Kroah-Hartman Cc: Conor Dooley , kernel test robot , Jens Axboe , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, "Jason A. Donenfeld" , linux-riscv@lists.infradead.org, Aurelien Jarno , Palmer Dabbelt Subject: Re: [linux-stable-rc:linux-4.19.y 3113/3976] drivers/char/random.c:1336: Error: unrecognized opcode `csrs sstatus,s4' Message-ID: References: <202210101947.iPda3BwQ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 13, 2022 at 03:10:13PM +0200, Greg Kroah-Hartman wrote: > On Mon, Oct 10, 2022 at 01:05:39PM +0100, Conor Dooley wrote: > > On Mon, Oct 10, 2022 at 07:51:59PM +0800, kernel test robot wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y > > > head: 5644b22533b36dc1a95ab1db4ae83381514b2908 > > > commit: 1923d9a8a08684c063da049fa9d5d8139edbbcbb [3113/3976] random: convert to using fops->write_iter() > > > config: riscv-randconfig-c024-20221009 > > > compiler: riscv64-linux-gcc (GCC) 12.1.0 > > > reproduce (this is a W=1 build): > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > > chmod +x ~/bin/make.cross > > > # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=1923d9a8a08684c063da049fa9d5d8139edbbcbb > > > git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > > > git fetch --no-tags linux-stable-rc linux-4.19.y > > > git checkout 1923d9a8a08684c063da049fa9d5d8139edbbcbb > > > # save the config file > > > mkdir build_dir && cp config build_dir/.config > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/char/ > > > > > > If you fix the issue, kindly add following tag where applicable > > > | Reported-by: kernel test robot > > > > > > All errors (new ones prefixed by >>): > > > > > > arch/riscv/include/asm/irqflags.h: Assembler messages: > > > arch/riscv/include/asm/irqflags.h:42: Error: unrecognized opcode `csrrc s6,sstatus,2' > > > arch/riscv/include/asm/irqflags.h:60: Error: unrecognized opcode `csrs sstatus,0' > > > arch/riscv/include/asm/irqflags.h:60: Error: unrecognized opcode `csrs sstatus,s6' > > > drivers/char/random.c:1316: Error: unrecognized opcode `csrs sstatus,a3' > > > drivers/char/random.c:1316: Error: unrecognized opcode `csrc sstatus,a3' > > > drivers/char/random.c:1322: Error: unrecognized opcode `csrs sstatus,a3' > > > drivers/char/random.c:1322: Error: unrecognized opcode `csrc sstatus,a3' > > > >> drivers/char/random.c:1336: Error: unrecognized opcode `csrs sstatus,s4' > > > >> drivers/char/random.c:1336: Error: unrecognized opcode `csrc sstatus,s4' > > > > All of these look like 4.19.y is missing a backport of: > > Fixes: 6df2a016c0c8 ("riscv: fix build with binutils 2.38") > > > > That commit is CC: stable, so I assume it did not apply or w/e and > > nobody cared enough to do a backport? > > It does not apply and no one sent in a fixed backport :( Welp, I have a fixed backport for it and pushed it out for LKP [0]. Just quickly checked it w/ binutils 2.36 & 2.38 locally, which both worked fine. I doubt anyone really cares though, 4.19 is pretty long in the tooth RISC-V hw wise. Not the biggest fan of what I did, but I didn't want to send backports for some other infra changes that 6df2a016c0c8 depends on. I'll send it to you once LKP gives it the all clear. Thanks, Conor. 0 -https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/commit/?h=riscv-backport_238_fix&id=cf7c2ca06cd0e5f6c16fe70e751380c8673da9ed