Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp69575imw; Mon, 4 Jul 2022 05:27:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u2KMOoImYx800q0Tyq4pLbQJ6/KNEqNoJWqHAKiueW5LKe4Wad2VFrYBbJJhDOdYcu+G43 X-Received: by 2002:a17:907:3e08:b0:726:2af1:1d5f with SMTP id hp8-20020a1709073e0800b007262af11d5fmr29252970ejc.235.1656937664243; Mon, 04 Jul 2022 05:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656937664; cv=none; d=google.com; s=arc-20160816; b=XclVrtNmgdjA6IM0Z5QkVzDGY+fEPX3+Q551VAWulKq4ONzQFw74OlQs7aiYh6vttl hQTUcbU5GuXiZvPMsVj+8RycnIJRYK89p+Kud3zRVxVW2XvJJXFmxWmfcfgPR5obEtIR N7K+YqHL/1o6u6ioJ6I8q+1WP9rlDT8mGkBE1/5tu92gx5E1CpjB3dX0GPyqBrvzrHy1 JHr8uw2FN/iZ704RZdY+PfRvCVkXjPLC36jdZDOaGi9ZyQl3+nA/ZKiKhWKizqoezVIe vXXHez4s3dBWhQYnICYugWtPQOpYXf8PDXiCJ+0h/e8KV3uj+ESsKPwJOCtmP0zd7sID ye+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=wRm6w45utcQxOtMUCBiUhNNiyjmIZBXijw0W3dCFfOY=; b=Ex04z6fZhSchsmTCek6RJAnRfntWwH2eSvmnHJzmlU5u+UmLTTY6+J75scSKgVEOF1 a0FepOSTCEkz/8/9rMei9k5Vu0DXG/VaFKLxRK/bINXPdKFAbaoGt8EvYwOrz9eNjKId KKFo53Ddr0XLBhuaqTNJ1ygSZl+1h7xHTdPfveFt/s3tNf3AvjC5YbWeqB6oZiauc/cT iKnoSu1ZaeHrTbGiYNiMc+IqdLA2J4UZs5NsU0mcCYyWjaJVE6+e84QTZPIklkR2ZNse usQ+Me7WbbX+1rn0JJhiOpH7oAYZEL6cyPSNjeRVWtOpEs0G/QIE1HFUVZ1P+c2rq/xk ntqw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn9-20020a1709070d0900b007262ba00479si10943139ejc.739.2022.07.04.05.27.18; Mon, 04 Jul 2022 05:27:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233297AbiGDL6y (ORCPT + 99 others); Mon, 4 Jul 2022 07:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbiGDL6u (ORCPT ); Mon, 4 Jul 2022 07:58:50 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 494361147F for ; Mon, 4 Jul 2022 04:58:46 -0700 (PDT) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1o8Kiw-0000tH-DU; Mon, 04 Jul 2022 13:58:42 +0200 Message-ID: <8756355c-b586-3d1b-531c-72a04a8c047a@leemhuis.info> Date: Mon, 4 Jul 2022 13:58:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Ping: [PATCH] x86/PAT: have pat_enabled() properly reflect state when running on e.g. Xen Content-Language: en-US To: Jan Beulich , Andrew Lutomirski , "dave.hansen@linux.intel.com" , Peter Zijlstra Cc: lkml , "xen-devel@lists.xenproject.org" , Thorsten Leemhuis References: <9385fa60-fa5d-f559-a137-6608408f88b0@suse.com> From: Thorsten Leemhuis In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1656935926;57eec001; X-HE-SMSGID: 1o8Kiw-0000tH-DU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 25.05.22 10:55, Jan Beulich wrote: > On 28.04.2022 16:50, Jan Beulich wrote: >> The latest with commit bdd8b6c98239 ("drm/i915: replace X86_FEATURE_PAT >> with pat_enabled()") pat_enabled() returning false (because of PAT >> initialization being suppressed in the absence of MTRRs being announced >> to be available) has become a problem: The i915 driver now fails to >> initialize when running PV on Xen (i915_gem_object_pin_map() is where I >> located the induced failure), and its error handling is flaky enough to >> (at least sometimes) result in a hung system. >> >> Yet even beyond that problem the keying of the use of WC mappings to >> pat_enabled() (see arch_can_pci_mmap_wc()) means that in particular >> graphics frame buffer accesses would have been quite a bit less >> performant than possible. >> >> Arrange for the function to return true in such environments, without >> undermining the rest of PAT MSR management logic considering PAT to be >> disabled: Specifically, no writes to the PAT MSR should occur. >> >> For the new boolean to live in .init.data, init_cache_modes() also needs >> moving to .init.text (where it could/should have lived already before). >> >> Signed-off-by: Jan Beulich > > The Linux kernel regression tracker is pestering me because things are > taking so long (effectively quoting him), and alternative proposals > made so far look to have more severe downsides. Has any progress been made with this patch? It afaics is meant to fix this regression, which ideally should have been fixed weeks ago (btw: adding a "Link:" tag pointing to it would be good): https://lore.kernel.org/regressions/YnHK1Z3o99eMXsVK@mail-itl/ According to Juergen it's still needed: https://lore.kernel.org/lkml/c5515533-29a9-9e91-5a36-45f00f25b37b@suse.com/ Or was a different solution found to fix that regression? Ciao, Thorsten