]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - graphics/ti-img-rogue-driver.git/log
graphics/ti-img-rogue-driver.git
11 months agobuild: set platform bvnc 1.13-5776728/linux-k5.10
Randolph Sapp [Fri, 28 Apr 2023 21:06:46 +0000 (16:06 -0500)]
build: set platform bvnc

Set the BVNC. That's been a fixed value for this platform for a while.

Signed-off-by: Randolph Sapp <rs@ti.com>
3 years agoservices: remove prot argument for vm_map_ram call
Gowtham Tammana [Tue, 23 Feb 2021 18:50:05 +0000 (12:50 -0600)]
services: remove prot argument for vm_map_ram call

commit d4efd79a81abc70 ("mm: remove the prot argument from vm_map_ram")
removed prot argument from vm_map_ram call. Updating the usage here.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agoserver: use newer mmap locking api
Gowtham Tammana [Tue, 23 Feb 2021 18:29:05 +0000 (12:29 -0600)]
server: use newer mmap locking api

mmap locking api was updated in k5.8 and mmap_sem was renamed and use of
mmap_write_{lock,unlock} api is recommended. Updating to its usage.

  da1c55f1b272f4bd ("mmap locking API: rename mmap_sem to mmap_lock")

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agoserver: fix ccb growth to min 1 page
Gowtham Tammana [Thu, 8 Oct 2020 00:59:13 +0000 (19:59 -0500)]
server: fix ccb growth to min 1 page

Change the minimum allocation size for a CCB to be one page size of the
heap the allocation belongs. This ensures the physical contiguity
expected by the firmware is met.

IMG #126671

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agoFix 0 page allocation on 64k page systems
Gowtham Tammana [Tue, 25 Aug 2020 16:24:08 +0000 (11:24 -0500)]
Fix 0 page allocation on 64k page systems

The minimum size calculation for the CCB was incorrectly yielding a
value of 0 on 64k page size systems, leading to allocation errors at
boot time. Fixing the allocations correspondingly.

IMG #125700

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agobuild: build only native driver
Gowtham Tammana [Tue, 25 Aug 2020 16:21:43 +0000 (11:21 -0500)]
build: build only native driver

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agobuild: Modify 64k page size flag
Gowtham Tammana [Fri, 14 Aug 2020 14:29:42 +0000 (09:29 -0500)]
build: Modify 64k page size flag

Update the 64k page size setting flag and add it to the config build
artifact.

Signed-off-by: Gowtham Tammana <g-tammana@.com>
3 years agofw: adjust firmware config heap to page size
Gowtham Tammana [Fri, 14 Aug 2020 14:28:56 +0000 (09:28 -0500)]
fw: adjust firmware config heap to page size

The firmware config sub-heaps structures are aligned to page size
however the number of pages allocated for these are assuming page size
to be of 4kB page size. Adjusting these allocations as per the page size
settings.

IMG #125700

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agoserver: Fix errors in PVR_DPF macro usage
Gowtham Tammana [Tue, 11 Aug 2020 17:03:39 +0000 (12:03 -0500)]
server: Fix errors in PVR_DPF macro usage

Fix errors in the PVR_DPF macro usage under the
`DEBUG_BRIDGE_KM_DISPATCH_TABLE` #define.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agoj721e: Add missing source in build file
Gowtham Tammana [Tue, 11 Aug 2020 16:11:31 +0000 (11:11 -0500)]
j721e: Add missing source in build file

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agorgx_j721e: Fix paths to DDK1.13 folder paths
Gowtham Tammana [Fri, 31 Jul 2020 16:39:54 +0000 (11:39 -0500)]
rgx_j721e: Fix paths to DDK1.13 folder paths

The paths of some files are different in DDK1.3 to that of DDK1.10,
fixing them appropriately.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agosystem: Fix missing virt header include
Gowtham Tammana [Fri, 31 Jul 2020 16:03:30 +0000 (11:03 -0500)]
system: Fix missing virt header include

The DDK1.13 no longer uses the vz_support api, removing it from include
list.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agovirt: Add PVRSRV_VZ_DRIVER_OSID enum
Gowtham Tammana [Wed, 29 Jul 2020 04:50:06 +0000 (23:50 -0500)]
virt: Add PVRSRV_VZ_DRIVER_OSID enum

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agosystem/build: Add missing source
Gowtham Tammana [Wed, 8 Jul 2020 17:09:08 +0000 (12:09 -0500)]
system/build: Add missing source

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agosystem: Add pvr arch path reference to kbuild
Gowtham Tammana [Fri, 3 Jul 2020 05:34:35 +0000 (00:34 -0500)]
system: Add pvr arch path reference to kbuild

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agosystem: PFN_SYS_DRIVER_MODE is no longer defined
Gowtham Tammana [Fri, 3 Jul 2020 05:31:11 +0000 (00:31 -0500)]
system: PFN_SYS_DRIVER_MODE is no longer defined

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agosystem: Remove references to bif tiling mode
Gowtham Tammana [Fri, 3 Jul 2020 05:28:42 +0000 (00:28 -0500)]
system: Remove references to bif tiling mode

Remove references to bif tiling mode struct entries as the newer
device config struct has new definition.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agosystem: Use pvr arch for system config file references
Gowtham Tammana [Fri, 3 Jul 2020 05:27:35 +0000 (00:27 -0500)]
system: Use pvr arch for system config file references

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agobuild: Move rgx_721e system folder to rogue folder
Gowtham Tammana [Fri, 3 Jul 2020 04:49:44 +0000 (23:49 -0500)]
build: Move rgx_721e system folder to rogue folder

The DDK1.13 has additional top-level folder for pvr architecture where
the soc specific folder resides. Move rgx to this location.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agobuild: Use aarch64-linux-gnu as target for all vendor
Gowtham Tammana [Sun, 6 Sep 2020 13:28:32 +0000 (08:28 -0500)]
build: Use aarch64-linux-gnu as target for all vendor

Target triple usually have vendor component. Prior to ARM 9.2 toolchain,
the vendor part was not used, but from 9.2 onwards `none` is used e.g.
`aarch64-none-linux-gnu-gcc`. Consider all vendors to be of target
`aarch64-linux-gnu` for DDK build.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
3 years agobuild: Enable HWR by default
Gowtham Tammana [Fri, 18 Oct 2019 00:14:38 +0000 (19:14 -0500)]
build: Enable HWR by default

Enable hardware recovery option as default for release builds.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of PR#24]

3 years agoVirt: Enable virt build in Makefile
Erick Narvaez [Fri, 27 Sep 2019 23:39:20 +0000 (23:39 +0000)]
Virt: Enable virt build in Makefile

Build requires 3 build variables in order to enable the virtualization
features:
- PVRSRV_VZ_NUM_OSID: Number of OSID (VMs) to support
- VMM_TYPE: Used to choose the file to use for virtualized build
(vmm_type_$(VMM_TYPE))
- RGX_FW_HEAP_SHIFT: Log2 of the size of the FW Heap (i.e.
2^$(+RGX_FW_HEAP_SHIFT))

Signed-off-by: Erick Narvaez <e-narvaez@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of PR#23]

3 years agosysconfig: Delete device links on teardown
Gowtham Tammana [Mon, 22 Jul 2019 21:52:08 +0000 (16:52 -0500)]
sysconfig: Delete device links on teardown

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of c40d730]

3 years agodrv register: Dont do double registration
Gowtham Tammana [Mon, 22 Jul 2019 20:55:21 +0000 (15:55 -0500)]
drv register: Dont do double registration

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of bc7a53c]

3 years agoprobe: Set platform data
Gowtham Tammana [Mon, 22 Jul 2019 20:51:50 +0000 (15:51 -0500)]
probe: Set platform data

Add missing platform_set_drvdata.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of 0199beb]

3 years agosysconfig: Do pm runtime deinit of remove
Gowtham Tammana [Mon, 22 Jul 2019 20:39:31 +0000 (15:39 -0500)]
sysconfig: Do pm runtime deinit of remove

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of cc3ccb4]

3 years agoEnable 64K page support
Hemant Hariyani [Fri, 24 May 2019 16:30:44 +0000 (11:30 -0500)]
Enable 64K page support

Enables SUPPORT_MIPS_64K_PAGE_KERNEL

Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherry-pick of f017eb3]

3 years agobuild: Unset display controller for kms build
Gowtham Tammana [Fri, 28 Jun 2019 20:02:49 +0000 (15:02 -0500)]
build: Unset display controller for kms build

If SUPPORT_KMS is set there is no need for a display controller as kms
would be the controller. Unsetting the option.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrpick of d999438]

3 years agoJ721E: disable hard-coded reg and irq values
Erick Narvaez [Tue, 18 Jun 2019 20:25:16 +0000 (15:25 -0500)]
J721E: disable hard-coded reg and irq values

Disabling the hard-coded GPU register base, register size and irq values
as driver should fail if GPU DT node is not present. If it does not
fail, power-domains will fail to start during the initialization and
the driver will cause a kernel panic when it tried to access the device
that does not exist (has not been turned on).

Signed-off-by: Erick Narvaez <a0226667@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of 3c086d4]

3 years agosystem: Fix type mismatch in argument warning
Gowtham Tammana [Mon, 24 Jun 2019 17:02:54 +0000 (12:02 -0500)]
system: Fix type mismatch in argument warning

Fixing the warning where a trace print is using wrong format specifier
for one of its argument.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of 9810786]

3 years agoAllow DMA access to highmen
Hemant Hariyani [Sat, 25 May 2019 01:39:15 +0000 (20:39 -0500)]
Allow DMA access to highmen

dma_mask should be set to 40

Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of 6ed9514]

3 years agoJ721E: Add support for dual power domains
Erick Narvaez [Thu, 16 May 2019 16:54:45 +0000 (11:54 -0500)]
J721E: Add support for dual power domains

GPU device tree entry requires populating two power domains. This
change enables reading of those entries through device_link_add.

PM runtime calls (pm_runtime_enable(), pm_runtime_get_sync()) are added
to initiate the proper power domain sequence.

Signed-off-by: Erick Narvaez <a0226667@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of dd69fc3]

3 years agomakefile: use tidss as the DRM modeset driver
Anand Balagopalakrishnan [Thu, 21 Feb 2019 07:31:59 +0000 (07:31 +0000)]
makefile: use tidss as the DRM modeset driver

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of bab98d9]

3 years agobuild: disable native fence sync for DRM window system
Anand Balagopalakrishnan [Sun, 25 Nov 2018 15:55:06 +0000 (21:25 +0530)]
build: disable native fence sync for DRM window system

Native fence is not supported for initial releases on both GPU and DSS.
Specifically, for nulldrmws, disable the native fence sync support.

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of bc4cc5c]

3 years agobuild: change DRM modeset driver name to nulldisp
Anand Balagopalakrishnan [Sun, 25 Nov 2018 15:51:27 +0000 (21:21 +0530)]
build: change DRM modeset driver name to nulldisp

Correct the typo. The nullws represents the window system and not the display
controller.

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of ea30f5a]

3 years agoj721e: update sysconfig as per official silicon branding
Anand Balagopalakrishnan [Wed, 13 Feb 2019 10:50:21 +0000 (16:20 +0530)]
j721e: update sysconfig as per official silicon branding

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of a830e8b]

3 years agobuild: use dc_example as the display controller
Anand Balagopalakrishnan [Mon, 19 Nov 2018 09:40:46 +0000 (15:10 +0530)]
build: use dc_example as the display controller

We are moving to DRM based display management from user space. There is no
dependency on fbdev based display controller.

This reverts commit 65e6b6a1c88682b83d2a1b87cf5bab89e342a42d.

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of f8aef53]

3 years agosysconfig: change GPU MMR range as per DRA822 spec
Anand Balagopalakrishnan [Tue, 16 Oct 2018 12:54:47 +0000 (18:24 +0530)]
sysconfig: change GPU MMR range as per DRA822 spec

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of 947dc04]

3 years agobuild: use fbdev as the display controller
Anand Balagopalakrishnan [Sat, 6 Oct 2018 18:51:37 +0000 (00:21 +0530)]
build: use fbdev as the display controller

We are not supporting DRM based display interface yet. Use a simple fbdev
device as the display controller.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of 65e6b6a]

3 years agoplatform_drv: perform drm initialization only once
Anand Balagopalakrishnan [Fri, 5 Oct 2018 15:29:22 +0000 (20:59 +0530)]
platform_drv: perform drm initialization only once

The device probe() could be called multiple times. We should initialize the DRM
device only once.

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of d757e37]

3 years agosysconfig: add support for DRA822 VLAB configuration
Anand Balagopalakrishnan [Tue, 2 Oct 2018 18:43:12 +0000 (00:13 +0530)]
sysconfig: add support for DRA822 VLAB configuration

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick of bb36b2c]

3 years agobuild: add dra822_linux configuration
Anand Balagopalakrishnan [Tue, 2 Oct 2018 18:42:51 +0000 (00:12 +0530)]
build: add dra822_linux configuration

* enable debug traces
* use nullws as the modeset driver
* use dc_example as the display controller

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
[cherrypick from a328c8c]

3 years agoAdd DDK1.13-5776728 snapshot
Gowtham Tammana [Sun, 6 Sep 2020 13:21:11 +0000 (08:21 -0500)]
Add DDK1.13-5776728 snapshot

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
5 years agoUpdate README for actual repo contents master
Anand Balagopalakrishnan [Fri, 21 Sep 2018 09:18:07 +0000 (14:48 +0530)]
Update README for actual repo contents

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
5 years agoInitial commit
Anand Balagopalakrishnan [Fri, 17 Aug 2018 12:01:49 +0000 (17:31 +0530)]
Initial commit

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>