From owner-freebsd-current@freebsd.org Fri Dec 25 00:24:24 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E81FD4D75FE for ; Fri, 25 Dec 2020 00:24:24 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D273r2kNvz3n6j for ; Fri, 25 Dec 2020 00:24:24 +0000 (UTC) (envelope-from yuripv@yuripv.dev) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3B1455C00C1; Thu, 24 Dec 2020 19:24:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 24 Dec 2020 19:24:22 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddutddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepjghurhhi ucfrrghnkhhovhcuoeihuhhrihhpvheshihurhhiphhvrdguvghvqeenucggtffrrghtth gvrhhnpeeikeetfedtfedtkefhffeuleejfeffgfffffeuhfehgfehjedvgeefheeivedu gfenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucfkphepledurddvgedtrdduvd egrdduheeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhephihurhhiphhvseihuhhrihhpvhdruggvvh X-ME-Proxy: Received: from [192.168.1.6] (unknown [91.240.124.158]) by mail.messagingengine.com (Postfix) with ESMTPA id B1049108005B; Thu, 24 Dec 2020 19:24:20 -0500 (EST) Subject: Re: Boot panic on Lenovo P50s since r367998 To: junchoon@dec.sakura.ne.jp, freebsd-current@freebsd.org Cc: Marc Veldman References: <89112D93-739D-45B5-B21A-3396C098A89B@bumblingdork.com> <20201225090219.d98fa1ce21d600f0da606e29@dec.sakura.ne.jp> From: Yuri Pankov Message-ID: <10a15dcd-aad7-736c-63f4-a7bf06c2fa3f@yuripv.dev> Date: Fri, 25 Dec 2020 03:24:19 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20201225090219.d98fa1ce21d600f0da606e29@dec.sakura.ne.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4D273r2kNvz3n6j X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.16 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.29:from]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yuripv.dev:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-0.56)[-0.562]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.111.4.29:from]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yuripv.dev:s=fm1,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[yuripv]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[yuripv.dev]; SPAMHAUS_ZRD(0.00)[66.111.4.29:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2020 00:24:25 -0000 Tomoaki AOKI wrote: > On Thu, 24 Dec 2020 10:34:49 +0100 > Marc Veldman wrote: > >> Hello, >> >> since r367998 my Lenovo P50s panics on boot: >> >> mmc0: detached >> panic: Bad link elm 0xfffff80003a73300 next->prep != elm >> cupid=3 >> time=2 >> KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff8299a9c0 >> vpanic() at vpanic+0x181/frame 0xffffffff8299aa10 >> panic() at panic+0x43/frame 0xffffffff8299aa70 >> config_intrhook_disestablish() at config_intrhook_disestablish+0xf3/frame 0xffffffff8299aa90 >> config_intrhook_oneshot_func() at config_intrhook_oneshot_func+0x18/frame 0xffffffff8299aab0 >> run_interrupt_driven_config_hooks() at run_interrupt_driven_config_hooks+0x77/frame 0xffffffff8299aad0 >> boot_run_interrupt_driven_config_hooks() at boot_run_interrupt_driven_config_hooks+0x1f/frame 0xffffffff8299ab60 >> mi_startup() at mi_startup+0xec/frame 0xffffffff8299abb0 >> btext() at btext+0x2c >> KDB: enter: panic >> [thread pid 0 tid 100000] >> Stopped at kdb_enter+0x37: movq $0,0x10ada46(%rip) >> >> If needed, I can test patches >> >> Dmesg (with r367977 kernel) >> >> ---<>--- >> Copyright (c) 1992-2020 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 13.0-CURRENT #0 r367997: Tue Dec 22 16:47:30 CET 2020 >> root@devnovo:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 >> FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmorg-11.0.0-0-g176249bd673) >> WARNING: WITNESS option enabled, expect reduced performance. >> VT(efifb): resolution 1920x1080 >> CPU: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (2592.10-MHz K8-class CPU) >> Origin="GenuineIntel" Id=0x406e3 Family=0x6 Model=0x4e Stepping=3 >> Features=0xbfebfbff >> Features2=0x7ffafbbf >> AMD Features=0x2c100800 >> AMD Features2=0x121 >> Structured Extended Features=0x29c67af >> Structured Extended Features3=0x9c000000 >> XSAVE Features=0xf >> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID >> TSC: P-state invariant, performance statistics >> real memory = 17179869184 (16384 MB) >> avail memory = 16421109760 (15660 MB) >> Event timer "LAPIC" quality 600 >> ACPI APIC Table: >> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs >> FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads >> random: registering fast source Intel Secure Key RNG >> random: fast provider: "Intel Secure Key RNG" >> random: unblocking device. >> ioapic0 irqs 0-119 >> Launching APs: 1 3 2 >> Timecounter "TSC-low" frequency 1296050980 Hz quality 1000 >> random: entropy device external interface >> WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0. >> kbd1 at kbdmux0 >> 000.000045 [4346] netmap_init netmap: loaded module >> [ath_hal] loaded >> nexus0 >> efirtc0: >> efirtc0: registered as a time-of-day clock, resolution 1.000000s >> cryptosoft0: >> aesni0: >> acpi0: >> acpi_ec0: port 0x62,0x66 on acpi0 >> acpi0: Power Button (fixed) >> cpu0: on acpi0 >> attimer0: port 0x40-0x43 irq 0 on acpi0 >> Timecounter "i8254" frequency 1193182 Hz quality 0 >> Event timer "i8254" frequency 1193182 Hz quality 100 >> hpet0: iomem 0xfed00000-0xfed003ff on acpi0 >> Timecounter "HPET" frequency 24000000 Hz quality 950 >> Event timer "HPET" frequency 24000000 Hz quality 550 >> Event timer "HPET1" frequency 24000000 Hz quality 440 >> Event timer "HPET2" frequency 24000000 Hz quality 440 >> Event timer "HPET3" frequency 24000000 Hz quality 440 >> Event timer "HPET4" frequency 24000000 Hz quality 440 >> atrtc0: port 0x70-0x71 irq 8 on acpi0 >> atrtc0: registered as a time-of-day clock, resolution 1.000000s >> Event timer "RTC" frequency 32768 Hz quality 0 >> Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 >> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0 >> acpi_lid0: on acpi0 >> acpi_button0: on acpi0 >> pcib0: port 0xcf8-0xcff on acpi0 >> pci0: on pcib0 >> vgapci0: port 0xe000-0xe03f mem 0xf2000000-0xf2ffffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0 >> vgapci0: Boot video device >> xhci0: mem 0xf4220000-0xf422ffff at device 20.0 on pci0 >> xhci0: 32 bytes context size, 64-bit DMA >> usbus0 on xhci0 >> usbus0: 5.0Gbps Super Speed USB v3.0 >> pci0: at device 22.0 (no driver attached) >> ahci0: port 0xe080-0xe087,0xe088-0xe08b,0xe060-0xe07f mem 0xf4248000-0xf4249fff,0xf424f000-0xf424f0ff,0xf424d000-0xf424d7ff at device 23.0 on pci0 >> ahci0: AHCI v1.31 with 1 6Gbps ports, Port Multiplier not supported >> ahcich1: at channel 1 on ahci0 >> pcib1: at device 28.0 on pci0 >> pci1: on pcib1 >> pci1: at device 0.0 (no driver attached) >> pcib2: at device 28.2 on pci0 >> pci2: on pcib2 >> pci2: at device 0.0 (no driver attached) >> pcib3: at device 29.0 on pci0 >> pci3: on pcib3 >> vgapci1: port 0xd000-0xd07f mem 0xf3000000-0xf3ffffff,0xe0000000-0xefffffff,0xf0000000-0xf1ffffff at device 0.0 on pci3 >> isab0: at device 31.0 on pci0 >> isa0: on isab0 >> pci0: at device 31.2 (no driver attached) >> hdac0: mem 0xf4240000-0xf4243fff,0xf4230000-0xf423ffff at device 31.3 on pci0 >> em0: mem 0xf4200000-0xf421ffff at device 31.6 on pci0 >> em0: Using 1024 TX descriptors and 1024 RX descriptors >> em0: Using an MSI interrupt >> em0: Ethernet address: 54:ee:75:cb:0d:e3 >> em0: netmap queues/slots: TX 1/1024, RX 1/1024 >> acpi_tz0: on acpi0 >> atkbdc0: port 0x60,0x64 irq 1 on acpi0 >> atkbd0: irq 1 on atkbdc0 >> kbd0 at atkbd0 >> atkbd0: [GIANT-LOCKED] >> psm0: irq 12 on atkbdc0 >> psm0: [GIANT-LOCKED] >> WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 13.0. >> psm0: model Synaptics Touchpad, device ID 0 >> battery0: on acpi0 >> battery1: on acpi0 >> acpi_acad0: on acpi0 >> orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0 >> hwpstate_intel0: on cpu0 >> hwpstate_intel1: on cpu1 >> hwpstate_intel2: on cpu2 >> hwpstate_intel3: on cpu3 >> Timecounters tick every 1.000 msec >> ZFS filesystem version: 5 >> ZFS storage pool version: features support (5000) >> hdacc0: at cad 0 on hdac0 >> ugen0.1: <0x8086 XHCI root HUB> at usbus0 >> hdaa0: at nid 1 on hdacc0 >> pcm0: at nid 20 and 26 on hdaa0 >> pcm1: at nid 21 and 18 on hdaa0 >> hdacc1: at cad 2 on hdac0 >> hdaa1: at nid 1 on hdacc1 >> pcm2: at nid 3 on hdaa1 >> Trying to mount root from zfs:zroot/ROOT/default []... >> Root mount waiting for: usbus0 CAM >> WARNING: WITNESS option enabled, expect reduced performance. >> uhub0 on usbus0 >> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 >> ada0 at ahcich1 bus 0 scbus0 target 0 lun 0 >> ada0: ACS-2 ATA SATA 3.x device >> ada0: Serial Number S39FNX0J625463T >> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) >> ada0: Command Queueing enabled >> ada0: 488386MB (1000215216 512 byte sectors) >> ada0: quirks=0x3<4K,NCQ_TRIM_BROKEN> >> GEOM_ELI: Device ada0p4.eli created. >> GEOM_ELI: Encryption: AES-XTS 256 >> GEOM_ELI: Crypto: accelerated software >> uhub0: 18 ports with 18 removable, self powered >> Root mount waiting for: usbus0 >> ugen0.2: at usbus0 >> Root mount waiting for: usbus0 >> ugen0.3: at usbus0 >> ugen0.4: at usbus0 >> Root mount waiting for: usbus0 >> ugen0.5: at usbus0 >> lo0: link state changed to UP >> pchtherm0: mem 0xf424b000-0xf424bfff at device 20.2 on pci0 >> iwm0: mem 0xf4000000-0xf4001fff at device 0.0 on pci2 >> iwm0: hw rev 0x200, fw ver 22.361476.0, address f4:8c:50:50:22:83 >> ichsmb0: port 0xefa0-0xefbf mem 0xf424e000-0xf424e0ff at device 31.4 on pci0 >> smbus0: on ichsmb0 >> acpi_wmi0: on acpi0 >> acpi_wmi0: Embedded MOF found >> ACPI: \134_SB.WMI1.WQBA: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361) >> acpi_wmi1: on acpi0 >> acpi_wmi1: Embedded MOF found >> ACPI: \134_SB.WMI2.WQBB: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361) >> acpi_wmi2: on acpi0 >> acpi_wmi2: Embedded MOF found >> ACPI: \134_SB.WMI3.WQBC: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361) >> uplcom0 on uhub0 >> uplcom0: on usbus0 >> wlan0: Ethernet address: f4:8c:50:50:22:83 >> ng_ubt: HCI command 0xfc05 timed out >> ubt0 on uhub0 >> ubt0: on usbus0 >> wlan0: link state changed to UP >> WARNING: attempt to domain_add(bluetooth) after domainfinalize() >> WARNING: attempt to domain_add(netgraph) after domainfinalize() >> iwm0: code ce, frame 2/216 b800002c unhandled >> Security policy loaded: MAC/ntpd (mac_ntpd) >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > Hi. > You would be bitten by a known issue with ThinkPad P50s described in > rtsx (4) man page. > > Try adding dev.rtsx.0.inversion=1 in /boot/loader.conf. I wonder if it's possible to add the workarounds to the driver itself based on "smbios.system.product" or "smbios.system.version" values returned by kern_getenv() as done in some other places (sys/dev/mii/brgphy.c, sys/dev/nfe/if_nfe.c)? For me, "family"/"product" is "ThinkPad P51", and "product" is specific model, "20HH001RRT"; there are different ones under the same family. > Unfortunately, man pages for head cannot read via FreeBSD project top > page. So read raw manpage data with svn commit mail archive below. > > https://lists.freebsd.org/pipermail/svn-src-head/2020-November/141972.html There's a "13.0-current" selection in drop-down menu, wonder how often is the man page list regenerated. > In addition, write attempts to write-protected card causes 100% panic. > For example, sysutils/automount trys fsck on mount. > This causes 100% panic (not only rtsx, but every adapters), avoidable > by write-protect off.