1. 25 7月, 2018 1 次提交
    • V
      drm: Add support for pps and compression mode command packet · ea107a18
      vkorjani 提交于
      After enabling DSC we need to send compression mode command packet
      and pps data packet, for which 2 new data types are added
      07h  Compression Mode Data Type Write , short write, 2 parameters
      0Ah  PPS Long Write (word count determines number of bytes)
      This patch adds support to send these packets.
      
      Cc: David Airlie <airlied@linux.ie>
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-fbdev@vger.kernel.org
      
      Changes in v3:
      - None
      Signed-off-by: Nvkorjani <vikas.korjani@intel.com>
      [seanpaul removed pps_write_buffer fn, added types to packet_format helpers]
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      ea107a18
  2. 14 5月, 2018 3 次提交
  3. 05 5月, 2018 1 次提交
    • M
      media: include/video/omapfb_dss.h: use IS_ENABLED() · f10379aa
      Mauro Carvalho Chehab 提交于
      Just checking for ifdefs cause build issues as reported by
      kernel test:
      
      config: openrisc-allmodconfig (attached as .config)
      compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
      
      All errors (new ones prefixed by >>):
      
         drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_init_connections':
      >> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:8: error: implicit declaration of function 'omapdss_find_mgr_from_display' [-Werror=implicit-function-declaration]
           mgr = omapdss_find_mgr_from_display(def_dssdev);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
           mgr = omapdss_find_mgr_from_display(def_dssdev);
               ^
         drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_find_default_display':
      >> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:13: error: implicit declaration of function 'omapdss_get_default_display_name' [-Werror=implicit-function-declaration]
           def_name = omapdss_get_default_display_name();
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
           def_name = omapdss_get_default_display_name();
                    ^
      
      So, use IS_ENABLED() instead.
      
      Fixes: 771f7be8 ("media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP")
      
      Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: tomi.valkeinen@ti.com
      Cc: linux-omap@vger.kernel.org
      Cc: linux-fbdev@vger.kernel.org
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      f10379aa
  4. 04 5月, 2018 1 次提交
  5. 13 3月, 2018 1 次提交
  6. 16 1月, 2018 2 次提交
  7. 02 1月, 2018 1 次提交
  8. 19 12月, 2017 1 次提交
  9. 10 11月, 2017 1 次提交
  10. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  11. 08 6月, 2017 1 次提交
  12. 01 6月, 2017 1 次提交
  13. 10 5月, 2017 1 次提交
    • N
      uapi: export all headers under uapi directories · fcc8487d
      Nicolas Dichtel 提交于
      Regularly, when a new header is created in include/uapi/, the developer
      forgets to add it in the corresponding Kbuild file. This error is usually
      detected after the release is out.
      
      In fact, all headers under uapi directories should be exported, thus it's
      useless to have an exhaustive list.
      
      After this patch, the following files, which were not exported, are now
      exported (with make headers_install_all):
      asm-arc/kvm_para.h
      asm-arc/ucontext.h
      asm-blackfin/shmparam.h
      asm-blackfin/ucontext.h
      asm-c6x/shmparam.h
      asm-c6x/ucontext.h
      asm-cris/kvm_para.h
      asm-h8300/shmparam.h
      asm-h8300/ucontext.h
      asm-hexagon/shmparam.h
      asm-m32r/kvm_para.h
      asm-m68k/kvm_para.h
      asm-m68k/shmparam.h
      asm-metag/kvm_para.h
      asm-metag/shmparam.h
      asm-metag/ucontext.h
      asm-mips/hwcap.h
      asm-mips/reg.h
      asm-mips/ucontext.h
      asm-nios2/kvm_para.h
      asm-nios2/ucontext.h
      asm-openrisc/shmparam.h
      asm-parisc/kvm_para.h
      asm-powerpc/perf_regs.h
      asm-sh/kvm_para.h
      asm-sh/ucontext.h
      asm-tile/shmparam.h
      asm-unicore32/shmparam.h
      asm-unicore32/ucontext.h
      asm-x86/hwcap2.h
      asm-xtensa/kvm_para.h
      drm/armada_drm.h
      drm/etnaviv_drm.h
      drm/vgem_drm.h
      linux/aspeed-lpc-ctrl.h
      linux/auto_dev-ioctl.h
      linux/bcache.h
      linux/btrfs_tree.h
      linux/can/vxcan.h
      linux/cifs/cifs_mount.h
      linux/coresight-stm.h
      linux/cryptouser.h
      linux/fsmap.h
      linux/genwqe/genwqe_card.h
      linux/hash_info.h
      linux/kcm.h
      linux/kcov.h
      linux/kfd_ioctl.h
      linux/lightnvm.h
      linux/module.h
      linux/nbd-netlink.h
      linux/nilfs2_api.h
      linux/nilfs2_ondisk.h
      linux/nsfs.h
      linux/pr.h
      linux/qrtr.h
      linux/rpmsg.h
      linux/sched/types.h
      linux/sed-opal.h
      linux/smc.h
      linux/smc_diag.h
      linux/stm.h
      linux/switchtec_ioctl.h
      linux/vfio_ccw.h
      linux/wil6210_uapi.h
      rdma/bnxt_re-abi.h
      
      Note that I have removed from this list the files which are generated in every
      exported directories (like .install or .install.cmd).
      
      Thanks to Julien Floret <julien.floret@6wind.com> for the tip to get all
      subdirs with a pure makefile command.
      
      For the record, note that exported files for asm directories are a mix of
      files listed by:
       - include/uapi/asm-generic/Kbuild.asm;
       - arch/<arch>/include/uapi/asm/Kbuild;
       - arch/<arch>/include/asm/Kbuild.
      Signed-off-by: NNicolas Dichtel <nicolas.dichtel@6wind.com>
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Acked-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Acked-by: NMark Salter <msalter@redhat.com>
      Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      fcc8487d
  14. 21 4月, 2017 1 次提交
  15. 21 3月, 2017 2 次提交
  16. 16 3月, 2017 1 次提交
  17. 15 3月, 2017 2 次提交
  18. 07 2月, 2017 2 次提交
  19. 14 11月, 2016 1 次提交
  20. 07 11月, 2016 1 次提交
  21. 02 11月, 2016 1 次提交
  22. 20 10月, 2016 1 次提交
  23. 27 9月, 2016 1 次提交
  24. 19 9月, 2016 2 次提交
    • S
      gpu: ipu-v3: Add queued image conversion support · cd98e85a
      Steve Longerbeam 提交于
      This patch implements image conversion support using the IC tasks, with
      tiling to support scaling to and from images up to 4096x4096. Image
      rotation is also supported. Image conversion requests are added to
      a run queue under the IC tasks.
      
      The internal API is subsystem agnostic (no V4L2 dependency except
      for the use of V4L2 fourcc pixel formats).
      
      Callers prepare for image conversion by calling
      ipu_image_convert_prepare(), which initializes the parameters of
      the conversion. The caller passes in the ipu and IC task to use for
      the conversion, the input and output image formats, a rotation mode,
      and a completion callback and completion context pointer:
      
      struct ipu_image_converter_ctx *
      ipu_image_convert_prepare(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
                                struct ipu_image *in, struct ipu_image *out,
                                enum ipu_rotate_mode rot_mode,
                                ipu_image_converter_cb_t complete,
                                void *complete_context);
      
      A new conversion context is created that is added to an IC task
      context queue. The caller is given the new conversion context,
      which can then be passed to the further APIs:
      
      int ipu_image_convert_queue(struct ipu_image_converter_run *run);
      
      This queues the given image conversion request run to a run queue,
      and starts the conversion immediately if the run queue is empty. Only
      the physaddr's of the input and output image buffers are needed,
      since the conversion context was created previously with
      ipu_image_convert_prepare(). When the conversion completes, the run
      pointer is returned to the completion callback.
      
      void ipu_image_convert_abort(struct ipu_image_converter_ctx *ctx);
      
      This will abort any active or pending conversions for this context.
      Any currently active or pending runs belonging to this context are
      returned via the completion callback with an error status.
      
      void ipu_image_convert_unprepare(struct ipu_image_converter_ctx *ctx);
      
      Unprepares the conversion context. Any active or pending runs will
      be aborted by calling ipu_image_convert_abort().
      Signed-off-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      cd98e85a
    • S
      gpu: ipu-v3: Add ipu_rot_mode_is_irt() · 8b9c3d50
      Steve Longerbeam 提交于
      Add a macro that returns boolean true if the given ipu_rotate_mode
      requires the use of the Image Rotator.
      Signed-off-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      8b9c3d50
  25. 29 8月, 2016 2 次提交
    • S
      gpu: ipu-v3: Add FSU channel linking support · ac4708fa
      Steve Longerbeam 提交于
      Adds functions to link and unlink source channels to sink
      channels in the FSU:
      
      int ipu_fsu_link(struct ipu_soc *ipu, int src_ch, int sink_ch);
      int ipu_fsu_unlink(struct ipu_soc *ipu, int src_ch, int sink_ch);
      
      The channels numbers are usually IDMAC channels, but they can also be
      channels that do not transfer data to or from memory. The following
      convenience functions can be used in place of ipu_fsu_link/unlink()
      when both source and sink channels are IDMAC channels:
      
      int ipu_idmac_link(struct ipuv3_channel *src, struct ipuv3_channel *sink);
      int ipu_idmac_unlink(struct ipuv3_channel *src, struct ipuv3_channel *sink);
      
      So far the following links are supported:
      
      IPUV3_CHANNEL_IC_PRP_ENC_MEM -> IPUV3_CHANNEL_MEM_ROT_ENC
      PUV3_CHANNEL_IC_PRP_VF_MEM   -> IPUV3_CHANNEL_MEM_ROT_VF
      IPUV3_CHANNEL_IC_PP_MEM      -> IPUV3_CHANNEL_MEM_ROT_PP
      IPUV3_CHANNEL_CSI_DIRECT     -> IPUV3_CHANNEL_CSI_VDI_PREV
      
      More links can be added to the fsu_link_info[] array.
      Signed-off-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      ac4708fa
    • S
      gpu: ipu-v3: Add Video Deinterlacer unit · 2d2ead45
      Steve Longerbeam 提交于
      Adds the Video Deinterlacer (VDIC) unit.
      Signed-off-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      2d2ead45
  26. 08 8月, 2016 5 次提交
  27. 13 7月, 2016 1 次提交
  28. 03 6月, 2016 1 次提交