Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1837682rwd; Wed, 17 May 2023 01:59:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6515ud28XcYj1aTb+PDPAIl2ndeP5JDCpKI9juguHJtrdO/ron4SL9v+tOogW1HphhX/rh X-Received: by 2002:a05:6a00:13aa:b0:64c:b45e:bcbf with SMTP id t42-20020a056a0013aa00b0064cb45ebcbfmr128138pfg.4.1684313998979; Wed, 17 May 2023 01:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684313998; cv=none; d=google.com; s=arc-20160816; b=YAnmUs/2atG4eXXyR3t052Bi1i1i0VSBkaxlZLAwqVFgtC4kTFf16C9EjrzLeGIeDQ qzfKxL+i6uR4GdlrTt2EODLjWuQXSP4FzVWrmsHRSDI0v4G1gbRrqEN/y3ahtvGf9FbP XOatvhQThPCVhMiF77EUXocN37xVIkmXVr7iyD58b5/pBDEE8bCfNbZljaB2aFmp7CMK 5bwFVazQ4MP3MsbpcptaPEogVRmwRW9gRBuh8mJYdj/7eyMIHlU3ZLfhy+78j4wpQbzn oUYgOy1DjghOGC9JKPah1gRagWEYCih8j2P6s/CU94fTNPwhKZwn/shZyC0dn+thxBAu Ae2w== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=g7ruM67WgRDIXbVKb/F6e9gFEQIj+XoUWJErkIr/uRg=; b=YmZnQnr4tnY714xnJ/aQzGxOlz7uC3BKYj+7SMaebOtYVmg0P2JvXJyOnx8qg+gIUe fTaClAA/3IWpoUunVpUOplhj4qD+dEhzb2QBOsAnFesK89wNohXDiCUGp3LB0uS34cTp mnIl1KVT/OsLemMbVVj2lU4dYpWqysfZSn5Ygj9GxvEEA7863RE5hItkS55a2CUe6cqM yB2CQKe7XcF1QjmPlmIZ/Zgj1YcsFrO7pcTZtdtQhT9jb4QsnAvxmX1VmjU5Ka6U7GNK eKYdkaQELnT0hujMaBvRjmNJQn9n8Q/bp4VqXHdjz6Ux/HAnil2PSG4OIRceEQhoW6Fp +9rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ItSaBxJT; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t62-20020a638141000000b00517a4a75528si20510871pgd.162.2023.05.17.01.59.45; Wed, 17 May 2023 01:59:58 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ItSaBxJT; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229485AbjEQIiJ (ORCPT + 99 others); Wed, 17 May 2023 04:38:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbjEQIhv (ORCPT ); Wed, 17 May 2023 04:37:51 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 892481A5 for ; Wed, 17 May 2023 01:36:45 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-50bc2feb320so663465a12.3 for ; Wed, 17 May 2023 01:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684312604; x=1686904604; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=g7ruM67WgRDIXbVKb/F6e9gFEQIj+XoUWJErkIr/uRg=; b=ItSaBxJTJ1tBihpooE/eT24WtPMlJ5sdTHYC9l471aIHQkuvYcRgVDLGm7zaeDx0Bc a36OA5ogxSHq9sO1144MHXOcUG5Y3QLpR0e9Nik2MR31WkUIXZCe22sI2gI5wNCKz9kr VZFFD4gmzMImzYaEayluE6x8Bj/dRjpcOwJJ0I2IaJyRb5IQlBbalaf975PvfR5UQzvO QDftdV7RP/vABR+XhsI+BRLDSXSbgoK7J8NZfoBdlxRZV25GHkcooq7gvv7SUuZgHDrF rGnC1nOr+QXN37dAKP6xpSljkn9O6VjZGEA2ymJpMtcTFUyxMhZkBFxEmJGsuFMnqlNx P3cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684312604; x=1686904604; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g7ruM67WgRDIXbVKb/F6e9gFEQIj+XoUWJErkIr/uRg=; b=NaiEjhaVEjfj3Ok9EthrVqqWli3S0Sm6K/UNLATzkhF0XRmtC7HJCqedTqQKUFrGm+ wf1VeDi8ykpgijzQxb597Mu5ax8bgs/Zew0GEPkbGBeu/Sl3fMy8e8fJk+JukuPw4rOG 34gkK1QFz30DO24i3gB408tnI6DCNDQ3pdT6Rx7LH7OkN34lpeIiBAxwnKH22IVJYdPK L8NUIJN58yfbQV3gaZ2MDeS40N2gqvVb5vB768F1j+fAZHsLRJXEoYAQc43GiocCtPmW adKJQ6ICfP02E+DyJdZMYwI2QkK/P8d6wmGwq+IN53a6Jm29i1CUlCc8mE23Nmb7Ho5I fZbw== X-Gm-Message-State: AC+VfDwCDToEJTnfioWTB0VzZAAHIvAs9MSr3xJ1n5966TDbc2ZcM8j2 4ZTG5W5erKrzGm4hE4WInlEU7w== X-Received: by 2002:a17:907:8a14:b0:94f:6218:191f with SMTP id sc20-20020a1709078a1400b0094f6218191fmr39457018ejc.52.1684312603985; Wed, 17 May 2023 01:36:43 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:c9ff:4c84:dd21:568d? ([2a02:810d:15c0:828:c9ff:4c84:dd21:568d]) by smtp.gmail.com with ESMTPSA id ta26-20020a1709078c1a00b009663b1addb0sm11911626ejc.224.2023.05.17.01.36.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 01:36:43 -0700 (PDT) Message-ID: <38ae4ceb-da21-d73e-9625-1918b4ab4e16@linaro.org> Date: Wed, 17 May 2023 10:36:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 3/5] dt-bindings: net: add mac-address-increment option Content-Language: en-US To: Ivan Mikhaylov , Samuel Mendoza-Jonas , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Paul Fertser References: <20230509143504.30382-1-fr0st61te@gmail.com> <20230509143504.30382-4-fr0st61te@gmail.com> <6b5be71e-141e-c02a-8cba-a528264b26c2@linaro.org> <8de01e81-43dc-71af-f56f-4fba957b0b0b@linaro.org> <5b826dc7-2d02-d4ed-3b6a-63737abe732b@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 16/05/2023 13:47, Ivan Mikhaylov wrote: hy this is property of the hardware. I >>>> understand >>>> that this is something you want Linux to do, but DT is not for >>>> that >>>> purpose. Do not encode system policies into DT and what above >>>> commit >>>> says is a policy. >>>> >>> >>> Krzysztof, okay then to which DT subsystem it should belong? To >>> ftgmac100 after conversion? >> >> To my understanding, decision to add some numbers to MAC address does >> not look like DT property at all. Otherwise please help me to >> understand >> - why different boards with same device should have different >> offset/value? >> >> Anyway, commit msg also lacks any justification for this. >> >> Best regards, >> Krzysztof >> > > Krzysztof, essentially some PCIe network cards have like an additional > *MII interface which connects directly to a BMC (separate SoC for > managing a motherboard) and by sending special ethernet type frames > over that connection (called NC-SI) the BMC can obtain MAC, get link > parameters etc. So it's natural for a vendor to allocate two MACs per > such a board with PCIe card intergrated, with one MAC "flashed into" > the network card, under the assumption that the BMC should Who makes the assumption that next MAC should differ by 1 or 2? > automatically use the next MAC. So it's the property of the hardware as > the vendor designs it, not a matter of usage policy. > > Also at the nvmem binding tree is "nvmem-cell-cells" which is literally > the same as what was proposed but on different level. > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/Documentation/devicetree/bindings/nvmem?id=7e2805c203a6c8dc85c1cfda205161ed39ae82d5 How is this similar? This points the location of mac address on some NV storage. You add fixed value which should be added to the Ethernet. I might be missing the context but there is no DTS example nor user of this property, so how can I get such? Best regards, Krzysztof