From patchwork Tue Jun 9 10:45:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 187652 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp405800ilo; Tue, 9 Jun 2020 03:47:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjXeZ57fo1seouYnra7GR1AHdHSbOGhwQs8uV5hMleDPLuNd1KTiyqqfg0NRVk88DnuFRK X-Received: by 2002:a50:b0c3:: with SMTP id j61mr26764333edd.349.1591699657910; Tue, 09 Jun 2020 03:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591699657; cv=none; d=google.com; s=arc-20160816; b=YK2ZRHG6w1LxuZVY9IX/CowElSVMkHqo8D/JgVGpdDIE56g6jBAeqn3+o2mgTGSfI3 7BwiTlIacra6RkFmqHryorWAKWR7pOyeqUEZPmTuQnTvtzXxKM7j5KcSdZ8ITIpWpSXe zqtJ8Cay/tb+xAyjaEDp2t7OQ7uWhAJy2vj6pq4LEDrTKNenSJYIa7olnmBUXcSKoWf+ BezHno5V6azbKUdKa2TtdjOBKmzQhHjW8FsWXWLJf85IMt9f3Ff00IFoL6R3PWquTYxd SB87pvaWZ7ZD58ssxvxyTjcfgvU56TkCnMvtdSQsRGGDdThq0wHYkHIXiFe7cFQYOQZJ zfHg== 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=p+3qxG4IVGjzzVjW9GQuIsYW/5Su4XmyAq4tUI3f9kc=; b=HZXVt+Lwo3Ao+EL58t47BE64spw4pbLgi8kk8O1vyyO3HbtQ1xob0yh2JaqwbTQ9vZ hOXq7qKiFYtZAogWtP96ZdSHNFFsjOPPWe1ZBH+sXZ+pnjY1DjxmDsxofAqY3eMmG4sj o4Z+0NGALXmwYhtZguS/fTfjtP67RRysIAGW9VOeOUX0gc48OVWfpNninptrc1ojkFPq zqkcSq+LayWMBEVSCytPUoqPdAfwFhArHtnu/jtQ+RrFBNexv+H0J2vYTT/6vIXEJTRe FZcKEPEyQUgUmvMy0uMR5EiuiI7U30rFlMBlKjF/xMmp3A0cJlXAL0hXztUYuZ8bjPti a0Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YcyHykJc; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 w11si10443998ejv.686.2020.06.09.03.47.37; Tue, 09 Jun 2020 03:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-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=YcyHykJc; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 S1728135AbgFIKrf (ORCPT + 7 others); Tue, 9 Jun 2020 06:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbgFIKrc (ORCPT ); Tue, 9 Jun 2020 06:47:32 -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 3ED44C03E97C for ; Tue, 9 Jun 2020 03:47:31 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id k11so21835993ejr.9 for ; Tue, 09 Jun 2020 03:47:31 -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=p+3qxG4IVGjzzVjW9GQuIsYW/5Su4XmyAq4tUI3f9kc=; b=YcyHykJcGW6dvg5l+6eVeEGZXy3JVntamLO7FbHdJOBvI8KQWdvEYbRjXwsYElyby9 Ed/vzFhjeBRCMCvh4PDj/Nj8oWxpFlXwRtAyUw+ZnFPaXzn3b0mqjE7LamQ0gCRi2epp LiKPhT51jkXhhik1ICQ06wB/qfHgHprjhxvAJI02yGbDt9zuZhx5NmCyLqUhr5aZbC7m 6iV2TFgRU+862dqtrw52VFrT8PGgNFAyVYkxSv4o3/crC4qBT6SdFyyoor9/dTTS+1V+ TNQ2fLUQD8hyTkb3jo+DLaYhB56HCMzDNN6NQ4QywZ2z/eeUd+hlNKcpi5XMx7ozmrfO ZRHQ== 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=p+3qxG4IVGjzzVjW9GQuIsYW/5Su4XmyAq4tUI3f9kc=; b=oEoKdXylLp0mJ/Yu4Uot+jZHw7smVlO+Tn3ZdWZV0dMhuhP6WFx8h3LwF0ANUjf+x4 08u/GetlZhcqrbLAU8rUgqA5oc1CmlQ8h5b73hbWjBI72ky0FlC8PRcC3dk65Xq/7vbz 13m+7DbOu8mHgHV2nxBR9N7eNSLaJm+gHW/Vp7NxG/EHB6tB4m4fDyVCwjlsjZ0aW4ih VClxI8jBUkBo6sToWlN6ZEK1fpbOi75NgmzRMv3wJHSDRr2cSR/Z9eyNwSRcJEWv3CVV 91FTnhILqgR3YEckmfvkNmLtt1VF/OphYnAsWJ8V+/uQWV9+fmIr+mlXQ5EE0w6audyl hyIg== X-Gm-Message-State: AOAM533mDVAtWfCIoEKy6iPiLeqMZyoO6K17ek6gg8SYXcm9ZKRriuSj T/fjaTH78spFK0ZapF2Uq5oHqQ== X-Received: by 2002:a17:906:3483:: with SMTP id g3mr24541480ejb.373.1591699650514; Tue, 09 Jun 2020 03:47:30 -0700 (PDT) Received: from localhost.localdomain (hst-221-69.medicom.bg. [84.238.221.69]) by smtp.gmail.com with ESMTPSA id qt19sm12267763ejb.14.2020.06.09.03.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 03:47:29 -0700 (PDT) From: Stanimir Varbanov To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org Cc: Joe Perches , Greg Kroah-Hartman , Jason Baron , Stanimir Varbanov Subject: [PATCH v3 0/7] Venus dynamic debug Date: Tue, 9 Jun 2020 13:45:57 +0300 Message-Id: <20200609104604.1594-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Hello, Here is the third version of dynamic debug improvements in Venus driver. As has been suggested on previous version by Joe [1] I've made the relevant changes in dynamic debug core to handle leveling as more generic way and not open-code/workaround it in the driver. About changes: - added change in the dynamic_debug and in documentation - added respective pr_debug_level and dev_dbg_level regards, Stan [1] https://lkml.org/lkml/2020/5/21/668 Stanimir Varbanov (7): Documentation: dynamic-debug: Add description of level bitmask dynamic_debug: Group debug messages by level bitmask dev_printk: Add dev_dbg_level macro over dynamic one printk: Add pr_debug_level macro over dynamic one venus: Add debugfs interface to set firmware log level venus: Make debug infrastructure more flexible venus: Add a debugfs file for SSR trigger .../admin-guide/dynamic-debug-howto.rst | 10 +++ drivers/media/platform/qcom/venus/Makefile | 2 +- drivers/media/platform/qcom/venus/core.c | 5 ++ drivers/media/platform/qcom/venus/core.h | 8 +++ drivers/media/platform/qcom/venus/dbgfs.c | 57 +++++++++++++++++ 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 ++ fs/btrfs/ctree.h | 12 ++-- include/linux/acpi.h | 3 +- include/linux/dev_printk.h | 12 +++- include/linux/dynamic_debug.h | 55 +++++++++++----- include/linux/net.h | 3 +- include/linux/printk.h | 9 ++- lib/dynamic_debug.c | 30 +++++++++ 19 files changed, 289 insertions(+), 58 deletions(-) create mode 100644 drivers/media/platform/qcom/venus/dbgfs.c create mode 100644 drivers/media/platform/qcom/venus/dbgfs.h -- 2.17.1