Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3ADABC001B1 for ; Fri, 23 Jun 2023 11:47:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 55FFB8638B; Fri, 23 Jun 2023 13:47:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oVbeGRZ2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F66286398; Fri, 23 Jun 2023 13:47:01 +0200 (CEST) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8D828861D4 for ; Fri, 23 Jun 2023 13:46:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-312826ffedbso609091f8f.0 for ; Fri, 23 Jun 2023 04:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687520818; x=1690112818; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=6lrcTKz07nAS0NrtS+RsFxILFW7I4fYAj1ufSmJnYsM=; b=oVbeGRZ2gBNqlbKJGi6fXA/FVKUms6hMsjuULHYaqhOGE5zi9QR5lix0SuQMIn+Jdz gRgPVuPBS/xZgOkGW8CkRZ5hggZn+FLeM3CkOYv3ooT8Na+zaXJ/cclT2OkJAsDXN0s4 SLwjj5v5Sr+LSdkUBqvNJ+klVj0f8/Fhp0t3HOpP6/OaO63CjNNgliRN/0k+cCyRb+Qx pKxNRDTQja4Oa97aC8CqM6KaZ+MmsqeIjUgapqLqw1wdxciWx2VtMlSw1N9mB3hcV+au CCCaM2TT4Zt42ukcElweJ1+u0Gumq4xr+n+3500KUQW344+ytsTZqGVGBEJFBJchjKRV q+JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687520818; x=1690112818; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6lrcTKz07nAS0NrtS+RsFxILFW7I4fYAj1ufSmJnYsM=; b=F9hmlW0OlsBEbS3HmG4VF3s+YctjX4Rki6/Fjs5h3o+DS8ruvSf0O7AL/VpbKdshBD 13LD83Jsu1Fbqk+FgVxMhWruosJpEzdSUzyjVADH+3kwjaWprM46YJuczvVcO62UsMPk 83J6uOnoVWV1h9fL110V7y5UfbhwuxMmxjtdNYC/IJiERVoKXgq2BznSiyQWkQ4TeLgL 5wk6looW3H3EmEPMVBgyH/3cV/SIV9ShobGe1o3LCB6FmDOLosQcyTb7pKFVhf96V9cW mcGWP8Kkuw5QSzzQUAv+Lzcil5SyzAubtJvfD0rcJoJGGxkdBvQVwcqxJponbnSuptxS q+Og== X-Gm-Message-State: AC+VfDxjxBj44bvACfwWmZ0Ln9/E+5CdnEqwUamY6UVhRy/K0rEvT4JN PXEyu6N34DAxBlL4bz2kvZU= X-Google-Smtp-Source: ACHHUZ4/nq8aUnmGsO7MP9/zQM/NjOPsxhm23wZz8Mv9q5ub3up+Zd07+rlMQMK0VnWgAGwhwZIGQA== X-Received: by 2002:adf:e4cd:0:b0:30e:3d5a:b2be with SMTP id v13-20020adfe4cd000000b0030e3d5ab2bemr16586419wrm.44.1687520817808; Fri, 23 Jun 2023 04:46:57 -0700 (PDT) Received: from [127.0.0.1] ([91.204.85.69]) by smtp.gmail.com with ESMTPSA id q6-20020adff506000000b00307c8d6b4a0sm9353491wro.26.2023.06.23.04.46.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Jun 2023 04:46:57 -0700 (PDT) Date: Fri, 23 Jun 2023 14:46:54 +0300 From: Svyatoslav Ryhel To: Thierry Reding CC: Thierry Reding , Tom Warren , Tom Rini , Simon Glass , =?ISO-8859-1?Q?Jonas_Schw=F6bel?= , u-boot@lists.denx.de Subject: Re: [PATCH v7 3/7] ARM: tegra: add SoC UID calculation function User-Agent: K-9 Mail for Android In-Reply-To: References: <20230623055600.246416-1-clamor95@gmail.com> <20230623055600.246416-4-clamor95@gmail.com> Message-ID: <9FFB6FC9-8375-4004-875E-BE1CCA17F61B@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 23 =D1=87=D0=B5=D1=80=D0=B2=D0=BD=D1=8F 2023 =D1=80=2E 14:24:37 GMT+03:00,= Thierry Reding =D0=BD=D0=B0=D0=BF=D0=B8=D1= =81=D0=B0=D0=B2(-=D0=BB=D0=B0): >On Fri, Jun 23, 2023 at 08:55:56AM +0300, Svyatoslav Ryhel wrote: >> This is a small tool for calculation of SoC UID based on the same >> Linux function=2E It can be further used for generation of device >> unique data like mac address or exposing it as serial number=2E > >It's a very bad idea to use the SoC UID as a MAC address=2E There are >better ways (such as MAC address randomization) to generate one if for >some reason you don't have a real MAC address or are concerned about >privacy=2E SoC UID is not used directly as MAC but it is used as a device specific ba= se to generate device specific one=2E You can check LG board to see what I = mean=2E >The SoC UID is also not very well suited as a serial number because it >identifies only the SoC, but doesn't say anything about any of the other >components of a device=2E Many devices have serial numbers in some EEPROM >chip, so those would be more appropriate=2E That is not the case of devices in patches and IIRC SoC UID is used as fas= tboot ID on transformers by vendor=2E >I suppose not all devices have such a system-wide serial number, so >perhaps there are cases where this would be better than nothing=2E Vendors usually do not expose serial in any device hardware, or at least d= o not bother to inform, where to find it=2E >Thierry