[PATCH 1/1] drm/amd/amdgpu: Add support for isp buffers

2024-07-15 Thread Pratap Nirujogi
-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 103 + drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 + 2 files changed, 107 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index

[PATCH 0/1] Add support for isp buffers

2024-07-15 Thread Pratap Nirujogi
isp to allocate GTT internal buffers required for fw to run. These buffers are always allcoated from GTT domain, scope is limited to kernel and will not be exposed to userspace. Pratap Nirujogi (1): drm/amd/amdgpu: Add support for isp buffers drivers/gpu/drm/amd/amdgpu/amdgpu_object.c |

[PATCH] drm/amd/amdgpu: Fix 'snprintf' output truncation warning

2024-05-28 Thread Pratap Nirujogi
0 192 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s.bin", ucode_prefix); | ^~~~~ Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v1 1/3] drm/amd/amdgpu: Map ISP interrupts as generic IRQs

2024-05-21 Thread Pratap Nirujogi
Map ISP IH interrupts to Linux generic IRQ for ISP driver to handle the interrupts using MFD IORESOURCE_IRQ resource. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 31 -- drivers/gpu/drm/amd

[PATCH v1 2/3] drm/amd/amdgpu: Add ISP4.1.0 and ISP4.1.1 modules

2024-05-21 Thread Pratap Nirujogi
Add independent IP centric modules for ISP4.1.0 and ISP4.1.1 hw blocks. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/Makefile | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 167

[PATCH v1 3/3] drm/amd/amdgpu: Disable MMHUB prefetch for ISP v4.1.1

2024-05-21 Thread Pratap Nirujogi
Disable MMHUB prefetch for ISP v4.1.1 as a temporary WA until the GART supports MMHUB TLSi and SAW for ISP HW to access GART memory using the TLSi path. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 12 drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.h | 7

[PATCH v1 0/3] Add support for ISP interrupts and disable prefetch

2024-05-21 Thread Pratap Nirujogi
Add support for ISP interrupts and disable MMHUB prefetch for ISP v4.1.1 Pratap Nirujogi (3): drm/amd/amdgpu: Map ISP interrupts as generic IRQs drm/amd/amdgpu: Add ISP4.1.0 and ISP4.1.1 modules drm/amd/amdgpu: Disable MMHUB prefetch for ISP v4.1.1 drivers/gpu/drm/amd/amdgpu/Makefile

[PATCH v3 2/3] drm/amd/amdgpu: Add ISP driver support

2024-05-09 Thread Pratap Nirujogi
Add the isp driver in amdgpu to support ISP device on the APUs that supports ISP IP block. ISP hw block is used for camera front-end, pre and post processing operations. Signed-off-by: Pratap Nirujogi --- Changes made in v3: - Remove unwanted header files - Remove suprious lines, duplicate

[PATCH v3 1/3] drm/amd/amdgpu: Add ISP support to amdgpu_discovery

2024-05-09 Thread Pratap Nirujogi
ISP hw block is supported in some of the AMD GPU versions, add support to discover ISP IP in amdgpu_discovery. Reviewed-by: Mario Limonciello Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu

[PATCH v3 3/3] drm/amd/amdgpu: Enable ISP in amdgpu_discovery

2024-05-09 Thread Pratap Nirujogi
Enable ISP for ISP V4.1.0 and V4.1.1 in amdgpu_discovery. Reviewed-by: Mario Limonciello Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 22 +++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b

[PATCH v3 0/3] Add ISP driver support in amdgpu

2024-05-09 Thread Pratap Nirujogi
Add Reviewed-by tag and address review comments on patch-2. Changes made: - Add Reviewed-by tag on patch-1 and 3. - Remove unwanted header files - Remove suprious lines, duplicate error prints - Fix multi-line comment style Pratap Nirujogi (3): drm/amd/amdgpu: Add ISP support

[PATCH v2 3/3] drm/amd/amdgpu: Enable ISP in amdgpu_discovery

2024-05-09 Thread Pratap Nirujogi
Enable ISP for ISP V4.1.0 and V4.1.1 in amdgpu_discovery. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 22 +++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu

[PATCH v2 1/3] drm/amd/amdgpu: Add ISP support to amdgpu_discovery

2024-05-09 Thread Pratap Nirujogi
ISP hw block is supported in some of the AMD GPU versions, add support to discover ISP IP in amdgpu_discovery. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu/drm/amd/include/amd_shared.h

[PATCH v2 0/3] Add ISP driver support in amdgpu

2024-05-09 Thread Pratap Nirujogi
Add the isp driver in amdgpu to support ISP device on the APUs that supports ISP IP block. ISP hw block is used for camera front-end, pre and post processing operations. Pratap Nirujogi (3): drm/amd/amdgpu: Add ISP support to amdgpu_discovery drm/amd/amdgpu: Add ISP driver support drm/amd

[PATCH v2 2/3] drm/amd/amdgpu: Add ISP driver support

2024-05-09 Thread Pratap Nirujogi
Add the isp driver in amdgpu to support ISP device on the APUs that supports ISP IP block. ISP hw block is used for camera front-end, pre and post processing operations. Signed-off-by: Pratap Nirujogi Change-Id: I67ef206e5eca1fe74e495c3262746be495e17d09 --- Changes in v2: - Remove adding

[PATCH 2/3] drm/amd/amdgpu: Add ISP driver support

2024-05-09 Thread Pratap Nirujogi
Add the isp driver in amdgpu to support ISP device on the APUs that supports ISP IP block. ISP hw block is used for camera front-end, pre and post processing operations. Signed-off-by: Pratap Nirujogi Change-Id: I67ef206e5eca1fe74e495c3262746be495e17d09 --- drivers/gpu/drm/amd/amdgpu/Makefile

[PATCH 3/3] drm/amd/amdgpu: Enable ISP in amdgpu_discovery

2024-05-08 Thread Pratap Nirujogi
Enable ISP for ISP V4.1.0 and V4.1.1 in amdgpu_discovery. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 22 +++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 2/3] drm/amd/amdgpu: Add ISP driver support

2024-05-08 Thread Pratap Nirujogi
Add the isp driver in amdgpu to support ISP device on the APUs that supports ISP IP block. ISP hw block is used for camera front-end, pre and post processing operations. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/Makefile | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu.h

[PATCH 1/3] drm/amd/amdgpu: Add ISP support to amdgpu_discovery

2024-05-08 Thread Pratap Nirujogi
ISP hw block is supported in some of the AMD GPU versions, add support to discover ISP IP in amdgpu_discovery. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu/drm/amd/include/amd_shared.h