[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 1/1] drm/amd/amdgpu: Add support for isp buffers

2024-07-15 Thread Pratap Nirujogi
: 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 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

[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 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-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 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 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 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 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 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 to

[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 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 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 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 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 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 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] drm/amd/amdgpu: Fix 'snprintf' output truncation warning

2024-05-28 Thread Pratap Nirujogi
tween 12 and 41 bytes into a destination of size 40 192 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s.bin", ucode_prefix); | ^~~~~~~~~ Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/am

[PATCH 1/1] drm/amdgpu: Fix ISP HW init issue

2024-12-05 Thread Pratap Nirujogi
AMDGPU_MAX_IP_NUM to fix the issue. Fixes: 14c11b71985c ("drm/amdgpu: Add init levels") Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/

[PATCH 0/1] Fix ISP hw init issue

2024-12-05 Thread Pratap Nirujogi
Update AMDGPU_IP_BLK_MASK_ALL to use AMD_IP_BLOCK_TYPE_NUM instead of AMDGPU_MAX_IP_NUM to fix the issue. Pratap Nirujogi (1): drm/amdgpu: Fix ISP HW init issue drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.43.0

[PATCH 2/2] drm/amdgpu: Add amdisp pinctrl MFD resource

2025-02-20 Thread Pratap Nirujogi
From: Benjamin Chan AMDISP GPIO control uses a dedicated pinctrl driver, and requires MFD hotadd GPIO resources. Co-developed-by: Pratap Nirujogi Signed-off-by: Benjamin Chan Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | 1 + drivers/gpu/drm/amd/amdgpu

[PATCH 0/2] Add amdisp pinctrl MFD resource

2025-02-20 Thread Pratap Nirujogi
passed using the MFD interface from amdgpu. Benjamin Chan (1): drm/amdgpu: Add amdisp pinctrl MFD resource Pratap Nirujogi (1): drm/amdgpu: Replace DRM_ERROR() with drm_err() drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | 1 + drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.c | 57

[PATCH 1/2] drm/amdgpu: Replace DRM_ERROR() with drm_err()

2025-02-20 Thread Pratap Nirujogi
DRM_ERROR() is no longer preferred. Replace DRM_ERROR() usage with drm_err() in isp driver. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.c | 15 ++- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 15 ++- 2 files changed, 20 insertions(+), 10

[PATCH v3] drm/amd/amdgpu: Add GPIO resources required for amdisp

2025-05-16 Thread Pratap Nirujogi
streaming mode. Signed-off-by: Pratap Nirujogi --- Changes v2 -> v3: * Add NULL check for acpi_device handle in amdgpu_acpi_get_isp4_dev_hid() drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 31 drivers/gpu/drm/amd/amd

[PATCH v4] drm/amd/amdgpu: Add GPIO resources required for amdisp

2025-05-16 Thread Pratap Nirujogi
streaming mode. Signed-off-by: Pratap Nirujogi --- Changes v3 -> v4: * Use __free() macro to call put_device on exit in amdgpu_acpi_get_isp4_dev_hid() drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 29 ++ drivers/gpu/drm/

[PATCH] drm/amd/amdgpu: Add GPIO resources required for amdisp

2025-05-14 Thread Pratap Nirujogi
streaming mode. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 46 + 1 file changed, 46 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c b/drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c index 69dd92f6e86d..c488af6c8013 100644 --- a

[PATCH v2] drm/amd/amdgpu: Add GPIO resources required for amdisp

2025-05-15 Thread Pratap Nirujogi
streaming mode. Signed-off-by: Pratap Nirujogi --- Changes v1 -> v2: * Use fixed "isp_dev_hid[ACPI_ID_LEN]" instead of allocating using devm_kzalloc() * Instead of "pointer to pointer" use "pointer to array" type arg in amdgpu_acpi_get_isp4_dev_hid() * Include

[PATCH v1] drm/amd/amdgpu: Add GPIO resources required for amdisp

2025-05-15 Thread Pratap Nirujogi
streaming mode. Signed-off-by: Pratap Nirujogi --- Changes v0 -> v1: * Add amdgpu_acpi_get_isp4_dev_hid() utility to retrieve isp4 platform device hid. drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 29 drivers/gpu/drm/amd/amd

[PATCH v5] drm/amd/amdgpu: Add GPIO resources required for amdisp

2025-05-21 Thread Pratap Nirujogi
streaming mode. Signed-off-by: Pratap Nirujogi Reviewed-by: Mario Limonciello --- Changes v4 -> v5: * Build errors reported on the platform that doesn't enable CONFIG_ACPI or CONFIG_SUSPEND. Include amdgpu_acpi_get_isp4_dev_hid() only when both CONFIG_DRM_AMD_ISP and ACPI are enabled to

[PATCH 3/4] drm/amd/amdgpu: Add ISP Generic PM Domain (genpd) support

2025-06-18 Thread Pratap Nirujogi
set power and clocks using PM methods. Co-developed-by: Bin Du Signed-off-by: Bin Du Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | 3 + drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 155 +++- 2 files changed, 157 insertions(+), 1 deletion(-) diff

[PATCH 4/4] drm/amd/amdgpu: Refine isp_v4_1_1 logging

2025-06-18 Thread Pratap Nirujogi
Replace DRM_ERROR with drm_err function and update log messages to drop __func__ and print return value. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 2/4] drm/amd/pm: Add support to set min ISP clocks

2025-06-18 Thread Pratap Nirujogi
and other driver modules to set the min/max clocks. Any clock specific restrictions are expected to be taken care in SOC specific SMU implementations instead of generic amdgpu_dpm and amdgpu_smu interfaces. Signed-off-by: Pratap Nirujogi --- .../gpu/drm/amd/include/kgd_pp_interface.h| 2

[PATCH 0/4] Add ISP Generic PM Domain (genpd) support

2025-06-18 Thread Pratap Nirujogi
amdgpu_dpm_set_powergating_by_smu() and amdgpu_dpm_set_soft_freq_range(); and the underlying SOC specific SMU implementation for isp v4.1. Pratap Nirujogi (4): drm/amd/pm: Add support to set ISP Power drm/amd/pm: Add support to set min ISP clocks drm/amd/amdgpu: Add ISP Generic PM Domain (genpd) support drm/amd/amdgpu

[PATCH 1/4] drm/amd/pm: Add support to set ISP Power

2025-06-18 Thread Pratap Nirujogi
Add support to set ISP power for SMU v14.0.0. ISP driver uses amdgpu_dpm_set_powergating_by_smu() API to enable / disable power via SMU interface than communicating with PMFW directly. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 1 + drivers/gpu/drm/amd

[PATCH] drm/amd/amdgpu: Fix isp_user_buffer_alloc() warnings

2025-07-14 Thread Pratap Nirujogi
'isp_user_buffer_alloc' Fixes: 5cab8cc383a5 ("drm/amd/amdgpu: Add helper functions for isp buffers") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202507131324.tkf4ison-...@intel.com/ Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgp

[PATCH] drm/amd/amdgpu: Initialize swnode for ISP MFD device

2025-06-25 Thread Pratap Nirujogi
ISP4 based targets. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 11 --- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v3] drm/amd/amdgpu: Add helper functions for isp buffers

2025-06-30 Thread Pratap Nirujogi
u internal functions amdgpu_bo_create_isp_user() and amdgpu_bo_create_kernel() to alloc/free GART buffers. Signed-off-by: Pratap Nirujogi --- Changes v2 -> v3: * Move isp.h to include/drm/amd/ * Add function headers for exported symbols * Add checks to validate isp device handle * Add checks to validate exported

[PATCH v4] drm/amd/amdgpu: Add helper functions for isp buffers

2025-06-30 Thread Pratap Nirujogi
u internal functions amdgpu_bo_create_isp_user() and amdgpu_bo_create_kernel() to alloc/free GART buffers. Signed-off-by: Pratap Nirujogi --- Changes v3 -> v4: * Remove unrelated change in isp_load_fw_by_psp() drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c| 175 + drivers/gpu/drm/amd/amdgp

[PATCH] drm/amd/amdgpu: Add helper functions for isp buffers

2025-06-27 Thread Pratap Nirujogi
u internal functions amdgpu_bo_create_isp_user() and amdgpu_bo_create_kernel() to alloc/free GART buffers. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c| 75 +- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h| 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 --

[PATCH v2] drm/amd/amdgpu: Add helper functions for isp buffers

2025-06-27 Thread Pratap Nirujogi
u internal functions amdgpu_bo_create_isp_user() and amdgpu_bo_create_kernel() to alloc/free GART buffers. Signed-off-by: Pratap Nirujogi --- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c| 73 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h| 7 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 --