Message ID | 20200501134418.7319-3-peng.fan@nxp.com |
---|---|
State | Changes Requested |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=RYDQpmUy; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49DCd54JNQz9sTF for <incoming@patchwork.ozlabs.org>; Fri, 1 May 2020 23:23:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 58E9B821B6; Fri, 1 May 2020 15:23:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="RYDQpmUy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CEDB581E49; Fri, 1 May 2020 15:22:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 40A0981D1E for <u-boot@lists.denx.de>; Fri, 1 May 2020 15:22:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iIMPTzgiD1WhXGsVoycI9JtwOB84nSECCDEvc4ovkijhQw3aJi3ApC1BufqfYPIQpE4ctRkRnzY1bdt1TLGWl18xlVdytmhoZ+oeFBHyq472mlSup5/1rBhZVZYdy7cJe/Fw97SuUVR7iM34YH3VpEKDMzt+Iqda7qnYC6XygAx9GJV5iG8rKkrnMY9t2TGBxyX9hdV1+ftPMBikjbwDyGp6kdu+Bk/pos6RiQPAxO+W2fMS2zjYLBJjZjm3vKmdiDh5G0C7lw12z8Vf2eUyXuTHHp1+AhRYHe4qqSKj2qhshQusyx5OGEl/C3mue9ozEhLkQCVA5etElYCKzPUGzg== 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-SenderADCheck; bh=Y1Ot8N9MGPjLJRDTMekoD7/8yiCLd2JOrtZJmooJMKk=; b=hX3dOBZzbAmu9Kv76imdV+yBP4xxO1OebadNbqp4G9cNJkz5y+EfBJbo6obaFKhGFcd3QlXJpPfS8qWgZbOO8W/99K2XJq+vF2dn4NSt050iYhlds4kmeg8cBaHeJOYxf7B8V8EPGQPNiLr2vuJHDVsgf7wQChRsVcr92I5VErVxGukypX5/rsl2RltJ8NROoGZ/WiIjCcal8Bu2tUJccGzUfhxltSECToCEHrAYocSR/vsTefxDXPMHvoAh/inRUkeEcZprRJvPC4o1G1vCDF8BSodNgqJSuhNyJilWvpAvOhlY8CALHrjiQTZThXYBjKZxTWnHrDxYAV3Byww/cA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y1Ot8N9MGPjLJRDTMekoD7/8yiCLd2JOrtZJmooJMKk=; b=RYDQpmUyXbQWDCDln6eMlBCgcUYAK4IukvLCDrH8PQycFsudzZZSPCLtm1SbWtoGQcJyrFeUwmN7HbjWomMeWuxng46wnsRiOgmMHAWHknj70XKCW1PfhzDPVFG5UtZwpzai00Xh32Bz0ox1iU/xAUelJbNV+w0kt5efyzVEcWc= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2853.eurprd04.prod.outlook.com (2603:10a6:4:99::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Fri, 1 May 2020 13:22:31 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.2937.028; Fri, 1 May 2020 13:22:31 +0000 From: Peng Fan <peng.fan@nxp.com> To: sbabic@denx.de, festevam@gmail.com, sjg@chromium.org Cc: ovpanait@gmail.com, patrick.delaunay@st.com, joe.hershberger@ni.com, uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 3/9] test: cpu: test current cpu Date: Fri, 1 May 2020 21:44:12 +0800 Message-Id: <20200501134418.7319-3-peng.fan@nxp.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200501134418.7319-1-peng.fan@nxp.com> References: <20200501134418.7319-1-peng.fan@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0108.apcprd02.prod.outlook.com (2603:1096:4:92::24) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR02CA0108.apcprd02.prod.outlook.com (2603:1096:4:92::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.19 via Frontend Transport; Fri, 1 May 2020 13:22:28 +0000 X-Mailer: git-send-email 2.16.4 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 96c64a58-7420-489b-718f-08d7edd2b39f X-MS-TrafficTypeDiagnostic: DB6PR0402MB2853:|DB6PR0402MB2853: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB6PR0402MB285371E7432020DEF162152688AB0@DB6PR0402MB2853.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:126; X-Forefront-PRVS: 0390DB4BDA X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(346002)(136003)(366004)(376002)(39860400002)(6666004)(66946007)(66556008)(66476007)(478600001)(4326008)(6486002)(6506007)(6512007)(8676002)(1076003)(16526019)(186003)(26005)(44832011)(2616005)(956004)(52116002)(2906002)(86362001)(36756003)(5660300002)(8936002)(4744005)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1DEp8MVL4xsl2+svtM/x5SuUDJiayWGZsg0O3Jwr4hpQDDEC1TspJNe6n7/n65gaDrafPm/zRe78BIl505cCQ+ufyxyBvCyy/m9e60MQUWTPqpSIfypJ1EUSTwZpw98ZpjKcPDig5zAi/ulw6bn8g81Be3H57VBbHPnDErqIXXceQY1EAs99ZmUfXghmF8h7D3G4B+o8BDyYBnPmNoKOHuQ6sCLxql2+SMmc97s0ZYnj2nWOpzb+yizrH9N2Hmjs9SEQn0EEAZ/ZQyjT88i8Adooj/A7QmDQ4vNytnaPFt+Dn0oa8jVW/S3tvtd9RVsHKwOHU3JPrKgcnQsOZd+F0H4z3e72vIOBEZNdQl7IodXb0LqxPRhl7j6Jw8714MugTXbaVZYuABskaZ9HDkhPVcxU/XJvImz2fI0YuM+OVYXxLdRMb1rZqT1/Uw/UFwSb X-MS-Exchange-AntiSpam-MessageData: 9nqSsN/+sm0Fv0l4L//F7adJisp0U3ItJCH/7Orr7LQFAu3nM0h2kNuJmQN1OyhRI1Av6OjEU425oAwA1f2xMRp/wejGTg2ykLLhHflm7JZn3GuNY0w0OfOaXoWUjiTDlX9w7mRji3S8fPqGrL2QAAuAHrrwaYjUYHeTdrF+dxLghFquKLgGH+I19oKSy4EB5piwCJvQu3i1jYKlMix/1xJmd8JsXrzoeoUaPL/fe0Lo0smk/lMHrUtGDsXuiR5SwYmauRZkvC6MYl9yG82bcIlH5dHaYOatXsKpaAcLlZpu9nZBBAagQVTZTu+9IvSGhI/54cUEM1gnOFjgMlULHzYuMvoXd0n9HsCdguLCn4fYstXxnPuBTztSsuSfuAlsYumqpsfDfP7jsha8Dgkt9wsC+pzO9IDzY/jtl7y4azVy4zLid4hdhZYiCdlF3p+JgltkggMbjnaFpSUGuPmFWz0VIwopFeU5hZ3Ow5GOtEh0SLhJtd4GK5p4URstd7cEq5yiZMmzypsTJaUpETocpfxC4JM1P8U5yTXQifsunajtVy49Px2oWAL/H4Z3Tp+E8MMrmkzAkvQlZ5A+wvMwWJcOf3x1yLhAzYyD8zhPhI7CHQqByH1tohRVPEI6f/arXLlpx8tcyytCqCqyLGdZTFsZBCobxT7wtEqvbXQBee1ZQUzD+h0HFItfQLA83vrKKbXkqWRtJwht5T4ytFSo6k/OBRbI3GIJbtAANND6rU/+dvm0f4o+wJyTHlK9ZT6OkYIX32+9VSOun7dznKCrl4k61FQx+7cvgQw19p39qTo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96c64a58-7420-489b-718f-08d7edd2b39f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2020 13:22:31.2948 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: R+H7wL+VDJNPiDxbtYxOuMJxJ10gDzm6DjrCa/0p2Xy//541K7DU8Snv6AfUCjtWHygoThTSflFc5c2dJVZkoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2853 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
[V2,1/9] uclass: cpu: Add new API to get udevice for current CPU
|
expand
|
On Fri, 1 May 2020 at 07:22, Peng Fan <peng.fan@nxp.com> wrote: > > Add test whether the CPU is U-Boot is running from. > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > > V2: > New > > test/dm/cpu.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/test/dm/cpu.c b/test/dm/cpu.c index e6dc576ea3..def9b64a28 100644 --- a/test/dm/cpu.c +++ b/test/dm/cpu.c @@ -26,6 +26,8 @@ static int dm_test_cpu(struct unit_test_state *uts) ut_assert(dev->flags & DM_FLAG_ACTIVATED); ut_assertok(uclass_get_device_by_name(UCLASS_CPU, "cpu-test1", &dev)); + ut_asserteq_ptr(cpu_get_current_dev(), dev); + ut_asserteq(cpu_is_current(dev), 1); ut_assertok(cpu_get_desc(dev, text, sizeof(text))); ut_assertok(strcmp(text, "LEG Inc. SuperMegaUltraTurbo CPU No. 1"));
Add test whether the CPU is U-Boot is running from. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- V2: New test/dm/cpu.c | 2 ++ 1 file changed, 2 insertions(+)