From patchwork Fri Jul 15 21:37:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12919761 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49150C433EF for ; Fri, 15 Jul 2022 21:41:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbiGOVl6 (ORCPT ); Fri, 15 Jul 2022 17:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiGOVl5 (ORCPT ); Fri, 15 Jul 2022 17:41:57 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E81E487215; Fri, 15 Jul 2022 14:41:56 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id r1so4232150plo.10; Fri, 15 Jul 2022 14:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mbp4ZJOvfAyNjZhg4VKTSXbGmuQMrwZMn7tyXOtsqps=; b=Mj3GeEFDab6IFnYHd8VsEJrDLwuaAKZayt58TYiHkejpIxRzRfjkcdBslUM+Aw0XLZ ms5Fked8kiaBZGBKGnfixlJP4MA8uvMHxWz7RodmJHvJiHaQ+nwuxtuCfrEEGjobrrj5 nx3MeVP0kafBs7skAm1ElyUpuQ2AjZywt6onmxlRSDvX00aH09LnuDLx9mI9Nsg/PqS6 rwFPlGMp1TKXC1Z0it/5BbAhHzMXZST+zErGgDp7UIcTUfKIFKdZRjcLtttavQ9W03Zk GcYZ0PG2yPy6Q69+cwxe8We5t/KP5DUUt7xGqMV+zWa/nEAUnTCmp2GRflzDlZecrctD JHkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mbp4ZJOvfAyNjZhg4VKTSXbGmuQMrwZMn7tyXOtsqps=; b=ZbMJcL7VskH9Op22fSXbx+GElLXT4+GXYn0BQM9rLAjUA/MwXGXuKyyjTfrrkZghrY dvkSk8tKR6M46mNNUEBMjWdHdTAV1I00Dnq9si2XBDC+oCPJsTYv3osMJYaOUNvIDaQT yG0rpSEfoNInWK3SKuPTZyDmdyLnYBfobkWxzRLHqtm6tIPp3m5emBD2d2e4C7COoXUC +LxAxsd8nHDIit1aQZFdlJqzDn4vT+r5vTLkvfTi90pJdvWOADUHBd9UpdviH/Uf/jmm XWGF828ck3wJs8QidrXkuNH5iOAjbID7inmUd4MQeApB3Fo8Tcp9IDbAgExQijl838CL ExCA== X-Gm-Message-State: AJIora/0/MMCb+sjaVqelZ6Z/M23NseOpsDDzRsMs6B0ruz6OacbqLBS +HWfyksu12yl7x2QoyURsBb60IwTPNo= X-Google-Smtp-Source: AGRyM1vAoes8mwHF3YEA0ACdkABUCtMDq2XrqMKU/ST7Ht0hVwKslFpfzJROnb0J7Q0BS67X6goTfw== X-Received: by 2002:a17:902:e750:b0:16c:761:6e96 with SMTP id p16-20020a170902e75000b0016c07616e96mr15757900plf.0.1657921316080; Fri, 15 Jul 2022 14:41:56 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d9-20020aa797a9000000b0052add461d2esm4289975pfq.103.2022.07.15.14.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 14:41:55 -0700 (PDT) From: Florian Fainelli To: linux-mips@vger.kernel.org Cc: Florian Fainelli , Thomas Bogendoerfer , Broadcom internal kernel review list , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 0/2] MIPS: BMIPS: Improved early panic support Date: Fri, 15 Jul 2022 14:37:45 -0700 Message-Id: <20220715213747.111321-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Hi Thomas, This patch series adds support for cfe_die() which can be used during early platform initialization when we do not yet have a valid DTB to infer an earlycon console from. This is useful while bringing up new platforms/DTBs as well. Thanks! Changes in v2: - ensure that we do not break multi-CPU builds by reading the CPU's PrID to perform the appropriate XKS01 disabling before handing over to CFE Florian Fainelli (2): MIPS: CFE: Add cfe_die() MIPS: BMIPS: Utilize cfe_die() for invalid DTB arch/mips/Kconfig | 1 + arch/mips/bmips/setup.c | 14 +++++- arch/mips/fw/cfe/cfe_api.c | 68 +++++++++++++++++++++++++- arch/mips/include/asm/fw/cfe/cfe_api.h | 2 + 4 files changed, 83 insertions(+), 2 deletions(-)