Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4831506rwd; Sun, 4 Jun 2023 14:02:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ct+SIns4L3mNo/wUaNAjuYxEDStmvBOpzjwChjRfWTMnc88Hk7rFLcVscq30KZSrHTQmO X-Received: by 2002:a17:90a:192:b0:256:33ba:8f65 with SMTP id 18-20020a17090a019200b0025633ba8f65mr5434433pjc.44.1685912574425; Sun, 04 Jun 2023 14:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685912574; cv=none; d=google.com; s=arc-20160816; b=pzjEAei0DvZBsqIHbvGZhAMp5jrYUueov5NRLFVswuPrgbNvIoxaVCAWOtDYs8jjSG rKBN1ibO8OaQ55vwgclsIXRpu4la4A3B2ZMOO+qhJYQNW0Q6XUXIKJOsCHB4dt4WkZ4u GFpNPQWXysarevX2OAL8DUZwn3nAagBjtVO8GqPbA1OFnb8/yWv8fmwhhFMjgKIL4uYP l73/YnARiE+AqAAfUxZuPICKDJsAKAwNN446vTg662CTFkzbxJ7DnnigfH63RmiRn2WH NwrAl14dSpb9rYEnYnFAg/2BJlSRYqCy7M1gntkRDpia0Ky3QbJvTZbxclE3Mdh6otmz rh6g== 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:subject :from:references:cc:to:content-language:mime-version:date:message-id; bh=VXuUHSsvJ8chGG8+Lo+i6EErQx2SqGom2Sz/o5ul3Ww=; b=0oufuvxd3xNOfOM4wowq3biLSY0m+xxvlrLbkFK9G+XFDNQ2ftK7x1jO3jXa6zNF2t P/ash1g1QUdvRVInz3zV+pQmK2PKT4iqvxEoYf7+0UrT62Iux16owO/wmrdFda9ZhNSZ l+32vLJU3CVhETE6BXO0YGOu3bqMfAf8zVt4mBLaqcqpe01xWcNsH779SpLlG/9F2AV5 xGmSZvHG8UhF0GG5jh4Vk4AMrKOjOwyDPiGjs5rJxe3v1WPmFHzhpdifaMeC1k+Ma2V7 RnniYnGDKxaYAVj6rodBm1Znqx5OssxWEhd3LssSq0cHBaw387pnT8bo0K7N2Yv7XFSp 9uAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a17090aa88800b002595423e928si560810pjq.45.2023.06.04.14.02.40; Sun, 04 Jun 2023 14:02:54 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231882AbjFDUtw (ORCPT + 99 others); Sun, 4 Jun 2023 16:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231754AbjFDUtv (ORCPT ); Sun, 4 Jun 2023 16:49:51 -0400 X-Greylist: delayed 510 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 04 Jun 2023 13:49:49 PDT Received: from mail2.medvecky.net (mail2.medvecky.net [85.118.132.153]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0AD0DB; Sun, 4 Jun 2023 13:49:49 -0700 (PDT) Message-ID: Date: Sun, 4 Jun 2023 22:41:15 +0200 MIME-Version: 1.0 Content-Language: en-US To: Jean Delvare , Marius Hoch Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230514103634.235917-1-mail@mariushoch.de> <20230523200350.62ab4788@endymion.delvare> <59a6a917-2a93-d52d-37f3-091295dd0db4@mariushoch.de> <20230604160132.102dd6a7@endymion.delvare> From: Rudolf Marek Subject: Re: [PATCH 0/2] i2c: i801: Force no IRQ for Dell Latitude E7450 In-Reply-To: <20230604160132.102dd6a7@endymion.delvare> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: mail2.medvecky.net; auth=pass smtp.mailfrom=r.marek@assembler.cz X-Spamd-Bar: / X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Jean, Dne 04. 06. 23 v 16:01 Jean Delvare napsal(a): > I admit I don't know. I'm not familiar with how GSI numbers relate to > IRQ numbers. I think I understand that GSI numbers are an ACPI thing, > and the ACPI layer is responsible for mapping these to actual IRQ > numbers? Is there a GSI-to-IRQ table available somewhere as part of the > ACPI tables? If so, it would be interesting to disassemble the ACPI > tables on your system and check what this looks like for you. You need to check _PRT method of PCI0 device in APIC mode. This will tell you to what GSI (APIC/pin) it goes. To check you need to have a look to the DSDT table and decompile it. You can obtain it by running acpidump > tables.txt and the acpixtract -a tables.txt and finally running iasl -d dsdt.asl. Then, because the SMBUS lives on bus0, you just need to check _PRT method under PCI0 device for the entry of 001fffff (INT C). If this entry exists it will tell you where is it connected. I assume this has no entry and then as a last chance Linux tries the PCI IRQ entry in the configuration space gets queried. And this has 0xff which is telling no IRQ connected. The southbridge has a IRQ routing configuration register which can be used to verify if this is routed anywhere or really left "unconnected". This is usually in the the RCBA base + something register. Have a look to "D31IP" register: SMBus Pin (SMIP) — R/W. Indicates which pin the SMBus controller drives as its interrupt. bits 15:12 If there is 0, it is not routed anywhere. Also you need to check "D31IR" where the PIN C is going: Interrupt C Pin Route (ICR) — R/W. Indicates which physical pin on the PCH is connected to the INTC# pin reported for device 31 functions. The PIRQA corresponds to the PIN 16 of IOAPIC etc. If you need more info on that feel free to contact me. I can try to help. Thanks, Rudolf