From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD53D3D6473 for ; Tue, 7 Jul 2026 22:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783462684; cv=none; b=be6kwnhtPNmhI6IwtnfkrnfuW49fPgldC4tV5lTsEMojXjAfDdYLPIxfZG7g+HEIhg3zNHBx8tiXOmTqe5JmYNVvX3eQkC4KCuIVl1csQpVBloVo7Gwf04fOVqTsmnWPOu5Mnk0ssBw2oYs48NFl/uWZPwoKTUEwqLR6ZgC/Pmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783462684; c=relaxed/simple; bh=Uc0zof6LZh+Fb0Drs4uaiCtz6yJZ87/MeeJ+NK3MAgk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bcIfnvEarRA30CpGq6cHVUCH79gAE3hCpLd9tla/UUp/OtzYLRFJ2GQctkmL3SAMHt6FBYuVbe2tx38N6+oL23u4zkA+B420IKvBihsX5Nm1ysV1+JFYsRuJlfaEkY9W6HnoUqmd62+MLbpNM+hGe0fsfKRoo1hwtvcbXDKwXDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dOgcRsIJ; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dOgcRsIJ" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-8481fb4324aso17946b3a.2 for ; Tue, 07 Jul 2026 15:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783462682; x=1784067482; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=dzc6zUnzBc09yCHRWQIcDGGskftQH+8tg7FFfD1h3jk=; b=dOgcRsIJ54mk7wqh81gJqyrtH9s8IBzZE/IAvqsmwUKpaMTe56gWW18k0ITIVE9nHG 6CCRDh8IMb/i1gHjQyZ/wpGRQSlUJxahkraZotmla296xR7cX8NwWtzMx10haye4ZhPN 0qxuEmgwKByRx5K3uZ2a8/Zqkimc2+u6U6yG2xJuj/r5xCJ4t8Gu03DEe4EcRkl9d9PU GIEtaI0seC+vq7pSm5LdAucl/AfXbbaXMVKC7QEX8Kf8EB/XPw9VSMrC/4w5TQEmj2cU E4TWVoKr6AOfc3ZJEH/bPaaxAprsObnwm0mAbGM4uA27e2yIhXTOSExQ1Zi2QWGuyIfR ZZIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783462682; x=1784067482; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=dzc6zUnzBc09yCHRWQIcDGGskftQH+8tg7FFfD1h3jk=; b=CDQcuP+EW7eM0XYa0oUAoBxaII8RYANVmVOiiZmpIYpkFmI+qYiuK5a4qlRg94l6GW xJXdgpktNz3CZWmoZ782xLPpMmnZOKWNGID4ABQNAIMDwTdplc4BM6cAkQKeDCegMUdG lguahpWJTwhYBjRUH9kxaASPE+iK29cCtpOBcBmalLzoPcP0/iu6D0F9useErGeeYvvJ /zxSdmH/WFhY46rq8Sj4jr08/mcxfU+FMaF5Phv05UEg5eaOIR3i4Y4MmNBFVidiBwBW dDDrZj5UTR4cPp+WtEubpuy1qDg9p269i+iTFbukf8YPYADxV7WaYAwJiHCdj9dstgOd saJA== X-Forwarded-Encrypted: i=1; AHgh+Rq+bAO3YXFO6YEgMrRj+8GGFkH6Be1GHUOyk8Ks0q8/lLAEsBwQyyuJ4qV08lHDVVqmmknDfHdbdfyGtTk=@vger.kernel.org X-Gm-Message-State: AOJu0YzoCcxu9J1dYF8soTIiUCwL3OjcRulMjzu0xUTWmIl1Iso4bBLn G0cWT/huwg6R/k0X5R7bEzmKcXL/RT1uc6+Lt3z7furnHxkz3IE+51lBh631rIVe X-Gm-Gg: AfdE7clT43tb3YBVGZfzcTRVeT+ckD7YKhBZkLCvPDCeAEQQ55IIq/hIuRY5zvKvXza 9u4z2DwC/jtJCSE0X6djSTvMJnjYqmCov1lt1yEyR2AOoW0RYRKC++NsHfvGxXyUQGLRGc1jEJt u4QbrAgRestIyA/qa/72q7LJLzWaigE9BqnrbgaAVRKgvy3PQlNmW0XJl1sW2KN1tltEI0O19N7 zZ86NsfPuoDMMjv/l17oaK35Eqlu3MsYv56Vifuk81L+Dkda5qRHrE/X8Zxfg1iMQyjDVClXXGp vMlB10jI6M5Qj+8oMecdDtPim6fxLnEwVxXCTmBNBnirnyLNc9hbxJeQ+f1nhtNWDARaT9bz3ig hsn2YYqXtyuFaX82rZB4BMsC9Wj0MxrTf8IeZO5aQL1mBKF97jBfQVR3JqokZdOHp4GNnzpLRbL H106oVjrvmWNDpxoDjbs7409lYOOkWYRKYT/WyEyoOIMobaGMvZ7mZ+LXi43MBvbN4nf2PUywB5 EvWffpNxQ== X-Received: by 2002:a05:6a00:178f:b0:846:7507:4e07 with SMTP id d2e1a72fcca58-84842f9fe4amr35250b3a.39.1783462682220; Tue, 07 Jul 2026 15:18:02 -0700 (PDT) Received: from ryzen.lan ([2601:644:8000:7a86::e34]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6b9b389sm6180281b3a.13.2026.07.07.15.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 15:18:01 -0700 (PDT) From: Rosen Penev To: linux-pci@vger.kernel.org Cc: Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), "H. Peter Anvin" , linux-kernel@vger.kernel.org (open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)) Subject: [PATCH 0/8] x86/pci: consolidate x86-specific PCI quirks into arch/x86/pci/fixup.c Date: Tue, 7 Jul 2026 15:17:52 -0700 Message-ID: <20260707221800.920270-1-rosenp@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series moves all x86-specific PCI quirks from the generic drivers/pci/quirks.c into arch/x86/pci/fixup.c, where they architecturally belong. This reduces the ifdef burden in the generic quirk file and improves build granularity by gating the x86 fixups behind CONFIG_PCI_QUIRKS. The series is organized as a preparatory commit followed by one commit per vendor/family, keeping each move reviewable. Suggested by: https://lore.kernel.org/all/20161221142607.GA8594@infradead.org/ Rosen Penev (8): x86/pci: gate arch fixups with CONFIG_PCI_QUIRKS x86/pci: move Intel chipset quirks to arch/x86/pci/fixup.c x86/pci: move VIA chipset quirks to arch/x86/pci/fixup.c x86/pci: move SiS chipset quirks to arch/x86/pci/fixup.c x86/pci: move ALi chipset quirks to arch/x86/pci/fixup.c x86/pci: move AMD x86 chipset quirks to arch/x86/pci/fixup.c x86/pci: move x86 ifdef-gated quirks to arch/x86/pci/fixup.c x86/pci: move remaining x86-specific quirks to fixup.c arch/x86/pci/Makefile | 2 +- arch/x86/pci/fixup.c | 2284 ++++++++++++++++++++++++++++++++++++++++ drivers/pci/pci.h | 3 + drivers/pci/quirks.c | 2330 +---------------------------------------- 4 files changed, 2316 insertions(+), 2303 deletions(-) -- 2.55.0