From patchwork Tue Feb 25 12:19:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Wallner X-Patchwork-Id: 1244095 Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=br-automation.com 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48RdLM3KKDz9sQt for ; Tue, 25 Feb 2020 23:20:27 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4924A80386; Tue, 25 Feb 2020 13:20:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=br-automation.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9F03D800BA; Tue, 25 Feb 2020 13:19:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail2.br-automation.com (mail2.br-automation.com [213.33.116.61]) (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 6ABCC800BA for ; Tue, 25 Feb 2020 13:19:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=br-automation.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wolfgang.wallner@br-automation.com X-AuditID: c0a80110-f63ff70000001fe0-52-5e5510e91a9a Received: from brsmtp01.br-automation.co.at (Unknown_Domain [192.168.1.60]) by mail2.br-automation.com () with SMTP id 18.17.08160.9E0155E5; Tue, 25 Feb 2020 13:19:53 +0100 (CET) From: "Wolfgang Wallner" To: u-boot@lists.denx.de Cc: "Simon Glass" , "Bin Meng" , "Wolfgang Wallner" Subject: [PATCH 0/2] x86: apl: Add support for different number of cores Date: Tue, 25 Feb 2020 13:19:46 +0100 Message-Id: <20200225121949.35950-1-wolfgang.wallner@br-automation.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 25/02/2020 13:19:52, Serialize by Router on BRSMTPINTERN2/InternSMTP(Release 10.0.1FP3|August 09, 2019) at 25/02/2020 13:19:52, Itemize by SMTP Server on BRSMTP01/Eggelsberg/AT/B&R(Release 10.0.1FP3|August 09, 2019) at 02/25/2020 01:19:53 PM X-TNEFEvaluated: 1 X-Disclaimed: 33535 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplluLIzCtJLcpLzFFi42I5sILRRvelQGicwZ+TxhZTe+Itvm3Zxmjx dm8nuwOzx+yGiyweO2fdZfc4e2cHYwBzFJdNSmpOZllqkb5dAlfGtHnXGAsWs1ecXLSNqYHx B2sXIyeHhICJxOlvr9m7GLk4hAS2MErsff+UBSTBJmAr0XhkKxuILSIgIfGr/ypjFyMHB7NA ncTXWdEgYWEBD4nNp9cwg9gsAqoS13etBbN5BdwlZm/eBGYzC2hLLFv4mhlil7zEzEvf2SFq BCVOznzCArJXQuA2k8TjDZfYIIqEJE4vPgvVICyxYOND1gmMfLOQzJqFpH8BI9MqRvHcxMwc I72kIt3E0pL83MSSzPw8veT83E2MkCAT2MG4+432IUYmDsZDjBIczEoivN6MQXFCvCmJlVWp RfnxRaU5qcWHGKU5WJTEeX2vasUJCaQnlqRmp6YWpBbBZJk4OKUaGHmmzvvy0OIJb8sM36AN Wy6y2BXPZxD1SGL+lnlKLGS//CbBHfk9z7f9TZ778CP3pXvGCda3LzxTDf11sTKs9NTM63wX pjy0lxQy+Pym9J7I5E7TF3Jlezhsls1n3eH4/kXBOr9JHIfnty7eU6p8ztSk8O3C3pcnViSE /rbccf2ldef5B9cTjcKVWIozEg21mIuKEwEybfpGIAIAAA== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Currently the Apollo Lake implementation of cpu_ops.get_count returns a hardcoded value of 4. The function cpu_x86_get_count() provides a more generic implementation that reads the number of cores from device tree. But this function is currently static. This series: - makes cpu_x86_get_count() non-static - drops the Apollo Lake specific get_count implementation and uses cpu_x86_get_count() instead With the changes in this series also Apollo Lake variants with a different number of cores boot correctly. Wolfgang Wallner (2): x86: cpu_x86: Make cpu_x86_get_count() non-static x86: apl: Use cpu_x86_get_count() for cpu_ops.get_count arch/x86/cpu/apollolake/cpu.c | 7 +------ arch/x86/cpu/cpu_x86.c | 2 +- arch/x86/include/asm/cpu_x86.h | 12 ++++++++++++ 3 files changed, 14 insertions(+), 7 deletions(-)