Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp432126pxb; Wed, 25 Aug 2021 06:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWQuF9y0acDOly6G7rUcQwzZcPFnNHQKqGWfdRJdCgp3mkhjYBia/PoGd1ceHHxVru1C// X-Received: by 2002:a05:6638:3781:: with SMTP id w1mr30481451jal.37.1629898976806; Wed, 25 Aug 2021 06:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629898976; cv=none; d=google.com; s=arc-20160816; b=mVlMbvp6POneMo1pIArIn9anmy7TsDGlatQbTlKiqryvsWNlcsFy1MsZEks4D/OVNr 4wTqlbh+SOsyHYw1HI8slr0ZKHUmH5TRPyWAjKT9nJ0IJzXpRCUxswgDYO6LZzhZEti9 nWLjAvcerhJSWWfq+2BEkNeW3I33SGSe/eD9NVLjXbp8FPfF2IgYiwUMhCFKRAjcRbFa lCxvvcOkJPDNwRrD2hDftiLlItVhcXe8VpOefZ3UcM/RVlGYFakMFUcCVtoeQrynBU/c Son3nf+Yv+PbUnR0YDSsAXqLGIsdfCplCxNK7VyJTxKWMIKZ2QGCNWQVdPKMu4Lp/dxk wGYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EUpcw4pk3MekPcDv/py23Kdgnb7Z7cKMQP3tvBu30oI=; b=nSCgVQC8lResrChmm9ziIdMYfvvV3vlVjV5rmkV4IJkTIh6xaHVjmwBrof6v2x4/fM frxlW07R/6BzHvlD0oxpu46NpCLN1tos8NriqlCLRfUTIhRpcAaVv2Y2+YR6JFaR7JNN 23b1ja+nj0YQbsAFos6rpOxBG7Y1y9IdJQaF1PzarvN0+7cgiAOam0rIMelp1ViV0y6B plo21fuDl0qNsv/3OE/HB/8IOLBRoU+NYu59Rd0RTBtfkuVxWWRjFhqzgFFfVqdQo2Qm wj5kH4Ky6y/Nb8iqhrueCyySXc44oRV89jFDwqrryBpWLmu/ggM6xmXczXkeyM6vx85E 02dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=douP5pr0; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si25488924ilh.18.2021.08.25.06.42.45; Wed, 25 Aug 2021 06:42:56 -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=@suse.com header.s=susede1 header.b=douP5pr0; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239453AbhHYLcv (ORCPT + 99 others); Wed, 25 Aug 2021 07:32:51 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:38242 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239211AbhHYLcs (ORCPT ); Wed, 25 Aug 2021 07:32:48 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id F3B4822165; Wed, 25 Aug 2021 11:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1629891121; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EUpcw4pk3MekPcDv/py23Kdgnb7Z7cKMQP3tvBu30oI=; b=douP5pr0lu5zQpF6lEKV2wLztJFOGJhe86+vyGcQ6hF9xECrC7P3GTyy2cr4xA36AhmPnd BhYpCVdcnQ4FraXu5jag4luHLv+pqMZXzn0Bnsc9DKtxL/lU1wAYwXYfeXmvfbmfLNUgKy yvCJqECRTe+jcbbM1yAKQJyr29ocYJg= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id A10A113887; Wed, 25 Aug 2021 11:32:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 8bzAJTAqJmHPHwAAGKfGzw (envelope-from ); Wed, 25 Aug 2021 11:32:00 +0000 From: Juergen Gross To: xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Subject: [PATCH] xen: remove stray preempt_disable() from PV AP startup code Date: Wed, 25 Aug 2021 13:31:58 +0200 Message-Id: <20210825113158.11716-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In cpu_bringup() there is a call of preempt_disable() without a paired preempt_enable(). This is not needed as interrupts are off initially. Additionally this will result in early boot messages like: BUG: scheduling while atomic: swapper/1/0/0x00000002 Signed-off-by: Juergen Gross --- arch/x86/xen/smp_pv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index c2ac319f11a4..96afadf9878e 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -64,7 +64,6 @@ static void cpu_bringup(void) cr4_init(); cpu_init(); touch_softlockup_watchdog(); - preempt_disable(); /* PVH runs in ring 0 and allows us to do native syscalls. Yay! */ if (!xen_feature(XENFEAT_supervisor_mode_kernel)) { -- 2.26.2