[Touch-packages] [Bug 1877088] Re: [UBUNTU 20.04] installkernel script does not symlink /boot/initrd.img which is required with the default zipl.conf

2020-07-13 Thread Sultan Alsawaf
The script responsible for updating the /boot/initrd.img symlink is
called `linux-update-symlinks`. If a kernel is installed without that
script being run, the symlink will not be updated.

The only place where `linux-update-symlinks` is run is inside each of
our kernels, in `debian/templates/image.postinst.in`. This means that
when our kernels are built as .deb packages, the appropriate machinery
will be placed inside the .deb to thus update the /boot/initrd.img
symlink.

I checked the change history to `installkernel` and could not find any
point in time in which it ran `linux-update-symlinks`. Furthermore, the
help info inside `linux-update-symlinks` contains the following note:
"This command is intended to be called from the postinst and postrm
maintainer scripts of Linux kernel packages." It looks like `linux-
update-symlinks` was only ever intended to be used in postinst/postrm
hooks for .deb packages (and not called by `installkernel`).

There are a few remedies to this problem I can see, but I'm not sure which is 
the correct solution:
1. Add a call to `linux-update-symlinks` into `installkernel`
or
2. Add a script into /etc/kernel/postinst.d to run `linux-update-symlinks`
or
3. Run `linux-update-symlinks` manually after installing a kernel directly via 
`installkernel`

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to debianutils in Ubuntu.
https://bugs.launchpad.net/bugs/1877088

Title:
  [UBUNTU 20.04] installkernel script does not symlink /boot/initrd.img
  which is required with the default zipl.conf

Status in Ubuntu on IBM z Systems:
  Triaged
Status in debianutils package in Ubuntu:
  New
Status in linux-base package in Ubuntu:
  New

Bug description:
  When testing development kernels I usually rely on the installkernel
  script either through the "make install" target of the Kernel source
  or manually. This used to work great on Ubuntu on Z.

  On Ubuntu 20.04 (freshly installed up to date) this fails however because
  /boot/initrd.img is not updated (/boot/vmlinuz is) and thus zipl installs the
  wrong kernel/initrd combination rendering the system unbootable.

  (with the correct modules already copied to 
/usr/lib/modules/5.7.0-rc4-06500-gb67ea026badd/)
  # sudo installkernel 5.7.0-rc4-06500-gb67ea026badd bzImage System.map /boot
  run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 
5.7.0-rc4-06500-gb67ea026badd /boot/vmlinuz-5.7.0-rc4-06500-gb67ea026badd
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 
5.7.0-rc4-06500-gb67ea026badd /boot/vmlinuz-5.7.0-rc4-06500-gb67ea026badd
  update-initramfs: Generating /boot/initrd.img-5.7.0-rc4-06500-gb67ea026badd
  Using config file '/etc/zipl.conf'
  Building bootmap in '/boot'
  Building menu 'menu'
  Adding #1: IPL section 'ubuntu' (default)
  Adding #2: IPL section 'old'
  Preparing boot device: dasda (3844).
  Done.
  run-parts: executing /etc/kernel/postinst.d/zz-zipl 
5.7.0-rc4-06500-gb67ea026badd /boot/vmlinuz-5.7.0-rc4-06500-gb67ea026badd
  Using config file '/etc/zipl.conf'
  Building bootmap in '/boot'
  Building menu 'menu'
  Adding #1: IPL section 'ubuntu' (default)
  Adding #2: IPL section 'old'
  Preparing boot device: dasda (3844).
  Done.
  # ls -l /boot
  total 178364
  -rw--- 1 root root135168 May  6 11:52 bootmap
  -rw-r--r-- 1 root root 90471 Apr 29 15:34 config-5.4.0-29-generic
  lrwxrwxrwx 1 root root27 May  6 11:40 initrd.img -> 
initrd.img-5.4.0-29-generic   <== should point to new version
  -rw-r--r-- 1 root root  19663996 May  6 11:42 initrd.img-5.4.0-29-generic
  -rw-r--r-- 1 root root 125339494 May  6 11:52 
initrd.img-5.7.0-rc4-06500-gb67ea026badd
  lrwxrwxrwx 1 root root27 May  6 11:40 initrd.img.old -> 
initrd.img-5.4.0-29-generic
  -rw--- 1 root root   3087920 Apr 29 15:34 System.map-5.4.0-29-generic
  -rw-r--r-- 1 root root   4031691 May  6 11:52 
System.map-5.7.0-rc4-06500-gb67ea026badd
  -rw-r--r-- 1 root root   4031691 May  6 11:49 
System.map-5.7.0-rc4-06500-gb67ea026badd.old
  lrwxrwxrwx 1 root root37 May  6 11:52 vmlinuz -> 
vmlinuz-5.7.0-rc4-06500-gb67ea026badd
  -rw--- 1 root root   8086072 Apr 29 15:54 vmlinuz-5.4.0-29-generic
  -rw-r--r-- 1 root root   9080832 May  6 11:52 
vmlinuz-5.7.0-rc4-06500-gb67ea026badd
  -rw-r--r-- 1 root root   9080832 May  6 11:49 
vmlinuz-5.7.0-rc4-06500-gb67ea026badd.old
  lrwxrwxrwx 1 root root41 May  6 11:52 vmlinuz.old -> 
vmlinuz-5.7.0-rc4-06500-gb67ea026badd.old

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1877088/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1869924] [NEW] High power consumption by Intel iGPU on Skylake+

2020-03-31 Thread Sultan Alsawaf
Public bug reported:

There is an outstanding regression in i915 that breaks the RC6 power
state for Intel iGPUs on Skylake and newer. This bug was fixed upstream
in Linux 5.5. I submitted a backport of the fix for 5.4 upstream [1].

My cover letter [2] describes the issue:
The first bug, fixed by "drm/i915/gt: Schedule request retirement when timeline 
idles" upstream, is very high power consumption by i915 hardware due to an old 
commit that broke the RC6 power state for the iGPU on Skylake+. On my laptop, a 
Dell Precision 5540 with an i9-9880H, the idle power consumption of my laptop 
with this commit goes down from 10 W to 2 W, saving a massive 8 W of power. On 
other Skylake+ laptops I tested, this commit reduced idle power consumption by 
at least a few watts. The difference in power consumption can be observed by 
running `powertop` while disconnected from the charger, or by using the 
intel-undervolt tool [1] and running `intel-undervolt measure` which doesn't 
require being disconnected from the charger. The psys measurement from 
intel-undervolt is the one of interest.

Backporting this commit was not trivial due to i915's high rate of
churn, but the backport didn't require changing any code from the
original commit; it only required moving code around and not altering
some #includes.

[1] 
https://lore.kernel.org/stable/20200330033057.2629052-3-sul...@kerneltoast.com/
[2] 
https://lore.kernel.org/stable/20200330033057.2629052-1-sul...@kerneltoast.com/

** Affects: linux (Ubuntu)
 Importance: Undecided
 Status: Incomplete

** Affects: linux (Ubuntu Focal)
 Importance: Undecided
 Status: Incomplete

** Also affects: linux
   Importance: Undecided
   Status: New

** No longer affects: lightdm (Ubuntu)

** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

** No longer affects: linux

** Also affects: linux (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Description changed:

  There is an outstanding regression in i915 that breaks the RC6 power
  state for Intel iGPUs on Skylake and newer. This bug was fixed upstream
  in Linux 5.5. I submitted a backport of the fix for 5.4 upstream [1].
  
  My cover letter [2] describes the issue:
- The first bug, fixed by
- "drm/i915/gt: Schedule request retirement when timeline idles" upstream, is 
very
- high power consumption by i915 hardware due to an old commit that broke the 
RC6
- power state for the iGPU on Skylake+. On my laptop, a Dell Precision 5540 with
- an i9-9880H, the idle power consumption of my laptop with this commit goes 
down
- from 10 W to 2 W, saving a massive 8 W of power. On other Skylake+ laptops I
- tested, this commit reduced idle power consumption by at least a few watts. 
The
- difference in power consumption can be observed by running `powertop` while
- disconnected from the charger, or by using the intel-undervolt tool [1] and
- running `intel-undervolt measure` which doesn't require being disconnected 
from
- the charger. The psys measurement from intel-undervolt is the one of interest.
+ The first bug, fixed by "drm/i915/gt: Schedule request retirement when 
timeline idles" upstream, is very high power consumption by i915 hardware due 
to an old commit that broke the RC6 power state for the iGPU on Skylake+. On my 
laptop, a Dell Precision 5540 with an i9-9880H, the idle power consumption of 
my laptop with this commit goes down from 10 W to 2 W, saving a massive 8 W of 
power. On other Skylake+ laptops I tested, this commit reduced idle power 
consumption by at least a few watts. The difference in power consumption can be 
observed by running `powertop` while disconnected from the charger, or by using 
the intel-undervolt tool [1] and running `intel-undervolt measure` which 
doesn't require being disconnected from the charger. The psys measurement from 
intel-undervolt is the one of interest.
  
- Backporting this commit was not trivial due to i915's high rate of churn, but
- the backport didn't require changing any code from the original commit; it 
only
- required moving code around and not altering some #includes.
- 
+ Backporting this commit was not trivial due to i915's high rate of
+ churn, but the backport didn't require changing any code from the
+ original commit; it only required moving code around and not altering
+ some #includes.
  
  [1] 
https://lore.kernel.org/stable/20200330033057.2629052-3-sul...@kerneltoast.com/
  [2] 
https://lore.kernel.org/stable/20200330033057.2629052-1-sul...@kerneltoast.com/

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1869924

Title:
  High power consumption by Intel iGPU on Skylake+

Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Focal:
  Incomplete

Bug description:
  There is an outstanding regression in i915 that breaks the RC6 power
  state for Intel iGPUs

[Touch-packages] [Bug 1563110] Re: No sound on Asus e200ha, intel sst with cx2072x codec

2019-11-27 Thread sultan
Looks like you are missing UCM config files (due to an outdated ALSA UCM
package that's not in sync with the kernel). This is what causes the
"Audio Port: ASoC: no backend DAIs enabled for Audio Port" messages. See
this thread: https://bugzilla.kernel.org/show_bug.cgi?id=115531#c43

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1563110

Title:
  No sound on Asus e200ha, intel sst with cx2072x codec

Status in ALSA driver:
  Confirmed
Status in alsa-driver package in Ubuntu:
  Fix Released
Status in linux package in Ubuntu:
  Fix Released

Bug description:
  I've recently bought an Asus e200ha.
  Sound in this laptop doesn't work.
  The sound card is an intel sst with codec conexant cx2072x

  aplay -l:
  aplay: device_list:268: no soundcard found...
  in the sound setting there is a "Dummy output"
  --- 
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CurrentDesktop: XFCE
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=UUID=7b77dc46-7d5b-4869-83dd-739980736c3a
  InstallationDate: Installed on 2016-03-28 (0 days ago)
  InstallationMedia: Linux Mint 17.3 "Rosa" - Release amd64 20160105
  Lsusb:
   Bus 002 Device 002: ID 0781:5583 SanDisk Corp. 
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 003: ID 13d3:3496 IMC Networks 
   Bus 001 Device 002: ID 04f2:b54b Chicony Electronics Co., Ltd 
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: ASUSTeK COMPUTER INC. E200HA
  Package: linux (not installed)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-32-generic 
root=UUID=50fb13c0-a8cd-441d-a38b-c0295c1b9a15 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 3.19.0-32.37~14.04.1-generic 3.19.8-ckt7
  RelatedPackageVersions:
   linux-restricted-modules-3.19.0-32-generic N/A
   linux-backports-modules-3.19.0-32-generic  N/A
   linux-firmware 1.127.16
  Tags:  rosa
  Uname: Linux 3.19.0-32-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 11/26/2015
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: E200HA.203
  dmi.board.asset.tag: ATN12345678901234567
  dmi.board.name: E200HA
  dmi.board.vendor: ASUSTeK COMPUTER INC.
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: ATN12345678901234567
  dmi.chassis.type: 10
  dmi.chassis.vendor: ASUSTeK COMPUTER INC.
  dmi.chassis.version: 1.0
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrE200HA.203:bd11/26/2015:svnASUSTeKCOMPUTERINC.:pnE200HA:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnE200HA:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
  dmi.product.name: E200HA
  dmi.product.version: 1.0
  dmi.sys.vendor: ASUSTeK COMPUTER INC.

To manage notifications about this bug go to:
https://bugs.launchpad.net/alsa-driver/+bug/1563110/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp