Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1127530imw; Tue, 5 Jul 2022 04:21:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrlUpEpXuxshpOsaLkC22nVvntKzaMmx9Puu3oLl34Qpjqn8BiW+PQh977xPVgd5qJDWzN X-Received: by 2002:a17:90a:6c65:b0:1ef:9479:372c with SMTP id x92-20020a17090a6c6500b001ef9479372cmr5355387pjj.21.1657020092714; Tue, 05 Jul 2022 04:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657020092; cv=none; d=google.com; s=arc-20160816; b=Ys4THDZHA4dC4J6XkqVGPvBVFd+7MV28NfqHz0KuVymugg5R9YvZS+P9cCTj7gb30J bL2F49OJ5aLrAkDZFBRH4rUNVPxkwi9TWjKNW/0RHwO5jRrUFFWSf0i0CuEfrIPdIl1d nUW3/iox4Pkoa5PBqqq3vfBVBZwU4zEtEu1AaGlLIqWBPp/uBO8n+7+hTn1tz1+FZbqk Vxr2p4/Cs2nKHPsQpCaPz5s6oToOunooaxevD0WqvKvR01/pgvmwIPNBlcHWULRsg3Lh NoOYJGgaFidr+Jbcp15b7hFc6qx0Wo5Eap9nYOaFpsKPo8/bfLR6w0ST0z29KuANQBna UCdg== 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=J8KHrlN3JRZv5Bvy9qE7AM3CVLRjyDCdjnpmj3r3aPk=; b=Qz+W/rJeArS021j5lT0Cnz+ZreS5/JrW6SG+t91m357LZzVIfNaCnHXPnZlpr0tMQn rGgmDz3dP30rUzek8Bp1PWUZybvfYr8hcZDptLC1LaGK2GvBQTC/KlTzFDAsKMCDxOgK qYhtm6NPWGv+cJwzKO9M44CFffYaCh8YPLcZr4UC6NKiM2HWO65hvvSMr4MyFDpCGt+n paeqNc7zh7AQXaut47yFcTBLutDcmEqS+BI1d06dFVvjj4sANf75rs+8CRsb6QT2o7OZ fDIkw6xeLSveOw/T6AUJV5hBTGkkRPiHpBUHIjxm/ydG9i5ljdgBqAVMMRkwZ+HH+wUD 3YXQ== 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 v30-20020a63481e000000b004127081a8eesi2207598pga.872.2022.07.05.04.21.20; Tue, 05 Jul 2022 04:21:32 -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 S233025AbiGEK6z (ORCPT + 99 others); Tue, 5 Jul 2022 06:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233184AbiGEK5p (ORCPT ); Tue, 5 Jul 2022 06:57:45 -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 5A827175A0 for ; Tue, 5 Jul 2022 03:57:21 -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 1o8gF4-0004up-Rj; Tue, 05 Jul 2022 12:57:18 +0200 Message-ID: <4c8c9d4c-1c6b-8e9f-fa47-918a64898a28@leemhuis.info> Date: Tue, 5 Jul 2022 12:57:18 +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 Cc: lkml , "xen-devel@lists.xenproject.org" , Andrew Lutomirski , "dave.hansen@linux.intel.com" , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , Juergen Gross References: <9385fa60-fa5d-f559-a137-6608408f88b0@suse.com> <8756355c-b586-3d1b-531c-72a04a8c047a@leemhuis.info> <05b5e672-0a1b-2d00-a879-b5127a94973f@suse.com> From: Thorsten Leemhuis In-Reply-To: <05b5e672-0a1b-2d00-a879-b5127a94973f@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1657018641;7415d32a; X-HE-SMSGID: 1o8gF4-0004up-Rj 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 [CCing tglx, mingo, Boris and Juergen] On 04.07.22 14:26, Jan Beulich wrote: > On 04.07.2022 13:58, Thorsten Leemhuis wrote: >> 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? > > No progress and no alternatives I'm aware of. Getting closer to the point where I need to bring this to Linus attention. I hope this mail can help avoiding this. Jan, I didn't follow this closely, but do you have any idea why Dave, Luto, and Peter are ignoring this? Is reverting bdd8b6c98239 a option to get the regression fixed? Would a repost maybe help getting this rolling again? BTW, for anyone new to this, Jan's patch afaics is supposed to fix the regression reported here: https://lore.kernel.org/all/YnHK1Z3o99eMXsVK@mail-itl/ Side note: Juergen Gross recently posted related patches in this code area to fix some other problems (regressions?), but his efforts look stalled, too: https://lore.kernel.org/all/ddb0cc0d-cefc-4f33-23f8-3a94c7c51a49@suse.com/ And he recently stated this Jan's patch is still needed, even if his changes make it in. https://lore.kernel.org/all/c5515533-29a9-9e91-5a36-45f00f25b37b@suse.com/ This from my point all looks a bit... unsatisfying. :-/ Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I deal with a lot of reports and sometimes miss something important when writing mails like this. If that's the case here, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.