drm/imagination: small series of fixes for the pvr documentation
Subsystems (3)
Luigi Santivetti
maintainercover drm/imagination: small series of fixes for the pvr documentation
Small collection of fixes for out of date and incorrect comments documenting pvr code.
---
Alessio Belle (1):
drm/imagination: Fix repeated typo in KCCB documentation
Alexandru Dadu (1):
drm/imagination: Update Rogue heap comments
Matt Coster (1):
drm/imagination: fixup some docs in pvr_gem.h
drivers/gpu/drm/imagination/pvr_ccb.c | 6 +++--- drivers/gpu/drm/imagination/pvr_gem.h | 15 +++++---------- drivers/gpu/drm/imagination/pvr_rogue_heap_config.h | 10 +++++----- 3 files changed, 13 insertions(+), 18 deletions(-)
---
base-commit: d6c075f797a672a6e3bd2fd44aee713801698ec2
change-id: 20260803-staging-pvr-docs-fixes-6ef8fa78a9e0
Best regards,
Signature · 1 line
Luigi Santivetti <[email protected]>
Luigi Santivetti
maintainerPATCH 1/3 drm/imagination: fixup some docs in pvr_gem.h
From: Matt Coster <[email protected]>
Update and remove some old comment in the PVR gem documentation.
--- drivers/gpu/drm/imagination/pvr_gem.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
drivers/gpu/drm/imagination/pvr_gem.h +5 -10
@@ -81,11 +81,12 @@ struct pvr_file;* struct pvr_gem_object - powervr-specific wrapper for &struct drm_gem_object */ struct pvr_gem_object { -/** -* @base: The underlying &struct drm_gem_shmem_object. +/** @base: The underlying &struct drm_gem_shmem_object. +* +* .. note:: * -* Do not access this member directly, instead call -* shem_gem_from_pvr_gem(). +* This member should not be accessed directly, but instead by +* calling shmem_gem_from_pvr_gem(). */ struct drm_gem_shmem_object base;
@@ -97,12 +98,6 @@ struct pvr_gem_object {* changed after creation. * * Must be a combination of DRM_PVR_BO_* and/or PVR_BO_* flags. -* -* .. note:: -* -* This member is declared const to indicate that none of these -* options may change or be changed throughout the object's -* lifetime. */ u64 flags;
Signature · 1 line
2.43.0
Re: [PATCH 1/3] drm/imagination: fixup some docs in pvr_gem.h
Quoted 3 lines · Luigi Santivetti
From: Matt Coster <[email protected]>
Update and remove some old comment in the PVR gem documentation.
nit: comment -> comments, maybe gem -> GEM
Quoted 12 lines
Signed-off-by Matt Coster <[email protected]>Signed-off-by Luigi Santivetti <[email protected]>--- drivers/gpu/drm/imagination/pvr_gem.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)drivers/gpu/drm/imagination/pvr_gem.h +0
-0
drivers/gpu/drm/imagination/pvr_gem.h struct pvr_file; · line 84
Quoted 6 lines
drivers/gpu/drm/imagination/pvr_gem.h +1
-2@@ -81,11 +81,12 @@ struct pvr_file;* struct pvr_gem_object - powervr-specific wrapper for &struct drm_gem_object */ struct pvr_gem_object { -/** -* @base: The underlying &struct drm_gem_shmem_object. +/** @base: The underlying &struct drm_gem_shmem_object.
This was correct before, on its own line (kernel-doc is throwing a warning).
With this updated,
Thanks,
Alessio
Quoted 24 lines
drivers/gpu/drm/imagination/pvr_gem.h +4
-8+* +* .. note:: * -* Do not access this member directly, instead call -* shem_gem_from_pvr_gem(). +* This member should not be accessed directly, but instead by +* calling shmem_gem_from_pvr_gem(). */ struct drm_gem_shmem_object base;@@ -97,12 +98,6 @@ struct pvr_gem_object {* changed after creation. * * Must be a combination of DRM_PVR_BO_* and/or PVR_BO_* flags. -* -* .. note:: -* -* This member is declared const to indicate that none of these -* options may change or be changed throughout the object's -* lifetime. */ u64 flags;
Luigi Santivetti
maintainerPATCH 2/3 drm/imagination: Update Rogue heap comments
In reply to Luigi SantivettiFrom: Alexandru Dadu <[email protected]>
Update Rogue heap memory comments to fix typos.
--- drivers/gpu/drm/imagination/pvr_rogue_heap_config.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/imagination/pvr_rogue_heap_config.h +5 -5
@@ -33,12 +33,12 @@/* 0 MiB to 4 MiB, size of 4 MiB : RESERVED */ /* 0x00_0040_0000 - 0x7F_FFC0_0000 **/ -/* 4 MiB to 512 GiB, size of 512 GiB less 4 MiB : RESERVED **/ +/* 4 MiB to 512 GiB, size of 512 GiB less 4 MiB : RESERVED */ /* 0x80_0000_0000 ************************************************************/ /* 0x80_0000_0000 - 0x9F_FFFF_FFFF **/ -/* 512 GiB to 640 GiB, size of 128 GiB : GENERAL_HEAP **/ +/* 512 GiB to 640 GiB, size of 128 GiB : GENERAL_HEAP */ #define ROGUE_GENERAL_HEAP_BASE 0x8000000000ull#define ROGUE_GENERAL_HEAP_SIZE SZ_128G
@@ -62,7 +62,7 @@#define ROGUE_PDSCODEDATA_HEAP_SIZE SZ_4G/* 0xDB_0000_0000 - 0xDB_FFFF_FFFF */ -/* 876 GiB to 880 GiB, size of 256 MiB (reserved 4GiB) : BRN **/ +/* 876 GiB to 880 GiB, size of 256 MiB (reserved 4GiB) : BRN */ /* * The BRN63142 quirk workaround requires Region Header memory to be at the top * of a 16GiB aligned range. This is so when masked with 0x03FFFFFFFF the
@@ -82,7 +82,7 @@/* 0xE1_0000_0000 - 0xE1_BFFF_FFFF */ /* 900 GiB to 903 GiB, size of 3 GiB : RESERVED */ -/* 0xE1_C000_000 - 0xE1_FFFF_FFFF */ +/* 0xE1_C000_0000 - 0xE1_FFFF_FFFF */ /* 903 GiB to 904 GiB, reserved 1 GiB, : FIRMWARE_HEAP */ #define ROGUE_FW_HEAP_BASE 0xE1C0000000ull
@@ -90,7 +90,7 @@/* 904 GiB to 912 GiB, size of 8 GiB : FREE */ /* 0xE4_0000_0000 - 0xE7_FFFF_FFFF */ -/* 912 GiB to 968 GiB, size of 16 GiB : TRANSFER_FRAG */ +/* 912 GiB to 928 GiB, size of 16 GiB : TRANSFER_FRAG */ #define ROGUE_TRANSFER_FRAG_HEAP_BASE 0xE400000000ull#define ROGUE_TRANSFER_FRAG_HEAP_SIZE SZ_16G
Signature · 1 line
2.43.0
Re: [PATCH 2/3] drm/imagination: Update Rogue heap comments
Quoted 6 lines · Luigi Santivetti
From: Alexandru Dadu <[email protected]>
Update Rogue heap memory comments to fix typos.
Signed-off-by Alexandru Dadu <[email protected]>Signed-off-by Luigi Santivetti <[email protected]>
Thanks,
Alessio
Quoted 51 lines
--- drivers/gpu/drm/imagination/pvr_rogue_heap_config.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/imagination/pvr_rogue_heap_config.h +5
-5@@ -33,12 +33,12 @@/* 0 MiB to 4 MiB, size of 4 MiB : RESERVED */ /* 0x00_0040_0000 - 0x7F_FFC0_0000 **/ -/* 4 MiB to 512 GiB, size of 512 GiB less 4 MiB : RESERVED **/ +/* 4 MiB to 512 GiB, size of 512 GiB less 4 MiB : RESERVED */ /* 0x80_0000_0000 ************************************************************/ /* 0x80_0000_0000 - 0x9F_FFFF_FFFF **/ -/* 512 GiB to 640 GiB, size of 128 GiB : GENERAL_HEAP **/ +/* 512 GiB to 640 GiB, size of 128 GiB : GENERAL_HEAP */ #define ROGUE_GENERAL_HEAP_BASE 0x8000000000ull#define ROGUE_GENERAL_HEAP_SIZE SZ_128G@@ -62,7 +62,7 @@#define ROGUE_PDSCODEDATA_HEAP_SIZE SZ_4G/* 0xDB_0000_0000 - 0xDB_FFFF_FFFF */ -/* 876 GiB to 880 GiB, size of 256 MiB (reserved 4GiB) : BRN **/ +/* 876 GiB to 880 GiB, size of 256 MiB (reserved 4GiB) : BRN */ /* * The BRN63142 quirk workaround requires Region Header memory to be at the top * of a 16GiB aligned range. This is so when masked with 0x03FFFFFFFF the @@ -82,7 +82,7 @@/* 0xE1_0000_0000 - 0xE1_BFFF_FFFF */ /* 900 GiB to 903 GiB, size of 3 GiB : RESERVED */ -/* 0xE1_C000_000 - 0xE1_FFFF_FFFF */ +/* 0xE1_C000_0000 - 0xE1_FFFF_FFFF */ /* 903 GiB to 904 GiB, reserved 1 GiB, : FIRMWARE_HEAP */ #define ROGUE_FW_HEAP_BASE 0xE1C0000000ull@@ -90,7 +90,7 @@/* 904 GiB to 912 GiB, size of 8 GiB : FREE */ /* 0xE4_0000_0000 - 0xE7_FFFF_FFFF */ -/* 912 GiB to 968 GiB, size of 16 GiB : TRANSFER_FRAG */ +/* 912 GiB to 928 GiB, size of 16 GiB : TRANSFER_FRAG */ #define ROGUE_TRANSFER_FRAG_HEAP_BASE 0xE400000000ull#define ROGUE_TRANSFER_FRAG_HEAP_SIZE SZ_16G
Luigi Santivetti
maintainerPATCH 3/3 drm/imagination: Fix repeated typo in KCCB documentation
In reply to Luigi SantivettiFrom: Alessio Belle <[email protected]>
Fix sent -> send in the documentation for all variants of pvr_kccb_send_cmd*().
--- drivers/gpu/drm/imagination/pvr_ccb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/imagination/pvr_ccb.c +3 -3
@@ -255,7 +255,7 @@ pvr_kccb_used_slot_count_locked(struct pvr_device *pvr_dev)* pvr_kccb_send_cmd_reserved_powered() - Send command to the KCCB, with the PM ref * held and a slot pre-reserved * @pvr_dev: Device pointer. -* @cmd: Command to sent. +* @cmd: Command to send. * @kccb_slot: Address to store the KCCB slot for this command. May be %NULL. */ void
@@ -361,7 +361,7 @@ static int pvr_kccb_reserve_slot_sync(struct pvr_device *pvr_dev)/** * pvr_kccb_send_cmd_powered() - Send command to the KCCB, with a PM ref held * @pvr_dev: Device pointer. -* @cmd: Command to sent. +* @cmd: Command to send. * @kccb_slot: Address to store the KCCB slot for this command. May be %NULL. * * Returns:
@@ -385,7 +385,7 @@ pvr_kccb_send_cmd_powered(struct pvr_device *pvr_dev, struct rogue_fwif_kccb_cmd/** * pvr_kccb_send_cmd() - Send command to the KCCB * @pvr_dev: Device pointer. -* @cmd: Command to sent. +* @cmd: Command to send. * @kccb_slot: Address to store the KCCB slot for this command. May be %NULL. * * Returns:
Signature · 1 line
2.43.0