Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2372953pxm; Sun, 27 Feb 2022 19:44:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw11tJOwMKAUsZYvnOGaCM8AhfA5l9G3fg176pe9WvZJtJV1dZymsa43JJF4b8j89yBn2m5 X-Received: by 2002:aa7:81c3:0:b0:4f2:6d3f:6158 with SMTP id c3-20020aa781c3000000b004f26d3f6158mr19594584pfn.82.1646019877749; Sun, 27 Feb 2022 19:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646019877; cv=none; d=google.com; s=arc-20160816; b=VKDtxVDwIEridRoHxwO0evna4AFrOB+IUe86pOMZbxZC3Yj/AcaBk0wXqTbzEhDl2w RfuFChHgcbeNqG9juM/1T/JVxbTdfuAZLd46Ax2DOCMX3a4uTatYF8Mwqp4NhmoDrfBs NmaJlYmheG9CJAO7+vi+Xx+nsPFTOWocbvgEEm0Y0mDdzUE2Kwe84ajSjm7U+CKRM2dk 2pDyv0ss1I8DPwhyBrczKBm+fgdK8HSrDf7zBZGLgcMvFNxHLYAWaILrd0Yr5GDWq1YL z122dc5pjMRzf3zqogTMhq7pzdYFRy7o42fzikQ+a9hStOFCpk/RzZEsjbRW/Nzo/sIB jmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/iervmZzRL0Mt5kpC3j8ZiRbpDgGTMM0VaPpylf5tJA=; b=y0pTzaamnhKwGMeW2m+B3f4Vguh3+Waf3JFGxHZkqthI08AOgCfQ2wf4L0ZHuX+Dhd BzeTjMJqBq2LLgSA4uAFECOUBE1U13yUn5zyLbBwZKOCqo4smIc8/A6WvFzwOuEj5aAu VutKe20zc84nUzxDt5ZucVJUBrDt1V2VB75h9HWsIF6b6A9fYKPDFXiMo3z1pMFmSCrx 39yh067mse6RH0OEYWwJ7wdPPtn2WzMb6ooxPdQhhbbrVNlUtrpRFInXMCAgKEYi0vAy FU+8Zvn5mfXl/DLIAwQRA9cuW5ozKVQNB5wHAn9RwGeyGjCEE7skUXmSqoWDWSR5D2Zi ji3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=DJjeBa0P; 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=bewilderbeest.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a170902eb8400b0014adf3eb243si7810266plg.157.2022.02.27.19.44.21; Sun, 27 Feb 2022 19:44:37 -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 header.i=@bewilderbeest.net header.s=thorn header.b=DJjeBa0P; 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=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232548AbiB1Cst (ORCPT + 99 others); Sun, 27 Feb 2022 21:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbiB1Csr (ORCPT ); Sun, 27 Feb 2022 21:48:47 -0500 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27C831A826; Sun, 27 Feb 2022 18:48:08 -0800 (PST) Received: from hatter.bewilderbeest.net (174-21-187-98.tukw.qwest.net [174.21.187.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 7B336516; Sun, 27 Feb 2022 18:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1646016488; bh=/iervmZzRL0Mt5kpC3j8ZiRbpDgGTMM0VaPpylf5tJA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DJjeBa0PqiIPgHj9xQr4Sl7aIEu8ufRb7o8PjRh9Zgo3XBWsk2SDHUB0UarokWdO1 dO0u2xCPJ76B3QJc8ropLkDBqt/9Xvkq98/Mr+tB5BgfydrmeQpumdUkI/RiTtiIxL fkelbIxetoTFB86c5AF1TbWuRHDbIFJT3lHBXcRE= Date: Sun, 27 Feb 2022 18:48:05 -0800 From: Zev Weiss To: Oleksandr Natalenko Cc: linux-hwmon@vger.kernel.org, Guenter Roeck , Jean Delvare , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Renze Nicolai , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH 0/5] hwmon: (nct6775) Add i2c support Message-ID: References: <20220226133047.6226-1-zev@bewilderbeest.net> <2620147.mvXUDI8C0e@natalenko.name> <4719747.31r3eYUQgx@natalenko.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4719747.31r3eYUQgx@natalenko.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Sun, Feb 27, 2022 at 01:38:31PM PST, Oleksandr Natalenko wrote: >Hello. > >On neděle 27. února 2022 1:27:55 CET Zev Weiss wrote: >> On Sat, Feb 26, 2022 at 04:14:12PM PST, Oleksandr Natalenko wrote: >> >Hello. >> > >> >On sobota 26. února 2022 14:30:42 CET Zev Weiss wrote: >> >> Hello, >> >> >> >> This patch series augments the existing nct6775 driver with support >> >> for the hardware's i2c interface. >> > >> >Is it something I can test on my ASUS Pro WS X570-ACE board as an ordinary user, and if so, how? >> > >> >> You could certainly test that the nct6775-platform driver still works as >> it did previously, which would be good to confirm -- you'll need to >> enable CONFIG_SENSORS_NCT6775_PLATFORM now to build it. > >Ack. > >> From what I've been able to find about that board though it looks like >> it doesn't have a BMC, so testing the i2c driver on it probably isn't >> going to be possible. (Even if it does in fact have a BMC, it would >> require at least a partial port of OpenBMC or similar, and re-flashing >> your BMC firmware with that, and is hence a non-trivial undertaking.) > >It should have, the BMC is based on RTL8117, although I have no idea if it is something that can be called true IPMI as I've never enabled/used it. > Ah, interesting -- I hadn't heard of that chip before, and web searches mostly seem to turn up discussions of that particular board (and sibling models), so I guess it's probably not very widely used elsewhere. It does appear to run an OpenWRT-based firmware with source available (https://gitlab.com/gplmirror/rtl8117), though apparently with a rather old (4.4) kernel (and with added fun goodies like what looks to be a partial implementation of an in-kernel VNC server??). So I guess in theory if you were feeling adventurous and wanted to backport these patches to that kernel, recompile the firmware, and flash the result onto your hardware you could *maybe* test out the i2c driver, though it's probably a much deeper rabbit hole than is likely to be worthwhile, and with significant risk of leaving your hardware in an awkward (potentially bricked) state if things go awry, so it's not something I'd recommend taking on casually. There would also still be the process of figuring out at what i2c bus/address the Super-I/O chip lives for the rtl8117, if its i2c interface is even attached at all, which I don't think is guaranteed -- the rtl8117 might not need it if it's not in charge of thermal monitoring/fan control on that board, and even if it is handling that it might have a direct connection to the TSI interface instead of going through the Super-I/O chip as is done on the ASRock boards I'm familiar with. Zev