From patchwork Thu Aug 27 09:24:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 248435 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp8697ilg; Thu, 27 Aug 2020 02:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQZL7M9PkWco8FaRjHmzXUrZs6I6HkvAM/PwgHb87zr6AZYAefjOpQKco0USumbIeg8kWx X-Received: by 2002:aa7:c3d5:: with SMTP id l21mr18536773edr.130.1598520301147; Thu, 27 Aug 2020 02:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598520301; cv=none; d=google.com; s=arc-20160816; b=CxyvSW7GWuELNWh8GxUbxWWY58ovjXQRX9gGk9WNE9glUaAPaCr/UJbDn/m6CRUYSD 1Emjua9akZuTpaveGXfJxMdNPhKJoqSCrynAQk8CMdJ6EznXlqe0xjpfU+NW8VChiYE9 08iQbtK/ObsYtZxz9UldnBUTGzOnZwbQ4Iy3Jg4Mb7F8zET9pvlKllv15E9o/neEW+oS E9gqpLSaookjsDYYeP7LXpmvMVKZTwt6HFdImb0sln/q0Wu0sH1zO+7TDak4fAyoCA8E rpQxJCCmfJHOuBINl9Z0N/QdErbrVgaxTPL7HB7EsSnL8C5yKfQY2R4stB93PGaKLkY9 /6cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=y6eC9FLONwMHdn6Vk0cNJPGbuy8ijaSCojAKxgZZyGI=; b=GvqC9HaZzoHJGm55k6uWZAry52OZQkoDbGs3nQIkAeYSJD/UIsoP5yR6PcVm0WswlH soy9qxA1YmMsr91dXqC72rCwscH2uW9h/4Rs524BVOeqDrkpS68MegikFPvnJMgdSwyo UqN/Wl8vfFSVAIswE8T7JpNvQYC8M0HTcVCYqiQECA0cEP9QMmphYG2B50uFaDSruEBS pFACXDuclvb+3wwXNwtjOYsx41LdCgk8lDnUEFeECBFORZEGPcN7nEfFE46FlcmKSJMq DxvEQPahPXRKdiJCV/vCy1lt98gdx+90MuC54P7BblFC5ga6Jrlt2Be+PIhdPeTY7cXi 9DhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hnbPjqc5; 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 n13si949930eje.128.2020.08.27.02.25.00; Thu, 27 Aug 2020 02:25:01 -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=hnbPjqc5; 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 S1728415AbgH0JY4 (ORCPT + 15 others); Thu, 27 Aug 2020 05:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728072AbgH0JYy (ORCPT ); Thu, 27 Aug 2020 05:24:54 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10720C06121A for ; Thu, 27 Aug 2020 02:24:54 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id a5so4652881wrm.6 for ; Thu, 27 Aug 2020 02:24:53 -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:in-reply-to:references; bh=y6eC9FLONwMHdn6Vk0cNJPGbuy8ijaSCojAKxgZZyGI=; b=hnbPjqc5lM+2ivWPWllQVpQjADKutPYchKe3HF5YZEtqdQv5wcsgAsTa4QRucC7KXm Fu0kESFc2qZknb+X0Rv98VLtHjG6hEw9sVXLN0Uhu/Jwf8srK+lEFy1gl0o/PNKM7TSi S/pYjYrB1fZerg/uae81FFQKOdK1/DEKvXyvoNlslFdEHJT7u8RmjKyhzWbP83BqUGpU nixwNth8eI+fGKSYvBKP6+9x55Sgd9bLhcNrJ7Axst+6u2Xl5MPzx1l0Y0Wrvnr8vTSc WHUmuWpHE2OG+j5ZwAH3oOJsFFmzZQJ3VGzYpgUZpDACYU0vdfwOw0JHhQNVY95KCzrq Uxtg== 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:in-reply-to :references; bh=y6eC9FLONwMHdn6Vk0cNJPGbuy8ijaSCojAKxgZZyGI=; b=Qkl+795GpIT7TOenOUHCnAoUxFi+9C9M5sU3OCtGSrWZb7L4is+a3yMP195gz/AEW3 XHlsFE2eHwaEJJs5lfUhXApzwXM4FQnLrRIfQ06zmLKSQixwY9hRud6TaeoJ4Qelw6fP yekYseinakxqqALTSnqixNfUAO16ZtqAQMi5ZG4lNovBaGR9JdasfIGZP5aKiWBn1u3M O0mRWPujGpoSdVzGRq763KUpETq95WWfNTopagIrzHzpbrmRhFHkMeH+rW1dWaMb5nHN PcaVgKpfAbIVIy2QU2nWe0ne7EeqIUueTnazlLrmhsorsLbVk2hmctVbLga8HmGaz8dG hy+Q== X-Gm-Message-State: AOAM533crfdvZ1NGO5Fvud6NXos+o6u8vbhHYEDhvI6ll21Yhs1qXSJ8 /qM/BTJajy+kfymBZ31CTvmZYw== X-Received: by 2002:a5d:6944:: with SMTP id r4mr20635784wrw.132.1598520292764; Thu, 27 Aug 2020 02:24:52 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id z203sm4357330wmc.31.2020.08.27.02.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 02:24:52 -0700 (PDT) From: Stanimir Varbanov To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Dikshita Agarwal , Vikash Garodia , Stanimir Varbanov Subject: [PATCH 01/13] venus: Delete not used core caps Date: Thu, 27 Aug 2020 12:24:05 +0300 Message-Id: <20200827092417.16040-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200827092417.16040-1-stanimir.varbanov@linaro.org> References: <20200827092417.16040-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The core caps are filled but not used, delete them. In case we need them we can re-introduce. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 6 ------ drivers/media/platform/qcom/venus/hfi_venus.c | 3 --- 2 files changed, 9 deletions(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platform/qcom/venus/core.h index a9a52e29312d..18cf5b329a2b 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -143,7 +143,6 @@ struct venus_caps { * @enc_codecs: encoders supported by this core * @dec_codecs: decoders supported by this core * @max_sessions_supported: holds the maximum number of sessions - * @core_caps: core capabilities * @priv: a private filed for HFI operations * @ops: the core HFI operations * @work: a delayed work for handling system fatal error @@ -189,11 +188,6 @@ struct venus_core { unsigned long enc_codecs; unsigned long dec_codecs; unsigned int max_sessions_supported; -#define ENC_ROTATION_CAPABILITY 0x1 -#define ENC_SCALING_CAPABILITY 0x2 -#define ENC_DEINTERLACE_CAPABILITY 0x4 -#define DEC_MULTI_STREAM_CAPABILITY 0x8 - unsigned int core_caps; void *priv; const struct hfi_ops *ops; struct delayed_work work; diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c index 4be4a75ddcb6..cb0e657b7649 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -1591,9 +1591,6 @@ int venus_hfi_create(struct venus_core *core) hdev->suspended = true; core->priv = hdev; core->ops = &venus_hfi_ops; - core->core_caps = ENC_ROTATION_CAPABILITY | ENC_SCALING_CAPABILITY | - ENC_DEINTERLACE_CAPABILITY | - DEC_MULTI_STREAM_CAPABILITY; ret = venus_interface_queues_init(hdev); if (ret)