Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2157516pxv; Sat, 17 Jul 2021 05:46:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5QNBaCGSMlFsltLTFpVI9JPPq+t8PZcezWZIVK6MmgO/cVOSfI7Rower1MZuVOO9Ku48W X-Received: by 2002:a17:906:8a67:: with SMTP id hy7mr17279143ejc.421.1626525980756; Sat, 17 Jul 2021 05:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626525980; cv=none; d=google.com; s=arc-20160816; b=GSMPk3WXCcxpG+n5RvT4AzlGl3R5oQm1Y3ZtcrR+4/qnKIMlHFvvkGEXdpEIADkfqS ZftK9u269wZ8Kd2CCiBkwdtZxB+cJhlgyVRZ7hS+nPpKcSFkNelDv7yPYZRtbzX16fLN +vRxTKjYiwIR364TRoBYhrgpkH3wt++fS0e32lWRvBkbW7JEUMZ+Oes/0+0oSsqTLnb1 po3XQAzr+peTBYiFV687wDMTw3CAIbKHcGPFFRzck1HGsmO4LBYMYwfKe2GMZE82wc8P SMvSpcfrElbN08zWlH8TNQY42V1aEH21J2eCS0OcXG7QZDJmlblvkdiHowiGjD/6vvv8 LiYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature; bh=DObdPEz8dc9fpgzhCh0TXIKplWQjWy3yuMi0S8nVwn0=; b=BaTvhJ4HDuAgLOczRHTD4uYjP/MFTW99F9DyMGKmZfvqqtVJoqfWRvACz4EajLa+/F qjyimnf4OaYEZBpaRjK9uPlVm5FCrSse21feVih8ZU2GAsrMhaKxPnZqgeemwFw1i+DU cK8plJDEYZdi26Fv73B6V7l0IF+7jJi1tLFCSJdNEimGxqb7vxNjkrEOkAGWj4HMAhgd tOACbMlkVIu23TMkNcTkTz01nxkwfXaH8iNcYn3isJeRFnl+RCb2Rbx+d9lENQSA2f0L GGmpq5OeuapgU2dQ7i0xRxT+hbEG3VVBY04sMVhWaipU/H1CQOFZ1s1LlGsasz9MUyGA vJyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oth-regensburg.de header.s=mta01-20160622 header.b=Atwzcr1L; 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=oth-regensburg.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw26si14473233ejb.161.2021.07.17.05.45.57; Sat, 17 Jul 2021 05:46:20 -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; dkim=pass header.i=@oth-regensburg.de header.s=mta01-20160622 header.b=Atwzcr1L; 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=oth-regensburg.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233079AbhGQMrq (ORCPT + 99 others); Sat, 17 Jul 2021 08:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbhGQMrp (ORCPT ); Sat, 17 Jul 2021 08:47:45 -0400 Received: from mta02.hs-regensburg.de (mta02.hs-regensburg.de [IPv6:2001:638:a01:1096::12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D63C06175F; Sat, 17 Jul 2021 05:44:48 -0700 (PDT) Received: from E16S03.hs-regensburg.de (e16s03.hs-regensburg.de [IPv6:2001:638:a01:8013::93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "E16S03", Issuer "E16S03" (not verified)) by mta02.hs-regensburg.de (Postfix) with ESMTPS id 4GRnqw2sPQzxxM; Sat, 17 Jul 2021 14:44:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oth-regensburg.de; s=mta01-20160622; t=1626525884; bh=DObdPEz8dc9fpgzhCh0TXIKplWQjWy3yuMi0S8nVwn0=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=Atwzcr1LfwKQOLIsRwfQKHCtxICogZrce/pO56aFJR5Gvy/3z2X+3J/wPY9WtBaAm CjV2iMk3Ev34F4KTeC4bzRcvshIaJVv8SOnf+Vb0hp+qm9jM6fFlL7AH0J37ddRuMh DgCgAXUiOGEbj3CHwc7GH+ZL1Eg7RlEpW1ZYKeB+UdBIfBc3E47clmot3uglsmy8ij qFLlvQMSuCvOlNREXXvzk3R/YMSQXq4Sk0rXQVJG63ZT9wDhhWg9wfydUkIgL5lbTC Hnki53ZCd8XjuBE6tExAzLSC/ycetejhLz+G5301r/RnKOMx5ytaDG8ahAjecjY6vv 6PRbDMd3J52pg== Received: from [IPv6:2001:678:ddc:11:17a4:3bb5:620b:1dcb] (2001:638:a01:8013::138) by E16S03.hs-regensburg.de (2001:638:a01:8013::93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sat, 17 Jul 2021 14:44:43 +0200 Subject: Re: [EXT] Re: [PATCH v1 3/4] serial: 8250_pci: Always try MSI/MSI-X To: Andy Shevchenko CC: Jiri Slaby , , , Greg Kroah-Hartman References: <20210713104026.58560-1-andriy.shevchenko@linux.intel.com> <20210713104026.58560-3-andriy.shevchenko@linux.intel.com> <9af24b96-8119-7ccf-f0d0-d725af80aa0b@kernel.org> <784629f9-677e-ee53-aceb-89397ce0951a@oth-regensburg.de> <599a37bd-3cb4-1e4b-d5f8-936c4daae71f@oth-regensburg.de> From: Ralf Ramsauer Message-ID: <447b30df-cb9e-cfaf-6381-0a1c426fa57c@oth-regensburg.de> Date: Sat, 17 Jul 2021 14:44:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------22358B651524AC6FC03F8265" Content-Language: en-US X-Originating-IP: [2001:638:a01:8013::138] X-ClientProxiedBy: E16S01.hs-regensburg.de (2001:638:a01:8013::91) To E16S03.hs-regensburg.de (2001:638:a01:8013::93) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --------------22358B651524AC6FC03F8265 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 16/07/2021 19:27, Andy Shevchenko wrote: > On Fri, Jul 16, 2021 at 05:27:36PM +0200, Ralf Ramsauer wrote: >> On 16/07/2021 17:01, Andy Shevchenko wrote: >>> On Fri, Jul 16, 2021 at 4:07 PM Ralf Ramsauer >>> wrote: >>>> On 14/07/2021 15:35, Andy Shevchenko wrote: >>>>> On Wed, Jul 14, 2021 at 3:56 PM Ralf Ramsauer >>>>> wrote: >>>>>> On 14/07/2021 08:54, Jiri Slaby wrote: >>>>>>> On 13. 07. 21, 12:40, Andy Shevchenko wrote: >>>>> >>>>>>> Hmm, have you checked the commit which introduced the whitelist? >>>>>>> >>>>>>> Nevertheless, this needs to handled with care: while many 8250 devices >>>>>>> actually claim to support MSI(-X) interrupts it should not be >>>>>>> enabled be >>>>>>> default. I had at least one device in my hands with broken MSI >>>>>>> implementation. >>>>>>> >>>>>>> So better introduce a whitelist with devices that are known to support >>>>>>> MSI(-X) interrupts. I tested all devices mentioned in the patch. >>>>>>> >>>>>>> >>>>>>> You should have at least CCed the author for an input. >>>>>> >>>>>> Yep, back then I was testing three different 8250 pci cards. All of them >>>>>> claimed to support MSI, while one really worked with MSI, the one that I >>>>>> whitelisted. So I thought it would be better to use legacy IRQs as long >>>>>> as no one tested a specific card to work with MSI. >>>>> >>>>> Can you shed a light eventually what those cards are? >>> >>>> So I found a no-name el-cheapo card that has some issues with MSI: >>> >>> Win Chip Head (WCH) >>> >>>> 18:00.0 Serial controller: Device 1c00:3253 (rev 10) (prog-if 05 [16850]) > > Thank you! > > One more thing, ist it possible to see entire PCI configuration space (w/ or > w/o MSI, I don't think it matters)? Something like > > `lspci -nk -vvv -xxx -s 18:0` > > to run. > > (I believe there are a lot of 0xff bytes) Find it attached, w/ MSI+. Not that many, only the 0xffs for the MSI mask, afaict. Ralf --------------22358B651524AC6FC03F8265 Content-Type: text/plain; charset="UTF-8"; name="18.0.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="18.0.txt" MTg6MDAuMCAwNzAwOiAxYzAwOjMyNTMgKHJldiAxMCkgKHByb2ctaWYgMDUgWzE2ODUwXSkK CVN1YnN5c3RlbTogMWMwMDozMjUzCglDb250cm9sOiBJL08rIE1lbSsgQnVzTWFzdGVyKyBT cGVjQ3ljbGUtIE1lbVdJTlYtIFZHQVNub29wLSBQYXJFcnItIFN0ZXBwaW5nLSBTRVJSLSBG YXN0QjJCLSBEaXNJTlR4KwoJU3RhdHVzOiBDYXArIDY2TUh6LSBVREYtIEZhc3RCMkItIFBh ckVyci0gREVWU0VMPWZhc3QgPlRBYm9ydC0gPFRBYm9ydC0gPE1BYm9ydC0gPlNFUlItIDxQ RVJSLSBJTlR4LQoJTGF0ZW5jeTogMAoJSW50ZXJydXB0OiBwaW4gQSByb3V0ZWQgdG8gSVJR IDEwNAoJTlVNQSBub2RlOiAwCglSZWdpb24gMDogSS9PIHBvcnRzIGF0IDQwMDAgW3NpemU9 MjU2XQoJUmVnaW9uIDE6IE1lbW9yeSBhdCBhYjAwMDAwMCAoMzItYml0LCBwcmVmZXRjaGFi bGUpIFtzaXplPTMyS10KCVJlZ2lvbiAyOiBJL08gcG9ydHMgYXQgNDEwMCBbc2l6ZT00XQoJ RXhwYW5zaW9uIFJPTSBhdCBhYjIwMDAwMCBbZGlzY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