Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2275053imu; Thu, 29 Nov 2018 02:19:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/UwoBbwZRvDscxl3ekaXm4/G6lGKGf3Ier1fqTNT90+L7dH/O1yEcODIAoeCErhM0UB2Ms3 X-Received: by 2002:a62:4886:: with SMTP id q6mr845833pfi.182.1543486781594; Thu, 29 Nov 2018 02:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543486781; cv=none; d=google.com; s=arc-20160816; b=uU1BzZ881v1TVWvRXB0fwiv0AC2sGWEvjT+U2CZVWw0FMeLYBsHWnAMh26snHttTA/ +PeHhzCFKoMmUZcnWg0vzmrmMFeEVl43sHL/Gke6IfVMNOYUrzhdnk0t6s2G3BlBVSl4 yi5LBE4F9xxK7oVILhJs6rUWa+k/k4EG0e/a9v+i5BLv4CXmYipu3WBpcoZnZUSvw/M1 SDpmD/uKlDtKDtBC1bUWkfstCixd/1OLGYn5nYrFomUe/RMBKo5uyUuDLPq8BJLW7wE8 bTP8PgI+XUyCyKXAev/KS0CxayIJIe2FBs/9nFsRZ4iX2urtlGOOjqY0IltNwdcTnkUR fgIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=YcqgyK16Cut+1DkZNPurkpUbTrkNfjAmz0/aVYoRyy0=; b=dNc9T1w/pVC8hwCF3lQMW8kQH4JDoUngKj+kt4io7y0gTm1chXw+pqAplwqD4hG50g zz2508dQWS4LengmZFFv+TIuleetwMOVfmXcO1wfsEbM/RDg5jw/coEPqRUm3/hdpFBq cfji/AFUHP2K50ez9zN7p15j+TLv4nuliy/Nn417kCR3yidlCFSd2t0Qwc/VOIIWAcEj ZpWE0UnkYAlD3EyvglJPsp9AWGpvmRtTm7S5bNrWvSZ16bawcGppORJVIf7dssMdRz5n gIBzBO93ID3k+Eh6xWejsKZoaYr9SnceMiPfDnG+fp5fEF/QMGBSIK5aE+dX21jJwSHN KpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="WAsO/oxT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si1361189pgj.86.2018.11.29.02.19.26; Thu, 29 Nov 2018 02:19:41 -0800 (PST) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="WAsO/oxT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728030AbeK2VXF (ORCPT + 99 others); Thu, 29 Nov 2018 16:23:05 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:55764 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbeK2VXF (ORCPT ); Thu, 29 Nov 2018 16:23:05 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wATAHLB9070862; Thu, 29 Nov 2018 04:17:21 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1543486641; bh=YcqgyK16Cut+1DkZNPurkpUbTrkNfjAmz0/aVYoRyy0=; h=Subject:To:References:CC:From:Date:In-Reply-To; b=WAsO/oxT0/+B5ENpM5rTKhaaBhpoDwbWJvnKqySAfbKQBtZ0ITcYTZ9LTt1NpvM25 lOD1Y7Ip+qWNoPAVu66csdncSr9vKIPB0piJ9lhBcBQMjRx8I7LcJJAhQ1pr5Dx8Qq EkvmDkuhYMyDimOdqqVbdct873laUL/ukFsbkO74= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wATAHLSp000923 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 29 Nov 2018 04:17:21 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 29 Nov 2018 04:17:21 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 29 Nov 2018 04:17:20 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wATAHGVH002487; Thu, 29 Nov 2018 04:17:17 -0600 Subject: Re: [PATCH 05/16] remoteproc/pru: Add pru-specific debugfs support To: David Lechner , , References: <1543218769-5507-1-git-send-email-rogerq@ti.com> <1543218769-5507-6-git-send-email-rogerq@ti.com> CC: , , , , , , , , , , , , , , From: Roger Quadros Message-ID: <5BFFBCAC.9000004@ti.com> Date: Thu, 29 Nov 2018 12:17:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/11/18 00:37, David Lechner wrote: > On 11/26/18 1:52 AM, Roger Quadros wrote: >> From: Suman Anna >> >> The remoteproc core creates certain standard debugfs entries, >> that does not give a whole lot of useful information for the >> PRUs. The PRU remoteproc driver is enhanced to add additional >> debugfs entries for PRU. These will be auto-cleaned up when >> the parent rproc debug directory is removed. >> >> The enhanced debugfs support adds two new entries: 'regs' and >> 'single_step'. The 'regs' dumps out the useful CTRL sub-module >> registers as well as each of the 32 GPREGs and CT_REGs registers. >> The GPREGs and CT_REGs though are printed only when the PRU is >> halted and accessible as per the IP design. >> > > If the driver used regmap to access the CTRL I/O memory, then > 'regs' wouldn't be needed since regmap already does debugfs. > ok, we could split out CTRL from this and use regmap. cheers, -roger -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki