1. 07 Mar, 2018 2 commits
  2. 04 Mar, 2018 5 commits
    • Frank Rowand's avatar
      of: improve reporting invalid overlay target path · e547c003
      Frank Rowand authored
      Errors while developing the patch to create of_overlay_fdt_apply()
      exposed inadequate error messages to debug problems when overlay
      devicetree fragment nodes contain an invalid target path.  Improve
      the messages in find_target_node() to remedy this.
      Signed-off-by: default avatarFrank Rowand <frank.rowand@sony.com>
      e547c003
    • Frank Rowand's avatar
      of: convert unittest overlay devicetree source to sugar syntax · db2f3762
      Frank Rowand authored
      The unittest-data overlays have been pulled into proper overlay
      devicetree source files without changing their format.  The
      next step is to convert them to use sugar syntax instead of
      hand coding overlay fragments structure.
      
      A few of the overlays can not be converted because they test
      absolute target paths in the overlay fragment.  dtc does not
      generate this type of target:
        overlay_0.dts
        overlay_1.dts
        overlay_12.dts
        overlay_13.dts
      
      Two pre-existing unittest overlay devicetree source files are
      also converted:
        overlay_bad_phandle.dts
        overlay_bad_symbol.dts
      Signed-off-by: default avatarFrank Rowand <frank.rowand@sony.com>
      db2f3762
    • Frank Rowand's avatar
    • Frank Rowand's avatar
      of: change overlay apply input data from unflattened to FDT · 39a751a4
      Frank Rowand authored
      Move duplicating and unflattening of an overlay flattened devicetree
      (FDT) into the overlay application code.  To accomplish this,
      of_overlay_apply() is replaced by of_overlay_fdt_apply().
      
      The copy of the FDT (aka "duplicate FDT") now belongs to devicetree
      code, which is thus responsible for freeing the duplicate FDT.  The
      caller of of_overlay_fdt_apply() remains responsible for freeing the
      original FDT.
      
      The unflattened devicetree now belongs to devicetree code, which is
      thus responsible for freeing the unflattened devicetree.
      
      These ownership changes prevent early freeing of the duplicated FDT
      or the unflattened devicetree, which could result in use after free
      errors.
      
      of_overlay_fdt_apply() is a private function for the anticipated
      overlay loader.
      
      Update unittest.c to use of_overlay_fdt_apply() instead of
      of_overlay_apply().
      
      Move overlay fragments from artificial locations in
      drivers/of/unittest-data/tests-overlay.dtsi into one devicetree
      source file per overlay.  This led to changes in
      drivers/of/unitest-data/Makefile and drivers/of/unitest.c.
      
        - Add overlay directives to the overlay devicetree source files so
          that dtc will compile them as true overlays into one FDT data
          chunk per overlay.
      
        - Set CFLAGS for drivers/of/unittest-data/testcases.dts so that
          symbols will be generated for overlay resolution of overlays
          that are no longer artificially contained in testcases.dts
      
        - Unflatten and apply each unittest overlay FDT using
          of_overlay_fdt_apply().
      
        - Enable the of_resolve_phandles() check for whether the unflattened
          overlay is detached.  This check was previously disabled because the
          overlays from tests-overlay.dtsi were not unflattened into detached
          trees.
      
        - Other changes to unittest.c infrastructure to manage multiple test
          FDTs built into the kernel image (access by name instead of
          arbitrary number).
      
        - of_unittest_overlay_high_level(): previously unused code to add
          properties from the overlay_base devicetree to the live tree
          was triggered by the restructuring of tests-overlay.dtsi and thus
          testcases.dts.  This exposed two bugs: (1) the need to dup a
          property before adding it, and (2) property 'name' is
          auto-generated in the unflatten code and thus will be a duplicate
          in the __symbols__ node - do not treat this duplicate as an error.
      Signed-off-by: default avatarFrank Rowand <frank.rowand@sony.com>
      39a751a4
    • Frank Rowand's avatar
      x86: devicetree: fix config option around x86_flattree_get_config() · 581e9290
      Frank Rowand authored
      x86_flattree_get_config() is incorrectly protected by
      ifdef CONFIG_OF_FLATTREE.  It uses of_get_flat_dt_size(), which
      only exists if CONFIG_OF_EARLY_FLATTREE.  This issue has not
      been exposed previously because OF_FLATTREE did not occur unless
      it was selected by OF_EARLY_FLATTREE.  A devicetree overlay change
      is selecting OF_FLATTREE directly instead of indirectly enabling
      it by selecting OF_EARLY_FLATTREE.
      
      This problem was exposed by a randconfig generated by the kbuild
      test robot, where Platform OLPC was enabled.  OLPC selects
      OF_PROMTREE instead of OF_EARLY_FLATREE.  The only other x86
      platform that selects OF is X86_INTEL_CE, which does select
      OF_EARLY_FLATTREE.
      Signed-off-by: default avatarFrank Rowand <frank.rowand@sony.com>
      Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
      581e9290
  3. 01 Mar, 2018 2 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2018-02-21' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · f073d78e
      Dave Airlie authored
      Driver Changes:
      
      - Lift alpha_support protection from Cannonlake (Rodrigo)
      	* Meaning the driver should mostly work for the hardware we had
      	  at our disposal when testing
      	* Used to be preliminary_hw_support
      - Add missing Cannonlake PCI device ID of 0x5A4C (Rodrigo)
      - Cannonlake port register fix (Mahesh)
      
      - Fix Dell Venue 8 Pro black screen after modeset (Hans)
      - Fix for always returning zero out-fence from execbuf (Daniele)
      - Fix HDMI audio when no no relevant video output is active (Jani)
      - Fix memleak of VBT data on driver_unload (Hans)
      
      - Fix for KASAN found locking issue (Maarten)
      - RCU barrier consolidation to improve igt/gem_sync/idle (Chris)
      - Optimizations to IRQ handlers (Chris)
      - vblank tracking improvements (64-bit resolution, PM) (Dhinakaran)
      - Pipe select bit corrections (Ville)
      - Reduce runtime computed device_info fields (Chris)
      - Tune down some WARN_ONs to GEM_BUG_ON now that CI has good coverage (Chris)
      - A bunch of kerneldoc warning fixes (Chris)
      
      * tag 'drm-intel-next-2018-02-21' of git://anongit.freedesktop.org/drm/drm-intel: (113 commits)
        drm/i915: Update DRIVER_DATE to 20180221
        drm/i915/fbc: Use PLANE_HAS_FENCE to determine if the plane is fenced
        drm/i915/fbdev: Use the PLANE_HAS_FENCE flags from the time of pinning
        drm/i915: Move the policy for placement of the GGTT vma into the caller
        drm/i915: Also check view->type for a normal GGTT view
        drm/i915: Drop WaDoubleCursorLP3Latency:ivb
        drm/i915: Set the primary plane pipe select bits on gen4
        drm/i915: Don't set cursor pipe select bits on g4x+
        drm/i915: Assert that we don't overflow frontbuffer tracking bits
        drm/i915: Track number of pending freed objects
        drm/i915/: Initialise trans_min for skl_compute_transition_wm()
        drm/i915: Clear the in-use marker on execbuf failure
        drm/i915: Prune gen8_gt_irq_handler
        drm/i915: Track GT interrupt handling using the master iir
        drm/i915: Remove WARN_ONCE for failing to pm_runtime_if_in_use
        drm: intel_dpio_phy: fix kernel-doc comments at nested struct
        drm/i915: Release connector iterator on a digital port conflict.
        drm/i915/execlists: Remove too early assert
        drm/i915: Assert that we always complete a submission to guc/execlists
        drm: move read_domains and write_domain into i915
        ...
      f073d78e
    • Dave Airlie's avatar
      Merge tag 'tilcdc-4.17' of https://github.com/jsarha/linux into drm-next · 0feeb106
      Dave Airlie authored
      drm/tilcdc changes to v4.17
      
      * tag 'tilcdc-4.17' of https://github.com/jsarha/linux:
        drm/tilcdc: tilcdc_panel: Rename device from "panel" to "tilcdc-panel"
        drm/tilcdc: Add support for drm panels
        drm/tilcdc: panel: Use common error handling code in of_get_panel_info()
        drm/tilcdc: Delete an error message for a failed memory allocation in seven functions
      0feeb106
  4. 28 Feb, 2018 5 commits
  5. 23 Feb, 2018 1 commit
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2018-02-21' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 727edc74
      Dave Airlie authored
      drm-misc-next for 4.17:
      
      Cross-subsystem Changes:
      - Backlight helpers to enable/disable and find devices in dt (Meghana)
      
      Core Changes:
      - Documentation improvements (Chris/Daniel/Jani)
      - simple_kms_helper: Add mode_valid() support (Linus)
      - mm: Fix bug in interval_tree causing nodes to be out-of-order (Chris)
      
      Driver Changes:
      - tinydrm/panel: Use the new backlight helpers (Meghana)
      - rockchip: Support gem_prime_import_sg_table + some fixes (Various)
      - sun4i: Add A83T HDMI support using dw-hdmi (Jernej)
      
      Cc: Meghana Madhyastha <meghana.madhyastha@gmail.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Jernej Skrabec <jernej.skrabec@siol.net>
      
      * tag 'drm-misc-next-2018-02-21' of git://anongit.freedesktop.org/drm/drm-misc: (41 commits)
        drm/omapdrm: Use of_find_backlight helper
        drm/panel: Use of_find_backlight helper
        drm/omapdrm: Use backlight_enable/disable helpers
        drm/panel: Use backlight_enable/disable helpers
        drm/tinydrm: Call devres version of of_find_backlight
        drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight
        drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable
        drm: add documentation for tv connector state margins
        drm/doc: Use new substruct support
        drm/doc: Polish for drm_mode_parse_command_line_for_connector
        drm/docs: Document "scaling mode" property better
        drm/docs: Align layout of optional plane blending properties
        drm/docs: Discourage adding more to kms-properties.csv
        drm: simple_kms_helper: Add mode_valid() callback support
        drm/todo: Add idr_init_base todo
        drm: Use idr_init_base(1) when using id==0 for invalid
        drm: NULL pointer dereference [null-pointer-deref] (CWE 476) problem
        drm: NULL pointer dereference [null-pointer-deref] (CWE 476) problem
        dma-buf/sw_sync: Fix kerneldoc warnings
        drm: Fix kerneldoc warnings for drm_lease
        ...
      727edc74
  6. 21 Feb, 2018 1 commit
  7. 20 Feb, 2018 24 commits