Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3757179rwb; Sat, 12 Nov 2022 12:09:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zdFSxgpFH5QX7lfh/xWF2TmBuvftiDciroCerIjnEYnwfxtUu3gtI1DVToI38W6rGGq/T X-Received: by 2002:aa7:9493:0:b0:56b:d7a5:4be5 with SMTP id z19-20020aa79493000000b0056bd7a54be5mr8042087pfk.62.1668283786193; Sat, 12 Nov 2022 12:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668283786; cv=none; d=google.com; s=arc-20160816; b=G2eKZ0V/3A3N3NYkWap1F5Y54dr98l+tflXS+ryCN+VYKhaxMGxHXQiOI3kiVs5pzD 7PLcEqD0eT0YZt6/HaxHdsliu641rZyeDK0YTE4CUXtB4MX/PEW9L/BGJD6xI3sk/czd cj2qEaph6rFDj0UcQx/xiEorlAILqwX7RSsXv/Uueihu4t/Qbn7hExuQPpNo6yw1JQNe RqY0nFX9NOGRwagsTq2E52caj2CMSk4Iq+K5vBLy8QFks+BIuoB3X/srcydZXpE9qfyl +Qybt0jutiR67Po2JRwue5ozGxLrba6wb2XlOppA+XhI0QoGlSXmVKNzTtUTKotGitfH nJnw== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=loH1W2wKycWcNMDjsgektwUyaNDFHlHO5th0/v6bRmw=; b=Nh0Jq6ONV5m6IzKGCYKTIbk1vYQKbMYBSaokBQcxTqGWlkJCr0QcK/c5GAK03n8b6u haFNiAyHxnlqO8x93x8Z0K+YLfQ0jMyGfNEbVFAyvyp8F6AAw8YuJCK++oFwyHrYN9N4 WzfZTQLvCqpRBJ3ZADY3orJSu6wr9/L8ifu8asDcPMgNxsY7S/JnSuCvNW4180Wj8UoO 6LMx+AoYv3Hacs9Jbtsrb0qtx9INoQYB+Aw9x3sgCNpC95Lg5r2YIOXrC2OJNTV/GHMv qGqp71FnuUAjpTZOmude4JYoSoMc4BB3teVdE53tgn6pH8cQymqFq6us6PGMd/KtXpik 4KDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=egiq0jsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob17-20020a17090b391100b00205ef38b646si6554495pjb.80.2022.11.12.12.09.34; Sat, 12 Nov 2022 12:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=egiq0jsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235073AbiKLUHv (ORCPT + 90 others); Sat, 12 Nov 2022 15:07:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234981AbiKLUH2 (ORCPT ); Sat, 12 Nov 2022 15:07:28 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.148]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F2012764 for ; Sat, 12 Nov 2022 12:07:22 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 4821 invoked from network); 12 Nov 2022 21:07:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1668283636; bh=loH1W2wKycWcNMDjsgektwUyaNDFHlHO5th0/v6bRmw=; h=Subject:To:Cc:From; b=egiq0jsRFmHMDiNfMFvMUBgqj5BDQ5X+lvuVFIyXA5M/rniZMizsr4bhOjx8FAWNN x6aZk2v6sI5h3RYl/cblVuoQhVgCnoq80vOEwkpxVdlz5GoMgtdppIQSjy/eXJTy4a U/sC2ojO2XaPvQnNq/dTUPWoFMxtaGLR3J1wULns= Received: from aaey149.neoplus.adsl.tpnet.pl (HELO [192.168.1.22]) (mat.jonczyk@o2.pl@[83.4.128.149]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 12 Nov 2022 21:07:16 +0100 Message-ID: <35cfe433-bafa-9aeb-20ad-2f275f585b6c@o2.pl> Date: Sat, 12 Nov 2022 21:07:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2] acpi,pci: handle duplicate IRQ routing entries returned from _PRT To: Bjorn Helgaas , "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Jonathan Corbet , Bjorn Helgaas , Len Brown , Borislav Petkov , Jean Delvare , linux-i2c@vger.kernel.org References: <20221112002023.GA764787@bhelgaas> Content-Language: en-GB From: =?UTF-8?Q?Mateusz_Jo=c5=84czyk?= In-Reply-To: <20221112002023.GA764787@bhelgaas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-WP-MailID: 13e9072270332344864b56994e464f72 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [QbNF] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 W dniu 12.11.2022 o 01:20, Bjorn Helgaas pisze: > [+cc Jean, linux-i2c] > > On Sat, Sep 17, 2022 at 11:09:44AM +0200, Mateusz Jończyk wrote: >> On some platforms, the ACPI _PRT function returns duplicate interrupt >> routing entries. Linux uses the first matching entry, but sometimes the >> second matching entry contains the correct interrupt vector. > Rafael, Jean, what do you think about this? It seems like kind of a > lot of infrastructure to deal with this oddness, but I'm not really > opposed to it. > > This is in i2c-i801.c, which seems to have some support for polling; > maybe it could make smart enough to complain and automatically switch > to polling if a timeout occurs. > > Or maybe we scan the entire _PRT and let the match win (instead of the > first as we do today). > > Or ...? > > Google finds a lot of hits for "i801_smbus" "timeout waiting for > interrupt", but I can't tell whether they're a similar _PRT issue or > something else. > >> This happens on a Dell Latitude E6500 laptop with the i2c-i801 Intel >> SMBus controller. This controller was nonfunctional unless its interrupt >> usage was disabled (using the "disable_features=0x10" module parameter). Hello, I have prepared a lean patch that only prints a warning when there are two matching entries in the table returned from _PRT (I will send it in the next e-mail). Perhaps it could be merged and then after a release or two it will be known how widespread this problem is. Greetings, Mateusz