Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp148845rdh; Mon, 18 Dec 2023 06:55:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPhbII4KVZSF5xVRNYHJoE9O+/qhvK4zMjoYlxK5aMwCRhJGTtNRkL/ZfjOjfbMK5FgilW X-Received: by 2002:a05:6a20:1452:b0:194:9158:2920 with SMTP id a18-20020a056a20145200b0019491582920mr21162pzi.38.1702911341542; Mon, 18 Dec 2023 06:55:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702911341; cv=none; d=google.com; s=arc-20160816; b=u+fCyCw9YAY4ClU949FXGZsIHo0Ai42Ic/Si0xZWIfwSIZGoWkueNvxcusf3VSj27z t9Vwji3jovFV3ieg2qLOhxS5GI9GuN8C4PhOp/XxcPXsZWDBMoNuzuQ6X36Rh69EGuVW hfaQDMkTzD72hdTn1l+M844JL5hchYLxomnHg2YnVJeHVrKgX7LJbnpRVhMJFYX1rmXE YKWHcEYd6B660Z5k7gmaRQZ4seMEAWfpLjWEvMSJCJ4GuxH0RLK4Su9DeAyZu568MH84 v31alVyzuD3ZNYiHc/yuoTuaaCbzS8v1xQhoZDuvjQXMpWCLNZVuE/TwcUdBMMvzvsfo 9Zhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=6EfXZOab6SDLmttQpD2hpeYObols2e6Q1JTRnJaIw68=; fh=xgdNf8Se297F0CpgcSxQQkCdxUV8rhbso+F5qsndOvw=; b=Dj2lLXxvu0eZJF0Gxg7Jon8Vfzs4CS3ouafb6P7n9H1caztbWW3O5iQZz6Kbd49Vsf 9ANoGu4HAgjR2J1txKauI+bFmiMBdtul2sbJzcsSIHZLMrVp6qm+IVbFxjDucpmltBuO 2TGJzUgJuSScPRtA8V03B+2yq3Df+XTgRHYTyFWYtoC0xlX4N+n1t31UaSGebH/cKSQP FLrWnlUx3fr8QczEUi3Sj1PpMvnLlq7cXonDZfmh0CESoXZvqrZQj6Ve85rn/P/spytP rfA/L0sP1+bioMGsywoM9oX7WV2a/4ZFitH1ykG5RnG2ig0o7d5wYDhYaRdrH/a+qG5Y TDOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TxA+Lcxz; spf=pass (google.com: domain of linux-kernel+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e3-20020a656783000000b005cd85bb1092si3657907pgr.425.2023.12.18.06.55.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:55:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TxA+Lcxz; spf=pass (google.com: domain of linux-kernel+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78F0F284316 for ; Mon, 18 Dec 2023 14:55:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01A3E37881; Mon, 18 Dec 2023 14:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TxA+Lcxz" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CCDF101DB for ; Mon, 18 Dec 2023 14:55:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702911330; x=1734447330; h=date:from:to:cc:subject:message-id:mime-version; bh=PFZUAqqFldbFKyAdpyd8Ov4GX5ijOnxeOIa3fnQ5rp8=; b=TxA+LcxzZ10Q5ggYUR/sUWd2syComSs3m0SxTickcCopfZQLZse2PU1r qroYpNMghaItr7eQvpWAobgE7kiS2tVQDb3jRSXXnKk6zBtwsNQz9HbXW Dh5P1fehs5vCngBKkIe1J7P0sx75J/ycnRhIiV2ZSiJtBE0TPke17Kv6x yNZqrjYnYWgY4c7/pZ1P2Co1sJbMnQJ9ywldmDsqwiFmLrOqs8v/jmoj4 3bPCpr591Ut6FXGKST2Nhy1hxoYjb1jrb0Z/RugBJq+/n65tZVyRV+3pD em0xRxbzX9yjkl48MvAxKhSkTOtuIqTDqY//cTOJjC2fo74Qj0WbyRkBB Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="399347449" X-IronPort-AV: E=Sophos;i="6.04,285,1695711600"; d="scan'208";a="399347449" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 06:55:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="768869223" X-IronPort-AV: E=Sophos;i="6.04,285,1695711600"; d="scan'208";a="768869223" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 18 Dec 2023 06:55:28 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rFF1h-0004DJ-2L; Mon, 18 Dec 2023 14:55:25 +0000 Date: Mon, 18 Dec 2023 22:55:12 +0800 From: kernel test robot To: Baoquan He Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: arch/sh/kernel/relocate_kernel.S:38: Error: invalid operands for opcode Message-ID: <202312182200.Ka7MzifQ-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Baoquan, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ceb6a6f023fd3e8b07761ed900352ef574010bcb commit: d70c27b728b8da1ab9c3b7ca117ee1c99dc86d29 sh, kexec: fix the incorrect ifdeffery and dependency of CONFIG_KEXEC date: 6 days ago config: sh-randconfig-r002-20220124 (https://download.01.org/0day-ci/archive/20231218/202312182200.Ka7MzifQ-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231218/202312182200.Ka7MzifQ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312182200.Ka7MzifQ-lkp@intel.com/ All errors (new ones prefixed by >>): arch/sh/kernel/relocate_kernel.S: Assembler messages: >> arch/sh/kernel/relocate_kernel.S:38: Error: invalid operands for opcode arch/sh/kernel/relocate_kernel.S:41: Error: invalid operands for opcode arch/sh/kernel/relocate_kernel.S:126: Error: invalid operands for opcode arch/sh/kernel/relocate_kernel.S:129: Error: invalid operands for opcode vim +38 arch/sh/kernel/relocate_kernel.S 9d44190eae97ad4 kogiidena 2006-01-16 13 9d44190eae97ad4 kogiidena 2006-01-16 14 .globl relocate_new_kernel 9d44190eae97ad4 kogiidena 2006-01-16 15 relocate_new_kernel: 9d44190eae97ad4 kogiidena 2006-01-16 16 /* r4 = indirection_page */ 9d44190eae97ad4 kogiidena 2006-01-16 17 /* r5 = reboot_code_buffer */ 9d44190eae97ad4 kogiidena 2006-01-16 18 /* r6 = start_address */ 9d44190eae97ad4 kogiidena 2006-01-16 19 b7cf6ddc13186f9 Magnus Damm 2009-03-18 20 mov.l 10f, r0 /* PAGE_SIZE */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 21 add r5, r0 /* setup new stack at end of control page */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 22 b7cf6ddc13186f9 Magnus Damm 2009-03-18 23 /* save r15->r8 to new stack */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 24 mov.l r15, @-r0 b7cf6ddc13186f9 Magnus Damm 2009-03-18 25 mov r0, r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 26 mov.l r14, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 27 mov.l r13, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 28 mov.l r12, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 29 mov.l r11, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 30 mov.l r10, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 31 mov.l r9, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 32 mov.l r8, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 33 b7cf6ddc13186f9 Magnus Damm 2009-03-18 34 /* save other random registers */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 35 sts.l macl, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 36 sts.l mach, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 37 stc.l gbr, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 @38 stc.l ssr, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 39 stc.l sr, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 40 sts.l pr, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 41 stc.l spc, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 42 b7cf6ddc13186f9 Magnus Damm 2009-03-18 43 /* switch to bank1 and save r7->r0 */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 44 mov.l 12f, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 45 stc sr, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 46 or r9, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 47 ldc r8, sr b7cf6ddc13186f9 Magnus Damm 2009-03-18 48 mov.l r7, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 49 mov.l r6, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 50 mov.l r5, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 51 mov.l r4, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 52 mov.l r3, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 53 mov.l r2, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 54 mov.l r1, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 55 mov.l r0, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 56 b7cf6ddc13186f9 Magnus Damm 2009-03-18 57 /* switch to bank0 and save r7->r0 */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 58 mov.l 12f, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 59 not r9, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 60 stc sr, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 61 and r9, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 62 ldc r8, sr b7cf6ddc13186f9 Magnus Damm 2009-03-18 63 mov.l r7, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 64 mov.l r6, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 65 mov.l r5, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 66 mov.l r4, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 67 mov.l r3, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 68 mov.l r2, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 69 mov.l r1, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 70 mov.l r0, @-r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 71 b7cf6ddc13186f9 Magnus Damm 2009-03-18 72 mov.l r4, @-r15 /* save indirection page again */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 73 b7cf6ddc13186f9 Magnus Damm 2009-03-18 74 bsr swap_pages /* swap pages before jumping to new kernel */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 75 nop b7cf6ddc13186f9 Magnus Damm 2009-03-18 76 b7cf6ddc13186f9 Magnus Damm 2009-03-18 77 mova 11f, r0 b7cf6ddc13186f9 Magnus Damm 2009-03-18 78 mov.l r15, @r0 /* save pointer to stack */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 79 b7cf6ddc13186f9 Magnus Damm 2009-03-18 80 jsr @r6 /* hand over control to new kernel */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 81 nop b7cf6ddc13186f9 Magnus Damm 2009-03-18 82 b7cf6ddc13186f9 Magnus Damm 2009-03-18 83 mov.l 11f, r15 /* get pointer to stack */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 84 mov.l @r15+, r4 /* restore r4 to get indirection page */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 85 b7cf6ddc13186f9 Magnus Damm 2009-03-18 86 bsr swap_pages /* swap pages back to previous state */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 87 nop b7cf6ddc13186f9 Magnus Damm 2009-03-18 88 b7cf6ddc13186f9 Magnus Damm 2009-03-18 89 /* make sure bank0 is active and restore r0->r7 */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 90 mov.l 12f, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 91 not r9, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 92 stc sr, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 93 and r9, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 94 ldc r8, sr b7cf6ddc13186f9 Magnus Damm 2009-03-18 95 mov.l @r15+, r0 b7cf6ddc13186f9 Magnus Damm 2009-03-18 96 mov.l @r15+, r1 b7cf6ddc13186f9 Magnus Damm 2009-03-18 97 mov.l @r15+, r2 b7cf6ddc13186f9 Magnus Damm 2009-03-18 98 mov.l @r15+, r3 b7cf6ddc13186f9 Magnus Damm 2009-03-18 99 mov.l @r15+, r4 b7cf6ddc13186f9 Magnus Damm 2009-03-18 100 mov.l @r15+, r5 b7cf6ddc13186f9 Magnus Damm 2009-03-18 101 mov.l @r15+, r6 b7cf6ddc13186f9 Magnus Damm 2009-03-18 102 mov.l @r15+, r7 b7cf6ddc13186f9 Magnus Damm 2009-03-18 103 b7cf6ddc13186f9 Magnus Damm 2009-03-18 104 /* switch to bank1 and restore r0->r7 */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 105 mov.l 12f, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 106 stc sr, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 107 or r9, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 108 ldc r8, sr b7cf6ddc13186f9 Magnus Damm 2009-03-18 109 mov.l @r15+, r0 b7cf6ddc13186f9 Magnus Damm 2009-03-18 110 mov.l @r15+, r1 b7cf6ddc13186f9 Magnus Damm 2009-03-18 111 mov.l @r15+, r2 b7cf6ddc13186f9 Magnus Damm 2009-03-18 112 mov.l @r15+, r3 b7cf6ddc13186f9 Magnus Damm 2009-03-18 113 mov.l @r15+, r4 b7cf6ddc13186f9 Magnus Damm 2009-03-18 114 mov.l @r15+, r5 b7cf6ddc13186f9 Magnus Damm 2009-03-18 115 mov.l @r15+, r6 b7cf6ddc13186f9 Magnus Damm 2009-03-18 116 mov.l @r15+, r7 b7cf6ddc13186f9 Magnus Damm 2009-03-18 117 b7cf6ddc13186f9 Magnus Damm 2009-03-18 118 /* switch back to bank0 */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 119 mov.l 12f, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 120 not r9, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 121 stc sr, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 122 and r9, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 123 ldc r8, sr 9d44190eae97ad4 kogiidena 2006-01-16 124 b7cf6ddc13186f9 Magnus Damm 2009-03-18 125 /* restore other random registers */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 126 ldc.l @r15+, spc b7cf6ddc13186f9 Magnus Damm 2009-03-18 127 lds.l @r15+, pr b7cf6ddc13186f9 Magnus Damm 2009-03-18 128 ldc.l @r15+, sr b7cf6ddc13186f9 Magnus Damm 2009-03-18 129 ldc.l @r15+, ssr b7cf6ddc13186f9 Magnus Damm 2009-03-18 130 ldc.l @r15+, gbr b7cf6ddc13186f9 Magnus Damm 2009-03-18 131 lds.l @r15+, mach b7cf6ddc13186f9 Magnus Damm 2009-03-18 132 lds.l @r15+, macl 9d44190eae97ad4 kogiidena 2006-01-16 133 b7cf6ddc13186f9 Magnus Damm 2009-03-18 134 /* restore r8->r15 */ b7cf6ddc13186f9 Magnus Damm 2009-03-18 135 mov.l @r15+, r8 b7cf6ddc13186f9 Magnus Damm 2009-03-18 136 mov.l @r15+, r9 b7cf6ddc13186f9 Magnus Damm 2009-03-18 137 mov.l @r15+, r10 b7cf6ddc13186f9 Magnus Damm 2009-03-18 138 mov.l @r15+, r11 b7cf6ddc13186f9 Magnus Damm 2009-03-18 139 mov.l @r15+, r12 b7cf6ddc13186f9 Magnus Damm 2009-03-18 140 mov.l @r15+, r13 b7cf6ddc13186f9 Magnus Damm 2009-03-18 141 mov.l @r15+, r14 b7cf6ddc13186f9 Magnus Damm 2009-03-18 142 mov.l @r15+, r15 b7cf6ddc13186f9 Magnus Damm 2009-03-18 143 rts b7cf6ddc13186f9 Magnus Damm 2009-03-18 144 nop b7cf6ddc13186f9 Magnus Damm 2009-03-18 145 b7cf6ddc13186f9 Magnus Damm 2009-03-18 146 swap_pages: 9d44190eae97ad4 kogiidena 2006-01-16 147 bra 1f 9d44190eae97ad4 kogiidena 2006-01-16 148 mov r4,r0 /* cmd = indirection_page */ 9d44190eae97ad4 kogiidena 2006-01-16 149 0: 9d44190eae97ad4 kogiidena 2006-01-16 150 mov.l @r4+,r0 /* cmd = *ind++ */ 9d44190eae97ad4 kogiidena 2006-01-16 151 :::::: The code at line 38 was first introduced by commit :::::: b7cf6ddc13186f9272438a97aa75972d496d0b0a sh: add kexec jump support :::::: TO: Magnus Damm :::::: CC: Paul Mundt -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki