From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80335C433EF for ; Sat, 18 Sep 2021 12:24:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5620C6127B for ; Sat, 18 Sep 2021 12:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbhIRMZz (ORCPT ); Sat, 18 Sep 2021 08:25:55 -0400 Received: from mail-oi1-f169.google.com ([209.85.167.169]:40785 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbhIRMZz (ORCPT ); Sat, 18 Sep 2021 08:25:55 -0400 Received: by mail-oi1-f169.google.com with SMTP id t189so5416670oie.7 for ; Sat, 18 Sep 2021 05:24:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/VpdyQFEzqzYhg7+fQZIYwwuvfZU4AxYy+ClC+i+2mM=; b=6mHzMw6clseYnjZ1gvBWkwMmu60BG+eWqMEBqzp/WrX1QJJRqOku59NZ71BAFXZKsP uBftXqp+LH0vmpH3FneTyWlOG0HstEnWAcbiEfZBZj6euQHoDcYRCvrcXkGOIG7lZ1md ZsTUY2/MIqhrQh24LU8VBBLG/DpWnDBChYt8kuzLGRuHh0s+8pQLE0xugAged4TVP51m poc0Iy24T7/YeEXiwDK9UCkhonbgv+I7BjpRKVErrwP7Ds1GzWuFlDxN8JHPi93BQrPZ O0GZCHyFbo8LILMX55gV9RchFatCibkT8HmEkdSok1f9b9yuIa/8t8AYZGCk7JGiBoBZ O3MQ== X-Gm-Message-State: AOAM5319kEc1N4na8ARSmzO/gzxo2avVAWvMJ26+rbQhHNAFKLb4jBlW MEOXXNnLXakHA3/Q2uVVmvs8ROPx495e5ViaPlzJo1KW X-Google-Smtp-Source: ABdhPJy3Rb28X24jd+tshGeF40KsXyEkX0Yw/Tog3snTU7LI4SXkHvNi591C4oFg52PkN/Uj+dhlbDps1Uewwsimif0= X-Received: by 2002:a54:4f89:: with SMTP id g9mr5283874oiy.71.1631967871304; Sat, 18 Sep 2021 05:24:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Sat, 18 Sep 2021 14:24:19 +0200 Message-ID: Subject: Re: I2C SMBUS SPD ECC DIMM access vs. ACPI BIOS To: James Dutton Cc: ACPI Devel Maling List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Sat, Sep 18, 2021 at 1:32 PM James Dutton wrote: > > On trying to "modprobe i2c-piix4" I get: > > [ 209.488778] ACPI Warning: SystemIO range > 0x0000000000000B00-0x0000000000000B08 conflicts with OpRegion > 0x0000000000000B00-0x0000000000000B0F (\GSA1.SMBI) > (20210604/utaddress-204) > [ 209.488791] ACPI: OSL: Resource conflict; ACPI support missing from driver? > > The purpose of this attempt is to use I2C SMBUS to read a temp sensor > on the ECC DIMM. > This same approach works on a different AMD AM4 motherboard, but this > is a Gigabyte AMD X399 Threadripper motherboard. > Now I understand that this warning is a safety warning, because if the > BIOS ACPI and Linux userspace tried to access the EEPROM SPD on the > DIMM at the same time, hardware damage might result. > So, my question is, who should I ask to get enough documentation or > hints, so that I could modify the source code to make this work > safely. Basically, the BIOS vendor should know, but it may be hard to get that information from them. That said, it should be possible to inspect the ACPI tables on the system and find out what this particular operation region is used for. > DMI: Gigabyte Technology Co., Ltd. X399 AORUS PRO/X399 AORUS PRO-CF, > BIOS F2 12/11/2019 > LSPCI: > 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Root Complex > 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h (Models > 00h-0fh) I/O Memory Management Unit > 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) PCIe GPP Bridge > 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B > 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B > 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59) > 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) > 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 0 > 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 1 > 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 2 > 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 3 > 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 4 > 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 5 > 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 6 > 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 7 > 00:19.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 0 > 00:19.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 1 > 00:19.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 2 > 00:19.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 3 > 00:19.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 4 > 00:19.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 5 > 00:19.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 6 > 00:19.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Data Fabric: Device 18h; Function 7 > 01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] X399 Series > Chipset USB 3.1 xHCI Controller (rev 02) > 01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] X399 > Series Chipset SATA Controller (rev 02) > 01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] X399 Series > Chipset PCIe Bridge (rev 02) > 02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series > Chipset PCIe Port (rev 02) > 02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series > Chipset PCIe Port (rev 02) > 02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series > Chipset PCIe Port (rev 02) > 02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series > Chipset PCIe Port (rev 02) > 02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 300 Series > Chipset PCIe Port (rev 02) > 04:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network > Connection (rev 03) > 08:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, > Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function > 08:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] > Family 17h (Models 00h-0fh) Platform Security Processor > 08:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) USB 3.0 Host Controller > 09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, > Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function > 09:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA > Controller [AHCI mode] (rev 51) > 09:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) HD Audio Controller > 40:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Root Complex > 40:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h (Models > 00h-0fh) I/O Memory Management Unit > 40:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 40:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) PCIe GPP Bridge > 40:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 40:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 40:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) PCIe GPP Bridge > 40:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 40:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 40:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B > 40:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-1fh) PCIe Dummy Host Bridge > 40:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B > 41:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd > NVMe SSD Controller SM981/PM981/PM983 > 42:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1470 (rev c3) > 43:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1471 > 44:00.0 VGA compatible controller: Advanced Micro Devices, Inc. > [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] (rev c3) > 44:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 > HDMI Audio [Radeon Vega 56/64] > 45:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, > Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function > 45:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] > Family 17h (Models 00h-0fh) Platform Security Processor > 45:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Family 17h > (Models 00h-0fh) USB 3.0 Host Controller > 46:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, > Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function > 46:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA > Controller [AHCI mode] (rev 51)