From patchwork Mon Jun 10 21:02:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13692442 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5AFB5C27C55 for ; Mon, 10 Jun 2024 21:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Kw70jh/5I9SZPChS+uNyDVyb3PgGzZTlXGyzIsWn6yE=; b=gbd/Z8f5j3qEOu e6KjDzbgqYOa4ddQ1Z7R+9z3/KinLIY8yhY1dGNn2h+pNFT/qXNILcF9YaDP4mZYd0OD5WM+3RQjv HnxQk/5FPN0F1KYo1/I7H+i85bgWMNdw0AjgB7g8bVmW1E/AgDhRuRAcKq6ZP8+LCoXWwOmqIZ6bW imH8xSrbGGkBCnVNuDX+zMIDifCylcRM0SHA2ZW3VQZ2pUMzus+HSvQqFV8T4VGtXcsCy7WiFgBj+ gy7yP6coDMPdyqO8xeJibY7/YC7fT1w+bmfsCxmWl/J39gDK+HdeiY2mp0R4fDR/Lj8kR3NZuMQtI B/i7ySg8Wf8/yX2S6lOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGmAp-00000006UFg-1Ra4; Mon, 10 Jun 2024 21:03:27 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGmAC-00000006Tmq-0Y4J for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2024 21:02:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1718053364; x=1718658164; i=wahrenst@gmx.net; bh=Orjc4i7tUyVoi6f4QE0Sy2YxU1o6Nh1ldyLhIzy/dgA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-Id:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=h1HYhK1StnuyRrhfn2F5rJHBhKN1HNuxIepDhUVYC8M9L1fb/WruDZztqDUYhzp+ nnRThcE8q/iFtif7gCrTgCnyczIhhtKaXTRAf3sRe0IqAqoEXCSRxZHkspt5wJ82X mLkJQCPFYsEAWd+srplXKQH9NU1yzDrg5z0NctPbqvL4KjEJ5VahkH4U4NAA/VXwl MS//lf5l0briAE6fK8RTPyveBvlSpoydiCj9CQAjeiuWtrta1RIJqGqHKwWT7zbpB fPSiFcE71t1KLlq6VOKl/Xhn8T3VLDu5JI4DhPiZwkidSkOv/FKLdA+9q6u3ZpK2h wCphLVlzUQKfIZAK+g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMofW-1ry0p62O84-00Ykfy; Mon, 10 Jun 2024 23:02:44 +0200 From: Stefan Wahren To: Greg Kroah-Hartman , Florian Fainelli Cc: Umang Jain , Laurent Pinchart , linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V2 10/10] staging: vc04_services: Update testing instructions Date: Mon, 10 Jun 2024 23:02:20 +0200 Message-Id: <20240610210220.95524-11-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240610210220.95524-1-wahrenst@gmx.net> References: <20240610210220.95524-1-wahrenst@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:rLh9H3EhgXg4+LJs9Pw7IOuMco8Uqivr4bgbVHXsEqbanKNWcGb AFvvUlWfpC7mx/R/M5Zl4ThuuzSwLYj4Efp3Lz5pw5NPuiNO1Db/iqJ/WDf2MxQr2dvCICr O9z7u6FmXyfqNmOeXxYFa37tTlNGU6nEMBup+ViSjCw1mf42ntBNJpafsf8xMKuMzTuzR75 5dZ0TnFjMIdieo5mVdkdQ== UI-OutboundReport: notjunk:1;M01:P0:LXMyQZCt5pY=;hkpM1m+t/1KaaHKHrN5L4ZDSk3u po20UBEQWzqnHnYTSenJfGCcca+XV/2g5LCLKD5CHAo+1HZJoww6vppmQphmbvo8hALCwKKbi adPjSSDXWFJ66REpuDiuF76/OGjWbw8dJ/vOYUxqEpb2qIEdZ6nVLbQ3vyfiPO7O4FiLil0MW 3W5rUEKbnUF9SEtjUJQVrDJoOIL01KaWFfeomD5lOCANGj4rP6rkensW58Q+c9xyvY5Lbxbhr soj8bcVvxxDq7IskN5N99eqeCTEv4xr3ehWRMOxYYUim/9oAfzOe9VbDfE3vCEhOTGlU9023J 3226V2r0jewaQpgMTWEGqYuL3VbZKTkjCqVSKhE4aPaI5r6ZbiA5hEzyLtKaPp1yZRk1yKZU/ /1P/LUX4l0Dek0AdQvI2tk00Sa7NQ6K0OwD8E/mTlYDId7/CW2dWa2tvh4bEd0WFcHdWnstHD JUtqL1ANCnRZXlx6CZCXoEMLTh15hvHc9YQQOyUDOXRj8GqckTqY6v7pFr/X14SfNnnSPD0kk UAVATK0J48HI1Ld/9IHOXcdWWlSGRLgR17qYr4biysc7gWeaRW3+qrpOECyGQpfH10PIFRVCX xR92kI5EbepIJCitpnQN/5Xy2X4Dd7tTh9W/xTpWtg3hXdG9TvjayvV6NbXuDcgRKUyhaPF9V YfzmgC9FE1RlTk1udKrCNNoPxOWJgl3T4j/VNcjQWCO/QKL0JXPgc5bLl3uhbhmDuhKXL/AbI wHbCsvJz/lfWjgCHoB6X5dQnU4p9ucMTwn7QkUSUkM7M7PUVkWbuFtKg6pyJHvXXX6mvCQAFe JmquOXCHirrpxCF3GNiNNunGpXu3dKASCMooNNewmW5is= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240610_140248_867735_08830A52 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since the initial version of the testing instructions a few things has changed. So consider the latest arm64/defconfig changes and the new debugfs entry. Signed-off-by: Stefan Wahren --- .../staging/vc04_services/interface/TESTING | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) -- 2.34.1 diff --git a/drivers/staging/vc04_services/interface/TESTING b/drivers/staging/vc04_services/interface/TESTING index a6d63efcbcb9..273952dc9d85 100644 --- a/drivers/staging/vc04_services/interface/TESTING +++ b/drivers/staging/vc04_services/interface/TESTING @@ -31,7 +31,7 @@ Here are the most common kernel configurations: 3. BCM2837 target SoC (ARM 64 bit) - Use the defconfig as a base and then enable all VCHIQ options. + Use the defconfig which has most of the VCHIQ options enabled. * Scenarios @@ -80,3 +80,46 @@ Here are the most common kernel configurations: vchi ping (size 0, 100 async, 100 oneway) -> infus vchi ping (size 0, 200 async, 0 oneway) -> infus ... + + * Debugfs test + + Command: cat /sys/kernel/debug/vchiq/state + + Example output: + State 0: CONNECTED + tx_pos=0x1e8(@43b0acda), rx_pos=0x170(@05493af8) + Version: 8 (min 3) + Stats: ctrl_tx_count=7, ctrl_rx_count=7, error_count=0 + Slots: 30 available (29 data), 0 recyclable, 0 stalls (0 data) + Platform: 2835 (VC master) + Local: slots 34-64 tx_pos=0x1e8 recycle=0x1f + Slots claimed: + DEBUG: SLOT_HANDLER_COUNT = 20(0x14) + DEBUG: SLOT_HANDLER_LINE = 1937(0x791) + DEBUG: PARSE_LINE = 1864(0x748) + DEBUG: PARSE_HEADER = -249155224(0xf1263168) + DEBUG: PARSE_MSGID = 67362817(0x403e001) + DEBUG: AWAIT_COMPLETION_LINE = 0(0x0) + DEBUG: DEQUEUE_MESSAGE_LINE = 0(0x0) + DEBUG: SERVICE_CALLBACK_LINE = 0(0x0) + DEBUG: MSG_QUEUE_FULL_COUNT = 0(0x0) + DEBUG: COMPLETION_QUEUE_FULL_COUNT = 0(0x0) + Remote: slots 2-32 tx_pos=0x170 recycle=0x1f + Slots claimed: + 2: 10/9 + DEBUG: SLOT_HANDLER_COUNT = 20(0x14) + DEBUG: SLOT_HANDLER_LINE = 1851(0x73b) + DEBUG: PARSE_LINE = 1827(0x723) + DEBUG: PARSE_HEADER = -150330912(0xf70a21e0) + DEBUG: PARSE_MSGID = 67113022(0x400103e) + DEBUG: AWAIT_COMPLETION_LINE = 0(0x0) + DEBUG: DEQUEUE_MESSAGE_LINE = 0(0x0) + DEBUG: SERVICE_CALLBACK_LINE = 0(0x0) + DEBUG: MSG_QUEUE_FULL_COUNT = 0(0x0) + DEBUG: COMPLETION_QUEUE_FULL_COUNT = 0(0x0) + Service 0: LISTENING (ref 1) 'PEEK little-endian (0x4b454550)' remote n/a (msg use 0/3840, slot use 0/15) + Bulk: tx_pending=0 (size 0), rx_pending=0 (size 0) + Ctrl: tx_count=0, tx_bytes=0, rx_count=0, rx_bytes=0 + Bulk: tx_count=0, tx_bytes=0, rx_count=0, rx_bytes=0 + 0 quota stalls, 0 slot stalls, 0 bulk stalls, 0 aborted, 0 errors + instance b511f60b