mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gourav Kumar <gourav.kumar@oss.qualcomm.com>
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Bryan O'Donoghue <bod@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Stefan Schmidt <stefan.schmidt@linaro.org>,
	Hans Verkuil <hverkuil@kernel.org>,
	Vedang Nagar <quic_vnagar@quicinc.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	Gourav Kumar <gourav.kumar@oss.qualcomm.com>
Subject: [PATCH 4/4] media: iris: Drop duplicate defines
Date: Thu, 03 Dec 2026 15:52:08 +0530	[thread overview]
Message-ID: <20261203-iris-core-open-error-fixes-v1-4-c932ddcee73a@oss.qualcomm.com> (raw)
In-Reply-To: <20261203-iris-core-open-error-fixes-v1-0-c932ddcee73a@oss.qualcomm.com>

Several defines are defined twice with the same value, either within
iris_vpu_buffer.h or again in iris_buffer.c, which already includes that
header.

Remove the second definitions. No functional change.

Signed-off-by: Gourav Kumar <gourav.kumar@oss.qualcomm.com>
---
 drivers/media/platform/qcom/iris/iris_buffer.c     | 3 ---
 drivers/media/platform/qcom/iris/iris_vpu_buffer.h | 6 ------
 2 files changed, 9 deletions(-)

diff --git a/drivers/media/platform/qcom/iris/iris_buffer.c b/drivers/media/platform/qcom/iris/iris_buffer.c
index eb8de60c1177f..5801679bb07eb 100644
--- a/drivers/media/platform/qcom/iris/iris_buffer.c
+++ b/drivers/media/platform/qcom/iris/iris_buffer.c
@@ -12,8 +12,6 @@
 #include "iris_vpu_buffer.h"
 
 #define PIXELS_4K 4096
-#define MAX_WIDTH 4096
-#define MAX_HEIGHT 2304
 #define Y_STRIDE_ALIGN 128
 #define Y_STRIDE_ALIGN_P010 256
 #define UV_STRIDE_ALIGN 128
@@ -24,7 +22,6 @@
 #define UV_SCANLINE_ALIGN_QC08C 32
 #define META_STRIDE_ALIGNED 64
 #define META_SCANLINE_ALIGNED 16
-#define NUM_MBS_4K (DIV_ROUND_UP(MAX_WIDTH, 16) * DIV_ROUND_UP(MAX_HEIGHT, 16))
 
 /*
  * NV12:
diff --git a/drivers/media/platform/qcom/iris/iris_vpu_buffer.h b/drivers/media/platform/qcom/iris/iris_vpu_buffer.h
index 2085e316a6bd8..404e1b1c89263 100644
--- a/drivers/media/platform/qcom/iris/iris_vpu_buffer.h
+++ b/drivers/media/platform/qcom/iris/iris_vpu_buffer.h
@@ -106,7 +106,6 @@ struct iris_inst;
 #define MAX_PE_NBR_DATA_LCU16_LINE_BUFFER_SIZE 96
 #define MAX_PE_NBR_DATA_LCU32_LINE_BUFFER_SIZE 192
 
-#define MAX_FE_NBR_CTRL_LCU64_LINE_BUFFER_SIZE	64
 #define MAX_SE_NBR_CTRL_LCU64_LINE_BUFFER_SIZE	16
 #define MAX_PE_NBR_DATA_LCU64_LINE_BUFFER_SIZE	384
 #define MAX_PE_NBR_DATA_LCU64_LINE_BUFFER_SIZE_AR50LT	176
@@ -117,8 +116,6 @@ struct iris_inst;
 #define AV1D_LCU_MAX_SIZE_PELS 128
 #define AV1D_LCU_MIN_SIZE_PELS 64
 #define AV1D_MAX_TILE_COLS     64
-#define MAX_PE_NBR_DATA_LCU32_LINE_BUFFER_SIZE 192
-#define MAX_PE_NBR_DATA_LCU16_LINE_BUFFER_SIZE 96
 #define AV1D_NUM_HW_PIC_BUF    16
 #define AV1D_NUM_FRAME_HEADERS 16
 #define SIZE_AV1D_SEQUENCE_HEADER 768
@@ -155,9 +152,6 @@ struct iris_inst;
 #define BITS_PER_PIX                   16
 #define NUM_LINES_LUMA                 10
 #define NUM_LINES_CHROMA               6
-#define AV1D_LCU_MAX_SIZE_PELS         128
-#define AV1D_LCU_MIN_SIZE_PELS         64
-#define AV1D_MAX_TILE_COLS             64
 #define BITS_PER_CTRL_PACK             128
 #define NUM_CTRL_PACK_LCU              10
 

-- 
2.34.1


      parent reply	other threads:[~2026-12-03 10:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 10:22 [PATCH 0/4] media: iris: Fix core init failure recovery and iris_open error handling Gourav Kumar
2026-12-03 10:22 ` [PATCH 1/4] media: iris: Tear the core down when the firmware does not become ready Gourav Kumar
2026-12-03 10:22 ` [PATCH 2/4] media: iris: Fix NULL dereference and leaks in the iris_open error handling Gourav Kumar
2026-12-03 10:22 ` [PATCH 3/4] media: iris: Return the real error when the m2m setup in iris_open fails Gourav Kumar
2026-12-03 10:22 ` Gourav Kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203-iris-core-open-error-fixes-v1-4-c932ddcee73a@oss.qualcomm.com \
    --to=gourav.kumar@oss.qualcomm.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=bod@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=hverkuil@kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=quic_vnagar@quicinc.com \
    --cc=stefan.schmidt@linaro.org \
    --cc=vikash.garodia@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®