You are not logged in.

#26 2018-10-22 20:54:11

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

loqs wrote:

The output look better when the display depth is limited to 8bpc seems to be the result of the bisection.

Uhm, I don't know if you're sarcastic here. But jokes apart, what should I do now ?

Offline

#27 2018-10-22 21:03:12

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

No that was my interpretation of the bisection result.  My guess at why it looks better at 8bpc is that is avoiding some conversion that is introducing dithering or other artifacts you are seeing.
Try asking on the irc channel #dri-devel on freenode or the dri-devel mailing list.

Offline

#28 2018-10-22 21:15:38

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

loqs wrote:

No that was my interpretation of the bisection result.  My guess at why it looks better at 8bpc is that is avoiding some conversion that is introducing dithering or other artifacts you are seeing.
Try asking on the irc channel #dri-devel on freenode or the dri-devel mailing list.

Thanks, I'll try to contact them..

What about the other bisection ? Because at a certain point, video output stopped working

Offline

#29 2018-10-22 21:27:33

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

Ah sorry you need similar bisection instructions for 4.18.7 to 4.18.8?

Offline

#30 2018-10-23 10:06:29

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

loqs wrote:

Ah sorry you need similar bisection instructions for 4.18.7 to 4.18.8?

Yes. Should I delete the linux-git folder and start from scratch, right ?

Once done, I'll post here the bad commit so you may tell me what do do...

Offline

#31 2018-10-24 18:37:42

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

Sorry for the delay.  I would move linux-git to linux-git.old so you can reuse if needed.

The following assumes the base-devel group and git are installed and I recomend enabling Makepkg#Parallel_compilation to reduce build times

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux"
$ cd packages/trunk
$ git checkout 	3796cc64a32ec72f2a73b42d9d871dada89e9f9c #4.18.7.arch1-1
$ cd ../..
$ cp -r packages/trunk linux-git
$ rm -rf packages
$ cd linux-git
$ rm *.patch # remove unneeded patches
# Edit replace the PKGBUILD with the one below
$ makepkg -rsi #this is to confirm 4.18.7 as built on your system does have the issue update bootloader for new kernel if needed

$ cd linux-git/src/linux
$ git checkout v4.18.8
$ cd ../..
$ makepkg -ersi #this is to confirm 4.18.8 as built on your system does not have the issue select the default option for all prompted options

$ cd linux-git/src/linux/
$ git bisect start
$ git bisect good v4.18.7
$ git bisect bad v4.18.8
$ cd ../..
$ makepkg -ersif

$ cd linux-git/src/linux/
$ git bisect $result #substitue good or bad here
$ cd ../..
$ makepkg -ersif #repeat these four lines and test the generated kernel until git has found the bad commit

PKGBUILD

# Maintainer: Boohbah <boohbah at gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Jonathan Chan <jyc@fastmail.fm>
# Contributor: misc <tastky@gmail.com>
# Contributor: NextHendrix <cjones12 at sheffield.ac.uk>

pkgbase=linux-git
_srcname=linux
pkgver=0
pkgrel=1
arch=('x86_64')
url="https://www.kernel.org/"
license=('GPL2')
makedepends=('kmod' 'inetutils' 'bc' 'libelf')
options=('!strip')
source=(#'git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=xX.Y'
        'git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=v4.17.7'
  'config'   # the main kernel config file
  '60-linux.hook'  # pacman hook for depmod
  '90-linux.hook'  # pacman hook for initramfs regeneration
  'linux.preset'   # standard config files for mkinitcpio ramdisk
)

sha256sums=('SKIP'
            '83d768f19193f6795b8159d81c6775b9f62f4994f2a0d8371ac243e7b0890db8'
            'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
            '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919'
            'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')

_kernelname=${pkgbase#linux}
: ${_kernelname:=-ARCH}

pkgver() {
  cd "${_srcname}"

  git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
}

prepare() {
  cd ${_srcname}

  cp -Tf ../config .config

  # set localversion to git commit
  sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
  sed -i "s|^.*CONFIG_LOCALVERSION_AUTO.*|CONFIG_LOCALVERSION_AUTO=y|" ./.config

  # don't run depmod on 'make install'. We'll do this ourselves in packaging
#  git tracks scripts/depmod.sh so do not change it when using the existing source dir for bisection
#  sed -i '2iexit 0' scripts/depmod.sh

  # get kernel version
  make prepare

  # load configuration
  # Configure the kernel. Replace the line below with one of your choice.
  #make menuconfig # CLI menu for configuration
  #make nconfig # new CLI menu for configuration
  #make xconfig # X-based configuration
  #make oldconfig # using old config from previous kernel version
  make olddefconfig # old config from previous kernel, defaults for new options
  # ... or manually edit .config
}

build() {
  cd ${_srcname}

  make bzImage modules
}

_package() {
  pkgdesc="The Linux kernel and modules (git version)"
  depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
  optdepends=('crda: to set the correct wireless channels of your country')
  backup=("etc/mkinitcpio.d/${pkgbase}.preset")
  install=linux.install

  cd ${_srcname}

  # get kernel version
  _kernver="$(make kernelrelease)"
  _kernver=${_kernver%-dirty} #https://bbs.archlinux.org/viewtopic.php?id=236702
  _basekernel="$(make kernelversion)"
  _basekernel=${_basekernel%.*}

  mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
  make INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
  cp arch/x86/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"

  # make room for external modules
  local _extramodules="extramodules-${_basekernel}${_kernelname}"
  ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"

  # add real version for building modules and running depmod from hook
  echo "${_kernver}" |
    install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_extramodules}/version"

  # remove build and source links
  rm "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}

  # now we call depmod...
  depmod -b "${pkgdir}/usr" -F System.map "${_kernver}"

  # add vmlinux
  install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux

  # sed expression for following substitutions
  local _subst="
    s|%PKGBASE%|${pkgbase}|g
    s|%KERNVER%|${_kernver}|g
    s|%EXTRAMODULES%|${_extramodules}|g
  "

  # hack to allow specifying an initially nonexisting install file
  sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg"
  true && install=${install}.pkg

  # install mkinitcpio preset file
  sed "${_subst}" ../linux.preset |
    install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"

  # install pacman hooks
  sed "${_subst}" ../60-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/60-${pkgbase}.hook"
  sed "${_subst}" ../90-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook"
}

_package-headers() {
  pkgdesc="Header files and scripts for building modules for Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  install -Dt "${_builddir}" -m644 Makefile .config Module.symvers
  install -Dt "${_builddir}/kernel" -m644 kernel/Makefile

  mkdir "${_builddir}/.tmp_versions"

  cp -t "${_builddir}" -a include scripts

  install -Dt "${_builddir}/arch/x86" -m644 arch/x86/Makefile
  install -Dt "${_builddir}/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s

  cp -t "${_builddir}/arch/x86" -a arch/x86/include

  install -Dt "${_builddir}/drivers/md" -m644 drivers/md/*.h
  install -Dt "${_builddir}/net/mac80211" -m644 net/mac80211/*.h

  # http://bugs.archlinux.org/task/13146
  install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h

  # http://bugs.archlinux.org/task/20402
  install -Dt "${_builddir}/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
  install -Dt "${_builddir}/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
  install -Dt "${_builddir}/drivers/media/tuners" -m644 drivers/media/tuners/*.h

  # add xfs and shmem for aufs building
  mkdir -p "${_builddir}"/{fs/xfs,mm}

  # copy in Kconfig files
  find . -name Kconfig\* -exec install -Dm644 {} "${_builddir}/{}" \;

  # add objtool for external module building and enabled VALIDATION_STACK option
  install -Dt "${_builddir}/tools/objtool" tools/objtool/objtool

  # remove unneeded architectures
  local _arch
  for _arch in "${_builddir}"/arch/*/; do
    [[ ${_arch} == */x86/ ]] && continue
    rm -r "${_arch}"
  done

  # remove files already in linux-docs package
  rm -r "${_builddir}/Documentation"

  # remove now broken symlinks
  find -L "${_builddir}" -type l -printf 'Removing %P\n' -delete

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"

  # strip scripts directory
  local _binary _strip
  while read -rd '' _binary; do
    case "$(file -bi "${_binary}")" in
      *application/x-sharedlib*)  _strip="${STRIP_SHARED}"   ;; # Libraries (.so)
      *application/x-archive*)    _strip="${STRIP_STATIC}"   ;; # Libraries (.a)
      *application/x-executable*) _strip="${STRIP_BINARIES}" ;; # Binaries
      *) continue ;;
    esac
    /usr/bin/strip ${_strip} "${_binary}"
  done < <(find "${_builddir}/scripts" -type f -perm -u+w -print0 2>/dev/null)
}

_package-docs() {
  pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  mkdir -p "${_builddir}"
  cp -t "${_builddir}" -a Documentation

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"
}

pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
  eval "package_${_p}() {
    $(declare -f "_package${_p#${pkgbase}}")
    _package${_p#${pkgbase}}
  }"
done

# vim:set ts=8 sts=2 sw=2 et:

Offline

#32 2018-10-24 19:37:12

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

Thanks. I'll start tomorrow, and hope to finish this weekend.

Meanwhile I did contact the irc channel, and they told me to fill a bug report. https://bugs.freedesktop.org/show_bug.cgi?id=108542

Offline

#33 2018-10-25 10:07:44

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

git checkout 	3796cc64a32ec72f2a73b42d9d871dada89e9f9c #4.18.7.arch1-1

The built version is 4.17.7, not 4.18.7. What should I do ?

Offline

#34 2018-10-25 13:25:20

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

sorry about that change

        'git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=v4.17.7'

to

        'git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=v4.18.7'

Offline

#35 2018-10-27 13:24:30

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

691f2d763d0731224439686ecf2d440df8fe910e is the first bad commit
commit 691f2d763d0731224439686ecf2d440df8fe910e
Author: Mikita Lipski <mikita.lipski@amd.com>
Date:   Fri Jul 13 09:07:35 2018 -0400

    drm/amd/display: update clk for various HDMI color depths
    
    commit 81aca8e75c1b046865fb2badef95a0dcff6f73de upstream.
    
    [why]
    When programming tonga's connector's backend we didn't take
    in account that HDMI's colour depth might be more than 8bpc
    therefore we need to add a switch statement that would adjust
    the pixel clock accordingly.
    
    [how]
    Add a switch statement updating clock by its appropriate
    coefficient.
    
    Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
    Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
    Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

:040000 040000 ef9f989910439dc8749f1440863e3e26646d5fa1 c9ae9b8a137f9ef9d62147fcc28ea25fc4ffbc1e M      drivers

That's the bisection result, there's a full dmesg log in the bugreport also.

Offline

#36 2018-10-27 13:58:24

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

Glad to read the bisection worked.  Thank you for taking the time to work with upstream.
Edit:
Were you able to revert the commits on 4.18.16 or 14.9?  If so did it resolve the issues?

Last edited by loqs (2018-10-27 14:27:13)

Offline

#37 2018-10-27 14:43:21

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

Thank you for the support.

I don't know, but someone on #archlinux told me to report the issue on the archlinux bugtracker (if persists on the build avaible actually in Testing repository) so a certain "peeps"?! could revert the commit for me. Should I ?

If you want me to test with reverted commits on 4.19, I need step by step instructions, sorry.

Offline

#38 2018-10-27 15:03:29

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

Using the linux-git directory from the last bisection

$ cd linux-git/src/linux
$ git checkout v4.19
$ git revert -n 81aca8e75c1b046865fb2badef95a0dcff6f73de
$ git revert -n e03fd3f300f6184c1264186a4c815e93bf658abb
$ curl -o .config https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=62fb9609befa19b14c522c311b4dc25b30c827c5 #update the .config to the one arch is using for v4.19
$ cd ../..
$ makepkg -ersif

You could file a bug report on the arch bug tracker if the issue still exists with the linux package in testing hetfig may revert it.

Offline

#39 2018-10-27 15:08:08

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

Yes, the issue is present in the archlinux's package in Testing. I'll report the bug, but first I'll test if reverting those commit solves the issue.

Are you sure there's no need to edit the pkgbuild ?

Offline

#40 2018-10-27 15:19:54

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

The pkgver function will update the version number to 4.19 the config is updated by the curl command.
I can not think of anything else that would need changing as long as the -e option is passed to makepkg to use the existing build directory.

Offline

#41 2018-10-27 15:25:24

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

Got this reverting the second commit:

warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your merge.renamelimit variable to at least 1860 and retry the command.

Offline

#42 2018-10-27 15:27:40

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

Thats fine the commit being reverted does not rename any files.

Offline

#43 2018-10-27 15:35:48

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

Uhm, the curl command looks freezed, download is over (100%) since minutes...

Offline

#44 2018-10-27 15:43:40

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

Oops I forgot quoting

curl -o .config 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=62fb9609befa19b14c522c311b4dc25b30c827c5'

This prevents the shell interpreting the &

Offline

#45 2018-10-27 18:12:46

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

...
  INSTALL sound/usb/misc/snd-ua101.ko
  INSTALL sound/usb/usx2y/snd-usb-us122l.ko
  INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
  INSTALL sound/x86/snd-hdmi-lpe-audio.ko
  INSTALL sound/xen/snd_xen_front.ko
  INSTALL virt/lib/irqbypass.ko
  DEPMOD  4.19.0-dirty
ln: failed to create symbolic link '/home/davide/linux-git/pkg/linux-git/usr/lib/modules/4.19.0/extramodules': No such file or directory
==> ERROR: A failure occurred in package_linux-git().
    Aborting...

Looks like it should be 4.19.0-dirty...

that's the pkgbuild actually:

# Maintainer: Boohbah <boohbah at gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Jonathan Chan <jyc@fastmail.fm>
# Contributor: misc <tastky@gmail.com>
# Contributor: NextHendrix <cjones12 at sheffield.ac.uk>

pkgbase=linux-git
_srcname=linux
pkgver=4.19.r0.g84df9525b0c2
pkgrel=1
arch=('x86_64')
url="https://www.kernel.org/"
license=('GPL2')
makedepends=('kmod' 'inetutils' 'bc' 'libelf')
options=('!strip')
source=(#'git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=xX.Y'
        'git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=v4.18.7'
  'config'   # the main kernel config file
  '60-linux.hook'  # pacman hook for depmod
  '90-linux.hook'  # pacman hook for initramfs regeneration
  'linux.preset'   # standard config files for mkinitcpio ramdisk
)

sha256sums=('SKIP'
            '83d768f19193f6795b8159d81c6775b9f62f4994f2a0d8371ac243e7b0890db8'
            'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
            '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919'
            'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')

_kernelname=${pkgbase#linux}
: ${_kernelname:=-ARCH}

pkgver() {
  cd "${_srcname}"

  git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
}

prepare() {
  cd ${_srcname}

  cp -Tf ../config .config

  # set localversion to git commit
  sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
  sed -i "s|^.*CONFIG_LOCALVERSION_AUTO.*|CONFIG_LOCALVERSION_AUTO=y|" ./.config

  # don't run depmod on 'make install'. We'll do this ourselves in packaging
#  git tracks scripts/depmod.sh so do not change it when using the existing source dir for bisection
#  sed -i '2iexit 0' scripts/depmod.sh

  # get kernel version
  make prepare

  # load configuration
  # Configure the kernel. Replace the line below with one of your choice.
  #make menuconfig # CLI menu for configuration
  #make nconfig # new CLI menu for configuration
  #make xconfig # X-based configuration
  #make oldconfig # using old config from previous kernel version
  make olddefconfig # old config from previous kernel, defaults for new options
  # ... or manually edit .config
}

build() {
  cd ${_srcname}

  make bzImage modules
}

_package() {
  pkgdesc="The Linux kernel and modules (git version)"
  depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
  optdepends=('crda: to set the correct wireless channels of your country')
  backup=("etc/mkinitcpio.d/${pkgbase}.preset")
  install=linux.install

  cd ${_srcname}

  # get kernel version
  _kernver="$(make kernelrelease)"
  _kernver=${_kernver%-dirty} #https://bbs.archlinux.org/viewtopic.php?id=236702
  _basekernel="$(make kernelversion)"
  _basekernel=${_basekernel%.*}

  mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
  make INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
  cp arch/x86/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"

  # make room for external modules
  local _extramodules="extramodules-${_basekernel}${_kernelname}"
  ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"

  # add real version for building modules and running depmod from hook
  echo "${_kernver}" |
    install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_extramodules}/version"

  # remove build and source links
  rm "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}

  # now we call depmod...
  depmod -b "${pkgdir}/usr" -F System.map "${_kernver}"

  # add vmlinux
  install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux

  # sed expression for following substitutions
  local _subst="
    s|%PKGBASE%|${pkgbase}|g
    s|%KERNVER%|${_kernver}|g
    s|%EXTRAMODULES%|${_extramodules}|g
  "

  # hack to allow specifying an initially nonexisting install file
  sed "${_subst}" "${startdir}/${install}" > "${startdir}/${install}.pkg"
  true && install=${install}.pkg

  # install mkinitcpio preset file
  sed "${_subst}" ../linux.preset |
    install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"

  # install pacman hooks
  sed "${_subst}" ../60-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/60-${pkgbase}.hook"
  sed "${_subst}" ../90-linux.hook |
    install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook"
}

_package-headers() {
  pkgdesc="Header files and scripts for building modules for Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  install -Dt "${_builddir}" -m644 Makefile .config Module.symvers
  install -Dt "${_builddir}/kernel" -m644 kernel/Makefile

  mkdir "${_builddir}/.tmp_versions"

  cp -t "${_builddir}" -a include scripts

  install -Dt "${_builddir}/arch/x86" -m644 arch/x86/Makefile
  install -Dt "${_builddir}/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s

  cp -t "${_builddir}/arch/x86" -a arch/x86/include

  install -Dt "${_builddir}/drivers/md" -m644 drivers/md/*.h
  install -Dt "${_builddir}/net/mac80211" -m644 net/mac80211/*.h

  # http://bugs.archlinux.org/task/13146
  install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h

  # http://bugs.archlinux.org/task/20402
  install -Dt "${_builddir}/drivers/media/usb/dvb-usb" -m644 drivers/media/usb/dvb-usb/*.h
  install -Dt "${_builddir}/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
  install -Dt "${_builddir}/drivers/media/tuners" -m644 drivers/media/tuners/*.h

  # add xfs and shmem for aufs building
  mkdir -p "${_builddir}"/{fs/xfs,mm}

  # copy in Kconfig files
  find . -name Kconfig\* -exec install -Dm644 {} "${_builddir}/{}" \;

  # add objtool for external module building and enabled VALIDATION_STACK option
  install -Dt "${_builddir}/tools/objtool" tools/objtool/objtool

  # remove unneeded architectures
  local _arch
  for _arch in "${_builddir}"/arch/*/; do
    [[ ${_arch} == */x86/ ]] && continue
    rm -r "${_arch}"
  done

  # remove files already in linux-docs package
  rm -r "${_builddir}/Documentation"

  # remove now broken symlinks
  find -L "${_builddir}" -type l -printf 'Removing %P\n' -delete

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"

  # strip scripts directory
  local _binary _strip
  while read -rd '' _binary; do
    case "$(file -bi "${_binary}")" in
      *application/x-sharedlib*)  _strip="${STRIP_SHARED}"   ;; # Libraries (.so)
      *application/x-archive*)    _strip="${STRIP_STATIC}"   ;; # Libraries (.a)
      *application/x-executable*) _strip="${STRIP_BINARIES}" ;; # Binaries
      *) continue ;;
    esac
    /usr/bin/strip ${_strip} "${_binary}"
  done < <(find "${_builddir}/scripts" -type f -perm -u+w -print0 2>/dev/null)
}

_package-docs() {
  pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel (git version)"

  cd ${_srcname}
  local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build"

  mkdir -p "${_builddir}"
  cp -t "${_builddir}" -a Documentation

  # Fix permissions
  chmod -R u=rwX,go=rX "${_builddir}"
}

pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
  eval "package_${_p}() {
    $(declare -f "_package${_p#${pkgbase}}")
    _package${_p#${pkgbase}}
  }"
done

# vim:set ts=8 sts=2 sw=2 et:

Last edited by heisenberg (2018-10-27 18:16:06)

Offline

#46 2018-10-27 18:59:19

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

I forgot autoversioning was enabled apologies again.
If you have not setup a git user

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

Then

cd linux-git/src/linux
git reset --hard
$ make kernelrelease #check the release does not contain -dirty
$ git revert 81aca8e75c1b046865fb2badef95a0dcff6f73de
$ git revert e03fd3f300f6184c1264186a4c815e93bf658abb
$ make kernelrelease #check the release does not contain -dirty
$ cd ../..
$ makepkg -ersif

Offline

#47 2018-10-28 10:31:48

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

loqs wrote:

Glad to read the bisection worked.  Thank you for taking the time to work with upstream.
Edit:
Were you able to revert the commits on 4.18.16 or 14.9?  If so did it resolve the issues?

https://bugs.archlinux.org/task/60619

Can confirm that reverting those commits solves the issue.

Offline

#48 2018-10-31 08:55:08

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

https://bugs.freedesktop.org/show_bug.cgi?id=108542#c7

I got asked to apply that patch, but I do not know how to of course... sad

What should I do exactly ?

Offline

#49 2018-10-31 09:17:35

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] HDMI Issues with kernel 4.18

$ cd linux-git/src/linux
$ git checkout v4.19
$ curl -o 142278.patch "https://bugs.freedesktop.org/attachment.cgi?id=142278"
$ git apply -v 142278.patch
$ git commit -am "142278.patch"
$ cd ../..
$ makepkg -ersif

Offline

#50 2018-10-31 09:21:05

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: [SOLVED] HDMI Issues with kernel 4.18

Thank you! Remember that in the current linux-git folder I did revert the commints. Doing "git checkout v4.19" does restore the commits, right ?

EDIT: I guess so, in fact I did apply the .patch but the issue is still there

Last edited by heisenberg (2018-10-31 10:02:41)

Offline

Board footer

Powered by FluxBB