Skip to content
Snippets Groups Projects
  1. Jan 10, 2024
    • Lucas De Marchi's avatar
      dim_setup: Allow to use other setup as reference · 869c8418
      Lucas De Marchi authored
      
      On a slow network, most of the time for a setup is taken by the initial
      clone of the kernel repository. It's common for kernel developers to
      have a kernel clone lying around, so allow to borrow the git objects
      from there.
      
      Testing on a relatively fast connection, the initial checkout goes down
      from ~7m45s to 2m21s.
      
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      869c8418
    • Lucas De Marchi's avatar
      dim_setup: Add -y|--yes · 48a5acb5
      Lucas De Marchi authored
      
      It's tedious to run setup and having to be around for each prompt. Just
      add a -y|--yes switch like we have in package managers to assume
      yes/default.
      
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      48a5acb5
    • Lucas De Marchi's avatar
      dim: Fix dim_branches · 06e289fd
      Lucas De Marchi authored
      
      The amount of repos/branches is not restricted to the ones in drm-intel
      and drm-misc anymore. Now there are topic branches on drm repo and also
      the drm-xe repo. Use wildcard matches to list anything under drm-* repos
      and any topic branch, even those on drm repo.
      
      One main difference is that now `dim create-workdir all` will really
      checkout all topic branches. Users may be advised to checkout only what
      it's interesting for them.
      
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      06e289fd
  2. Dec 29, 2023
  3. Nov 28, 2023
    • Jani Nikula's avatar
      dim: fix From: matching in apply patch · 6030b24c
      Jani Nikula authored
      
      I occasionally bounce patches to intel-gfx@ to get CI for patches that
      were only sent to dri-devel@ or were caught in the moderation
      queue. This results in a Resent-From: header being added.
      
      Applying such a patch leads to the From: match in apply_patch() to match
      Resent-From: rather than the actual From:. If whoever bounced the patch
      is also applying the patch, their Signed-off-by won't be automatically
      added.
      
      Match From: from the beginning of the line to fix this.
      
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      6030b24c
  4. Sep 05, 2023
  5. Jun 08, 2023
  6. May 22, 2023
  7. Mar 30, 2023
  8. Mar 29, 2023
  9. Jan 03, 2023
    • Rodrigo Vivi's avatar
      dim: Consider fix-of-fix for -fixes cherry picking. · 28155089
      Rodrigo Vivi authored
      
      In case a fix was not propagated yet to upstream, the
      original commit sha won't be found hence the fix of this
      fix will be missed during the cherry-pick.
      
      Since dim cherry-picks reliably adds the -x "(cherry picked
      from" message, let's also grep in the log to see if that
      was the case, before we give up and forget.
      
      Also, if that's the case, let's then fix the 'Fixes:' tag.
      
      v2: Actually replaces the 'Fixes:' tag, otherwise dim doesn't
      allow us to push giving the following message:
      "Fixes: SHA1 in not pointing at an ancestor:"
      "dim: ERROR: issues in commits detected, aborting"
      
      v3: - Also consider fix of fixes in drm-intel-fixes besides
            the drm-intel-next-fixes.
          - Use intel_remote branches instead of local.
          - And run the check unconditionally as suggested by Daniel.
      
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      28155089
  10. Nov 11, 2022
  11. Aug 04, 2022
    • Jani Nikula's avatar
      dim: bump dim version to 2 · 7c722599
      Jani Nikula authored
      
      Commit ea3d1418 ("dim: Use git apply to apply patch") changed dim
      behaviour in that it now accepts fixup patches that can create new
      files, and those need to be applied using 'git apply' instead of plain
      'patch'. Bump dim version to 2 to be able to require this feature.
      
      We'll also need to bump the dim version requirement (DIM_MIN_VERSION) to
      2 in nightly.conf to account for the fixups that need this change.
      
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Acked-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      7c722599
  12. Jul 17, 2022
  13. Apr 21, 2022
  14. Apr 13, 2022
  15. Jan 27, 2022
    • Javier Martinez Canillas's avatar
      dim: Check that patches have git-format-patch default prefixes · 132510ea
      Javier Martinez Canillas authored and Simona Vetter's avatar Simona Vetter committed
      
      By default the git-format-patch command generates patches with prefixes
      for the source and destination (-p1), and is also what git-am uses as a
      default. The command strips the first leading path component when patch
      is applied (unless a different -p<num> argument is used).
      
      But the patch generating behaviour can be changed with git-format-patch
      --no-prefix argument (or setting 'diff.noprefix = true' in .gitconfig).
      
      Patches with no source and destination prefixes can confuse the git-am
      3-way merge logic, since stripping the first path component will lead
      to wrong paths for newly added files.
      
      To avoid this, check that patches to apply are using git-format-patch's
      defaults prefixes to make sure that git-am defaults are safe to use too.
      
      Since there are developers that generate patches without using git, make
      this an error but allow to still continue when using the dim -f option.
      
      Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      132510ea
    • Simona Vetter's avatar
      dim: Update drm-misc maintainer list · 0666fb79
      Simona Vetter authored
      
      Way out of date.
      
      Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Lyude Paul <lyude@redhat.com>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      0666fb79
  16. Jan 14, 2022
  17. Nov 24, 2021
  18. Nov 11, 2021
  19. Oct 27, 2021
  20. Aug 17, 2021
  21. Aug 16, 2021
  22. Jul 13, 2021
  23. Apr 29, 2021
  24. Dec 17, 2020
  25. Dec 15, 2020
    • Simon Ser's avatar
      dim: fix handling of 8-bit non-UTF-8 messages · d79c5784
      Simon Ser authored and Simona Vetter's avatar Simona Vetter committed
      
      Python's open() function will return a file object that decodes input
      bytes to an UTF-8 string. Python assumes all files are UTF-8 by default
      (unless an explicit encoding param is passed).
      
      This works fine with 7-bit and UTF-8 messages. However, when a message
      uses a 8-bit Content-Transfer-Encoding and a non-UTF-8 charset (such as
      iso-8859-1), Python will error out.
      
      To prevent this, open the file in binary mode to prevent Python from
      doing any charset conversion under-the-hood.
      
      Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      d79c5784
  26. Dec 06, 2020
  27. Nov 24, 2020
  28. Nov 20, 2020
  29. Nov 10, 2020
    • Jani Nikula's avatar
      dim: change the drm-intel-next and drm-intel-next-queued process · c7b6928a
      Jani Nikula authored
      
      Remove the special casing of drm-intel-next/drm-intel-next-queued
      tagging and pull requests. Instead of having a two-step process for
      dinq, follow the same pull request process for all branches. As the
      first step, use drm-intel-next-queued for pull requests, and ignore
      drm-intel-next for now. The change is only relevant for maintainers.
      
      In the future, we'll want to switch from drm-intel-next-queued to
      drm-intel-next completely. This will need a flag day switch for all
      committers and maintainers.
      
      We also decouple driver date update from dinq pull requests. We may want
      to apply the driver date update to drm-intel-gt-next branch instead.
      
      With the change, we also lose the ability to add multiple drm-intel-next
      tags, and create a single pull request for them. In practice, we haven't
      really used this possibility, as it lacks the merging of the annotated
      tag changelogs together, missing information. We may want to resurrect
      the feature in an improved form in the future, generalized for all
      branches.
      
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Acked-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      c7b6928a
  30. Oct 26, 2020
Loading