From patchwork Sun May 17 08:32:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1292074 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=OBnxYPFC; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 49PwQZ3TNKz9sRK for ; Sun, 17 May 2020 18:33:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3DCE981578; Sun, 17 May 2020 10:33:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.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=broadcom.com header.i=@broadcom.com header.b="OBnxYPFC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C1DCF81674; Sun, 17 May 2020 10:33:13 +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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1258F813C6 for ; Sun, 17 May 2020 10:33:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rayagonda.kokatanur@broadcom.com Received: by mail-wr1-x441.google.com with SMTP id s8so8160475wrt.9 for ; Sun, 17 May 2020 01:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=B00cOMh8Flfuic+CI84asIsGf5AWoxftjpNr/bOY6dI=; b=OBnxYPFCQQDG8iItf6pS3ozG7K+9j30Jag0+zdtQuRT/Uy1fQNn3BODwNdYQ/BY1zP e0oxrta54FLR0sgzSo07Kspss+PqcPvuLJo66DiGaJy0YpU0SsAgw45tRh/bKBAC2SJv HIuxeA5QlVWqhm4nq0OQQVXFfSFJ4lrMITQyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B00cOMh8Flfuic+CI84asIsGf5AWoxftjpNr/bOY6dI=; b=Xvlgxg1xBvoGgz7VWOR/g6qj+o/13Wk8sS1S5v0HjufomB58dk0aGHqjNdeViZTYPP 3LfAjGtKQBC8871aOV+OxfDr3gT3CEap7w+u1mpF9NrMobJ7kl5mMimgL8cbSgEhoT2t xJWrUvZHbiQB2tWVY6KNeBOgjEx1IdwYHiMXiSnOHXfcxO/vLupnpZxgITP2Mr4wN0XO 9ga7DTpcTSXAAPlslISCGUTCLEj7IR/HZJNtQHgqqwQ7Y/JbDk3/MyvtTPvfMMc5irEU OrJO6eOGqQtxs2/peEJp6cFCHJBG3wckL3CmGXYUCC0fKpZBi6BsEQ/7oru1PUfhBqGz dk1Q== X-Gm-Message-State: AOAM531q6FvmXmbTJk9k3bEr1GK/yHOfNtOM8V50qeMPdRVPui/L/Z7/ ZFIIRyGZulsw81dwngFjM7+tQSIh25H4P/OfEjz533iD6EVRUYi6u4zClaukCFgXHj0dobhfUFc c9YngStSUDAjLtBaT7/IooYvE95lj/nBMssEPa2V6uLPrLHB9IfJCKg7SAg+aNK2THiRubGvalt VBzfc= X-Google-Smtp-Source: ABdhPJz80s4oR5nlOLFvW9MO6rfScMK3hmr1IDIM/8qCxlNAZz8/hIMugra6Hw230esrNTDjvcJhCw== X-Received: by 2002:a5d:56c6:: with SMTP id m6mr13138047wrw.78.1589704389760; Sun, 17 May 2020 01:33:09 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id j16sm10846049wru.13.2020.05.17.01.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 01:33:08 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Simon Glass , Bharat Gooty , Vladimir Olovyannikov Cc: Rayagonda Kokatanur Subject: [PATCH v1 0/3] add elog support for broadcom NS3 soc Date: Sun, 17 May 2020 14:02:54 +0530 Message-Id: <20200517083257.22191-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 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 This is fifth patch set series prepared on top of fourth patch set ("add optee support for broadcom NS3 soc"). This patch adds support for error logging and corresponding command. Sheetal Tigadoli (1): common: ns3: add error logging support Vladimir Olovyannikov (2): board: ns3: kconfig: extend board kconfig with specific commands cmd: bcm: add broadcom error log setup command board/broadcom/bcmns3/Kconfig | 5 + cmd/Kconfig | 2 + cmd/Makefile | 2 + cmd/bcm/Kconfig | 12 + cmd/bcm/Makefile | 4 + cmd/bcm/elog.h | 64 +++++ cmd/bcm/logsetup.c | 432 ++++++++++++++++++++++++++++++++++ common/Kconfig | 8 + common/Makefile | 1 + common/bcm_elog.c | 49 ++++ common/console.c | 22 ++ configs/bcm_ns3_defconfig | 1 + include/bcm_elog.h | 37 +++ 13 files changed, 639 insertions(+) create mode 100644 cmd/bcm/Kconfig create mode 100644 cmd/bcm/Makefile create mode 100644 cmd/bcm/elog.h create mode 100644 cmd/bcm/logsetup.c create mode 100644 common/bcm_elog.c create mode 100644 include/bcm_elog.h