[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2019-07-24 Thread Brad Figg
** Tags added: cscc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-09-13 Thread Hui Wang
** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-09-10 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-oem - 4.15.0-1017.20

---
linux-oem (4.15.0-1017.20) bionic; urgency=medium

  * linux-oem: 4.15.0-1017.20 -proposed tracker (LP: #1787544)

  * Bluetooth: Redpine: Bionics: L2test transfer is failed to start in Ubuntu
18.04 (LP: #1781895)
- SAUCE: Bluetooth: btrsi: fix l2test data transfer issue

  * [Redpine]  Upgrades to improve throughput and stability (LP: #1782070)
- SAUCE: rsi: Fix for low throughput issue
- SAUCE: rsi: Set wowlan flag while writing wowlan config parameters
- SAUCE: rsi: Add debug support for wowlan wakeup confirmation
- Bluetooth: btrsi: rework dependencies
- rsi: fix error path handling in SDIO probe
- rsi: Add null check for virtual interfaces in wowlan config
- SAUCE: rsi: Fix for wowlan hibernate resume issue
- SAUCE: rsi: Firmware assert (version 2)
- SAUCE: rsi: Fix for WoWLAN wakeup in security mode.
- SAUCE: rsi: Optimizing virtual interfaces
- SAUCE: rsi: disable p2p device mode support

 -- Chia-Lin Kao (AceLan)   Fri, 17 Aug 2018
15:53:57 +0800

** Changed in: linux-oem (Ubuntu)
   Status: Invalid => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-08-29 Thread Anthony Wong
** Changed in: linux-oem (Ubuntu)
   Status: New => Invalid

** Changed in: hwe-next
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-08-27 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-oem - 4.15.0-1017.20

---
linux-oem (4.15.0-1017.20) bionic; urgency=medium

  * linux-oem: 4.15.0-1017.20 -proposed tracker (LP: #1787544)

  * Bluetooth: Redpine: Bionics: L2test transfer is failed to start in Ubuntu
18.04 (LP: #1781895)
- SAUCE: Bluetooth: btrsi: fix l2test data transfer issue

  * [Redpine]  Upgrades to improve throughput and stability (LP: #1782070)
- SAUCE: rsi: Fix for low throughput issue
- SAUCE: rsi: Set wowlan flag while writing wowlan config parameters
- SAUCE: rsi: Add debug support for wowlan wakeup confirmation
- Bluetooth: btrsi: rework dependencies
- rsi: fix error path handling in SDIO probe
- rsi: Add null check for virtual interfaces in wowlan config
- SAUCE: rsi: Fix for wowlan hibernate resume issue
- SAUCE: rsi: Firmware assert (version 2)
- SAUCE: rsi: Fix for WoWLAN wakeup in security mode.
- SAUCE: rsi: Optimizing virtual interfaces
- SAUCE: rsi: disable p2p device mode support

 -- Chia-Lin Kao (AceLan)   Fri, 17 Aug 2018
15:53:57 +0800

** Changed in: linux-oem (Ubuntu Bionic)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-08-23 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 4.15.0-33.36

---
linux (4.15.0-33.36) bionic; urgency=medium

  * linux: 4.15.0-33.36 -proposed tracker (LP: #1787149)

  * RTNL assertion failure on ipvlan (LP: #1776927)
- ipvlan: drop ipv6 dependency
- ipvlan: use per device spinlock to protect addrs list updates
- SAUCE: fix warning from "ipvlan: drop ipv6 dependency"

  * ubuntu_bpf_jit test failed on Bionic s390x systems (LP: #1753941)
- test_bpf: flag tests that cannot be jited on s390

  * HDMI/DP audio can't work on the laptop of Dell Latitude 5495 (LP: #1782689)
- drm/nouveau: fix nouveau_dsm_get_client_id()'s return type
- drm/radeon: fix radeon_atpx_get_client_id()'s return type
- drm/amdgpu: fix amdgpu_atpx_get_client_id()'s return type
- platform/x86: apple-gmux: fix gmux_get_client_id()'s return type
- ALSA: hda: use PCI_BASE_CLASS_DISPLAY to replace PCI_CLASS_DISPLAY_VGA
- vga_switcheroo: set audio client id according to bound GPU id

  * locking sockets broken due to missing AppArmor socket mediation patches
(LP: #1780227)
- UBUNTU SAUCE: apparmor: fix apparmor mediating locking non-fs, unix 
sockets

  * Update2 for ocxl driver (LP: #1781436)
- ocxl: Fix page fault handler in case of fault on dying process

  * netns: unable to follow an interface that moves to another netns
(LP: #1774225)
- net: core: Expose number of link up/down transitions
- dev: always advertise the new nsid when the netns iface changes
- dev: advertise the new ifindex when the netns iface changes

  * [Bionic] Disk IO hangs when using BFQ as io scheduler (LP: #1780066)
- block, bfq: fix occurrences of request finish method's old name
- block, bfq: remove batches of confusing ifdefs
- block, bfq: add requeue-request hook

  * HP ProBook 455 G5 needs mute-led-gpio fixup (LP: #1781763)
- ALSA: hda: add mute led support for HP ProBook 455 G5

  * [Bionic] bug fixes to improve stability of the ThunderX2 i2c driver
(LP: #1781476)
- i2c: xlp9xx: Fix issue seen when updating receive length
- i2c: xlp9xx: Make sure the transfer size is not more than
  I2C_SMBUS_BLOCK_SIZE

  * x86/kvm: fix LAPIC timer drift when guest uses periodic mode (LP: #1778486)
- x86/kvm: fix LAPIC timer drift when guest uses periodic mode

  * Please include ax88179_178a and r8152 modules in d-i udeb (LP: #1771823)
- [Config:] d-i: Add ax88179_178a and r8152 to nic-modules

  * Nvidia fails after switching its mode (LP: #1778658)
- PCI: Restore config space on runtime resume despite being unbound

  * Kernel error "task zfs:pid blocked for more than 120 seconds" (LP: #1781364)
- SAUCE: (noup) zfs to 0.7.5-1ubuntu16.3

  * CVE-2018-12232
- PATCH 1/1] socket: close race condition between sock_close() and
  sockfs_setattr()

  * CVE-2018-10323
- xfs: set format back to extents if xfs_bmap_extents_to_btree

  * change front mic location for more lenovo m7/8/9xx machines (LP: #1781316)
- ALSA: hda/realtek - Fix the problem of two front mics on more machines
- ALSA: hda/realtek - two more lenovo models need fixup of MIC_LOCATION

  * Cephfs + fscache: unable to handle kernel NULL pointer dereference at
 IP: jbd2__journal_start+0x22/0x1f0 (LP: #1783246)
- ceph: track read contexts in ceph_file_info

  * Touchpad of ThinkPad P52 failed to work with message "lost sync at byte"
(LP: #1779802)
- Input: elantech - fix V4 report decoding for module with middle key
- Input: elantech - enable middle button of touchpads on ThinkPad P52

  * xhci_hcd :00:14.0: Root hub is not suspended (LP: #1779823)
- usb: xhci: dbc: Fix lockdep warning
- usb: xhci: dbc: Don't decrement runtime PM counter if DBC is not started

  * CVE-2018-13406
- video: uvesafb: Fix integer overflow in allocation

  * CVE-2018-10840
- ext4: correctly handle a zero-length xattr with a non-zero e_value_offs

  * CVE-2018-11412
- ext4: do not allow external inodes for inline data

  * CVE-2018-10881
- ext4: clear i_data in ext4_inode_info when removing inline data

  * CVE-2018-12233
- jfs: Fix inconsistency between memory allocation and ea_buf->max_size

  * CVE-2018-12904
- kvm: nVMX: Enforce cpl=0 for VMX instructions

  * Error parsing PCC subspaces from PCCT (LP: #1528684)
- mailbox: PCC: erroneous error message when parsing ACPI PCCT

  * CVE-2018-13094
- xfs: don't call xfs_da_shrink_inode with NULL bp

  * other users' coredumps can be read via setgid directory and killpriv bypass
(LP: #1779923) // CVE-2018-13405
- Fix up non-directory creation in SGID directories

  * Invoking obsolete 'firmware_install' target breaks snap build (LP: #1782166)
- snapcraft.yaml: stop invoking the obsolete (and non-existing)
  'firmware_install' target

  * snapcraft.yaml: missing ubuntu-retpoline-extract-one script breaks the build
(LP: #1782116)
- snapcraft.yaml: copy 

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-08-16 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 4.17.0-7.8

---
linux (4.17.0-7.8) cosmic; urgency=medium

  * linux: 4.17.0-7.8 -proposed tracker (LP: #1785242)

  * Cosmic update to 4.17.12 stable release (LP: #1785211)
- spi: spi-s3c64xx: Fix system resume support
- Input: elan_i2c - add ACPI ID for lenovo ideapad 330
- Input: i8042 - add Lenovo LaVie Z to the i8042 reset list
- Input: elan_i2c - add another ACPI ID for Lenovo Ideapad 330-15AST
- mm: disallow mappings that conflict for devm_memremap_pages()
- kvm, mm: account shadow page tables to kmemcg
- delayacct: fix crash in delayacct_blkio_end() after delayacct init failure
- tracing: Fix double free of event_trigger_data
- tracing: Fix possible double free in event_enable_trigger_func()
- kthread, tracing: Don't expose half-written comm when creating kthreads
- tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure
- tracing: Quiet gcc warning about maybe unused link variable
- arm64: fix vmemmap BUILD_BUG_ON() triggering on !vmemmap setups
- drm/i915/glk: Add Quirk for GLK NUC HDMI port issues.
- mlxsw: spectrum_switchdev: Fix port_vlan refcounting
- kcov: ensure irq code sees a valid area
- mm: check for SIGKILL inside dup_mmap() loop
- drm/amd/powerplay: Set higher SCLK frequency than dpm7 in OD (v2)
- xen/netfront: raise max number of slots in xennet_get_responses()
- hv_netvsc: fix network namespace issues with VF support
- skip LAYOUTRETURN if layout is invalid
- ixgbe: Fix setting of TC configuration for macvlan case
- ALSA: emu10k1: add error handling for snd_ctl_add
- ALSA: fm801: add error handling for snd_ctl_add
- NFSv4.1: Fix the client behaviour on NFS4ERR_SEQ_FALSE_RETRY
- nfsd: fix error handling in nfs4_set_delegation()
- nfsd: fix potential use-after-free in nfsd4_decode_getdeviceinfo
- vfio: platform: Fix reset module leak in error path
- vfio/mdev: Check globally for duplicate devices
- vfio/type1: Fix task tracking for QEMU vCPU hotplug
- kernel/hung_task.c: show all hung tasks before panic
- mem_cgroup: make sure moving_account, move_lock_task and stat_cpu in the
  same cacheline
- mm: /proc/pid/pagemap: hide swap entries from unprivileged users
- mm: vmalloc: avoid racy handling of debugobjects in vunmap
- mm/slub.c: add __printf verification to slab_err()
- rtc: ensure rtc_set_alarm fails when alarms are not supported
- rxrpc: Fix terminal retransmission connection ID to include the channel
- perf tools: Fix pmu events parsing rule
- netfilter: ipset: forbid family for hash:mac sets
- netfilter: ipset: List timing out entries with "timeout 1" instead of zero
- irqchip/ls-scfg-msi: Map MSIs in the iommu
- watchdog: da9063: Fix updating timeout value
- media: arch: sh: migor: Fix TW9910 PDN gpio
- printk: drop in_nmi check from printk_safe_flush_on_panic()
- bpf, arm32: fix inconsistent naming about emit_a32_lsr_{r64,i64}
- ceph: fix alignment of rasize
- ceph: fix use-after-free in ceph_statfs()
- e1000e: Ignore TSYNCRXCTL when getting I219 clock attributes
- infiniband: fix a possible use-after-free bug
- powerpc/lib: Adjust .balign inside string functions for PPC32
- powerpc/64s: Add barrier_nospec
- powerpc/eeh: Fix use-after-release of EEH driver
- hvc_opal: don't set tb_ticks_per_usec in udbg_init_opal_common()
- powerpc/64s: Fix compiler store ordering to SLB shadow area
- clk-si544: Properly round requested frequency to nearest match
- clk: ingenic: jz4770: Modify C1CLK clock to disable CPU clock stop on idle
- RDMA/mad: Convert BUG_ONs to error flows
- lightnvm: fix partial read error path
- lightnvm: proper error handling for pblk_bio_add_pages
- lightnvm: pblk: warn in case of corrupted write buffer
- netfilter: nf_tables: check msg_type before nft_trans_set(trans)
- pnfs: Don't release the sequence slot until we've processed layoutget on
  open
- NFS: Fix up nfs_post_op_update_inode() to force ctime updates
- disable loading f2fs module on PAGE_SIZE > 4KB
- f2fs: fix error path of move_data_page
- f2fs: don't drop dentry pages after fs shutdown
- f2fs: fix to don't trigger writeback during recovery
- f2fs: fix to wait page writeback during revoking atomic write
- f2fs: Fix deadlock in shutdown ioctl
- f2fs: fix missing clear FI_NO_PREALLOC in some error case
- f2fs: fix to detect failure of dquot_initialize
- f2fs: fix race in between GC and atomic open
- block, bfq: remove wrong lock in bfq_requests_merged
- usbip: usbip_detach: Fix memory, udev context and udev leak
- usbip: dynamically allocate idev by nports found in sysfs
- perf/x86/intel/uncore: Correct fixed counter index check in generic code
- perf/x86/intel/uncore: Correct fixed counter index check for NHM
- 

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-08-07 Thread Brad Figg
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
bionic' to 'verification-done-bionic'. If the problem still exists,
change the tag 'verification-needed-bionic' to 'verification-failed-
bionic'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-08-01 Thread Seth Forshee
** Changed in: linux (Ubuntu)
   Status: Incomplete => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-07-31 Thread Kleber Sacilotto de Souza
** Changed in: linux (Ubuntu Bionic)
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-07-30 Thread Hui Wang
** Description changed:

+ In the v2:
+ the patchset is also sent to OEM-B since the OEM project is waiting for the 
patchset.
+ 
+ The v1 introduced a building error, my investigation is shown as below:
+ The declaration of "enum vga_switcheroo_client_id (*get_client_id)(struct 
pci_dev *pdev);"
+ and the implementation of "static int nouveau_dsm_get_client_id(struct 
pci_dev *pdev)"
+ exist in the kernel (bionic, artful) for a long time, but 
"-Werror=incompatible-pointer-types"
+ didn't report it as an error, after applied these 2 patches, it is reported 
as an error,
+ that is because the patch touches the definition of "enum 
vga_switcheroo_client_id",
+ before applying these 2 patches, the vga_switcheroo_client_id includes a 
negative numer:
+ VGA_SWITCHEROO_UNKNOWN_ID = -1, but after applying the patches, there is no 
negative number
+ anymore in the "enum vga_swicheroo_client_id".
+ I guess if the definition of enum includes negative number, the c compiler 
treat it as int type,
+ that is why artful and bionic did not expose building error before.
+ 
+ To fix the building error, I cherry-picked 4 more patches [3/6-6/6], and the 
purpose of those
+ 4 patches is straightforward.
+ 
+ 
+ In the v1:
  This bug comes from the OEM project, and the engineer Jim Qu from AMD took
  almost 2 weeks to investigate this problem, then he worte these two patches to
  fix this problem and now the patches are merged to sound repository.
  
  According to Jim Qu's investigation, the root cause of this problem is:
  1. there is two GPU on the system. iGPU has a audio codec for HDMI output,
-and dGPU is without audio codec it is only for offload rendering.
+    and dGPU is without audio codec it is only for offload rendering.
  2. under runtime pm, when dGPU suspend, amdgpu will also call vgaswitchroo
-driver to power off audio which vgaswitchroo client is VGA_SWITCHEROO_DIS.
+    driver to power off audio which vgaswitchroo client is VGA_SWITCHEROO_DIS.
  3. In current HDA audio driver, the iGPU's audio will register to vgaswitchroo
-as VGA_SWITCHEROO_DIS, therefore, the audio will be selected and powered 
off
-by runtime pm.
+    as VGA_SWITCHEROO_DIS, therefore, the audio will be selected and powered 
off
+    by runtime pm.
  
  [Impact]
  On the Dell Latitude 5495, If we plug a monitor with audio capability to the
  HDMI/DP ports, we can't find HDMI/DP audio sinks as expected, then we can't
  play any sound through HDMI/DP audio.
  
  [Fix]
- With these two patches, the driver will not always set vgaswicheroo clients of
+ With these 6 patches, the driver will not always set vgaswicheroo clients of
  HDA audio as VGA_SWITCHEROO_DIS, it will set it to _DIS or _IGD with the help
  of callback function of DRM drivers. So on this machine, the vgaswicheroo 
client
- will be set _IGD, then it will not be powered off when discrete gpu is 
powered off. 
+ will be set _IGD, then it will not be powered off when discrete gpu is 
powered off.
  
  [Test Case]
  We tested plug/unplug detection and playback through HDMI/DP audio, 
everything works
  well.
  
  [Regression Potential]
- Very low, without these two patches, the vgaswitchroo client of audio will be
+ Very low, without these 6 patches, the vgaswitchroo client of audio will be
  set to _DIS unconditionally, it did not expose any problem because in the 
past,
  all the HDMI/DP audio codecs are in the discreate GPU. But on Latitude 5495, 
the
  HDMI/DP audio codec is in the integrated GPU, so we need to change the driver 
to
  let DRM driver decide if it is _DIS or _IGD, it will not introduce regression 
for
  old mahcines on old machines, the client will be set to _DIS as before.
  
  And we have tested these two patches on some old machines with two gpus like 
A+A
  , I+A and I+N, all of them worked well as before.

** Description changed:

  In the v2:
  the patchset is also sent to OEM-B since the OEM project is waiting for the 
patchset.
  
  The v1 introduced a building error, my investigation is shown as below:
- The declaration of "enum vga_switcheroo_client_id (*get_client_id)(struct 
pci_dev *pdev);"
- and the implementation of "static int nouveau_dsm_get_client_id(struct 
pci_dev *pdev)"
- exist in the kernel (bionic, artful) for a long time, but 
"-Werror=incompatible-pointer-types"
- didn't report it as an error, after applied these 2 patches, it is reported 
as an error,
- that is because the patch touches the definition of "enum 
vga_switcheroo_client_id",
- before applying these 2 patches, the vga_switcheroo_client_id includes a 
negative numer:
- VGA_SWITCHEROO_UNKNOWN_ID = -1, but after applying the patches, there is no 
negative number
- anymore in the "enum vga_swicheroo_client_id".
- I guess if the definition of enum includes negative number, the c compiler 
treat it as int type,
- that is why artful and bionic did not expose building error before.
+ The declaration of "enum vga_switcheroo_client_id (*get_client_id)(struct 
pci_dev 

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-07-30 Thread Stefan Bader
** Also affects: linux-oem (Ubuntu)
   Importance: Undecided
   Status: New

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

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1782689] Re: HDMI/DP audio can't work on the laptop of Dell Latitude 5495

2018-07-20 Thread Hui Wang
** Description changed:

- Steps:
- 1. Install manifest and boot into OS
- 2. Connect an external monitor via HDMI port
- 3. Check sound setting
+ This bug comes from the OEM project, and the engineer Jim Qu from AMD took
+ almost 2 weeks to investigate this problem, then he worte these two patches to
+ fix this problem and now the patches are merged to sound repository.
  
- Expected results: System should able to detect HDMI audio output
+ According to Jim Qu's investigation, the root cause of this problem is:
+ 1. there is two GPU on the system. iGPU has a audio codec for HDMI output,
+and dGPU is without audio codec it is only for offload rendering.
+ 2. under runtime pm, when dGPU suspend, amdgpu will also call vgaswitchroo
+driver to power off audio which vgaswitchroo client is VGA_SWITCHEROO_DIS.
+ 3. In current HDA audio driver, the iGPU's audio will register to vgaswitchroo
+as VGA_SWITCHEROO_DIS, therefore, the audio will be selected and powered 
off
+by runtime pm.
  
- Actual results: System can't detect HDMI audio output
+ [Impact]
+ On the Dell Latitude 5495, If we plug a monitor with audio capability to the
+ HDMI/DP ports, we can't find HDMI/DP audio sinks as expected, then we can't
+ play any sound through HDMI/DP audio.
  
- Failure rate: 2/2
+ [Fix]
+ With these two patches, the driver will not always set vgaswicheroo clients of
+ HDA audio as VGA_SWITCHEROO_DIS, it will set it to _DIS or _IGD with the help
+ of callback function of DRM drivers. So on this machine, the vgaswicheroo 
client
+ will be set _IGD, then it will not be powered off when discrete gpu is 
powered off. 
+ 
+ [Test Case]
+ We tested plug/unplug detection and playback through HDMI/DP audio, 
everything works
+ well.
+ 
+ [Regression Potential]
+ Very low, without these two patches, the vgaswitchroo client of audio will be
+ set to _DIS unconditionally, it did not expose any problem because in the 
past,
+ all the HDMI/DP audio codecs are in the discreate GPU. But on Latitude 5495, 
the
+ HDMI/DP audio codec is in the integrated GPU, so we need to change the driver 
to
+ let DRM driver decide if it is _DIS or _IGD, it will not introduce regression 
for
+ old mahcines on old machines, the client will be set to _DIS as before.
+ 
+ And we have tested these two patches on some old machines with two gpus like 
A+A
+ , I+A and I+N, all of them worked well as before.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1782689

Title:
  HDMI/DP audio can't work on the laptop of Dell Latitude 5495

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1782689/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs