Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2229965ybi; Mon, 1 Jul 2019 08:23:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqytgq5adEKyGh3L3lTsu9L1AVVgWop07cjE4KubjrGajcMRiCrySw83F6jzGb76Q9Rd6jW6 X-Received: by 2002:a63:514e:: with SMTP id r14mr24900919pgl.71.1561994612397; Mon, 01 Jul 2019 08:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561994612; cv=none; d=google.com; s=arc-20160816; b=qS6SVMGs8Ap6TIBK+u+YCPnfLuDk+c6iHPm1O/xDKxlxZezMIr6wV4TgIvw1kzyek5 C+KVYDmoA0gXS2/p1bKAiiiRCeLUnAz4mKcY+VtqqGku3Tf65xClc+CTZRccd9rcgWMz JZgMYAdA1qtkqZCb1rCAbtQqGlgMd4k90wi4HqGioVCm0vgfYTA8ztQ7OPRsTF9djZZ8 hiyroHHg00xfTWMcABJBg0vItC2isJ/+9QBBFEF8tk3sOdU0oT4fHNQwMF5ZgCZkthGt YXtnrArnma22y5sLqEZ/zmaTCPb5gbWFbKpbQ5AgqnPCN23vyy4s/DZl5wG6k9/D3aoN 4uYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=21qfgXckzmwT1Hxo2eg9vdTCH0VvZKoWbk2TKgHl58Q=; b=GYwsC5eAIbOqaSY+ZZ9GCh7eHre2tC8rFDM53g+Yzq21zuv3pA65p/y5w7VcSy5t6H d50NotMsuUeDkIFzgEVtxksfTpJHwFlmJjmVkUPemHjiSt7A2S45fugoCy099PWZpJnF DGoJTch+oEYgVckk1bOZRmN/NBPFLQ+B5XJ+gnsiRpJturVRZBaUlhRsp4Pf4hjsQ97N eBh89ceeRNcq5N+KuN3nTTz9mKEhsdsCVkIWpkejEN0XpQR3IDyi3WfDebi1SiVVcUsc PJx81CckmCr2TFFQ7vf5eqPdUH1HMYstXBZl0oeaLyPzKelBBHqiRbK+q4QRG/kTNmMY 0zFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@habanalabs.onmicrosoft.com header.s=selector1-habanalabs-onmicrosoft-com header.b=VdYHvbIp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si10544520plu.126.2019.07.01.08.23.16; Mon, 01 Jul 2019 08:23:32 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@habanalabs.onmicrosoft.com header.s=selector1-habanalabs-onmicrosoft-com header.b=VdYHvbIp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729220AbfGAN7x (ORCPT + 99 others); Mon, 1 Jul 2019 09:59:53 -0400 Received: from mail-eopbgr10093.outbound.protection.outlook.com ([40.107.1.93]:56654 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727031AbfGAN7w (ORCPT ); Mon, 1 Jul 2019 09:59:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=habanalabs.onmicrosoft.com; s=selector1-habanalabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=21qfgXckzmwT1Hxo2eg9vdTCH0VvZKoWbk2TKgHl58Q=; b=VdYHvbIpKvVg16yVAAS+5EkmIVsJP9f5VGbieVQ+9v7iYw90ykSJXPk43zUbmESCNo2fke0FgXd2nEdtOoR5s/cQi8cpQ/3nYFFA8Hy2gNtRkvqlX4cNJB7CJyH1tx0LL3GfL580LFOwd6HQecbGXRj21Z3mE4aZV2iI777aryA= Received: from VI1PR02MB3054.eurprd02.prod.outlook.com (10.170.235.155) by VI1PR02MB4701.eurprd02.prod.outlook.com (20.177.63.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Mon, 1 Jul 2019 13:59:45 +0000 Received: from VI1PR02MB3054.eurprd02.prod.outlook.com ([fe80::f92b:de76:1404:8783]) by VI1PR02MB3054.eurprd02.prod.outlook.com ([fe80::f92b:de76:1404:8783%7]) with mapi id 15.20.2032.019; Mon, 1 Jul 2019 13:59:45 +0000 From: Tomer Tayar To: "oded.gabbay@gmail.com" CC: "linux-kernel@vger.kernel.org" Subject: [PATCH v2 2/3] habanalabs: Add debugfs node for engines status Thread-Topic: [PATCH v2 2/3] habanalabs: Add debugfs node for engines status Thread-Index: AQHVMBU8WO05l8/KWU6Yjh0OJeXhkg== Date: Mon, 1 Jul 2019 13:59:45 +0000 Message-ID: <20190701135933.30544-2-ttayar@habana.ai> References: <20190701135933.30544-1-ttayar@habana.ai> In-Reply-To: <20190701135933.30544-1-ttayar@habana.ai> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PR0P264CA0121.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1a::13) To VI1PR02MB3054.eurprd02.prod.outlook.com (2603:10a6:802:17::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=ttayar@habana.ai; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [31.154.190.6] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3da74152-e9db-43fb-24c8-08d6fe2c5f1f x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:VI1PR02MB4701; x-ms-traffictypediagnostic: VI1PR02MB4701: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:529; x-forefront-prvs: 00851CA28B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(136003)(376002)(396003)(366004)(39840400004)(199004)(189003)(66946007)(476003)(4326008)(66556008)(64756008)(3846002)(66476007)(6116002)(66446008)(73956011)(74482002)(71190400001)(446003)(11346002)(2616005)(71200400001)(6512007)(2906002)(25786009)(486006)(1361003)(478600001)(316002)(50226002)(30864003)(5660300002)(1076003)(86362001)(14444005)(256004)(2351001)(14454004)(6486002)(26005)(8936002)(81166006)(81156014)(6916009)(36756003)(68736007)(66066001)(8676002)(53936002)(99286004)(7736002)(186003)(5640700003)(52116002)(305945005)(2501003)(102836004)(76176011)(6436002)(6506007)(386003);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR02MB4701;H:VI1PR02MB3054.eurprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: habana.ai does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +zthtg3KHwatKgyePEObN+vn+N2Jj2icynKBwNgy4St0HcU19XmrII1du0cn/syH6AB4u0F0QyJOhPx7hTDKbkgpuYRQzu2vCbi/iO0pDb3265DzEI0p0L+HBskSqnb1K8vVRS3pJL8DXc9tKP/Ux+dHAc3eNVQ/xmU+0/prbTFil6AzKap6pQSHE6Q9D8Kv1Kp75HoUuBPFR3j7JEj26qC5A/gekDcMGz65HZ4mN0SU+3KgulXa8eZScwwmkHgJSCsqAiHADd4aEVlu8FCHZpmDYWuezjUve7YOFCdw7esm2g0YlXeATmIoQBZHl+FmdIXEHte0N08nu59U1rXL3CfVqCiDh0M2DHbxJWIuV5cwjjOgECl76IeAic6HwYkzzLCQwPV0snirlndMR7r4SWGBbW4pH8ufDzmtRrwUK2o= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: habana.ai X-MS-Exchange-CrossTenant-Network-Message-Id: 3da74152-e9db-43fb-24c8-08d6fe2c5f1f X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2019 13:59:45.0594 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4d4539-213c-4ed8-a251-dc9766ba127a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ttayar@habana.ai X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB4701 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Q29tbWFuZCBzdWJtaXNzaW9ucyBzZW50IHRvIHRoZSBkZXZpY2UgYXJlIGNvbXBvc2VkIG9mIGNv bW1hbmQgYnVmZmVycw0Kd2hpY2ggYXJlIHRhcmdldGVkIHRvIGRpZmZlcmVudCBkZXZpY2UgZW5n aW5lcywgbGlrZSBETUEgYW5kIGNvbXB1dGUNCmVudGl0aWVzLiBXaGVuIGEgY29tbWFuZCBzdWJt aXNzaW9uIGdldHMgc3R1Y2ssIGtub3dpbmcgaW4gd2hpY2ggZW5naW5lDQp0aGUgc3R1Y2sgaXMs IGlzIGNydWNpYWwgZm9yIGRlYnVnZ2luZy4NClRoaXMgcGF0Y2ggYWRkcyBhIGRlYnVnZnMgbm9k ZSB0aGF0IGV4cG9ydHMgdGhpcyBpbmZvcm1hdGlvbiwgYnkNCmRpc3BsYXlpbmcgdGhlIGVuZ2lu ZXMnIHZhcmlvdXMgcmVnaXN0ZXJzIHRoYXQgYXNzZW1ibGUgdGhlaXIgaWRsZS9idXN5DQpzdGF0 dXMuDQpUaGUgaW5mb3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