From patchwork Sat Jun 13 22:39:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 187916 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp1544432ilo; Sat, 13 Jun 2020 15:39:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFd3F9jvEVAvVQKX1iaZGXLpmNOdUIkQy18387ukbxMhllMttPwIR6HUUMu/EQpn/RggBy X-Received: by 2002:a05:6402:1d29:: with SMTP id dh9mr17634984edb.269.1592087977860; Sat, 13 Jun 2020 15:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592087977; cv=none; d=google.com; s=arc-20160816; b=DwRflPF3Re/BHL6zJfSPfgqFvI2XyBupFoOWC4EK0VQtTywQdJ8OISyn1UcCwQ6Ezr vU5PZqKmeOzKRl9RLq+kTFAnzXzXcKNVv6jepfMfPBIwDdby49ulIFc2v8EwIw1jKZ4R kxAgGps2MXAsjSvW5gK+5HG11fE3NKPa+CvYhpvoS6UB0QTBXMTLFKxsYQEnZfGv7qCx YWiMCG4Hrzy/BSvyDB1eY5eUdYIMh6RQh4t0tvziSugQqF21JbDaxNdITG/X2vNca+gL Y+WFTaMvjscsy62JX30/I8+F8OududNBy0aj2VqktAmnRw1ponVl/eV4/5GWLXtyA6vD UJpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=1HN9alufzB8NJoHpHLW1/fOwOpiyc7Q8JMhu8E/6NQY=; b=ybL9fj7Htq+I7KgHp0sLel/zmqnynPfO0qvbn+SkA9kW+Y5Djimz61xQUjkzCory4r k5pijMkGec1rbK51axGL0BgHLsISXDqhycdRur/CEXktgJMDsYejZLypHm5kRJSNSEnP N+ZUX1JmUDWP+n2PgdsVpKRjlOX2Rm5z7ldJ7o3E8NRc8d/KR5dSOR8WrA1VfWOsJPg5 uSWNhFwT6M8lGqzoqf/anMrZb7qdm+WKrzUTai3u7fjYST32SRwFQaIVTq/bUiMwxnZ0 E3qDEnKCQu1Jg8gi9DeFYxHnuRiriy82qzp+fUttGlpBXtb/NXA4lsTzEoF/ISjJky2r +ALg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YfeUkdrA; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si3663008eja.734.2020.06.13.15.39.37; Sat, 13 Jun 2020 15:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YfeUkdrA; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726642AbgFMWjg (ORCPT + 16 others); Sat, 13 Jun 2020 18:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726442AbgFMWjg (ORCPT ); Sat, 13 Jun 2020 18:39:36 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DBEEC08C5C2 for ; Sat, 13 Jun 2020 15:39:35 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id k11so13588848ejr.9 for ; Sat, 13 Jun 2020 15:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=1HN9alufzB8NJoHpHLW1/fOwOpiyc7Q8JMhu8E/6NQY=; b=YfeUkdrAAXeRR5txHP9A1x7xhuS6YwR2+n0z3Gwfv5nU4OSpCX39r2h26Il2RUKKdc L9zBxDGk19TusapRgmGNI16ZqavPQ/vDyF+86cm+e/0Hz2FmsO8l3qbndJ+FXfMoVSnK KFVWdsFC4Zlx6P4+S4DzmdWvQmdj46ceiH3JHYlGsFZNWpzXT0+vD+dhTFDjycoae9LR H+PENYzUDIn0RCHLoyFx8obpbHpxsIhIHa3bOcSGmym0nAc/4lcWVLFDm/lP4tuPFhAr 1enFOWs3RCkwxFYyfacXUZrgnFkkdca3prmhYwxEtdaFT3SfUx8To5GurbzCjLuhJ+9g GktQ== 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=1HN9alufzB8NJoHpHLW1/fOwOpiyc7Q8JMhu8E/6NQY=; b=PKA5VVFo9H6LR3pCBt9XGXPKYSDM9VqGD/dcFTYyuUTNW6BQ8vbKAQyq3yLSsho09B LKxQMBcdFhoOM2mhKXwlzWbGQQrfciT04VEewO5x52qXNjZKo8QhD5cPhmAik3nrzqxD s7Oqm05ylL9xH2Nvvn4V8DiAemC/peRnyzM2a+5r0QW8nDPoONARs43D8kyW1c/f82p8 +Qo6ECxRTPBHLyZxO7/ulnd3mHIITOygd8VQofR4EEveT3npykDR8JxI+klaUh9cYKAC 0NHjYZXdbaaKk9MAZGjndaIzsHDf+UGG2g3K17I1JFSLqdZg8H1xFFqa0mzTxXFBA4Mc 2ITw== X-Gm-Message-State: AOAM532hDnkBU9ml40NfdS8qnojG8HrHZMm2BYWqMYcBfjE6napFS1kV eISx54j9WrSwvHxwCA7YFH+9gg== X-Received: by 2002:a17:906:7247:: with SMTP id n7mr19422656ejk.105.1592087974315; Sat, 13 Jun 2020 15:39:34 -0700 (PDT) Received: from localhost.localdomain (212-5-158-38.ip.btc-net.bg. [212.5.158.38]) by smtp.gmail.com with ESMTPSA id u3sm5581606edx.25.2020.06.13.15.39.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jun 2020 15:39:33 -0700 (PDT) From: Stanimir Varbanov To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Stanimir Varbanov , jim.cromie@gmail.com, Joe Perches , Jason Baron , Greg Kroah-Hartman Subject: [PATCH v4 0/3] Venus dynamic debug Date: Sun, 14 Jun 2020 01:39:16 +0300 Message-Id: <20200613223919.7038-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hello, Time for v4 with following changes: * 1/3 taken comments into account - Greg KH * 2/3 kept the patch version from v2. Cc: jim.cromie@gmail.com Cc: Joe Perches Cc: Jason Baron Cc: Greg Kroah-Hartman I decided to keep 2/3 as it was in v2 of the current patchset where the grouping of KERN_DEBUG messages has been accomplished by dynamic debug 'format' filter. Depending on how WIP patches from Jim [1] will progress I'm ready to change that. Until then I'd like to have a way to group the debug messages. In case 2/3 is not accepted I'm willing to drop it from next pull request. v3 can be found at [2]. regards. Stan [1] https://lore.kernel.org/lkml/20200613155738.2249399-1-jim.cromie@gmail.com/T/#t [2] https://lore.kernel.org/lkml/20200609104604.1594-1-stanimir.varbanov@linaro.org/ Stanimir Varbanov (3): venus: Add debugfs interface to set firmware log level venus: Make debug infrastructure more flexible venus: Add a debugfs file for SSR trigger drivers/media/platform/qcom/venus/Makefile | 2 +- drivers/media/platform/qcom/venus/core.c | 3 + drivers/media/platform/qcom/venus/core.h | 8 +++ drivers/media/platform/qcom/venus/dbgfs.c | 51 +++++++++++++++ drivers/media/platform/qcom/venus/dbgfs.h | 12 ++++ drivers/media/platform/qcom/venus/helpers.c | 2 +- drivers/media/platform/qcom/venus/hfi_msgs.c | 30 ++++----- drivers/media/platform/qcom/venus/hfi_venus.c | 27 ++++++-- .../media/platform/qcom/venus/pm_helpers.c | 3 +- drivers/media/platform/qcom/venus/vdec.c | 63 +++++++++++++++++-- drivers/media/platform/qcom/venus/venc.c | 4 ++ 11 files changed, 172 insertions(+), 33 deletions(-) create mode 100644 drivers/media/platform/qcom/venus/dbgfs.c create mode 100644 drivers/media/platform/qcom/venus/dbgfs.h -- 2.17.1