Bug#1060042: qemu-efi-aarch64: Saving OVMF configuration changes fail

2024-01-04 Thread Helge Konetzka
Package: qemu-efi-aarch64
Version: 2022.11-6
Severity: normal
X-Debbugs-Cc: d...@zapateado.de

Dear Maintainer,

* What led up to the situation?

In OVMF setup I am trying to change the display resolution to 1024x768.


* What exactly did you do (or not do) that was effective (or ineffective)?

I tested two different cases

A)
cp -r /usr/share/qemu-efi-aarch64 ./
qemu-system-aarch64 -M virt -cpu max -device ramfb -device qemu-xhci -device
usb-kbd \
-bios qemu-efi-aarch64/QEMU_EFI.fd

B)
cp -r /usr/share/AAVMF ./
qemu-system-aarch64 -M virt -cpu max -device ramfb -device qemu-xhci -device
usb-kbd \
-drive file=AAVMF/AAVMF_CODE.fd,format=raw,if=pflash,index=0,read-
only=on \
-drive file=AAVMF/AAVMF_VARS.fd,format=raw,if=pflash,index=1,read-
only=off

After starting in both cases the following steps led to the situation:
* Enter OVMF Setup with ESC
* Navigate Device Manager -> OVMF Platform Configuration
* Change Preferred Resolution to 1024x768
* Save with F10 and Y

The configuration was not saved. The following message was shown:
"Submit Fail For Form: OVMF Settings"

This issue seems to be similar to
https://bugzilla.proxmox.com/show_bug.cgi?id=4606


* What was the outcome of this action?

It was not possible to change the preferred resolution with the installed
firmware.

Changing the preferred resolution with an ovmf firmware from external sources
worked.


* What outcome did you expect instead?

Changing the preferred resolution with qemu-efi-aarch64 firmware works


-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-17-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information



Bug#929827: linux-image-4.19.0-5-amd64: subject.txt

2019-06-01 Thread Helge Konetzka
Package: src:linux
Version: 4.19.37-3
Severity: normal

Dear Maintainer,

running linux-image-4.19.0-5-amd64, 
it isn't possible to unload the module nouveau correctly.

* What led up to the situation?

Successfully loading nouveau in multi-user mode after boot.

* What exactly did you do (or not do) that was effective (or
 ineffective)?

Unloading the module 5s after loading.

* What was the outcome of this action?

After unloading, the module still is loaded but won't work anymore.
A stacktrace is shown caused by a general protected fault.

A complete shutdown isn't possible anymore, too.
The screen stays on. The screen shows:

[ OK ] Reached target shutdown
watchdog: watchdog0: watchdog did not stop!
... (some further lines)

My machine is a Lenovo Thinkpad T530 (with Nvidia Optimus).

Here's my command sequence to load and unload nouveau in multi-user mode:

root@debiantogo:~# lsmod | grep nouveau

root@debiantogo:~# modprobe -v nouveau
insmod /lib/modules/4.19.0-5-amd64/kernel/drivers/gpu/drm/ttm/ttm.ko 
insmod /lib/modules/4.19.0-5-amd64/kernel/drivers/platform/x86/mxm-wmi.ko 
insmod /lib/modules/4.19.0-5-amd64/kernel/drivers/gpu/drm/nouveau/nouveau.ko 

root@debiantogo:~# lsmod | grep nouveau
nouveau  2166784  0
mxm_wmi16384  1 nouveau
ttm   126976  1 nouveau
i2c_algo_bit   16384  2 i915,nouveau
drm_kms_helper200704  2 i915,nouveau
drm   483328  5 drm_kms_helper,i915,ttm,nouveau
wmi28672  3 wmi_bmof,mxm_wmi,nouveau
video  45056  3 thinkpad_acpi,i915,nouveau
button 16384  1 nouveau

root@debiantogo:~# modprobe -v -r nouveau
rmmod nouveau

root@debiantogo:~# lsmod | grep nouveau
nouveau  2166784  -1
mxm_wmi16384  1 nouveau
ttm   126976  1 nouveau
i2c_algo_bit   16384  2 i915,nouveau
drm_kms_helper200704  2 i915,nouveau
drm   483328  5 drm_kms_helper,i915,ttm,nouveau
wmi28672  3 wmi_bmof,mxm_wmi,nouveau
video  45056  3 thinkpad_acpi,i915,nouveau
button 16384  1 nouveau


-- Package-specific info:
** Version:
Linux version 4.19.0-5-amd64 (debian-ker...@lists.debian.org) (gcc version 
8.3.0 (Debian 8.3.0-7)) #1 SMP Debian 4.19.37-3 (2019-05-15)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-4.19.0-5-amd64 ro quiet 
root=UUID=0d5274b6-1a6d-4ad0-bcde-7f2ee570a400 
initrd=/boot/initrd.img-4.19.0-5-amd64 3

** Tainted: DW (640)
 * Kernel has oopsed before.
 * Taint on warning.

** Kernel log:
[  269.192268] [drm] Initialized nouveau 1.3.1 20120801 for :01:00.0 on 
minor 1
[  274.280831] [ cut here ]
[  274.280834] ida_free called for id=1090519041 which is not allocated.
[  274.280861] WARNING: CPU: 1 PID: 798 at lib/idr.c:487 ida_remove+0xc0/0x110
[  274.280863] Modules linked in: nouveau(-) mxm_wmi ttm nls_ascii nls_cp437 
vfat fat intel_rapl uvcvideo x86_pkg_temp_thermal intel_powerclamp coretemp 
videobuf2_vmalloc videobuf2_memops kvm_intel videobuf2_v4l2 
snd_hda_codec_realtek videobuf2_common cdc_mbim snd_hda_codec_generic kvm 
cdc_ncm videodev snd_hda_intel usbnet irqbypass snd_hda_codec cdc_wdm media 
cdc_acm mii iwlwifi snd_hda_core mei_wdt crct10dif_pclmul snd_hwdep 
crc32_pclmul thinkpad_acpi snd_pcm mei_me ghash_clmulni_intel mei tpm_tis 
joydev snd_timer serio_raw nvram tpm_tis_core intel_cstate cfg80211 snd pcspkr 
intel_uncore tpm soundcore iTCO_wdt pcc_cpufreq sg iTCO_vendor_support rfkill 
intel_rapl_perf rng_core ac battery evdev intel_rst wmi_bmof ip_tables x_tables 
autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb uas usb_storage
[  274.280938]  sd_mod i915 crc32c_intel i2c_algo_bit drm_kms_helper ahci 
libahci sdhci_pci cqhci xhci_pci libata drm sdhci e1000e firewire_ohci xhci_hcd 
mmc_core firewire_core crc_itu_t ehci_pci aesni_intel ehci_hcd i2c_i801 usbcore 
psmouse scsi_mod aes_x86_64 crypto_simd cryptd glue_helper lpc_ich wmi thermal 
usb_common video button
[  274.280975] CPU: 1 PID: 798 Comm: modprobe Not tainted 4.19.0-5-amd64 #1 
Debian 4.19.37-3
[  274.280976] Hardware name: LENOVO 24296HG/24296HG, BIOS G4ETB4WW (2.74 ) 
11/23/2018
[  274.280981] RIP: 0010:ida_remove+0xc0/0x110
[  274.280984] Code: 89 ea 48 8d 74 24 08 4c 89 e7 e8 3b 49 00 00 eb 1b 83 c3 
02 4d 89 ef 83 fb 3f 76 b3 89 ee 48 c7 c7 58 34 6c 9b e8 aa 93 97 ff <0f> 0b 48 
8b 44 24 30 65 48 33 04 25 28 00 00 00 75 2e 48 83 c4 38
[  274.280986] RSP: 0018:a4f901e3fce8 EFLAGS: 00010082
[  274.280989] RAX:  RBX: 0001 RCX: 0006
[  274.280990] RDX: 0007 RSI: 0082 RDI: 93f2ee4566b0
[  274.280992] RBP: 4101 R08: 0393 R09: 0004
[  274.280993] R10:  R11: 0001 R12: c0d410b0
[  274.280995] R13: c0d410b0 R14: 93f2ec1d7108 R15: 
[  274.280997] FS:  7fe3c27e7200()