Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3874407yba; Tue, 23 Apr 2019 11:01:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYVOQlzV7fZYCYG51ECj6ZpzvVp//THR2LqmDoRIBtAYLhiBobRGcVQQs+jybRFdJbEelC X-Received: by 2002:a17:902:9004:: with SMTP id a4mr18169265plp.223.1556042477624; Tue, 23 Apr 2019 11:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556042477; cv=none; d=google.com; s=arc-20160816; b=P83w1T5oC4KdEi69Bw3UpxrhpqmQisGr1+SD5DmMnOv8PnCjkI/BnEVNZZQTgXojHf vsOaTFunskuKVLAqjICpjd6WNrqrV7ONVOGVTNneh0TelqIU8QCX/agmJrOsk0qzE56P 4ZdkuOaU+WVYp3BUqJrIPT2dCCswPNAyVnIJwWMz0Dx9LjmkMxQ9I4KGlQ5U8Ad/vQfk q2o9xCetG9jNsbTi8uAVgWW9Lrzxk68Dru3OA5EBzOnSHN7Kahccn2ugFZ5hTTDSsR1A x2l9hua66/BlLdcGUd+DyzL8DmrkkR7elVNA6r7wonNEhUkfaWSxjbTUxzf2Gu1rZk5n mbew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gQfSvY288NvX5Y1XwWDqYoDWYQc1hyp+10tUEc7SHn8=; b=whGkgl9Mo1ang1N0sOchZMzITa0Q8+CrzPp5XOZjmgCYOe56qc7bFT9Nv3Pqbeb5FT QfbU2XINasUBbaLgINtHYFHgXmJoLwszMQ2251WPf82tE/NRZ3+IEeOADeyTfPM6mT5R rhWCBDTQFWd0OcRBUAEtApa0+jWXFatvfK638YPBR4YHW+kNxuz1ZdW4q2JjXgl/jEDI 8BhTc2Fec7dQGu9pVA4CQvLemTpOAbuAQp7zg0qc/IUmHKqENP+vk/XDMDIsq6bRVxu3 ozXeFM5sRL6M+ABA7c/rQInLeS4+XYmI4GPhFD/LPL7YiOojqoM6u5OEntKkXyumCKgF TyDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sf+ltzFK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p187si17367952pfp.89.2019.04.23.11.01.02; Tue, 23 Apr 2019 11:01:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sf+ltzFK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728746AbfDWR7a (ORCPT + 99 others); Tue, 23 Apr 2019 13:59:30 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:52960 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbfDWR7a (ORCPT ); Tue, 23 Apr 2019 13:59:30 -0400 Received: by mail-it1-f193.google.com with SMTP id x132so1686790itf.2; Tue, 23 Apr 2019 10:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gQfSvY288NvX5Y1XwWDqYoDWYQc1hyp+10tUEc7SHn8=; b=Sf+ltzFKPRmsGLVlqfmp10ivBVhDNycl1H4gfMc53WqLP/fgmiAV6WRJmyPBaYBFFQ 5tfJhgEnQ5+tUrIYokenTj5bFH4SGmAx/WpXA2+rlquEE3xgID/ZToZWSiYfvexJRUrZ sdB0ML8Ke93LzjGmT8uHWdZVxHdYQ9QqkC78kohsgwH6Wm/mcc9BcvGdcK87X3BlDrYz 7W8hsHt6cUPQfhIOEtgp+AbXW3NTKwoDYy5zRFoYmtzeGEebRsmn8MysMUYiHDbNH/Q3 OZk9gkUKA6QLkYFCGZO9SFHgxCJGDt/O1vo/lnCMyvjDgVP8RHiYX3wxoAqsD73iWtLJ gP5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gQfSvY288NvX5Y1XwWDqYoDWYQc1hyp+10tUEc7SHn8=; b=gXS9KDdIr4EeQ4nHKSpvJ8kwWZnOKA0ntDugF90Q8aBli6ihDGmZLAH924lgcFtvWh sqCuL1WqozPD8o1A4xwX5oVTEgiE5WIO7QGWCv5KaPApPatRvqD5R+pC8uHSz4AJNwus wk95Xl7F4Os2PfbuMB1jCO2D6IFjE3rw4noe+fO0D8cuLAGItknPehqP73KIfHWjhsgX LUkundtf6PGxVb1Brka9k1WUfhKaF53DjCdB5k+EwjP1S8S7RTtAll8oysMyXgVtlvNY gMhLZYT+4IZQ9tJgq13W2QkxTgmMDOhJqGCv7SrFSPULFulAAZ/kEPm0oEISszOiF5EM wNIg== X-Gm-Message-State: APjAAAXEynQvbMD9LrJE7SgJxE3Cij4KCdp5Jgo3lGUWW0q/EG+ZJ7gd f/OX1kY2pHZV7pENInYcUfqdfXEUE88= X-Received: by 2002:a24:7350:: with SMTP id y77mr2693321itb.52.1556042368981; Tue, 23 Apr 2019 10:59:28 -0700 (PDT) Received: from nukespec.gtech ([2601:2c1:8501:182d::6fe]) by smtp.gmail.com with ESMTPSA id k11sm7398516itk.25.2019.04.23.10.59.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 10:59:28 -0700 (PDT) Subject: Re: [PATCH] PCI/LINK: Account for BW notification in vector calculation To: Alex Williamson , bhelgaas@google.com, helgaas@kernel.org, linux-pci@vger.kernel.org Cc: austin_bolen@dell.com, alex_gagniuc@dellteam.com, keith.busch@intel.com, Shyam_Iyer@Dell.com, lukas@wunner.de, okaya@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org References: <155597243666.19387.1205950870601742062.stgit@gimli.home> From: Alex G Message-ID: Date: Tue, 23 Apr 2019 12:59:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <155597243666.19387.1205950870601742062.stgit@gimli.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/19 5:43 PM, Alex Williamson wrote: > On systems that don't support any PCIe services other than bandwidth > notification, pcie_message_numbers() can return zero vectors, causing > the vector reallocation in pcie_port_enable_irq_vec() to retry with > zero, which fails, resulting in fallback to INTx (which might be > broken) for the bandwidth notification service. This can resolve > spurious interrupt faults due to this service on some systems. > > Fixes: e8303bb7a75c ("PCI/LINK: Report degraded links via link bandwidth notification") > Signed-off-by: Alex Williamson > --- +1 Tested on some Dell servers. Everything works as expected. I don't have a system with a device that only supports bandwidth notification. Alex