Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5800710rwd; Wed, 24 May 2023 07:02:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aBwdOOZr/lSVqbSWvkoRYTJne/Xe1pjHsnBcOrOMwQ2KxOwSvlPceE5r5aFuhPbHvio7p X-Received: by 2002:a9d:7b54:0:b0:6a6:61bb:a6a3 with SMTP id f20-20020a9d7b54000000b006a661bba6a3mr9947415oto.15.1684936940972; Wed, 24 May 2023 07:02:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684936940; cv=pass; d=google.com; s=arc-20160816; b=J7CG4JxLGr6TRayrOz9e8MKM5B+p6QmeVAF9esA5IgBlFrov/j96HvVf9Xp51pWFWh vYUFOQLVFwfFy39+dqvtaApYehf7GZzjMq18NFUBzlU2g2xRPaJ2P1oJuxfWot74Tqoy K+ZYU+lBuxmDmHOk2K97urPNgcd4uvb19jhK3DwfK2ordhybvpiVhKLQNNIToS/I5x/Q mtkU0BvuTCICfCc00VsHfF6VZPR4/ouC2xmZjh+OV26dMBSCoegirjeIwTUmlNVZXbY9 erJHIoyFqNLBmZpWEYn/pol+PQLNF1hXB7Xg13YlML0Z7FsWWRnEin231pRqMX3dxLQG BT7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=T9eepb3a57ozjJU6nNmtgst05xl3a1+RNKW946hLsXE=; b=WAZqoTuFS/ecUgkMjTGe6/uVltGZpAm05QixRrpSoUvYRtygEDSmcvNAV2zWGIJiYd nHmfL1A7MLUhcEMZPZ45rOICMJ/DpyqgPDHrVbD4/Ng7SbkSsYmuO5tsdH+WOJBP9e1F GG0l22OFMXw9t2bDow38UoDRpuDeYBXI/xKC4hxF/S3X2oGba2+cdQRgPQrbC/pOSY8T 9P5+GQIa3CuWuoIAw8etsSTU3o0LNnMoRXmWbuMx8IDTwJgUhJgBVdic5axpHuapvfu/ qgNY0xGVTpHnmzz8IqX6pypMIBWCAteS8D9iRBdt6lBLi3UFMrxDbcj3ifLlSXDlF73n kVxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@prevas.dk header.s=selector1 header.b=SsRUxyNs; arc=pass (i=1 spf=pass spfdomain=prevas.dk dkim=pass dkdomain=prevas.dk dmarc=pass fromdomain=prevas.dk); 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=REJECT sp=REJECT dis=NONE) header.from=prevas.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q30-20020a056830441e00b006af65d38ee8si5788777otv.341.2023.05.24.07.02.01; Wed, 24 May 2023 07:02:20 -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=@prevas.dk header.s=selector1 header.b=SsRUxyNs; arc=pass (i=1 spf=pass spfdomain=prevas.dk dkim=pass dkdomain=prevas.dk dmarc=pass fromdomain=prevas.dk); 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=REJECT sp=REJECT dis=NONE) header.from=prevas.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233977AbjEXNaS (ORCPT + 99 others); Wed, 24 May 2023 09:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234399AbjEXNaP (ORCPT ); Wed, 24 May 2023 09:30:15 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2100.outbound.protection.outlook.com [40.107.22.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0513BE9 for ; Wed, 24 May 2023 06:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TR8o5lu2pnfHLphq8sQ3ZZsIH38krZDAhg3Ov2D8+qupDhcbqKXihLcVP+YMIJC9Op9fDGfRdJAkQ/rUqSnb1lT/Z/1UNd8yNilnaLDqKWUEKxHfeGthkZvrqW/VPVMMYOw09e9fHrrIKYoFSMYt+LUOk0ShGyK5nzvAxFdSiEFIYKYy5djOCwEn3b5Oog3XuPNnN2qPb7gAR7Bwa/EqgTRmlIkbQjsiwm1bdoNDiseOwxZE52YJb1HCsPYL9icxmzNNd/lKobtAi2zjNPAgHyfHgvOxuLp3vwCtsMoM9cLwR3hy2sgEdBPG4Kje7ToJizWSgjx1Uv8J1V/AigCfMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=T9eepb3a57ozjJU6nNmtgst05xl3a1+RNKW946hLsXE=; b=YSuU650CAzB9psDWn8MxLSMwKamEvUtndBqlvekiZBGwBHRQnHb6RR8uquGd/v1yoHu+fPMHPz2sqk8wiEdOBwkpMIZMpTFnamN3Fa6WtV+llrlOu5H+vlzCkPpqgrL5C82CrNc4YXs/1jFw0wM3ThcOIYpdoYw29he5oQsxaWgL2msy6gi+amFk5IFqveC+rpVWju9fZqvn7sXr6ZxTE25PDRo3HPt+Vq4OQRzb1c5ktWsWa/tbazIWT4vcDbLcEyMk7W7jJDt0U3rDvWxBJfwrR9MYBdA8l4n0R2y3a7fNnqKMCvApvffPoUDH5DZ3AcSOaKpCkVzu9cNaAosprA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T9eepb3a57ozjJU6nNmtgst05xl3a1+RNKW946hLsXE=; b=SsRUxyNsjLAK7T6akUU5eegSatx8+MDPBNtEGN5+pIaRfw0gxCcZaQXflj4uAT5u1wkNb5AGtm+aLii20vifFK/ZsEu0dcXCTiiODN2f3PbN0e0AODNPDKJXhUmB0geR+edKLwWCP4lihcNjc6ez9VwwgcPwNxexwoqw/kUELLI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=prevas.dk; Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) by AS2PR10MB6688.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:55f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29; Wed, 24 May 2023 13:30:04 +0000 Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::8edd:b6b0:d2dd:ee12]) by DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM ([fe80::8edd:b6b0:d2dd:ee12%7]) with mapi id 15.20.6411.028; Wed, 24 May 2023 13:30:04 +0000 Message-ID: <33d57180-aa13-4178-86e1-c4cf6ef29a6e@prevas.dk> Date: Wed, 24 May 2023 15:30:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V3] soc: imx: support i.MX93 soc device Content-Language: en-US, da To: "Peng Fan (OSS)" , shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan References: <20230515063730.2042715-1-peng.fan@oss.nxp.com> From: Rasmus Villemoes In-Reply-To: <20230515063730.2042715-1-peng.fan@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: GV3P280CA0023.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:b::24) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|AS2PR10MB6688:EE_ X-MS-Office365-Filtering-Correlation-Id: 99902de6-c3ae-4cfd-7f7c-08db5c5afbe7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P5TiXLizDVoozqMxRFEwvkkQ8lOr+IxlTu/XzTmvxZBAROLef01NxIPEEGOg1Qb6msTrNmswQTMaRvNTDbPGi0sJesPG34M1Ol6JU1KjvJOb/KG8VJXaRMD2e8WXJV4Z4nJlAkFAnsrr5cHjT+TqhMp//xVndoLmpqe4RQzWJXm8mLD8/RiUxaWhRL0IBUMMdVttLHABC+B4zfvSRrWORH+zmd0jTNWEltZ1W3POCPfDDIKzX+7YA/Z/4Jgg/88ICUYHehOCOYFu5WoQPkdH40mQLIkr/7Od0AYFg+VQPJP3a2b4Cl9kz2MmgfuoYRReARzdt8pd6mwpEwcKX808zxuqUyVLOTiYlvkqoA9IPCQBcf5CKZk7BlMM9f9Z6QUHSuvQuDp9slbgqKqNKZlgSIkQzTnn6qiGp8KSjZRmdkrZIwPaqV7YdTNICbbOjBID71VZT73EDIE+CRl51l+tnk6sRo+QrU/NgQGbuRIhO5L4ypDvvA9/Ols9TdeBfybdd/VDlgjZo1+x1qhJoNRcMjvu0ejVd7oXKovenMicCoSnSe68H0LRPNlpdOnLB1mOv4ffr+dfbLUUm0Xrhw9qLrSR+3HRh2jkkFoc2T15mAT7g0LJSA9i3z+j3R05fgJAkBpddj8yXszWUeJlxmRzn9GVpButpwNu/1BJc87P6D7KWAJQxz6bOURR/VMLfzji X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(136003)(366004)(39850400004)(396003)(451199021)(8676002)(8936002)(8976002)(86362001)(31696002)(5660300002)(2906002)(6512007)(6506007)(26005)(36756003)(83380400001)(2616005)(186003)(44832011)(38100700002)(66946007)(31686004)(66476007)(4326008)(66556008)(6666004)(316002)(38350700002)(478600001)(6486002)(52116002)(41300700001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QzRkWWRxU01zQ0Fvc3hDb0gzc09nbTNndWppMjQra1dJUXhTck5HeXRqUlcv?= =?utf-8?B?S1ZKbTNLeVl5b3B3c2w3czJ1am9TdnpRVFNJNEVwMEVzdUVGdHNTWnkvalRo?= =?utf-8?B?aFM2a3M0aS9la1BOUU1jWmFLcEJxNXI2RDBwMndaSXhZN1hrUTZDU1ZvUUYw?= =?utf-8?B?RnJLaG1ZU3BHQktneXEza3hhRGNpVHc1MkcxVDRaN0RTYVJVS04rM2JuaDJO?= =?utf-8?B?dGJYYTNydkE5Um1iWEtqcC9NMnJ4WUFiWndtZ0c4S3l3cndFVlI1TVNUamFs?= =?utf-8?B?RCtYanN1N1dPZWlzZ01nSDZhdXZWUlFGOHFBUlFJZ01aOW8zTktYVzYrd21Q?= =?utf-8?B?RUZydGtUNHgxRmYyeXo1RFp1QmRsM1ErSHdYdHRXZE5pRWF3TUFmejRwS3VT?= =?utf-8?B?V0NVVUFHZ3R4TGRqclNSaGoyZ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Message-Id: 99902de6-c3ae-4cfd-7f7c-08db5c5afbe7 X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2023 13:30:04.7878 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kcvBLroBvFdC4jSH28oBi2aohmUwZgn6K81YZOD3cMo0pNxXsIC9Ys5XEFJop8BvGbmD5QfrA28vB5CaRLVcy+6HuXiiEjRhcigGSgxu0wo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR10MB6688 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 15/05/2023 08.37, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX93 Device Unique ID(UID) is in eFuse that could be read through > OCOTP Fuse Shadow Block. i.MX93 UID is 128 bits long, so introduce > soc_uid_high to indicate the higher 64bits. So apparently, the imx8mp also has 128 bits, at least according to the reference manual, which mentions a "UNIQUE_ID[127:64]" at offset 0xe00 - 0xe10 (i.e. bank 40, words 0 and 1). However, no further mention of these upper bits can be found anywhere in the RM, or in linux or u-boot, mainline or downstream NXP. Furthermore, quick experiments on both an imx8mp-evk and a custom imx8mp board reveals that those words are not locked down (they do seem to have some contents from the factory, but I can still set more bits in them). Could someone from NXP please explain what exactly bank 40, words 0 and 1, on imx8mp are for? What do their initial value mean, why are they not locked down, and why does the RM indicate that they should be part of a unique_id? Also, assuming that the RM is just wrong (wouldn't be the first time; the description of the lower 64 bits is also wonky in its own special way), an obvious follow-up question is: Are the currently exposed (lower) 64 bits unique among all imx8mp SOCs, i.e. does those 64 bits by themselves actually work as a uid? Rasmus