Bug#1058890: fix

2024-04-13 Thread Dr . André Desgualdo Pereira
Fixed upstream and in Debian linux-image-6.1.0-20-amd64



Bug#1058890: bisect

2024-03-09 Thread Dr . André Desgualdo Pereira
I bisect the upstream kernel to find the bad commit:

git bisect start
# status: waiting for both good and bad commits
# good: [2dde18cd1d8fac735875f2e4987f11817cc0bc2c] Linux 6.5
git bisect good 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
# status: waiting for bad commit, 1 good commit known
# bad: [ffc253263a1375a65fa6c9f62a893e9767fbebfa] Linux 6.6
git bisect bad ffc253263a1375a65fa6c9f62a893e9767fbebfa
# skip: [a1c19328a160c80251868dbd80066dce23d07995] Merge tag 'soc-arm-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect skip a1c19328a160c80251868dbd80066dce23d07995
# good: [7c3f204e544dfa376bf1b34ebaa5552304a2b7d9] perf/smmuv3: Remove build 
dependency on ACPI
git bisect good 7c3f204e544dfa376bf1b34ebaa5552304a2b7d9
# good: [01a7eb3e20994701700631ec30462087c4ecf142] mm: fix 
clean_record_shared_mapping_range kernel-doc
git bisect good 01a7eb3e20994701700631ec30462087c4ecf142
# good: [0e72db77672ff4758a31fb5259c754a7bb229751] Merge tag 'soc-dt-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 0e72db77672ff4758a31fb5259c754a7bb229751
# good: [0e72db77672ff4758a31fb5259c754a7bb229751] Merge tag 'soc-dt-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 0e72db77672ff4758a31fb5259c754a7bb229751
# good: [0e72db77672ff4758a31fb5259c754a7bb229751] Merge tag 'soc-dt-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 0e72db77672ff4758a31fb5259c754a7bb229751
# good: [5eea5820c7340d39e56e169e1b87199391105f6b] Merge tag 
'mm-stable-2023-09-04-14-00' of 
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect good 5eea5820c7340d39e56e169e1b87199391105f6b
# good: [b300c0fdf0045ede109a349aa9c79f81bfae086a] Merge tag 
'hwmon-for-v6.6-rc3' of 
git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
git bisect good b300c0fdf0045ede109a349aa9c79f81bfae086a
# bad: [7e20d344b53532adf60d77cb41873ebdb4f80cf4] Merge tag 
'x86-urgent-2023-10-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 7e20d344b53532adf60d77cb41873ebdb4f80cf4
# good: [94b7ed384fa9d397ff0aabff76a8de2f7e107144] Merge tag 'for-v6.6-rc' of 
git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
git bisect good 94b7ed384fa9d397ff0aabff76a8de2f7e107144
# bad: [cb84fb87f325ecd46be586b62623db5b2c0a792e] Merge tag 
'integrity-v6.6-fix' of 
git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
git bisect bad cb84fb87f325ecd46be586b62623db5b2c0a792e
# bad: [e402b08634b398e9feb94902c7adcf05bb8ba47d] Merge tag 'soc-fixes-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect bad e402b08634b398e9feb94902c7adcf05bb8ba47d
# bad: [ae213639983a5406849d62d33257dfc076bc48a7] Merge tag 'nfsd-6.6-2' of 
git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git bisect bad ae213639983a5406849d62d33257dfc076bc48a7
# good: [eafdc5071351314702175a3cd083cf6f7eef6488] Merge tag 
'block-6.6-2023-09-28' of git://git.kernel.dk/linux
git bisect good eafdc5071351314702175a3cd083cf6f7eef6488
# bad: [95289e49f0a05f729a9ff86243c9aff4f34d4041] Merge tag 'ata-6.6-rc4' of 
git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
git bisect bad 95289e49f0a05f729a9ff86243c9aff4f34d4041
# bad: [3cc2ffe5c16dc65dfac354bc5b5bc98d3b397567] scsi: sd: Differentiate 
system and runtime start/stop management
git bisect bad 3cc2ffe5c16dc65dfac354bc5b5bc98d3b397567
# good: [3b8e0af4a7a331d1510e963b8fd77e2fca0a77f1] ata: libata-core: Fix 
ata_port_request_pm() locking
git bisect good 3b8e0af4a7a331d1510e963b8fd77e2fca0a77f1
# good: [84d76529c650f887f1e18caee72d6f0589e1baf9] ata: libata-core: Fix port 
and device removal
git bisect good 84d76529c650f887f1e18caee72d6f0589e1baf9
# good: [fb99ef17865035a6657786d4b2af11a27ba23f9b] ata: libata-scsi: link ata 
port and scsi device
git bisect good fb99ef17865035a6657786d4b2af11a27ba23f9b
# first bad commit: [3cc2ffe5c16dc65dfac354bc5b5bc98d3b397567] scsi: sd: 
Differentiate system and runtime start/stop management



Bug#1058890: comment

2024-02-28 Thread Dr . André Desgualdo Pereira
Reported upstream: https://bugzilla.kernel.org/show_bug.cgi?id=218538



Bug#1058890: test

2024-02-21 Thread Dr . André Desgualdo Pereira
I compiled the kernel 6.1.76 from Debian sources without applying any patch and 
it can't wake up from suspend :-( May be there is an specific driver or module 
that needs to be compiled for sedutil to work properly on waking up from S3.



Bug#1058890: troubleshooting

2024-02-20 Thread Dr . André Desgualdo Pereira
I changed just the disk of the notebook and installed Debian 12 on it, without 
any encryption and suspend works fine on kernel 6.1.0-18. 
Which makes me conclude that something is wrong with some patch of that Debian 
kernel, not allowing the disk to be decrypted with sedutil after waking up. I 
don't think the problem is on mainline Linux kernel because it is reported to 
work at least up to kernel 6.6.7-arch1-1 ( 
https://github.com/Drive-Trust-Alliance/sedutil/issues/90#issuecomment-1952402111
 )



Bug#1058890: sedutil

2024-02-15 Thread Dr . André Desgualdo Pereira
New try: I recompiled sedutil after booting linux-image-6.1.0-18-amd64 (git 
clone --branch s3-sleep-support https://github.com/badicsalex/sedutil.git). It 
made no difference, i.e., I still can't get the machine to fully wake up. 
(sedutil compiled at linux-image-6.1.0-18-amd64 still works fine with 
linux-image-6.1.0-13-amd64). 



Bug#1058890: new try

2024-02-13 Thread Dr . André Desgualdo Pereira
Adding "intel_iommu=off" to kernel boot does NOT change anything. 



Bug#1058890: new try

2024-02-11 Thread Dr . André Desgualdo Pereira
Adding "init_on_alloc=0" to kernel boot does NOT change anything. 



Bug#1058890: Bug Persists

2024-02-11 Thread Dr . André Desgualdo Pereira
The bug still persists with the linux-image-6.1.0-18-amd64. 



Bug#1058890: More tests

2024-01-04 Thread Dr . André Desgualdo Pereira
Changing /etc/systemd/sleep.conf to have "SuspendState=standby" or 
"SuspendState=freeze" seems to make things worse because the notebook seems 
unable to enter sleep mode, while "SuspendState=mem" causes the same behavior 
as reported here, i. e., the notebook seems unable to wake up from sleeping. 

-- 
André Desgualdo Pereira



Bug#1058890: more info

2024-01-04 Thread Dr . André Desgualdo Pereira
The bug first appeared in linux-image-6.1.0-14-amd64 and persists through 
linux-image-6.1.0-15-amd64, linux-image-6.1.0-16-amd64 and 
linux-image-6.1.0-17-amd64.

-- 
André Desgualdo Pereira



Bug#1058890: more tests

2023-12-25 Thread Dr . André Desgualdo Pereira
If I use "echo mem > /sys/power/state" instead of systemctl to suspend, the 
result is the same, ie, the notebook doesn't seem to fully wake up, when trying 
to wake up from suspend, the screen stays black.
The CAPS LOCK led doesn't change when pressing the CAPS LOCK button, but the 
computer can shutdown with "Alt + SysRq + B". 

-- 
André Desgualdo Pereira



Bug#1058890: more info

2023-12-23 Thread Dr . André Desgualdo Pereira
sedutil seems to be working

`$ cat /sys/module/libata/parameters/allow_tpm` result "1" 
and 
`sedutil-cli --scan` shows the disk correctly ("/dev/sda2  KINGSTON 
SKC600256G  S4800105")

If there are any further tests that can help elucidate the problem, please let 
me know.

-- 
André Desgualdo Pereira



Bug#1058890: Adding more information after tests

2023-12-20 Thread Dr . André Desgualdo Pereira
1. I tested booting with the kernel option "nomodeset", it made no difference.

2. I tested suspend by writing to /sys/power/pm_test the following successively 
"freezer", "devices", "platform", "processors", "core". Every single test was 
successful, ie, the system wake up on its own after 5 seconds.

3. Sometimes I can make the system kind of wake up (the screen turns on after 
pressing the power button successively), but the system seems unable to read 
any file on the disk, which makes me wonder if the problem is with the SED 
(Self Encrypted Drive). 

-- 
André Desgualdo Pereira



Bug#1058890: linux-image-6.1.0-16-amd64 breaks suspend

2023-12-17 Thread Dr . André Desgualdo Pereira
Package: src:linux
Version: 6.1.67-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   Updating the kernel
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   Booting from old kernel
   * What was the outcome of this action?
   Notebook can't wake up from suspend when using noveau driver, but worse yet 
the xserver doesn't even start when using Nvidia proprietary (error message 
saying no display was found)
   * What outcome did you expect instead?
   I expect updating the kernel doesn't break functionality.

*** End of the template - remove these template lines ***


-- Package-specific info:
** Version:
Linux version 6.1.0-16-amd64 (debian-ker...@lists.debian.org) (gcc-12 (Debian 
12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP 
PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-6.1.0-16-amd64 
root=UUID=50906476-3c38-4fac-ab46-38d8ca6b9dd5 ro acpi_backlight=video 
nowatchdog libata.allow_tpm=1

** Not tainted

** Kernel log:
[7.330870] sd 0:0:0:0: Attached scsi generic sg0 type 0
[7.331146] sr 2:0:0:0: Attached scsi generic sg1 type 5
[7.356487] input: Lid Switch as 
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input11
[7.392564] ACPI: button: Lid Switch [LID0]
[7.393013] ACPI: AC: AC Adapter [ADP0] (on-line)
[7.403757] input: Sleep Button as 
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input12
[7.421153] ACPI: button: Sleep Button [SLPB]
[7.425107] input: Power Button as 
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input13
[7.425323] ACPI: button: Power Button [PWRB]
[7.425503] input: Power Button as 
/devices/LNXSYSTM:00/LNXPWRBN:00/input/input14
[7.430812] ACPI: button: Power Button [PWRF]
[7.452498] at24 0-0050: supply vcc not found, using dummy regulator
[7.453934] at24 0-0050: 256 byte spd EEPROM, read-only
[7.454744] at24 0-0051: supply vcc not found, using dummy regulator
[7.456352] at24 0-0051: 256 byte spd EEPROM, read-only
[7.457463] at24 0-0053: supply vcc not found, using dummy regulator
[7.474495] at24 0-0053: 256 byte spd EEPROM, read-only
[7.508907] input: PC Speaker as /devices/platform/pcspkr/input/input15
[7.511009] iTCO_vendor_support: vendor-support=0
[7.526518] mc: Linux media interface: v0.10
[7.528097] iTCO_wdt iTCO_wdt.1.auto: Found a Cougar Point TCO device 
(Version=2, TCOBASE=0x0460)
[7.528576] iTCO_wdt iTCO_wdt.1.auto: initialized. heartbeat=30 sec 
(nowayout=0)
[7.548311] Adding 3964924k swap on /dev/sda6.  Priority:-2 extents:1 
across:3964924k SSFS
[7.611599] cfg80211: Loading compiled-in X.509 certificates for regulatory 
database
[7.612026] cfg80211: Loaded X.509 cert 'b...@debian.org: 
577e021cb980e0e820821ba7b54b4961b8b4fadf'
[7.612427] cfg80211: Loaded X.509 cert 'romain.per...@gmail.com: 
3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[7.612823] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[7.613701] platform regulatory.0: firmware: direct-loading firmware 
regulatory.db
[7.613950] platform regulatory.0: firmware: direct-loading firmware 
regulatory.db.p7s
[7.631031] random: crng init done
[7.678991] videodev: Linux video capture interface: v2.00
[7.684269] RAPL PMU: API unit is 2^-32 Joules, 2 fixed counters, 163840 ms 
ovfl timer
[7.684382] RAPL PMU: hw unit of domain pp0-core 2^-16 Joules
[7.684468] RAPL PMU: hw unit of domain package 2^-16 Joules
[7.684498] Intel(R) Wireless WiFi driver for Linux
[7.684930] iwlwifi :04:00.0: can't disable ASPM; OS doesn't have ASPM 
control
[7.688010] cryptd: max_cpu_qlen set to 1000
[7.700936] iwlwifi :04:00.0: firmware: direct-loading firmware 
iwlwifi-6000-4.ucode
[7.701178] iwlwifi :04:00.0: loaded firmware version 9.221.4.1 build 
25532 6000-4.ucode op_mode iwldvm
[7.708582] AVX version of gcm_enc/dec engaged.
[7.708721] AES CTR mode by8 optimization enabled
[7.725197] usb 3-1.6: Found UVC 1.00 device BisonCam, NB Pro (5986:0308)
[7.729530] snd_hda_intel :01:00.1: Disabling MSI
[7.729620] snd_hda_intel :01:00.1: Handle vga_switcheroo audio client
[7.750030] input: BisonCam, NB Pro: BisonCam, NB  as 
/devices/pci:00/:00:1d.0/usb3/3-1/3-1.6/3-1.6:1.0/input/input17
[7.750246] usbcore: registered new interface driver uvcvideo
[7.759394] input: HDA NVidia HDMI/DP,pcm=3 as 
/devices/pci:00/:00:01.0/:01:00.1/sound/card1/input16
[7.759606] input: HDA NVidia HDMI/DP,pcm=7 as 
/devices/pci:00/:00:01.0/:01:00.1/sound/card1/input18
[7.759786] input: HDA NVidia HDMI/DP,pcm=8 as 
/devices/pci:00/:00:01.0/:01:00.1/sound/card1/input19
[7.759963] input: HDA NVidia HDMI/DP,pcm=9 as