From patchwork Fri Sep 4 21:46:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 53149 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 82EED2159E for ; Fri, 4 Sep 2015 21:48:02 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf9180163wic.3 for ; Fri, 04 Sep 2015 14:48:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :mime-version:content-type:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=EPDbQcw/EUmua3kIGNXuXYmoN1IWZMsVOp9GEachY84=; b=e/etdjtaamZthXkdm3nUGlO4p3L6Xhb6UuGjuRDcGUGfCGJPGgYZosZM2OfWNcQQYV bvHEyOpLTRZDTDhAZFeYjvBPQcgMn2A2E9xgEeQuagAn9tJxjLJHN121RXD2rzGH3kCi luUo0yVauxgvyNuOv87lKlPpnJpaBmOInhfTkf8E1fmZs2075Fzpz0N82Af9HrC1uNfS rMSKO7yprVrxRNyn2SUDf1X/FwfBPEYtEz+uJZjmG37UM1qTHzXBrhL3EDLPLmfzOBls /9RYwBLdh9BV16/bj0Olnt9Vb6J0knEaedkk3QKmV0t8LsbYty9Z0r3p43g22z+hN9np MudQ== X-Gm-Message-State: ALoCoQmfgIcq1ZJhImNZpaCDk1WyPuiYJZVGxI8gddnLEqXhYHKuFVEdUHcuCLcHzY4KtymPGABx X-Received: by 10.112.48.41 with SMTP id i9mr1596231lbn.23.1441403281816; Fri, 04 Sep 2015 14:48:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.168 with SMTP id u8ls180658lag.63.gmail; Fri, 04 Sep 2015 14:48:01 -0700 (PDT) X-Received: by 10.112.205.6 with SMTP id lc6mr5400355lbc.95.1441403281624; Fri, 04 Sep 2015 14:48:01 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id sc4si3357769lbb.99.2015.09.04.14.48.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2015 14:48:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbcjc2 with SMTP id jc2so18040477lbc.0 for ; Fri, 04 Sep 2015 14:48:01 -0700 (PDT) X-Received: by 10.152.22.133 with SMTP id d5mr5555694laf.112.1441403281513; Fri, 04 Sep 2015 14:48:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp169668lbb; Fri, 4 Sep 2015 14:48:00 -0700 (PDT) X-Received: by 10.68.206.103 with SMTP id ln7mr12593276pbc.37.1441403280408; Fri, 04 Sep 2015 14:48:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sd8si6161406pbc.237.2015.09.04.14.47.58; Fri, 04 Sep 2015 14:48:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933992AbbIDVrw (ORCPT + 28 others); Fri, 4 Sep 2015 17:47:52 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:33275 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933638AbbIDVrt (ORCPT ); Fri, 4 Sep 2015 17:47:49 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id t84LkWA3028317; Fri, 4 Sep 2015 16:46:32 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t84LkWmJ017162; Fri, 4 Sep 2015 16:46:32 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Fri, 4 Sep 2015 16:46:31 -0500 Received: from ula0868495.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t84LkVKs018457; Fri, 4 Sep 2015 16:46:31 -0500 From: Murali Karicheri To: , , , , , , , , , Subject: [PATCH v1 1/2] soc: ti: display firmware file name as part of boot log Date: Fri, 4 Sep 2015 17:46:38 -0400 Message-ID: <1441403199-10936-1-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m-karicheri2@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , To help the user, print the PDSP file name as part of knav_queue_load_pdsp(). This will be useful for users to know what version of the firmware is loaded to PDSP. Also update the document for the location of the QMSS accumulator PDSP firmware. Signed-off-by: Murali Karicheri --- v1 : fixed firmware file names in documentation .../bindings/soc/ti/keystone-navigator-qmss.txt | 20 +++++++++++++++++++- drivers/soc/ti/knav_qmss_queue.c | 3 +++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/ti/keystone-navigator-qmss.txt b/Documentation/devicetree/bindings/soc/ti/keystone-navigator-qmss.txt index d8e8cdb..ca0a1a7 100644 --- a/Documentation/devicetree/bindings/soc/ti/keystone-navigator-qmss.txt +++ b/Documentation/devicetree/bindings/soc/ti/keystone-navigator-qmss.txt @@ -221,7 +221,7 @@ qmss: qmss@2a40000 { #size-cells = <1>; ranges; pdsp0@0x2a10000 { - firmware = "keystone/qmss_pdsp_acc48_k2_le_1_0_0_8.fw"; + firmware = "k2_qmss_pdsp_acc48_k2_le_1_0_0_9.bin"; reg = <0x2a10000 0x1000>, <0x2a0f000 0x100>, <0x2a0c000 0x3c8>, @@ -230,3 +230,21 @@ qmss: qmss@2a40000 { }; }; }; /* qmss */ + +Accumulator QMSS Channel using PDSP firmware +============================================ +The QMSS PDSP firmware support accumulator channel that can monitor a single +queue or multiple contiguous queues. drivers/soc/ti/knav_qmss_acc.c is the +driver that interface with the accumulator PDSP. This configures +accumulator channels defined in DTS (example above) to monitor 1 or 32 queues +per channel. More description on the firmware is available in CPPI/QMSS Low +Level Driver document (docs/CPPI_QMSS_LLD_SDS.pdf) at + git://git.ti.com/keystone-rtos/qmss-lld.git + +k2_qmss_pdsp_acc48_k2_le_1_0_0_9.bin firmware supports upto 48 accumulator +channels. This firmware is available under firmware folder of the above repo +under the name acc48_le.bin. To use copy the firmware image to lib/firmware +folder of the initramfs or ubifs file system as +k2_qmss_pdsp_acc48_k2_le_1_0_0_9.bin and boot up the kernel. User would see +"firmware file ks2_qmss_pdsp_acc48_k2_le_1_0_0_9.bin downloaded for PDSP" in +the boot up log if loading of firmware to PDSP is successful. diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index 6d8646d..f26ce99 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1526,6 +1526,9 @@ static int knav_queue_load_pdsp(struct knav_device *kdev, pdsp->firmware, pdsp->name); return ret; } + dev_info(kdev->dev, "firmware file %s downloaded for PDSP\n", + pdsp->firmware); + writel_relaxed(pdsp->id + 1, pdsp->command + 0x18); /* download the firmware */ fwdata = (u32 *)fw->data;