Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4174688rwd; Tue, 30 May 2023 01:21:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PcXHn66R8AXzeA+J8GF9yng22YNUwkTNr2VNM1RloVs4mgJjZWjT0NyQp81oGDMzuPRzE X-Received: by 2002:a17:902:da88:b0:1b0:2e59:6d23 with SMTP id j8-20020a170902da8800b001b02e596d23mr1776860plx.20.1685434867013; Tue, 30 May 2023 01:21:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685434866; cv=pass; d=google.com; s=arc-20160816; b=xOIbaCLz7xLGZWKgGo2wmwpNbh4ATPKdFJBFEgMJflB2NNzPvkMfEvGSwegBLmBoBC WGcYJLAYLqqiF3q8jswpAS+eQA0Q7XDdEHhahoeKwIs4ocyhKCOVtGqBbRJvNppkKzkX XUFVJPLK1B/P07XXXwt+DV3sqPda8tBZBJfm8ruSnYSs16mOL68tZF2wt3Om6btGZ0ap VjdZIV/h5y8TCShoF1imCQL1hPTuQDA98705+Obp2voEC/N3JaL7ixR7cKcDaZcp1TcY LoY1aqXMhvHns4QxlmXIQQaJWvGwszfFpYoGIdTrglYWxLe1PRdGqyzQejHj7KYHVYq/ whXQ== 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=lXC+JABUxMhcpraCX6s/4IZ71wQ6isYayBWUiK42lPo=; b=GyvkJ4KGUdE5s+g5jr59BBiCYBnI6vPxCd1V9XvDIazbxOElfwmnvrb4o+ilmu5+8D SnEE1r47zkEC3HYRSboAenyhTevOtjWfDyRlVSMqyQJ6ftq+im7Bp6hzTyRjsyRrCbph G9Z2V9JkQb/12+b+cO6U/29MIKLU/yTsKMmKTbAb8a679P6mPJBCPjfljk1POknTXoz+ sNCoTDNOg8LXXkLwLoS/bc/W+PvDcGhCrrtka4cRffIB+lFocE47fSpbOfdla60g2NAc ZHTXBozVoWJzx2fMFVf76RZ+Hxsxa/TWl2tiWO1WxKu5fJagoARFh1WTKHwkpGDz8ln6 6V7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@prevas.dk header.s=selector1 header.b=d569e3rX; 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 z8-20020a1709028f8800b001a6f0eab385si10986489plo.55.2023.05.30.01.20.52; Tue, 30 May 2023 01:21:06 -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=d569e3rX; 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 S229993AbjE3IGq (ORCPT + 99 others); Tue, 30 May 2023 04:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbjE3IGd (ORCPT ); Tue, 30 May 2023 04:06:33 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2090.outbound.protection.outlook.com [40.107.7.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D8F5124 for ; Tue, 30 May 2023 01:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BOjD0b83kfOE7qEPGxFyUewjyqHd1loYQhxkTVGR5k7Zx0oB4fMcBMB9nEd68MjMBpOKT0Q4r2wnR43hbMNTWVwsetqTTkcBwYBPowQ/g7M5dWbQsjrGo9k09fwP+aX2Im2vMsVMJ9iUot09SiMa0HEMUINcnlFd7eY7W51P5LJH5lXYf3OzvNUmC4BOjRBGJy4+O1R4B7CxOXgFmViUw/tTkXPWA8k3cCkc5c66DiWazwWf2fbYncXH7myGh3i5f7A6d6h9ZNivreWguIED4JjNv+bRtFuvoq6M1BE641L4yEFHGPdFewAZWkdfNDok/fIS6cdaEp7vTDGyDwIKjA== 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=lXC+JABUxMhcpraCX6s/4IZ71wQ6isYayBWUiK42lPo=; b=IV3ezrcVowBiwR7Q37V/5cC7jwP/UgiE6dHjKZ+ly1TFrV91EhSGtlXMYCXBArpVzq6j5jcdFWiMTQeTUVvVvDZJmrt7I9jQitDEqnk8J/3ENEYAgusRSFVITmdyV1QHXWxd3208AUwe+nD9p+T4+WifiqIhzxGxN8Hxf6htQdDEXgNbmJREJwSql2KTbcc6PsWU8wRmvcSb0Nr2neNBTWMQZY8khdl5JUU/I3AFeiSWJx1Moh9aTfhzwks6KWOOMWkuMFMoeUt+LcCPyNIv4iNVpXI5l7mwrmG0OrN/pSo4fjp2/FQqRd3na1PCDMtt7/rvHRa90ukdfbZ3BIbdlw== 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=lXC+JABUxMhcpraCX6s/4IZ71wQ6isYayBWUiK42lPo=; b=d569e3rX/eeeTab1c5OFTNrp68xyLzQot6T1lE8g0BS94Ai6QoTOT2zfOz5wMAtu4DXEyR+bu0zrwDs6swkJ8aewVaVkvWxJGCLRcc50No9+73aSqaADEaSaolyDW1ScM7YI+pT+pyfIpcl5BGPldjVQSNr+tBmFq8O0Y8XZk3Y= 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 AS8PR10MB6996.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5a7::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 08:06:16 +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.6433.022; Tue, 30 May 2023 08:06:16 +0000 Message-ID: <04a3e224-3f06-47e9-54ca-44a0c4d5759c@prevas.dk> Date: Tue, 30 May 2023 10:06:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V4 1/2] soc: imx: Correct i.MX8MP 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: <20230529033710.4098568-1-peng.fan@oss.nxp.com> From: Rasmus Villemoes In-Reply-To: <20230529033710.4098568-1-peng.fan@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM3PR05CA0124.eurprd05.prod.outlook.com (2603:10a6:207:2::26) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|AS8PR10MB6996:EE_ X-MS-Office365-Filtering-Correlation-Id: a723d543-ef6a-4fa8-2272-08db60e4be4b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 19AlUCo92FojnqAwGJFV+O5CN1FsVot6+rcfAeaa0U3xH0RvBAZ0d56n4cLNOApjMkdnWC0nKH43DCTZVQLycvsqJIvHXcNcQtjh5zEa9hIAzXN3d4YFFFRWh0Et50YHTKR3AlsP8WARhI7tpTs9JxM0R7juna1OLazdQGPvHnmINwpyU+ljlJHdjQpcVeoN34QCQQOEkYtEYMCG93DaBqplCXFzuDe8SkBUe9Et0IBYpDkAr7tjxuh2dlX3gYgHFD9mAot4BxYiUo+e+LFrio6qt1eabt9crRQL6YITl5BpyehBou4KMGdDnU2Vu202OOnFVoRRvb+QahouyVPAIh72fZs4vR4zbDK/pBrsSIGxjntoQuds8C879QvFJcIrUthch+oPkpVy4puGX7hSTieLr7yJWlZGPYSCXUJP9UeLgAGZ9wSnY4crmJi8GfpeLPAwm4t+fec1WLtmJeKrr1C7ZJXutMZP/jNHCbLbgpOG7g0oAQCSUuVmRmk6egIkzvKGxYziOhEftYF1Utk/RuLjIv67HJK6YoxdiIGAdujp3MK8E3rRb0NbKTmMw+OlXhMWZaY1plaOoDdDUz2BvXPjCwDpDSOYdJZKGbHfS2MzTkx/XUm0nEAmsJs9EZy4gy7RDYo1T7BzZv2qHiwyXYvubgd5dVkqR+E51tDryDE= 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)(136003)(366004)(346002)(376002)(396003)(39850400004)(451199021)(966005)(186003)(2616005)(38100700002)(38350700002)(41300700001)(31686004)(83380400001)(6506007)(6512007)(26005)(6486002)(6666004)(52116002)(478600001)(4326008)(66556008)(66476007)(66946007)(316002)(5660300002)(8676002)(8936002)(8976002)(44832011)(2906002)(86362001)(31696002)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eVVBWlZLSkZINXBXdmN0WmFZMlkrT1hISmttQ2JGMWxZOVRzSk9sZXZMcE5H?= =?utf-8?B?YmV1c2dicGdESHZ1eUJ0RXVhT3A4NURWMm9vUWl1Z2ljUmRzejNhVEY0b29h?= =?utf-8?B?WXZoSllTS0hzS0VaalVLWTVPUXZQV2VxZTh0eURXcGR3UmxNUWN6bTFETFpr?= =?utf-8?B?Q0wzQUZJVkx3alhNb1lBQ0RjSTAvZmhvSnhNVEJ1bzVwWkFvL0VUTFM0U2w5?= =?utf-8?B?ZENDTTNidDFDbW9tWDBPd2FTRkVJdE1WN2pQTUlDN09pd2FBQStIR3F3d3RK?= =?utf-8?B?UTBpZVpJUXZ6WnR5SzNmZ3NUL0NUVVJPV1F4Vnd6VUZZVTRWcHR1QjZDK1hZ?= =?utf-8?B?bUluQkpnak1xUmM1NmpQcUFCM1QvbDhKdEdvSmYxUlEwdmRBbmJHNklJWHFj?= =?utf-8?B?NlhRUDBzVGdNRzczUFV5WmZpTTlrTEdEVW9ucS9jOXpGZlFlSkpFcENJRkto?=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X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 08:06:16.5645 (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: aPYRHDIeKA0+bMMnzKiMEi1KaOmVxdaEIBtEKkL+FeUI/4BB8CVcmhYMGZ0wHbN436fJChjEQTrh7W0hbw8Gn04ND60puHgcH7NhXdlxh28= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB6996 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, URIBL_BLOCKED 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 29/05/2023 05.37, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX8MP UID is actually 128bits and partitioned into two parts, with 1st > 64bits at 0x410 and 0x420, with 2nd 64bits at 0xE00 and 0xE10. > > So introduce soc_uid_h for the higher 64bits Interestingly, reaching out to our NXP sales rep asking for clarification resulted in: On i.MX 8MP Unique ID is 64 bits. Please see here: https://github.com/nxp-imx/uboot-imx/blob/lf_v2022.04/arch/arm/mach-imx/imx8m/soc.c#L752 So could you guys (and here I'm referring to everybody with an @nxp.com email) internally _please_ talk to each other and figure out what's what. And, again assuming that the UID is really 128 bits, nobody has yet answered why the upper 64 bits are not locked down, nor what would/could happen if the end user/customer modifies those bits. > Fixes: 18f662a73862 ("soc: imx: Add i.MX8MP SoC driver support") > Reported-by: Rasmus Villemoes That's true. > Closes: https://lore.kernel.org/all/fe5e2b36-6a8e-656c-a4a6-13a47f4871af@prevas.dk/ Not at all. We (anybody outside nxp.com, and from what I can tell, probably quite a few people inside) still lack a complete explanation for this whole mess - why does the RM say one thing, which gets repeated by NXP TechSupport in a community forum, while a sales representative asserts that the current code (in both mainline and downstream linux and u-boot) is correct, and now you claim that in fact the current code is not correct. Rasmus