Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6496754rwd; Mon, 19 Jun 2023 08:05:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50fvWfnzXKCa8Qm6cNKd9DHBr4d8jty2nAjkAW+EIpN/qAlKVEAEkbvHCBS9PLSqZQzOu/ X-Received: by 2002:a05:6a20:3d2a:b0:122:6db3:c449 with SMTP id y42-20020a056a203d2a00b001226db3c449mr132896pzi.51.1687187146505; Mon, 19 Jun 2023 08:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687187146; cv=none; d=google.com; s=arc-20160816; b=01svVB2TSqIWldjVV+QJVHNlMXnYzzpoFwvqdpGROpgEEVu+KJQU5aB4QK1Zd8DC7r 4XHNKHFMkOwvlxncflYECIF6HU0qwJocBAPhEWbOkSrQsewcK+2wdF1gMnfMNH72oT4l wj43SM/uxqNk4BRVvJ3XGOj5BqLA1Ubr1DuFMHuco2BeCKKDHRTQBjAf8SK3m5MXHZOQ s5/qNLfwtqcVbbZbPo6NxhJ90pRwWJc08AeKmIO9K1RWWLJ7fD7uQzomCc8QoxDeWSZw 5gJhewKK8ObWkB27XffmmnymBlC05eM8Es0kw0292dpRJv0I943DH+OSu+5R7jRDsVk7 /Yog== 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 :dkim-signature; bh=oYKdPeBEwTAUlAiZzuVusNxVM+kxlyg9CTET+oS2gLM=; b=HXsXG/lr2UtfWBBmtvv6Rl1lu9xSzJJdPCIh6vc/Az/Z+9ea0DPZ2xt8SbqsGKn2u1 2k0e12Fdsk4dH/TVrZKlElVGafj0NAgcbNpOF4NFscRaCK02JWaqBLMKoKK63EP72eJ0 1xlH9J9AtHT3wuNuLInIjhblef4tceslGt0mQsuxOjbCHhS2AltIJGO6Air/jKNHlLbT +CHWN3kuT4UtZaJd2Myal9W0cdObXmPs9TMVqtk4wdUXljEAG37N0YzfG8pX5sb00DYN 7bL/jkYdRRhOZ5AYNedaXt40x+nuHJcBTxPWb6CFuzg//a81zEYnP1I0NxTV8FOsFm03 owMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MqKXXFb7; dkim=pass header.i=@alien8.de header.s=alien8 header.b=dqSkpN5z; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 187-20020a6301c4000000b00553a56f7b34si4013219pgb.788.2023.06.19.08.05.31; Mon, 19 Jun 2023 08:05:46 -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=@alien8.de header.s=dkim header.b=MqKXXFb7; dkim=pass header.i=@alien8.de header.s=alien8 header.b=dqSkpN5z; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231997AbjFSOug (ORCPT + 99 others); Mon, 19 Jun 2023 10:50:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbjFSOud (ORCPT ); Mon, 19 Jun 2023 10:50:33 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D4F01AD for ; Mon, 19 Jun 2023 07:50:32 -0700 (PDT) Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C895C1EC0398; Mon, 19 Jun 2023 16:50:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1687186230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=oYKdPeBEwTAUlAiZzuVusNxVM+kxlyg9CTET+oS2gLM=; b=MqKXXFb7O4SKaXiXMiAhDFApA6UN1Sm6bcKn2Txd5rbU1vruwZm6lkE9reelWKIZUYKJEl dT7aXj3miTJfIb1otsklkB0ndWGEWyhJojCGL9gQZyf/WVN7yEXQdUJ6MF04HVMt8+x/HA DFAvyI+rkYktt+po3mOxAXp+De/uZtY= X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CDTyTjsdyFE6; Mon, 19 Jun 2023 14:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1687186227; bh=oYKdPeBEwTAUlAiZzuVusNxVM+kxlyg9CTET+oS2gLM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dqSkpN5zE8/WvNaKBY83qDmazt3W88AhxN4B0sxIdEHfsePI6hXivjVJF03ke0Lp4 Bp3shhLzwRCso4iy10AEprbn1A6LZvv7qKqS5Rwy4XvtN1u+um+3APN7sv/t5kI8Jo C5bPMeVZxMxitjw7lt5duEBmYuC4t4kjtdS+6+OQYQROqm6HLKXNQI8W3XZznMApw6 ZtiTHwN1tf8racVBqmCIHrqaGNzOupQ8m7R+zrtcLjhE1qV0Ga6iJqtOQMUJMUkd2w hozAsm6IvQ9VhdHigExJJGSiSBv4kxOy+dQkuNghwa/OHo9BQLz4eAi8zckyELCgNA ZRUxgXU/d7TU6YshNTVFRQopQCjXvNPwXxwp8x+ZpsaBH/OWvurqFPs05v6zTsBynJ isUCOKZY6l3mS+k97hvKQfhd78qt0Tq37AERy+vPKwwlp4rMoliHV7UqaL/fgefFu4 7xcmJ5HPVtRxHobrpg1budF1Y1G2l3dA7DCoNuI2M2Yb2tXwEwF8TTea3lzo7AXQFl R2UJsIXKQA/zJYfnwOFdMhroB7V44uqsYFEr1HjqtwAu6Nad++OOTFJllj6z6n3WSm lC80oRXog16T0BYFvF/8CncLHowAZ2Tkm+fX/26sG5U7WFf7Bdqg349X3eGKqSyqao 6TOihQT+f4WAdyZgam8ll8KM= Received: from zn.tnic (p200300EA971dC5b2329c23FfFEA6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971d:c5b2:329c:23ff:fea6:a903]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 62F5140E01DE; Mon, 19 Jun 2023 14:50:16 +0000 (UTC) Date: Mon, 19 Jun 2023 16:50:12 +0200 From: Borislav Petkov To: Dheeraj Kumar Srivastava Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, gorcunov@openvz.org, suresh.b.siddha@intel.com, Kishon Vijay Abraham I , Vasant Hegde Subject: Re: [PATCH v1] x86/apic: Fix kernel panic when "intremap=off" and "x2apic_phys" are set Message-ID: <20230619145012.GCZJBrJKuiape5djVt@fat_crate.local> References: <20230616212236.1389-1-dheerajkumar.srivastava@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230616212236.1389-1-dheerajkumar.srivastava@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 On Sat, Jun 17, 2023 at 02:52:36AM +0530, Dheeraj Kumar Srivastava wrote: > x2APIC mode requires "Interrupt Remapping" to be enabled and the > "physical x2apic" driver can be used only when x2APIC mode is enabled. > However when "intremap=off" and "x2apic_phys" kernel command line > parameters are passed, "physical x2apic" driver is being used even when > x2APIC mode is disabled ("intremap=off" disables x2APIC mode). > This results in the below kernel panic: > > unchecked MSR access error: RDMSR from 0x80f at rIP: 0xffffffff87eab4ec Not a kernel panic - that's a warning about accessing a non-existent MSR. Can you send full dmesg? Privately is fine too. How exactly do you trigger this? What hw? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette