Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4896444iob; Mon, 9 May 2022 04:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVkVOEyjVsX7KA+4/WAoFILAFJsOLOPPOtRIdYPnT9zGNHO3pXZe1xfPeF5z38+ZmYDz1i X-Received: by 2002:a62:5ec6:0:b0:50d:a467:3cb7 with SMTP id s189-20020a625ec6000000b0050da4673cb7mr15071016pfb.85.1652095218371; Mon, 09 May 2022 04:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652095218; cv=none; d=google.com; s=arc-20160816; b=i05SUqP+0H2xpz6TZeIh9jKGzumoFaQLxjPRXFkTXWobqzv8sU8CH4J/Ce5dKXseSC QNOBRawrGmocOiCsbDzsc6ypJYHAdPYO/6IDp9jP8qgz2J/O4yWOIl6lcD0TTbBORGG+ D336PXK4VAL0aIG0c2SrIq7KvTtbU4piZUKFFGOO7TrqU1A4xzGDQeRQcSOEFasb/N9T k91BbYZFxol9LXEmIT5dIJuU4hXrmKOAAowU9pv4LB62LjuQDjmwPxrV/cT8lvGdO7IU CfrIXM0gn+mftjIupBHt8z34CRC8s13f3ZUS+d47x6DMOBLhh3Vuwgr750JXx3hmglGV baoA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=tM2bqpnWq3TURhjdPEpDnGm/7GFfCQ3VVx3FiW0azaQ=; b=KRe3pDBvKzl7805yKb6uqRnjnUBqm5eK6kxZ6dDqlghhpzWSe2DL8VDnw4NavzLQca lycFkL3/Zw0np6jfEn4odw5Bv8I32YzZQD82v8E1QHEXOHmuKNQMkqr/eH1hvhDiY0+k Zpm65evMU89SRCwaIitqwyRkoYfU1QEK08r/TIvkCkMe7Mm0XFaIFLwoB2LXO0/KsK78 vthfsyJ+Kc//Cx5UO7ElyWPjVWJG1ksQ3JEdu7z3o5c/+9o+p43la+vVhzPaWk8Sn4vK J1iK7AitDdCQk9+1HS9Q+N7fRfcZQEKZdf4AjQVKSQ/GR+T/cJPQTDeHY0dwOFnRWu6g aZuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BZXX+xcS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y13-20020a17090322cd00b0015838c0eedbsi13050073plg.506.2022.05.09.04.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BZXX+xcS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 032AB2532CE; Mon, 9 May 2022 03:30:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358511AbiEEXYQ (ORCPT + 99 others); Thu, 5 May 2022 19:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235666AbiEEXYL (ORCPT ); Thu, 5 May 2022 19:24:11 -0400 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CEF02613C; Thu, 5 May 2022 16:20:29 -0700 (PDT) Received: from [192.168.1.31] (097-089-247-249.biz.spectrum.com [97.89.247.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 7FDD54107B; Thu, 5 May 2022 23:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1651792827; bh=tM2bqpnWq3TURhjdPEpDnGm/7GFfCQ3VVx3FiW0azaQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=BZXX+xcSVCcCi8Gw4Dt9LNRoddJZ/j7pP5Zb45OhdkcMm9WSBwjK2GykoFXiWHZFY O8qMD0q1+19AfnMLm7CrKzOWORZWYr08AJLca59mImPxSYqKcc0SqN8fRrun76fCcF CbBmYXIar0RAsNSQCs6P9+tkfBnWE8lUtmTZd5P4gjOksV7qrt8pOkR7FVos3Y2NKH HocBMy7VVnJacqouyOyiUShkWTDtMMmBDHMKZo+Cnd060EM38pZB0Ij0AcRHIIIVpR Bijd9ZfVZHAtyTq/cA10tbWsnu34vbs9Mq8/DQ3uPwVpE9RHSjnu4iVbPeOdZcogpk /OZ+D9hFMoh0w== Message-ID: <35c5a001-61b0-09d7-393c-b46836d0b676@canonical.com> Date: Thu, 5 May 2022 19:20:24 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Issue With real-time patches on 5.15.y Content-Language: en-US From: Joseph Salisbury To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, dave.hansen@linux.intel.com, linux-rt-users@vger.kernel.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SCC_BODY_URI_ONLY, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 5/5/22 19:18, Joseph Salisbury wrote: > Hello, > > I ran into a build failure after applying the rt40 real-time > patches[0] to an Ubuntu 22.04 kernel. The Ubuntu kernel is based on > upstream stable 5.15.y(5.15.34 currently).  I believe this patch is > the specific one that introduces the build issue: > 0086-locking-Allow-to-include-asm-spinlock_types.h-from-l.patch. > > After a bisect, the following commit was identified as the cause for > the build failure: > b50854eca0e0 ("x86/pkru: Remove useless include") > > This commit was added to mainline as of 5.16-rc1 and not Cc'd to > stable, so it should not exist in 5.15.y.  However, it was purposely > added to the Ubuntu kernel to enable x86 AMX support[1]. > > The real-time kernel build failure can be resolved by reverting commit > b50854eca0e0.  The failure seems to be due to the removal of an > include of xstate.h from pkru.h and caused spinlock_t to not be > defined.  The commit would only be reverted for the real-time kernel > and not any other kernels.  I wanted to see if reverting the commit is > the proper approach, or if cherry-picking additional commits might be > a better solution in preparation for additional changes that might be > coming in the future? > > Any suggestions would be greatly appreciated. > > Thanks, > > Joe > > > [0] > https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.15/older/patches-5.15.34-rt40.tar.gz > [1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1967750 Also, the following is the build failure that happens: arch/x86/include/asm/pgtable.h:55:8: error: unknown type name 'spinlock_t'    55 | extern spinlock_t pgd_lock;       |        ^~~~~~~~~~