Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1937674pxb; Thu, 4 Nov 2021 11:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxapCl+w6if5oDM1NNVwl9w+koAwG1qH5HOtPPOTtUU67wuU9X6rUWvigytfneI3StyV3Sd X-Received: by 2002:adf:f54c:: with SMTP id j12mr13140122wrp.20.1636049093925; Thu, 04 Nov 2021 11:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636049093; cv=none; d=google.com; s=arc-20160816; b=Du8Dl+s8FiGI0ntlc3YMQE1+Jbq79NeavX1L1jgzM2u4Hm/IVBq32AyJwucu2V1e6V nFY6hrcNV1Idk5sEHqiz4UGoF1lRA1JAH/b2iMf9LiDp/hCmhj1cf89aosMuXMa6EN+H k+AJ1fW9BPk57iu4ULFOX2HJ8L4EcHMd4Lm0cKvHVHOqYjlApA/7AdmOOjjteo+Rv1FE ZqNu9HJy8gWg/q8/EfgLdE4BoyLbPm36WZtRKtk7wYsPeOY31xY/MGscO/khEZjDWi69 K3RLYOEYFHXMNOEMMSur+Dx4ujUnMpHBUPvriQldg7fF88koSjQgQXbsYs7i/cyo3SSe L6PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NKNDzUUziQnTqFzObLH46BbiBcwr8ApQj1HATdGWj+c=; b=02fwdlQYawRCxVBtGIzN7pg4xKHx+R3FKPKv3p3TsJKjjA08WIBddlbeCoi6bHJAqk o6q4mJwtyk3v9GbMyHAna4gFoZIUW4ij19KX0dt6a4w3MjuYULvy1U7SulWQwzLvPwIN +HmjFjrtK0qjWxc1417dUxRw+iNh0LOU5KWEaVfnB5v/G/B0ClaffxwNX4reUf0HzE6b qmgYVLZVn99XdAMthXSZLk4kG2AnCey2UtRH8GGApcf4bX74ncZmRe/32+zqgiOmxm/a D/bkBjObPBsDzD1g2x+jpPehM4KuMLEQAtJyPByvaWTwcWX6uQQkstO4+QoBI5IfYl4I 3cQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si8128931edd.600.2021.11.04.11.04.21; Thu, 04 Nov 2021 11:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234051AbhKDSEP (ORCPT + 99 others); Thu, 4 Nov 2021 14:04:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:54226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234033AbhKDSEO (ORCPT ); Thu, 4 Nov 2021 14:04:14 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B9AB761207; Thu, 4 Nov 2021 18:01:36 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mih3O-003WTf-Na; Thu, 04 Nov 2021 18:01:34 +0000 From: Marc Zyngier To: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Helgaas , Thomas Gleixner , Rui Salvaterra , kernel-team@android.com Subject: [PATCH 0/2] PCI: MSI: Deal with devices lying about their masking capability Date: Thu, 4 Nov 2021 18:01:28 +0000 Message-Id: <20211104180130.3825416-1-maz@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, tglx@linutronix.de, rsalvaterra@gmail.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rui reported[1] that his Nvidia ION system stopped working with 5.15, with the AHCI device failing to get any MSI. A rapid investigation revealed that although the device doesn't advertise MSI masking, it actually needs it. Quality hardware indeed. Anyway, the couple of patches below are an attempt at dealing with the issue in a more or less generic way. [1] https://lore.kernel.org/r/CALjTZvbzYfBuLB+H=fj2J+9=DxjQ2Uqcy0if_PvmJ-nU-qEgkg@mail.gmail.com Marc Zyngier (2): PCI: MSI: Deal with devices lying about their MSI mask capability PCI: Add MSI masking quirk for Nvidia ION AHCI drivers/pci/msi.c | 3 +++ drivers/pci/quirks.c | 6 ++++++ include/linux/pci.h | 2 ++ 3 files changed, 11 insertions(+) -- 2.30.2