Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp272787rdb; Thu, 22 Feb 2024 03:21:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWSNjj5SU2rcBv0rtznRr9wDxUc3YAmxde+8gM31X0ryWvudGX0DtPJC/RazUraU5v/2h5HMeZUQ1b83y+VWjlWD6/gN1mfRNVIXtdThw== X-Google-Smtp-Source: AGHT+IEZfH0g0VlBBMYy46wZhfstuJ6NZGVwD0XA7aWxeD2+3IOPExJnCln141Y0mXJR2iliM9lo X-Received: by 2002:a17:906:7103:b0:a3e:7e1f:449e with SMTP id x3-20020a170906710300b00a3e7e1f449emr7595232ejj.16.1708600898901; Thu, 22 Feb 2024 03:21:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708600898; cv=pass; d=google.com; s=arc-20160816; b=0WnOf5evKmRhGA8S7zlq1OZlcc3NVExuiPlMGeRTat3N+9Oo7AKlZAUwZsjME7oA24 kXLRVTrb2fhTSN/UC4ClQphLEwyJtV5W1UpM40gYNeOC5wtUQBAwgGEYeR+iN3E0cFeP wEjB28j10q2wtH83+8fbwKLbwNuaLWTo/3O/77mXm8hIl2/M02Wa0w3MxcUYJ3HoODBe h4Q5aXyn7sm4lJlCMspxBifQmWkg5NoNPhcALRcnsY99IFo7aOZPPxpfu+EPM2c2uTln A0Um0TJ9X9UHaNug3JzaMwEeUiAI875KsoiTz9fft1cgsho1j2rPnCaVc58WBawCrMYH 4t6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=KwJaKnpY5RXFGqdbCBNXKiSaVfT9qqKQvcQy04mm0LM=; fh=QMn/fm7ffGTjhkUWG5VRSCgyjOM66kenVVi7J2TA+PE=; b=rpbLjbqgDByxUHl+Xxiz/LUuo/pPPey1tCQH/8ZHDx+3+YTCnf8HXf9LBfRVaAt8nq 5mlm13byfD8PdYm5Vj23HfG+s8wbguZWmkWhwh8YeR6MsrzGoAZpaijTgYLLVXctNFbo ALyQ4hPaEWxpoiIfP/5DaGfsifcVjYPtT4pcj6rD56W3QBiKkjYZtEuA3i2Y6PWxgzmj iG82vcVFsQur9rPmyyp83tLIzhkdMsHjsfO8GEruLABO5bKh5fRTLvkVAnnXfZgFxdAx aQm3Vr3/FymA99ZOl0KBbxQ8nj3u4qSF3GS9OPr/FOH6bYCru+PJRmQqCzONWBHf1wTK R9DA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hr12-20020a1709073f8c00b00a3e9fec0241si3767949ejc.848.2024.02.22.03.21.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 03:21:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 350391F26454 for ; Thu, 22 Feb 2024 11:11:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D638D41235; Thu, 22 Feb 2024 11:11:38 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9391C182D2; Thu, 22 Feb 2024 11:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708600298; cv=none; b=ApqqNi0ZlzvezPuCJxMdC5xXXr+yfA0yKEOK0kBnpYXptKPeszY+28uGd9pxJrAuliYSTumpShgaSioMrxenXoCnhCM2OO4m1dlUbXw8CwhptS7ngikqRSHKKttI00fIb/NHOO1ViDlXpdXaCLD79H2/rKt9dy4Ab9ssdWP8pKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708600298; c=relaxed/simple; bh=Tec7Nco+P+UIw3l5ulA/FSj9KnCgvAvY+cEhEynMvgU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HlltaALqyzkqzNGRh2ZW/02PSqRqG+QWtu4Xq8iV6MvEyrefebvf6jIK5zM9w7QsK5wtvE+TrxLvOB4FlflvnD1I8pxKcjHo33ewuwVOieOqs53kGkBBdrYGAw06MHZHJDxvuu39EO6yw1OoJnWvPASzEq61UutW81MusgCfp90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5A1951007; Thu, 22 Feb 2024 03:12:14 -0800 (PST) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0268B3F73F; Thu, 22 Feb 2024 03:11:34 -0800 (PST) Date: Thu, 22 Feb 2024 11:11:29 +0000 From: Joey Gouly To: Stephen Rothwell Cc: Paolo Bonzini , Christoffer Dall , Marc Zyngier , KVM , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the kvm-arm tree Message-ID: <20240222111129.GA946362@e124191.cambridge.arm.com> References: <20240222220349.1889c728@canb.auug.org.au> 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 In-Reply-To: <20240222220349.1889c728@canb.auug.org.au> On Thu, Feb 22, 2024 at 10:03:49PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the kvm tree, today's linux-next build (arm64 defconfig) > failed like this: > > In file included from : > In function 'check_res_bits', > inlined from 'kvm_sys_reg_table_init' at arch/arm64/kvm/sys_regs.c:4109:2: > include/linux/compiler_types.h:449:45: error: call to '__compiletime_assert_591' declared with attribute error: BUILD_BUG_ON failed: ID_AA64DFR1_EL1_RES0 != (GENMASK_ULL(63, 0)) > 449 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^ > include/linux/compiler_types.h:430:25: note: in definition of macro '__compiletime_assert' > 430 | prefix ## suffix(); \ > | ^~~~~~ > include/linux/compiler_types.h:449:9: note: in expansion of macro '_compiletime_assert' > 449 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' > 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) > | ^~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' > 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > | ^~~~~~~~~~~~~~~~ > arch/arm64/kvm/check-res-bits.h:58:9: note: in expansion of macro 'BUILD_BUG_ON' > 58 | BUILD_BUG_ON(ID_AA64DFR1_EL1_RES0 != (GENMASK_ULL(63, 0))); > | ^~~~~~~~~~~~ > > I bisected this to the merge of the kvm-arm tree into linux-next but I > could not figure out why it fails :-( > > -- > Cheers, > Stephen Rothwell This fails because https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?id=fdd867fe9b32 added new fields to that register (ID_AA64DFR1_EL1) and commit b80b701d5a6 ("KVM: arm64: Snapshot all non-zero RES0/RES1 sysreg fields for later checking") took a snapshot of the fields, so the RES0 (reserved 0) bits don't match anymore. Not sure how to resolve it in the git branches though. Thanks, Joey