From owner-freebsd-hackers@freebsd.org Tue May 7 20:44:45 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F349A15937D5 for ; Tue, 7 May 2019 20:44:44 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF85274439 for ; Tue, 7 May 2019 20:44:43 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pl1-f173.google.com with SMTP id w24so8767496plp.2 for ; Tue, 07 May 2019 13:44:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GjyFjRMgfKXX2BrNcI2EuZ2p4G2FCzKeeomQPEP1zgQ=; b=Kl9Rd658lwc8O9mrxBedVVLBtC1Pj+9eNPjbIGiTkJKjdyZuzXITQTWQJB0cduntsz U8q94x9Xf4/zCJeJ4O5+QX207Oh8fxE11FolUoOeoZjqGcX5eerOPPmkjPwKOL/DHvHR tCilgkZmE7JYRmaZQcSIPMHIEVnjhZfeSGyEO/Rb7+FYwWq1GIP6PLqDTWsfMawDdMTr ZCHWTRfU0cH1q73UlyaTwchtlaM8t6DdYEC3aUZ9bFDpJmZhFqMTNpAET9VRO9gTiV+Q 3cQfLwk1taKDZwRhtX+4IxfRSG7zFE9mjnMmvqk8NoLJOwplw9kv2R+6ePqEsBH2wBwk vNZQ== X-Gm-Message-State: APjAAAXB0PJamEyVYBIYUdLhjdSBixKR+jV+yNx7Wu2oc700S74u9FeE XuHO7FKNmzdo5CS9gRR+7YCCq1oXxpE= X-Google-Smtp-Source: APXvYqxet8/pxjVQFLL3Yifiem6s285OTt2S0HTbqEAvguYI8HnlpdOJdDsJMX/XnKLQKhT0lnHP8A== X-Received: by 2002:a17:902:7c93:: with SMTP id y19mr8300774pll.268.1557255887618; Tue, 07 May 2019 12:04:47 -0700 (PDT) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com. [209.85.210.178]) by smtp.gmail.com with ESMTPSA id q10sm17298623pgh.93.2019.05.07.12.04.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 12:04:47 -0700 (PDT) Received: by mail-pf1-f178.google.com with SMTP id g3so9133456pfi.4 for ; Tue, 07 May 2019 12:04:47 -0700 (PDT) X-Received: by 2002:a63:317:: with SMTP id 23mr21904762pgd.414.1557255886983; Tue, 07 May 2019 12:04:46 -0700 (PDT) MIME-Version: 1.0 From: Gleb Popov Date: Tue, 7 May 2019 23:04:20 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: FreeBSD sees only one I2C device, while Linux sees two. To: freebsd-hackers X-Rspamd-Queue-Id: EF85274439 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.214.173 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-6.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.89)[-0.887,0]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_IN_DNSWL_NONE(0.00)[173.214.85.209.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-3.18)[ip: (-9.80), ipnet: 209.85.128.0/17(-3.76), asn: 15169(-2.26), country: US(-0.06)] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2019 20:44:45 -0000 I'm running Linux and FreeBSD on ASUS ROG GL553VE notebook. On Linux I have following entries in lspci output: 00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31) Subsystem: ASUSTeK Computer Inc. 100 Series/C230 Series Chipset Family Serial IO I2C Controller Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at df42e000 (64-bit, non-prefetchable) [size=4K] Capabilities: Kernel driver in use: intel-lpss Kernel modules: intel_lpss_pci 00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31) Subsystem: ASUSTeK Computer Inc. 100 Series/C230 Series Chipset Family SMBus Flags: medium devsel, IRQ 16 Memory at df42a000 (64-bit, non-prefetchable) [size=256] I/O ports at f040 [size=32] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 Running i2c-detect utility from i2c-tools package returns i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter i2c-0 smbus SMBus I801 adapter at f040 SMBus adapter However, on FreeBSD I get different picture. pciconf lists both devices: ig4iic_pci0@pci0:0:21:0: class=0x118000 card=0x15e01043 chip=0xa1608086 rev=0x31 hdr=0x00 vendor = 'Intel Corporation' device = '100 Series/C230 Series Chipset Family Serial IO I2C Controller' class = dasp ichsmb0@pci0:0:31:4: class=0x0c0500 card=0x15e01043 chip=0xa1238086 rev=0x31 hdr=0x00 vendor = 'Intel Corporation' device = '100 Series/C230 Series Chipset Family SMBus' class = serial bus subclass = SMBus But there is only one /dev/iic0 device. Relevant devinfo parts: ig4iic_pci0 iicbus0 iic0 iicsmb0 smbus1 ichsmb0 smbus0 Is there something missing in the kernel, or I'm just doing something wrong? Thanks in advance.