Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6548624rwd; Mon, 19 Jun 2023 08:45:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gQFtZvD4oU8ICQc3Sj+LEAIT3GSTEYjLexwpVmqsAhzG4ccrB4cmCiBtEghLu36rHSDBz X-Received: by 2002:a17:902:b287:b0:1b1:c362:1c17 with SMTP id u7-20020a170902b28700b001b1c3621c17mr1084377plr.34.1687189530477; Mon, 19 Jun 2023 08:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687189530; cv=none; d=google.com; s=arc-20160816; b=qGVAdMW38sPfRXp+tYuDKI8/Iuyai2LYyYDovEmgRl2uHyyH/yYv85Pww4cYxsYo0V e3p4pzTTTyaI7xxyqa5MWlzm+ET9wWrHEPjyvXHXqnsk2Kzy6yvips75W3eEAKyzpQNj G2om7OOByz0l1EfO39/+Tp+7HTvoDwrq7LUl0oXH00Evyt79DFQb6UKVJSsu8RahVMu5 9mrYNn1t4SeucLmGyOpanAO5l4uXmf03hyBvMar9GQccjHONH0xreeVbrFjO3/hUua71 2aZUnGKm2PiMt6WFudEHKlyOn87BNJh3D4Zcyw9nbyl5jZbf/i+Mzt774evjbZ3Rj1dD 0IGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=OlByzkjBxCCoZPdq7IqMTUU0TdOfFw/RoPP6ta6MsEg=; b=GlXsW7A2pfei+30vbobZrWd7drX+SIatym75lF6ZKcxspBfwUFM6aNt/AhRX7d65re 4YRX3+p1gkK3BTBXMiDObGfLPN194t0sPEuyQIaDWMsLoKqzgdiN4mxNOiQik+VlQoVD ItcMOVfg5Xp/kPADygiI6nB3IF7mp//xzllHSXtC/RTXjBpW60eXuUj6QxsoLerm8hQu xAOXDPo8qUYsUjs7+WaiLhEsKCuun/Pb8tk6gNPalz3S+kiqMMY5CwIyw8DyssXQl6qe h0IcfFTcQPHCaijwitwQJ4F58RirDKpuToFNJU6p1lGIh4AMTW4/DZ4p4WjgX6iioR0S lLPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OJndYAmz; dkim=neutral (no key) header.i=@linutronix.de header.b=P895Flm1; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a170903124a00b001b3e8a24232si54197plh.186.2023.06.19.08.45.17; Mon, 19 Jun 2023 08:45:30 -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=@linutronix.de header.s=2020 header.b=OJndYAmz; dkim=neutral (no key) header.i=@linutronix.de header.b=P895Flm1; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231753AbjFSPZt (ORCPT + 99 others); Mon, 19 Jun 2023 11:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231765AbjFSPZr (ORCPT ); Mon, 19 Jun 2023 11:25:47 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFB4E10F for ; Mon, 19 Jun 2023 08:25:43 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687188341; 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: in-reply-to:in-reply-to:references:references; bh=OlByzkjBxCCoZPdq7IqMTUU0TdOfFw/RoPP6ta6MsEg=; b=OJndYAmzwlCvlvcQALNMSD+ywOsIeWhWu3Cyixs1oMxmW2zwTTqk4NNcSIEJZxnv62phRO wVoYBQ5MYOIQUtCN82meFx1gzsZyZqekVkdRKGTE1dk6sPw6gLym3/ktqLTenzmT8qYGXx E8gqjTChs9J4+WUJp/KPj+RyQ1D9w1yxE5+Z8wtT/HLJ90i0Ln0VtBHHKnw1OHTihT8k/Z T01tmYnEqtCp6bSlSCxJm+717GYcrJE7yucCb2Qngjass/sh9tufu96pfNg/3s5X9Vg6c+ VkPb39h76nu5+xPdvBzIYkBKsv64p/eLS6imqvaD+SustPq/MHL1kHza2VgQ7A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687188341; 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: in-reply-to:in-reply-to:references:references; bh=OlByzkjBxCCoZPdq7IqMTUU0TdOfFw/RoPP6ta6MsEg=; b=P895Flm1FoG4VYzeJtEf+6sjjAQfWCLSGFQRLJ5iKZHtv2VlnZAkDPH9ri0UvI6xndQZKs KQN+0+bt+OptdRAA== To: Cyrill Gorcunov , Dheeraj Kumar Srivastava Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, 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 In-Reply-To: References: <20230616212236.1389-1-dheerajkumar.srivastava@amd.com> Date: Mon, 19 Jun 2023 17:25:41 +0200 Message-ID: <874jn3qxsa.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Mon, Jun 19 2023 at 01:24, Cyrill Gorcunov wrote: > > Hi! Good catch! In long term I think we could switch to use > x2apic_state variable instead since at the moment the code is somehow > hard to read and remember which exactly deps are to be satisfied to > enable x2apic mode. It's on my todo list for a very long time. Unfortunately that list is growing only into one direction...