Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4918135rdb; Fri, 15 Sep 2023 17:13:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9hEWKi7qTXQYAW86zCK1exHiFkCPQqBAJ9+N+rLgUHu9TRnDh9AowrXQyE5yhF19D7ta2 X-Received: by 2002:a17:90a:31c6:b0:263:f36e:d610 with SMTP id j6-20020a17090a31c600b00263f36ed610mr2849480pjf.0.1694823209916; Fri, 15 Sep 2023 17:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694823209; cv=none; d=google.com; s=arc-20160816; b=oWyu362rb7sfMtndAFZ1FraOZw+GqJmU0reK3ytMTrjAtHktz+Z9mYFuFYR7R6+0Yg n6ya08O1es4p/80xODCbb3x55e1hqQP4hbtHLoywONps1rP1cZKSGbPnfBgRpVcEedrT /ORI4+/ABMuPnBQXbJYD4n1jYAxQy8B29qzDcP85WemJVRZDZ5KRzOJ+1efqT7oHz1Te 1wZUZZsBaNbEae73AD9CgHDDRWJMnzE5LveQ/Z3RgVuJZa8fD/FOtwHg3evmzikC+HmK MiTQTMwJGXLfN78SxN37+CijGP3B6sxHapSXgJVDyJUAG2l5gll40ZweVnigbP8HXVvq ZobQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=PuUTuDDHcrfwu3tRz2kGluXBFnBmv8teLBXU35uEseA=; fh=FTz8j6OVZdpWCggthVzkbdOy/Z4sgVwJWN2nliuvwaE=; b=pCLLmt0MLoB3TmeBCGU8J4Rl5GH4WBzOPQKSAGH+XpUc87E8SBoXTm5ocbUUeZITw1 e0M3XjyBhHVRuEdXBqsrxj5u2AnTdOhKHIi8X+dVeEISe0pGFicUJphy6cBJU2NNCezM 1VjwkyPMgpavrDDB61/QXdMVRxqF21yGC3wIH97Quf2WHdIjw2/oejgyFlgwM3U4IJXs PkiCzavZInUBJ5z2S11XQtONxDR2R/y5Feni5/LZeJoGHz2+UGdNQO0fSxMpZNtpHMTo s6zP4dzkKqKRXRIWuFyROovVa5GhywKFCwGle+faA60EESQ7KXqriqsvzJGHLH2UmFuY RT2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kNCKBGuj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y15-20020a17090aa40f00b002680abc3699si6134949pjp.115.2023.09.15.17.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 17:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kNCKBGuj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8ABE8802931B; Fri, 15 Sep 2023 07:16:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235475AbjIOOPy (ORCPT + 99 others); Fri, 15 Sep 2023 10:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235554AbjIOOPw (ORCPT ); Fri, 15 Sep 2023 10:15:52 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38521FDE for ; Fri, 15 Sep 2023 07:15:45 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-986d8332f50so295314166b.0 for ; Fri, 15 Sep 2023 07:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694787344; x=1695392144; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PuUTuDDHcrfwu3tRz2kGluXBFnBmv8teLBXU35uEseA=; b=kNCKBGujlE1GsTH31ZaEmBDelabqVFt0D8FxNkg/Kepthtqzjjrt1ITVa5RbwrCQKG F8qAoIHwWuCT+6XVuiBbFyHvRSGSsQ2xN+k3ormM8eBFuqZU4kdAVGGuvxsdt8vQ+qbU 8dM6KVfQsIHbAH/bfMPuVjyxF2omlVNGjVh9rDWbXmMvQ9Pj5FtSKFOOXVs/j/Hkff3o 1+KlF1su0A7XXmFFboxXhEcjrmdBMMCOSsAQZ+dA7mZ54Rzg7SiCxIXI6QgIAgvsdJwq 126/1Cq48nnuJlutnI174rheBYI0XUhEdAJIJOcqxEbZiJ1St11Ii55eWZ4dPLHv9LLD gdiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694787344; x=1695392144; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PuUTuDDHcrfwu3tRz2kGluXBFnBmv8teLBXU35uEseA=; b=uUi1A5XTkYskq+uByujfbOJ5iSQiDEMpTf2ETVveyT/vCa5XYZVN8XucgnD4q62abD neSEByMSoqF+TFf0+XtHigdVT85m8kkPurV8pJ33YYBKp4xOvy/xPkYggry0eAg/9hfk +NLF3AVIAvtupSf4rvg3PCRt5QJkIR6dVGPf6aChIhaMGxjP4F6JSV+lE/rONj52kCYW K+jaLAzRNViSW9FoqvWa1sdHQpTXSltDoxH0OJAn4NvNz6rFMNi0o/YVyDwAjHiDyt5V 6n1uO9VS6Px/G3KEo6e8udNTnqj3ARY0AvgRCfshPhCK0R9UtXT0/tHu8uzecQRSiVew kqRA== X-Gm-Message-State: AOJu0YxR4V8YtfJKMfpzWz9XrUpXtKdoXyCMuTAOCiVNTm/6s4GntugY XJupBpcl370EEXNNnuV8MO7w+w== X-Received: by 2002:a17:906:8a62:b0:9a1:f6e0:12f4 with SMTP id hy2-20020a1709068a6200b009a1f6e012f4mr1426064ejc.15.1694787344108; Fri, 15 Sep 2023 07:15:44 -0700 (PDT) Received: from [192.168.37.232] (178235177024.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.24]) by smtp.gmail.com with ESMTPSA id z18-20020a1709067e5200b0099d798a6bb5sm2451895ejr.67.2023.09.15.07.15.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Sep 2023 07:15:43 -0700 (PDT) Message-ID: Date: Fri, 15 Sep 2023 16:15:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFT 00/20] Venus cleanups Content-Language: en-US To: Bryan O'Donoghue , Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Dikshita Agarwal , Philipp Zabel Cc: Marijn Suijten , Stanimir Varbanov , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230911-topic-mars-v1-0-a7d38bf87bdb@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdT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QB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 07:16:08 -0700 (PDT) On 15.09.2023 16:13, Bryan O'Donoghue wrote: > On 11/09/2023 16:10, Konrad Dybcio wrote: >> With the driver supporting multiple generations of hardware, some mold >> has definitely grown over the code.. >> >> This series attempts to amend this situation a bit by commonizing some >> code paths and fixing some bugs while at it. >> >> Only tested on SM8250. >> >> Definitely needs testing on: >> >> - SDM845 with old bindings >> - SDM845 with new bindings or 7180 >> - MSM8916 >> - MSM8996 >> >> Signed-off-by: Konrad Dybcio >> --- >> Konrad Dybcio (20): >>        media: venus: pm_helpers: Only set rate of the core clock in core_clks_enable >>        media: venus: pm_helpers: Rename core_clks_get to venus_clks_get >>        media: venus: pm_helpers: Add kerneldoc to venus_clks_get() >>        media: venus: core: Set OPP clkname in a common code path >>        media: venus: pm_helpers: Kill dead code >>        media: venus: pm_helpers: Move reset acquisition to common code >>        media: venus: pm_helpers: Use reset_bulk API >>        media: venus: core: Constify all members of the resource struct >>        media: venus: core: Deduplicate OPP genpd names >>        media: venus: core: Get rid of vcodec_num >>        media: venus: core: Drop cache properties in resource struct >>        media: venus: core: Use GENMASK for dma_mask >>        media: venus: core: Remove cp_start >>        media: venus: pm_helpers: Commonize core_power >>        media: venus: pm_helpers: Remove pm_ops->core_put >>        media: venus: core: Define a pointer to core->res >>        media: venus: pm_helpers: Simplify vcodec clock handling >>        media: venus: pm_helpers: Commonize getting clocks and GenPDs >>        media: venus: pm_helpers: Commonize vdec_get() >>        media: venus: pm_helpers: Commonize venc_get() >> >>   drivers/media/platform/qcom/venus/core.c       | 138 ++++------- >>   drivers/media/platform/qcom/venus/core.h       |  64 +++-- >>   drivers/media/platform/qcom/venus/firmware.c   |   3 +- >>   drivers/media/platform/qcom/venus/hfi_venus.c  |   7 +- >>   drivers/media/platform/qcom/venus/pm_helpers.c | 328 +++++++++---------------- >>   drivers/media/platform/qcom/venus/pm_helpers.h |  10 +- >>   drivers/media/platform/qcom/venus/vdec.c       |   9 +- >>   drivers/media/platform/qcom/venus/venc.c       |   9 +- >>   8 files changed, 213 insertions(+), 355 deletions(-) >> --- >> base-commit: 7bc675554773f09d88101bf1ccfc8537dc7c0be9 >> change-id: 20230911-topic-mars-e60bb2269411 >> >> Best regards, > > b4 shazam 20230911-topic-mars-v1-0-a7d38bf87bdb@linaro.org > Grabbing thread from lore.kernel.org/all/20230911-topic-mars-v1-0-a7d38bf87bdb@linaro.org/t.mbox.gz > Checking for newer revisions > Grabbing search results from lore.kernel.org > Analyzing 27 messages in the thread > Checking attestation on all messages, may take a moment... > --- >   [PATCH 1/20] media: venus: pm_helpers: Only set rate of the core clock in core_clks_enable >   [PATCH 2/20] media: venus: pm_helpers: Rename core_clks_get to venus_clks_get >   [PATCH 3/20] media: venus: pm_helpers: Add kerneldoc to venus_clks_get() >   [PATCH 4/20] media: venus: core: Set OPP clkname in a common code path >   [PATCH 5/20] media: venus: pm_helpers: Kill dead code >   [PATCH 6/20] media: venus: pm_helpers: Move reset acquisition to common code >   [PATCH 7/20] media: venus: pm_helpers: Use reset_bulk API >   [PATCH 8/20] media: venus: core: Constify all members of the resource struct >   [PATCH 9/20] media: venus: core: Deduplicate OPP genpd names >   [PATCH 10/20] media: venus: core: Get rid of vcodec_num >   [PATCH 11/20] media: venus: core: Drop cache properties in resource struct >   [PATCH 12/20] media: venus: core: Use GENMASK for dma_mask >   [PATCH 13/20] media: venus: core: Remove cp_start >   [PATCH 14/20] media: venus: pm_helpers: Commonize core_power >   [PATCH 15/20] media: venus: pm_helpers: Remove pm_ops->core_put >   [PATCH 16/20] media: venus: core: Define a pointer to core->res >   [PATCH 17/20] media: venus: pm_helpers: Simplify vcodec clock handling >   [PATCH 18/20] media: venus: pm_helpers: Commonize getting clocks and GenPDs >   [PATCH 19/20] media: venus: pm_helpers: Commonize vdec_get() >   [PATCH 20/20] media: venus: pm_helpers: Commonize venc_get() >   --- >   ✗ No key: ed25519/konrad.dybcio@linaro.org >   --- >   NOTE: install dkimpy for DKIM signature verification > --- > Total patches: 20 > --- >  Base: base-commit 7bc675554773f09d88101bf1ccfc8537dc7c0be9 not known, ignoring > Applying: media: venus: pm_helpers: Only set rate of the core clock in core_clks_enable > Applying: media: venus: pm_helpers: Rename core_clks_get to venus_clks_get > Applying: media: venus: pm_helpers: Add kerneldoc to venus_clks_get() > Applying: media: venus: core: Set OPP clkname in a common code path > Applying: media: venus: pm_helpers: Kill dead code > Applying: media: venus: pm_helpers: Move reset acquisition to common code > Applying: media: venus: pm_helpers: Use reset_bulk API > Applying: media: venus: core: Constify all members of the resource struct > Applying: media: venus: core: Deduplicate OPP genpd names > Applying: media: venus: core: Get rid of vcodec_num > Applying: media: venus: core: Drop cache properties in resource struct > Applying: media: venus: core: Use GENMASK for dma_mask > Applying: media: venus: core: Remove cp_start > Applying: media: venus: pm_helpers: Commonize core_power > Applying: media: venus: pm_helpers: Remove pm_ops->core_put > Applying: media: venus: core: Define a pointer to core->res > Applying: media: venus: pm_helpers: Simplify vcodec clock handling > Applying: media: venus: pm_helpers: Commonize getting clocks and GenPDs > Applying: media: venus: pm_helpers: Commonize vdec_get() > Applying: media: venus: pm_helpers: Commonize venc_get() > >   MODPOST Module.symvers > ^[[BERROR: modpost: "vcodec_clks_get" [drivers/media/platform/qcom/venus/venus-dec.ko] undefined! > ERROR: modpost: "vcodec_clks_get" [drivers/media/platform/qcom/venus/venus-enc.ko] undefined! > make[3]: *** [/home/deckard/Development/qualcomm/qlt-kernel/scripts/Makefile.modpost:145: Module.symvers] Error 1 > make[2]: *** [/home/deckard/Development/qualcomm/qlt-kernel/Makefile:1865: modpost] Error 2 > make[1]: *** [/home/deckard/Development/qualcomm/qlt-kernel/Makefile:234: __sub-make] Error 2 Yeah I noticed after sending.. I have some fixups locally, see output of `b4 prep --compare-to v1`: 1: ef4effbdd61b = 1: 07193da8f8b2 media: venus: pm_helpers: Only set rate of the core clock in core_clks_enable 2: 46a6466fff36 = 2: c8598ffa711a media: venus: pm_helpers: Rename core_clks_get to venus_clks_get 3: 733411cd167d = 3: bcc0385fe8a3 media: venus: pm_helpers: Add kerneldoc to venus_clks_get() 4: 42f089b8ee90 = 4: 181a2a4f7a4b media: venus: core: Set OPP clkname in a common code path 5: e0cd37c576cf = 5: 182ba8feb561 media: venus: pm_helpers: Kill dead code 6: 232c32d813b8 = 6: 06fd32b2f112 media: venus: pm_helpers: Move reset acquisition to common code 7: 0ab76762c149 = 7: f0aaaca1fe70 media: venus: pm_helpers: Use reset_bulk API 8: e47564b87e77 = 8: 2ddb02b05d0f media: venus: core: Constify all members of the resource struct 9: c5e157de604e = 9: 918f3dc5f2f6 media: venus: core: Deduplicate OPP genpd names 10: 3500b515c0cb = 10: ee194c584ce0 media: venus: core: Get rid of vcodec_num 11: b179e47b6db6 ! 11: 81fa7517b057 media: venus: core: Drop cache properties in resource struct @@ drivers/media/platform/qcom/venus/core.h: struct venus_resources { const u32 cp_nonpixel_start; ## drivers/media/platform/qcom/venus/hfi_venus.c ## +@@ drivers/media/platform/qcom/venus/hfi_venus.c: static void venus_process_msg_sys_error(struct venus_hfi_device *hdev, + static irqreturn_t venus_isr_thread(struct venus_core *core) + { + struct venus_hfi_device *hdev = to_hfi_priv(core); +- const struct venus_resources *res; + void *pkt; + u32 msg_ret; + + if (!hdev) + return IRQ_NONE; + +- res = hdev->core->res; + pkt = hdev->pkt_buf; + +- + while (!venus_iface_msgq_read(hdev, pkt)) { + msg_ret = hfi_process_msg_packet(core, pkt); + switch (msg_ret) { @@ drivers/media/platform/qcom/venus/hfi_venus.c: static irqreturn_t venus_isr_thread(struct venus_core *core) venus_process_msg_sys_error(hdev, pkt); break; 12: aa122db08d64 = 12: 8cf3d701f0b4 media: venus: core: Use GENMASK for dma_mask 13: 548235220fcd = 13: 3aa4f40a1818 media: venus: core: Remove cp_start 14: 9fd8a8515795 = 14: 7f65994f7c7c media: venus: pm_helpers: Commonize core_power 15: 09c778667817 = 15: 45c51bcaeb17 media: venus: pm_helpers: Remove pm_ops->core_put 16: 955470ceffa0 = 16: 63aba2146a15 media: venus: core: Define a pointer to core->res 17: 3a6fbeac1f5c = 17: bafeb6dc5525 media: venus: pm_helpers: Simplify vcodec clock handling 18: ee1234ce5c19 = 18: e4500b65ff24 media: venus: pm_helpers: Commonize getting clocks and GenPDs 19: 155ca91c4ece ! 19: 8d86b33d0614 media: venus: pm_helpers: Commonize vdec_get() @@ drivers/media/platform/qcom/venus/pm_helpers.c: static int core_clks_set_rate(st { char buf[13] = { 0 }; /* vcodecX_core\0 */ +@@ drivers/media/platform/qcom/venus/pm_helpers.c: static int vcodec_clks_get(struct venus_core *core, struct device *dev, u8 id) + + return 0; + } ++EXPORT_SYMBOL_GPL(vcodec_clks_get); + + static int vcodec_clks_enable(struct venus_core *core, u8 id) + { @@ drivers/media/platform/qcom/venus/pm_helpers.c: vcodec_control_v3(struct venus_core *core, u32 session_type, bool enable) writel(1, ctrl); } Konrad