Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3668036rdb; Wed, 13 Sep 2023 21:22:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/IlhtO7T0XpL/xFBjGNHsT0ttUjmxQVq9Yq5VetkNbmweCuQUbRg6aOElgPr49jiP6QBQ X-Received: by 2002:a05:6830:4602:b0:6be:ed61:a4a8 with SMTP id ba2-20020a056830460200b006beed61a4a8mr4189995otb.2.1694665370855; Wed, 13 Sep 2023 21:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694665370; cv=none; d=google.com; s=arc-20160816; b=A4JLPM8dD/ckW1uWfqZGIoibO3CQ7ZJ9LDaV6S8pNpU4Mc85EBHtI9jVr156OX30g5 c75FDSO0PinRp/+j2e4CmqEDjbGvioq+D2dUT7006OsBDOqA1f7oP/lNJBIpXEwwoUmK lc8WxcWaW9f1GJkiC82c/wv9jYeira4IFQowHz0BYEnBig2sCsavt1oQ53YsQeF+Oco4 x227KzJhke9xITaQccynduzXmiCzh0xy4KukLw1DQ0GGOBGCK8vWj47QcvOl1lT4Ap8D bhNBUW4K/tQwWw6BKowJkDvk0RLbMh/CpWapNZq90cCrIhqklPGtRecfyo438R8RMoCS V1jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=3RcP0+lHz50hfFKyKt8JAwtGK5ems8bjkcAlSKeDZtw=; fh=70I9lKo7yV1c4oGZ3nwCLZtJ1qCNOwmyQ5MHzb5K6Og=; b=BykgT8/bUjbRoUgQyytUCzlMecItIAFJRsoCRM9wHwktVfBPF3WrC/2gRFGghgrceZ ahV1i1Uv3b4qmlS/76P0mSR9CC0+sMeTmRFNBK/YmGgaTg9JNB4JQqKTZH4GFST/yvPk eFodpd/w3zEFyKE4hTU3AvQwGaaE3D0Do/y+CxGaXBYnerH9ffANEDtVLuMyieoQibyc cpjPUhcQ8MOl0z9FMDkOVhQwdQIuhuKwJFzay9alIKe39OuvOYeOn36yk/p1QmQhfYxH 9Qdsr0TXuOnUZQfJezFwPNh02/ldhDtlZy/Casej1nLn22a42bdfU05zALt/4bcGGeL/ SfkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=SFdfYurV; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=j24EU+fw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z28-20020a056a001d9c00b00689f449fe24si744460pfw.53.2023.09.13.21.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 21:22:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=SFdfYurV; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=j24EU+fw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E573D813A5B4; Wed, 13 Sep 2023 09:45:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230507AbjIMQpg (ORCPT + 99 others); Wed, 13 Sep 2023 12:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbjIMQp0 (ORCPT ); Wed, 13 Sep 2023 12:45:26 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8E1D30E4; Wed, 13 Sep 2023 09:42:46 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 059D63200C12; Wed, 13 Sep 2023 12:42:42 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Wed, 13 Sep 2023 12:42:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1694623362; x=1694709762; bh=3R cP0+lHz50hfFKyKt8JAwtGK5ems8bjkcAlSKeDZtw=; b=SFdfYurV3LFeF11BlE 0T1zplDsH8tN8CVuE/kMKr4Q0+E+TELiBcVDyWg72VyGjNpve0xPw0N2//v/kbOb t0peAcWyBdfTCtFVPrFXjeVLXDD5wmrc9XqMd8SdFjFv8QusmAu6JzjO2FLLW16L r/JgITTK8/upYaeEUMa4Wg5gs3etP2Npr8CK+QYMlI7TAnvDkFaC3oL1a6jNPgDM o8KuZJlqpXltq4wK7PfvqPrw2JyLUtJ6iKfl7ANenteBVsEO1S1Po918niSHfSIq Wzr9D1K3WUj5qOxx/7RZMG67FCQAafyOsU8U3QoRgkGLs1j4F4CN6s/F5Fa6M1Wi m4kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1694623362; x=1694709762; bh=3RcP0+lHz50hf FKyKt8JAwtGK5ems8bjkcAlSKeDZtw=; b=j24EU+fwE1hbp/zQ/LQ+0jcKF6iax JxD5X2voC/Cbe2rmbOExAYpOW3P+fMEt5/PjXZIQuCU33MB5+conM6VSV5afTowi GAEMT3IXrpD1sRFRHo0XH+gEe99/EMZrYVotG7QoJvwx1p82Yuym8t9qjOBKMtJB 2rZLUQJ3gF9qrhblOkuC6u7lKayDfjUyB24r18IaOQgj1OU2oRFsPfjFFgmlQDf1 EHcki53K78pCi7y9uywCzYv9CWi0/LIVGcJw4UfhdJN88/pczx/+6fqHs03pHhsK YGuFPf/BS6hiN46HnsRdauphJFAMy/3DAxWpoiMykW8TkQ4gnJqW69+zw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeikedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfofgr rhhkucfrvggrrhhsohhnfdcuoehmphgvrghrshhonhdqlhgvnhhovhhosehsqhhuvggssg drtggrqeenucggtffrrghtthgvrhhnpeefudetheeijefhledufeejvdetteeiueefteeu jeekieeukeeuheegveehueeftdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhpvggrrhhs ohhnqdhlvghnohhvohesshhquhgvsggsrdgtrg X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 02C51C60091; Wed, 13 Sep 2023 12:42:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-745-g95dd7bea33-fm-20230905.001-g95dd7bea Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230906195204.4478-1-fevalle@ipt.br> Date: Wed, 13 Sep 2023 12:41:42 -0400 From: "Mark Pearson" To: "Hans de Goede" , "Fernando Eckhardt Valle" , "Henrique de Moraes Holschuh" , "markgross@kernel.org" , ibm-acpi-devel@lists.sourceforge.net, "platform-driver-x86@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/x86: thinkpad_acpi: sysfs interface to auxmac Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 09:45:37 -0700 (PDT) On Wed, Sep 13, 2023, at 11:58 AM, Hans de Goede wrote: > Hi Fernando, > > On 9/6/23 21:52, Fernando Eckhardt Valle wrote: >> Newer Thinkpads have a feature called Mac Address Passthrough. >> This patch provides a sysfs interface that userspace can use >> to get this auxiliary mac address. >> >> Signed-off-by: Fernando Eckhardt Valle > > Thank you for your patch. > > At a minimum for this patch to be accepted you will need > to document the new sysfs interface in: > > Documentation/admin-guide/laptops/thinkpad-acpi.rst > > But I wonder if we should export this information to > userspace in this way ? > > The reason why I'm wondering is because mac-address passthrough > in case of using e.g. Lenovo Thunderbolt docks is already > supported by the kernel by code for this in drivers/net/usb/r8152.c : > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/usb/r8152.c#n1613 > > So I'm wondering if we really need this, is there a planned > userspace API consumer of the new sysfs interface ? > > Or is this only intended as a way for a user to query this, iow > is this purely intended for informational purposes ? > Hi Hans, We've previously had strong pushback from the maintainers in the net tree that the MAC passthru should not be done there and should be done in user-space. I'd have to dig up the threads, but there was a preference for it to not be done in the kernel (and some frustrations at having vendor specific changes in the net driver). We've also seen various timing issues (some related to ME FW doing it's thing) that makes it tricky to handle in the kernel - with added delays being needed leading to patches that can't be accepted. This approach is one of the steps towards fixing this. Fernando did discuss and review this with me beforehand (apologies - I meant to add a note saying I'd been involved). If you think there is a better approach please let us know, but we figured as this is a Lenovo specific thing it made sense to have it here in thinkpad_acpi. There will be a consumer (I think it's a script and udev rule) to update the MAC if a passthru-MAC address is provided via the BIOS. This will be open-source, but we haven't really figured out how to release it yet. Fernando - please correct anything I've gotten wrong! Mark