]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - graphics/ti-gc320-driver.git/log
graphics/ti-gc320-driver.git
5 years agoFix -Werror=stringop-overflow= errors with gcc8 ti-5.0.11.p7-k4.19
Gowtham Tammana [Wed, 6 Feb 2019 21:01:24 +0000 (15:01 -0600)]
Fix -Werror=stringop-overflow= errors with gcc8

The following error is seen with gcc8 compiler

```
gc_hal_kernel_debug.h:131:5: error: â€˜strncat’ specified bound 768 equal
s destination size [-Werror=stringop-overflow=]
```

GCC8 appears to be strict with strncat length argument to ensure space
is present for null character in destination string. Fixing the
offending call to use correct length.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
6 years agoUpdate to k4.14 ti-5.0.11.p7-k4.14
Gowtham Tammana [Wed, 28 Feb 2018 16:35:19 +0000 (10:35 -0600)]
Update to k4.14

The following definitions have changed/moved in k4.14, updating them
accordingly.

  - `wait_queue_t` changed to `wait_queue_entry` from k4.13
  - some definitions in `include/linux/sched.h` moved to
    `include/linux/sched/signal.h` and `include/linux/nmi.h` from k4.11
  - `copy_{from,to}_user` definitions moved to `include/linux/uaccess.h`
    common header file from k4.12

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agoUse __GFP_DMA32 for allocations ti-5.0.11.p7-k4.9
Gowtham Tammana [Sat, 4 Mar 2017 06:06:13 +0000 (00:06 -0600)]
Use __GFP_DMA32 for allocations

GC320 cannot access memory with address >32 bits. Explicitly request
all the allocations to be in DMA32 zone by setting __GFP_DMA32 flag.

All omap bo allocations are in DMA32 zone, so no special care is needed
for handling omap bo buffers in the driver.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agokm: Get rid of PAGE_CACHE_* and page_cache_release macros
Gowtham Tammana [Mon, 13 Feb 2017 21:24:08 +0000 (15:24 -0600)]
km: Get rid of PAGE_CACHE_* and page_cache_release macros

With the following k4.9-rc3 commits PAGE_CACHE_* and
page_cache_{get,release} macros are removed and PAGE_* and
{get,put}_page equivalents are used instead.

Kirill A. Shutemov (3):
1fa64f1 mm: drop PAGE_CACHE_* and page_cache_{get,release} definition
ea1754a mm, fs: remove remaining PAGE_CACHE_* and page_cache_{get,release} usage
09cbfea mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agokm: Update gup API to k4.9
Gowtham Tammana [Mon, 13 Feb 2017 21:01:17 +0000 (15:01 -0600)]
km: Update gup API to k4.9

get_user_pages() API has changed since 4.6

After commit cde70140fed8 ("mm/gup: Overload get_user_pages() functions")
in k4.6-rc1 use of current/current-mm as first two arguments deprecated
and are inferred for the current task struct. If called for another
task, get_user_pages_remote() should be used.

After commit 768ae309a976 ("mm: replace get_user_pages() write/force
parameters with gup_flags") in k4.9-rc2
`read` and `write` flags are replaced with `gup_flags`.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agoRemove spurious page count increment
Gowtham Tammana [Tue, 20 Dec 2016 19:34:52 +0000 (13:34 -0600)]
Remove spurious page count increment

get_page() is being called twice during page table walk of vma region.
Removing the additional call and also adding error checks while
traversing page table entries.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agoRemove dependency on dmac_flush/inv/clean_range
Gowtham Tammana [Fri, 23 Sep 2016 20:33:49 +0000 (15:33 -0500)]
Remove dependency on dmac_flush/inv/clean_range

The driver cache ops routine uses `dmac_{flush,inv,clean}_range`
functions which are no longer exported since k4.3. In its place
cache operations are performed on individual pages by doing
page table walk for the supplied addresses. The functions are
placed in the platform specific files in the driver.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agoAdd support for RT kernel
Gowtham Tammana [Mon, 7 Nov 2016 17:37:18 +0000 (11:37 -0600)]
Add support for RT kernel

The `gckOS_WaitSignal` API in the driver is same as
`wait_for_completion_interruptible_timeout` kernel completion API except for
the additional `manualReset`. In the case of RT kernel, `wait_for_completion`
API is updated to use raw spinlocks and swait instead of spinlock and
waitqueue. Update the `gckOS_WaitSignal` to use correct completion mechanism
for RT kernels.

The presence of RT kernel is determined by the presence of the
`CONFIG_PREEMPT_RT_BASE` kernel config option.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agosnapshot of k4.4 based driver
Gowtham Tammana [Thu, 14 Jul 2016 22:02:44 +0000 (17:02 -0500)]
snapshot of k4.4 based driver

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agoInitial commit.
Gowtham Tammana [Thu, 14 Jul 2016 21:55:01 +0000 (16:55 -0500)]
Initial commit.

An empty commit to master. A topic branch needs to be checked out
for relevant codebase.

Signed-off-by: Gowtham Tammana <g-tammana@ti.com>