Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2001297rwb; Sun, 4 Sep 2022 06:28:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5cQ7eI/QyHctUvUpN27cLDkc9Js9+IoblE6D3rOG0H2SWHYu99QR96i0ZZ9KV4FcUJLvui X-Received: by 2002:a17:906:eecb:b0:73c:5bcb:8eb3 with SMTP id wu11-20020a170906eecb00b0073c5bcb8eb3mr33061511ejb.284.1662298100223; Sun, 04 Sep 2022 06:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662298100; cv=none; d=google.com; s=arc-20160816; b=VIaM6pGJM84pH/jomYIJH8np0D5h9yE24JSYPNhoHr2tDovj3q39dCWQCKb8a9Swma 7Z+RB4grSn+r143ElPNS+wyicfqmLJxFUEC2ZUhubWQxA9HKZtkgEht3/KbJ3/sGo5/F ZEgES3+CaDamksLSRfhM/z6uB8Xu8MAYFD0kTZhy7bD/0tGgJYiJy2h0lwULd3EjTT5e /YnVjmotQ97ec3Kf/U5zdVfjHtDimhooIj1A+NnYbXVBDAgcgqhArVnAdl2bxvf1wKU/ CDZkXXBhZpa8NXvuiLvG1yUH1/3FvKR3Sp7nkeI+AD7TTQcvMbTkLgBqJuxgyfWW4voD XFvw== 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=qmSfNt2b7y/q1+q8Ak2Fj/3WIVJH1Y2w8ZQ9lig5qvY=; b=GdxfsTZOdAFx5rLJz0YTQS/Em141odMyGGQSUPWahp9KK17gJnCXVpstez7PZb/F/I aVu0HjMDEi6xoSbZHbKiQdBio3quvsbn0QMvjYiYy6FAmdkDv5rElvtNC1FdPfEL4Msr vuqF5aap0YcVI/x0QeO4m0X2gVmOzp3lN7bif2m6+h6r2UbPnjp8B55S90kO3caIgc9K wYQKHqyp9N9YZPzKNPrkuvk05sztGkqipDxGahJtCFyV8gZsQRM+IF0sSvMq63VR6b6d wLAsFvteuwHW77Ybj5I2VkI5Pg2tVAyiH5b1R8jsiCrLbrg6CevIObKWsItvo9pdeK4S P4Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TerYjO55; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq23-20020a1709073f1700b007387740b9c5si5776807ejc.22.2022.09.04.06.27.54; Sun, 04 Sep 2022 06:28:20 -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=@intel.com header.s=Intel header.b=TerYjO55; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbiIDNHC (ORCPT + 99 others); Sun, 4 Sep 2022 09:07:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbiIDNHA (ORCPT ); Sun, 4 Sep 2022 09:07:00 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A75D2F66A for ; Sun, 4 Sep 2022 06:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662296818; x=1693832818; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6A4OjJMzJBygfQiNsLjRMXrJIX/atc5UieMQINHuyWI=; b=TerYjO55HdnfuBiZDqToCIj4Y0iwgcy3+KPWQeAICEm4mrBen/P25nMa dFiwlL6TyjCo3KZwekGScpJOnPwQKUzId2YTXwItkDUPaDagCmxl9NUD8 KI/YzvGknQ6N5JRGHtIr4ERdvtAQpQTrP8InSm+9R+UbjsyDmEiLMdu1k /1w4upgOZQeckSI+ZR55vH5M9KJ80U/WRWF+xZtZfCRm4Lk+/58gMYBfN JBLIQdnr+qC36Nu4+yjAi8dOxj0JjxTOaMi3EQpU/Oh65btwddgQVYodd u2YU4j1868y9tvdyBTCS+2saWcewPxQmEBKEHRN3ai9HW/EGOLd8gxcso g==; X-IronPort-AV: E=McAfee;i="6500,9779,10459"; a="382538813" X-IronPort-AV: E=Sophos;i="5.93,289,1654585200"; d="scan'208";a="382538813" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2022 06:06:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,289,1654585200"; d="scan'208";a="681773224" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 04 Sep 2022 06:06:55 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oUpKw-000359-3B; Sun, 04 Sep 2022 13:06:54 +0000 Date: Sun, 4 Sep 2022 21:05:59 +0800 From: kernel test robot To: Evgenii Stepanov , Catalin Marinas , Peter Collingbourne Cc: kbuild-all@lists.01.org, Kenny Root , Marc Zyngier , Will Deacon , Vincenzo Frascino , Andrey Konovalov , Mark Brown , Linux ARM , LKML , Evgenii Stepanov Subject: Re: [PATCH v3] arm64: mte: move register initialization to C Message-ID: <202209042051.7ivKujfl-lkp@intel.com> References: <20220901211954.750634-1-eugenis@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901211954.750634-1-eugenis@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Evgenii, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on linus/master v6.0-rc3 next-20220901] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Evgenii-Stepanov/arm64-mte-move-register-initialization-to-C/20220902-052059 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: arm64-randconfig-c033-20220904 (https://download.01.org/0day-ci/archive/20220904/202209042051.7ivKujfl-lkp@intel.com/config) compiler: aarch64-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://github.com/intel-lab-lkp/linux/commit/23927b7e78758b39d3463ae0a79b6b1af8fdef8b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Evgenii-Stepanov/arm64-mte-move-register-initialization-to-C/20220902-052059 git checkout 23927b7e78758b39d3463ae0a79b6b1af8fdef8b # 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=arm64 SHELL=/bin/bash arch/arm64/kernel/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/arm64/kernel/suspend.c:34:13: warning: no previous prototype for 'cpu_suspend_set_dbg_restorer' [-Wmissing-prototypes] 34 | void __init cpu_suspend_set_dbg_restorer(int (*hw_bp_restore)(unsigned int)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kernel/suspend.c: In function '__cpu_suspend_exit': >> arch/arm64/kernel/suspend.c:46:9: error: implicit declaration of function 'mte_suspend_exit'; did you mean 'mte_suspend_enter'? [-Werror=implicit-function-declaration] 46 | mte_suspend_exit(); | ^~~~~~~~~~~~~~~~ | mte_suspend_enter cc1: some warnings being treated as errors vim +46 arch/arm64/kernel/suspend.c 41 42 void notrace __cpu_suspend_exit(void) 43 { 44 unsigned int cpu = smp_processor_id(); 45 > 46 mte_suspend_exit(); 47 48 /* 49 * We are resuming from reset with the idmap active in TTBR0_EL1. 50 * We must uninstall the idmap and restore the expected MMU 51 * state before we can possibly return to userspace. 52 */ 53 cpu_uninstall_idmap(); 54 55 /* Restore CnP bit in TTBR1_EL1 */ 56 if (system_supports_cnp()) 57 cpu_replace_ttbr1(lm_alias(swapper_pg_dir), idmap_pg_dir); 58 59 /* 60 * PSTATE was not saved over suspend/resume, re-enable any detected 61 * features that might not have been set correctly. 62 */ 63 __uaccess_enable_hw_pan(); 64 65 /* 66 * Restore HW breakpoint registers to sane values 67 * before debug exceptions are possibly reenabled 68 * by cpu_suspend()s local_daif_restore() call. 69 */ 70 if (hw_breakpoint_restore) 71 hw_breakpoint_restore(cpu); 72 73 /* 74 * On resume, firmware implementing dynamic mitigation will 75 * have turned the mitigation on. If the user has forcefully 76 * disabled it, make sure their wishes are obeyed. 77 */ 78 spectre_v4_enable_mitigation(NULL); 79 80 /* Restore additional feature-specific configuration */ 81 ptrauth_suspend_exit(); 82 } 83 -- 0-DAY CI Kernel Test Service https://01.org/lkp