Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp128142pxb; Thu, 12 Aug 2021 12:24:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ0eGiqgMIK/DuiXV+5jcgAt5Lpi5tqgrPco634TofsDORF6H0IwGHViyXnYEiMiqJtIV8 X-Received: by 2002:a17:906:e089:: with SMTP id gh9mr5383493ejb.80.1628796295449; Thu, 12 Aug 2021 12:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628796295; cv=none; d=google.com; s=arc-20160816; b=G8EUsTZ3cQ/rKvLqPr9hyrRkg4VZUAHpvW1i2is5F4Pyny4mkBfRJtvvEL4xSuZzCf 1L0R/F4+NalJLIB3fuPNaqUv3oMenrQIfLrFhOoeiqXjkaObSV4PiILQNKf19XIMyXlc 3TVzsGqZ6rs/PiO8kkM1QP7hTlYV6ZyTFN2O1wpNzzQv252InFAArFwKRhJ5TjBk+kxO uDI9enPKRQ1VOiAnoLfYSnizcb6rVviBOVov/Uybju0N+GuLthGVmDcbFUBY3MGX1gs2 mG24+4mJAImPzvFqTpjgiBUgXeDgQygjtlVfQoFQnk5apkRxu9wXCZ1mMDpyHN4CoEVA ZMNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=m5oFsRHrJOjXfcn+Ba/k0Xba2WmvP4C0WOGVKJDz/Uk=; b=dyN0TTkgwDFGNj93ynC2J3e1HwgYCxGoEW5XdvbfMat253yNLbz8Eu2AgnlQ4/JFL0 2hDfxezKz+QpKsCpmmTid5Haj1vdRuBCsM/c2UKAL3m7z+ZVkCdiF+eQTXicGXV8pSGa 3cXhoIsAi0EW9bRk4N/pOkRbj2p5vd2gDX/kNVi3jDGC9rAEJr5chZ7lELmlW10H53rZ Qx2Wg/V3WYFTL27sgD+IRtJhiKO9WL2a9ds8S+liBIpU8TBavaCAjSAf8cP+rH46E8jb WFoSn8RJBGlzpRCC/3O2zNHG5GVtM+cgWitthwPj92XoW7AwlDqE9ZE9ZwZR6vy45VCP 4CRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="O/mh77vN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si3391675edx.590.2021.08.12.12.24.31; Thu, 12 Aug 2021 12:24:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b="O/mh77vN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbhHLTUd (ORCPT + 99 others); Thu, 12 Aug 2021 15:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbhHLTUd (ORCPT ); Thu, 12 Aug 2021 15:20:33 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B19DC061756 for ; Thu, 12 Aug 2021 12:20:07 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id n1-20020a4ac7010000b0290262f3c22a63so2112959ooq.9 for ; Thu, 12 Aug 2021 12:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=m5oFsRHrJOjXfcn+Ba/k0Xba2WmvP4C0WOGVKJDz/Uk=; b=O/mh77vNJo9Ib606oFinKMTuwY5MyUN86DF8a01T9KSfwzdN2POVzMYRTYhAv+YSO2 BYZ1TSp9KnND/MgGxuSN0wRnTdZdOXp4qniEoXdiy2FJq65uLJfYNqt0TTxylbvrcDKA HeKWxfAlWHjQv6WCDO9Wx+GJqU1pGJxDmPJgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=m5oFsRHrJOjXfcn+Ba/k0Xba2WmvP4C0WOGVKJDz/Uk=; b=RC3fPUacrVAbQVjM102BQeVyyi27eZP16atIXc9lH0RGHEeB39XMjsWwN38CtOygkF omwWrPRY+hq4gmDH5DYsK5Im/bc0tkNLyCLIlyF6yMoyauereBbGSNYZh8TrI2jNrUJN w9uz3xvu5xQkoCJDkTn+Ol8+2ShTy+nzD25U4a2RZlezRzqqe7jqEeEG/7kUP4gMSnxe bSi9YxOJec9i6GWImiUZl8rIyrBdD1cC0Ru2zlt8FYxcnPLu8ntU6crt6dIkmL5OjW0K fvOnTdyhQa0R2UdCpR9PvoRUT3g5Bki1hOGxAcRUU/Qt9Nktcq1ncGB9G1ute6SYLxjY L1NA== X-Gm-Message-State: AOAM530E5Em0OIKphI00vesTjYDy3gbbXxBT1VENVf9CRCEAY8C7WlVM 4qzR+g1xMCc4zgv+ucjU5ciUsyq7IeELnfJBbCzs+A== X-Received: by 2002:a4a:c60e:: with SMTP id l14mr4286245ooq.80.1628796006339; Thu, 12 Aug 2021 12:20:06 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 12 Aug 2021 12:20:05 -0700 MIME-Version: 1.0 In-Reply-To: <1628588875-23790-6-git-send-email-dikshita@codeaurora.org> References: <1628588875-23790-1-git-send-email-dikshita@codeaurora.org> <1628588875-23790-6-git-send-email-dikshita@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 12 Aug 2021 12:20:05 -0700 Message-ID: Subject: Re: [PATCH v4 5/7] venus: vdec: set work route to fw To: Dikshita Agarwal , linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Dikshita Agarwal (2021-08-10 02:47:53) > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index 198e47e..4e7b9e5 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -653,6 +653,24 @@ static int vdec_set_properties(struct venus_inst *inst) > return 0; > } > > +static int vdec_set_work_route(struct venus_inst *inst) > +{ > + struct hfi_video_work_route wr; > + u32 ptype; > + int ret; > + > + if(!IS_V6(inst->core)) Please add a space after 'if' > + return 0; > + > + wr.video_work_route = inst->core->res->num_vpp_pipes; > + > + ptype = HFI_PROPERTY_PARAM_WORK_ROUTE; > + ret = hfi_session_set_property(inst, ptype, &wr); > + if (ret) > + return ret; > + return 0; return hfi_session_set_property(...) is shorter. > +} > + > #define is_ubwc_fmt(fmt) (!!((fmt) & HFI_COLOR_FORMAT_UBWC_BASE)) > > static int vdec_output_conf(struct venus_inst *inst)