Skip to content

staging: gasket: sundry fixes and fixups

Todd Poynor lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest20 patches 2 repliesIn review
  2. v332 patches 6 repliesSuperseded
  3. v232 patches 20 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v1 posting 2/21 patch2 repliesSuperseded
v1 posting 1/218 patches33 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20staging: gasket: allow compile for ARM64 in Kconfigdrivers/staging/gasket/Kconfig+1 -10 replies
2/20staging: gasket: gasket_enable_dev remove unnecessary variabledrivers/staging/gasket/gasket_core.c+1 -41 reply
3/20staging: gasket: remove code for no physical devicedrivers/staging/gasket/gasket_core.c+1 -110 replies
4/20staging: gasket: fix class create bug handlingdrivers/staging/gasket/gasket_core.c+1 -10 replies
5/20staging: gasket: remove unnecessary code in coherent allocatordrivers/staging/gasket/gasket_ioctl.c+1 -30 replies
6/20staging: gasket: don't treat no device reset callback as an errordrivers/staging/gasket/gasket_core.c+2 -50 replies
7/20staging: gasket: gasket_mmap return error instead of valid BAR indexdrivers/staging/gasket/gasket_core.c+1 -10 replies
8/20staging: gasket: apex_clock_gating simplify logic, reduce indentationdrivers/staging/gasket/apex_driver.c+20 -230 replies
9/20staging: gasket: gasket page table functions use bool return typedrivers/staging/gasket/gasket_page_table.c drivers/staging/gasket/gasket_page_table.h+33 -330 replies
10/20staging: gasket: remove else clause after return in if clausedrivers/staging/gasket/gasket_page_table.c+1 -30 replies
11/20staging: gasket: fix comment syntax in apex.hdrivers/staging/gasket/apex.h+4 -30 replies
12/20staging: gasket: remove unnecessary parens in page table codedrivers/staging/gasket/gasket_page_table.c+1 -10 replies
13/20staging: gasket: gasket_mmap use PAGE_MASKdrivers/staging/gasket/gasket_core.c+1 -10 replies
14/20staging: gasket: remove extra parens in gasket_write_mappable_regionsdrivers/staging/gasket/gasket_core.c+1 -10 replies
15/20staging: gasket: fix multi-line comment syntax in gasket_core.hdrivers/staging/gasket/gasket_core.h+2 -10 replies
16/20staging: gasket: always allow root open for writedrivers/staging/gasket/apex_driver.c drivers/staging/gasket/gasket_core.c drivers/staging/gasket/gasket_ioctl.c+23 -300 replies
17/20staging: gasket: top ioctl handler add __user annotationsdrivers/staging/gasket/gasket_core.c drivers/staging/gasket/gasket_core.h+9 -40 replies
18/20staging: gasket: apex ioctl add __user annotationsdrivers/staging/gasket/apex_driver.c+10 -70 replies
19/20staging: gasket: common ioctl dispatcher add __user annotationsdrivers/staging/gasket/gasket_ioctl.c drivers/staging/gasket/gasket_ioctl.h+8 -40 replies
20/20staging: gasket: common ioctls add __user annotationsdrivers/staging/gasket/gasket_ioctl.c+55 -470 replies

Reviews trailers per patch

1 of 20 patches has a Reviewed-by or Acked-by.

PatchDmitry Torokhov
1/20
2/20
3/20
4/20R-b
5/20
6/20
7/20
8/20
9/20
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH 00/20 v4] staging: gasket: sundry fixes and fixups

From: Todd Poynor <[email protected]>

Various fixes mainly from the chromium review of the gasket and apex drivers. More to come.

Todd Poynor (20):
staging: gasket: allow compile for ARM64 in Kconfig
staging: gasket: gasket_enable_dev remove unnecessary variable
staging: gasket: remove code for no physical device
staging: gasket: fix class create bug handling
staging: gasket: remove unnecessary code in coherent allocator
staging: gasket: don't treat no device reset callback as an error
staging: gasket: gasket_mmap return error instead of valid BAR index
staging: gasket: apex_clock_gating simplify logic, reduce indentation
staging: gasket: gasket page table functions use bool return type
staging: gasket: remove else clause after return in if clause
staging: gasket: fix comment syntax in apex.h
staging: gasket: remove unnecessary parens in page table code
staging: gasket: gasket_mmap use PAGE_MASK
staging: gasket: remove extra parens in gasket_write_mappable_regions
staging: gasket: fix multi-line comment syntax in gasket_core.h
staging: gasket: always allow root open for write
staging: gasket: top ioctl handler add __user annotations
staging: gasket: apex ioctl add __user annotations
staging: gasket: common ioctl dispatcher add __user annotations
staging: gasket: common ioctls add __user annotations

Patches changed from v3 in v4:
staging: gasket: remove X86 Kconfig restriction
Rename: staging: gasket: allow compile for ARM64 in Kconfig Restore existing "depends on" for X86_64, add ARM64. Only compile for 64-bit architectures known to work with this driver.
staging: gasket: always allow root open for write
Fold in patch to convert apex_ioctl_check_permissions to return bool Convert gasket_ioctl_check_permissions to use bool types.
staging: gasket: apex_ioctl_check_permissions use bool return type
Folded into above patch.
staging: gasket: annotate ioctl arg with __user
Split up into new patches:
staging: gasket: top ioctl handler add __user annotations
staging: gasket: apex ioctl add __user annotations
staging: gasket: common ioctl dispatcher add __user annotations
staging: gasket: common ioctls add __user annotations
Convert various uses of void * to actual type.
Minor formatting and naming changes.
Drop Reviewed-By: Dmitry Torokhov due to changes since review.

Patches unchanged from v3 in v4:
staging: gasket: gasket_enable_dev remove unnecessary variable
staging: gasket: remove code for no physical device
staging: gasket: fix class create bug handling
staging: gasket: remove unnecessary code in coherent allocator
staging: gasket: don't treat no device reset callback as an error
staging: gasket: gasket_mmap return error instead of valid BAR index
staging: gasket: apex_clock_gating simplify logic, reduce indentation
staging: gasket: gasket page table functions use bool return type
staging: gasket: remove else clause after return in if clause
staging: gasket: fix comment syntax in apex.h
staging: gasket: remove unnecessary parens in page table code
staging: gasket: gasket_mmap use PAGE_MASK
staging: gasket: remove extra parens in gasket_write_mappable_regions
staging: gasket: fix multi-line comment syntax in gasket_core.h

Patches removed from v3 in v4 (already merged to staging-next):
staging: gasket: fix typo in apex_enter_reset
staging: gasket: fix typo in gasket_core.h comments
staging: gasket: whitespace fix in gasket_page_table_init
staging: gasket: remove driver registration on class creation failure
staging: gasket: hold mutex on gasket driver unregistration
staging: gasket: Return EBUSY on mapping create when already in use
staging: gasket: Remove stale pointers on error allocating attr array
staging: gasket: convert gasket_mmap_has_permissions to bool return
staging: gasket: fix gasket_wait_with_reschedule timeout return code
staging: gasket: gasket_wait_with_reschedule use msleep
staging: gasket: gasket_wait_with_reschedule simplify logic
staging: gasket: gasket_wait_with_reschedule use 32 bits of retry
staging: gasket: bail out of reset sequence on device callback error
staging: gasket: drop gasket_cdev_get_info, use container_of

 drivers/staging/gasket/Kconfig             |   2 +-
 drivers/staging/gasket/apex.h              |   7 +-
 drivers/staging/gasket/apex_driver.c       |  73 +++++------
 drivers/staging/gasket/gasket_core.c       |  44 +++----
 drivers/staging/gasket/gasket_core.h       |  10 +-
 drivers/staging/gasket/gasket_ioctl.c      | 144 +++++++++++----------
 drivers/staging/gasket/gasket_ioctl.h      |   4 +-
 drivers/staging/gasket/gasket_page_table.c |  64 +++++----
 drivers/staging/gasket/gasket_page_table.h |   8 +-
 9 files changed, 174 insertions(+), 182 deletions(-)
Signature · 1 line
2.18.0.233.g985f88cf7e-goog