From owner-freebsd-x11@freebsd.org Sun Jan 24 23:19:41 2021 Return-Path: Delivered-To: freebsd-x11@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 ED2754DF198 for ; Sun, 24 Jan 2021 23:19:41 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DP88s5Myyz4kh5 for ; Sun, 24 Jan 2021 23:19:41 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: by mailman.nyi.freebsd.org (Postfix) id B6B224DF197; Sun, 24 Jan 2021 23:19:41 +0000 (UTC) Delivered-To: x11@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 B676F4DF196 for ; Sun, 24 Jan 2021 23:19:41 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (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 4DP88r2CSLz4kvB for ; Sun, 24 Jan 2021 23:19:40 +0000 (UTC) (envelope-from roberthuff@rcn.com) DKIM-Signature: v=1; a=rsa-sha1; d=rcn.com; s=20180516; c=relaxed/simple; q=dns/txt; i=@rcn.com; t=1611530379; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=eFsXfQ60DTC47BSyJUn6zxLA/og=; b=P0zMn+X8GXDMhgzDvlepivniJ60HFU0lanVJXZrm0kkSWpPVgvmv/ISqhSnErDk5 YQm6NoNxhAZxV56Sl6DsbesQBFOHRpj/dTEmBZWPLPaXQFvFZZgunl2XIdZww5PL XfMHaJy2LJ5/gI5NybMSsMLC7l1neRdaaDQ3BWM3Qs2yhETWn8fs5vkczmfhxCj8 VUiTQyq4u3wqmpJw9WQ16IOdgy7+Jo4UdntAemwZyZYr33UyRSjZ5UulYzsLxePs 3lsl0xfDnrxrybMQPC6r1T9oLh+ICzaml+5fa6zpoJS5lRn7PpHbrvKbiviWpYkL 0UpKyDZZjdEDAGkYLB1IoA==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.3 cv=WI8BoUkR c=1 sm=1 tr=0 cx=a_idp_x a=9TgA2UwI6Wy+6BV4wQM/cQ==:117 a=9TgA2UwI6Wy+6BV4wQM/cQ==:17 a=KGjhK52YXX0A:10 a=kj9zAlcOel0A:10 a=XRQyMpdBKAEA:10 a=EmqxpYm9HcoA:10 a=48faUk6PgeAA:10 a=LfHbLNSW0RYK-v-Bdk0A:9 a=CjuIK1q_8ugA:10 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: cm9iZXJ0aHVmZkByY24uY29t Received: from [209.6.230.48] ([209.6.230.48:53061] helo=jerusalem.litteratus.org.litteratus.org) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.25.56547 r(Core:3.6.25.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id 9B/5C-14242-A800E006; Sun, 24 Jan 2021 18:19:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24590.137.690675.515036@jerusalem.litteratus.org> Date: Sun, 24 Jan 2021 18:19:37 -0500 From: Robert Huff To: current@freebsd.org, x11@freebsd.org Subject: loading drm crashes system X-Mailer: VM 8.2.0b under 27.1 (amd64-portbld-freebsd13.0) X-Vade-Verditct: clean X-Vade-Analysis: gggruggvucftvghtrhhoucdtuddrgeduledrvddvgddtjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfujgfpteevqfftnfgvrghrnhhinhhgpdftvefppdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhepgggtgffkfffhvffuofesthejredtredtvdenucfhrhhomheptfhosggvrhhtucfjuhhffhcuoehrohgsvghrthhhuhhffhesrhgtnhdrtghomheqnecuggftrfgrthhtvghrnhepteehtedugefgtdeiveefueekffejffdvveelkedtueffkefhheektdeukefhteetnecuffhomhgrihhnpegsohhothdrihhnnecukfhppedvtdelrdeirddvfedtrdegkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtdelrdeirddvfedtrdegkeenpdhmrghilhhfrhhomheprhhosggvrhhthhhufhhfsehrtghnrdgtohhmnedprhgtphhtthhopegtuhhrrhgvnhhtsehfrhgvvggsshgurdhorhhgne X-Rspamd-Queue-Id: 4DP88r2CSLz4kvB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rcn.com header.s=20180516 header.b=P0zMn+X8; dmarc=pass (policy=none) header.from=rcn.com; spf=pass (mx1.freebsd.org: domain of roberthuff@rcn.com designates 69.168.97.78 as permitted sender) smtp.mailfrom=roberthuff@rcn.com X-Spamd-Result: default: False [-5.10 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[rcn.com:s=20180516]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:69.168.97.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[rcn.com:dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[69.168.97.78:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; SPAMHAUS_ZRD(0.00)[69.168.97.78:from:127.0.2.255]; DKIM_TRACE(0.00)[rcn.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[rcn.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[69.168.97.78:from]; ASN(0.00)[asn:36271, ipnet:69.168.97.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[x11]; RCVD_IN_DNSWL_LOW(-0.10)[69.168.97.78:from] X-Mailman-Approved-At: Mon, 25 Jan 2021 09:52:47 +0000 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 23:19:42 -0000 Hello: On a system now running: 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-d6327ae8c1: Sun Jan 24 14:16:54 EST 2021 amd64 (src+ports updated at midnight US EST) with PORTS_MODULES="drm-current-kmod gpu-firmware-kmod", starting the system _without_ loading drm results in a usable system. Loading drm - whether via kldlist in rc.conf or by kldload at the console immediately after start-up - instantly crashes the system; the screen goes blank and the lights on the monitor report no signal from the system. There is nothing in dmesg.boot. In messages I find (75 lines follow): Jan 24 17:35:22 jerusalem kernel: [drm:drm_core_init] Initialized Jan 24 17:35:22 jerusalem kernel: [drm] radeon kernel modesetting enabled. Jan 24 17:35:22 jerusalem kernel: drmn0: on vgapci0 Jan 24 17:35:22 jerusalem kernel: vgapci0: child drmn0 requested pci_enable_io Jan 24 17:35:22 jerusalem kernel: [drm:drm_minor_register] Jan 24 17:35:22 jerusalem kernel: [drm:drm_minor_register] new minor registered 128 Jan 24 17:35:22 jerusalem kernel: [drm:drm_minor_register] Jan 24 17:35:22 jerusalem kernel: [drm:drm_minor_register] new minor registered 0 Jan 24 17:35:22 jerusalem kernel: [drm] initializing kernel modesetting (RS780 0x1002:0x9614 0x1849:0x9614 0x00). Jan 24 17:35:22 jerusalem kernel: [drm:radeon_get_bios] ATOMBIOS detected Jan 24 17:35:22 jerusalem kernel: [drm ERROR :radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATOM IIO Jan 24 17:35:22 jerusalem kernel: [drm:atom_allocate_fb_scratch] atom firmware requested 17ffb000 20kb Jan 24 17:35:22 jerusalem kernel: drmn0: VRAM: 384M 0x00000000C0000000 - 0x00000000D7FFFFFF (384M used) Jan 24 17:35:22 jerusalem kernel: drmn0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF Jan 24 17:35:22 jerusalem kernel: [drm] Detected VRAM RAM=384M, BAR=256M Jan 24 17:35:22 jerusalem kernel: [drm] RAM width 32bits DDR Jan 24 17:35:22 jerusalem kernel: [drm] radeon: 384M of VRAM memory ready Jan 24 17:35:22 jerusalem kernel: [drm] radeon: 512M of GTT memory ready. Jan 24 17:35:22 jerusalem kernel: [drm:r600_init_microcode] Jan 24 17:35:22 jerusalem kernel: [drm] Loading RS780 Microcode Jan 24 17:35:23 jerusalem kernel: drmn0: fail (0) to get firmware image with name: radeon/RS780_pfp.bin Jan 24 17:35:23 jerusalem kernel: drmn0: successfully loaded firmware image with mapped name: radeon_RS780_pfp_bin Jan 24 17:35:23 jerusalem kernel: drmn0: fail (0) to get firmware image with name: radeon/RS780_me.bin Jan 24 17:35:23 jerusalem kernel: drmn0: successfully loaded firmware image with mapped name: radeon_RS780_me_bin Jan 24 17:35:24 jerusalem kernel: drmn0: fail (0) to get firmware image with name: radeon/R600_rlc.bin Jan 24 17:35:24 jerusalem kernel: drmn0: successfully loaded firmware image with mapped name: radeon_R600_rlc_bin Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] 3 Power State(s) Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] State 0: Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] Default[drm:radeon_pm_print_states] 1 Clock Mode(s) Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] 0 e: 800000 Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] State 1: Performance Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] 1 Clock Mode(s) Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] 0 e: 500000 Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] State 2: Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] 1 Clock Mode(s) Jan 24 17:35:24 jerusalem kernel: [drm:radeon_pm_print_states] 0 e: 500000 Jan 24 17:35:24 jerusalem kernel: [drm] radeon: power management initialized Jan 24 17:35:24 jerusalem kernel: drmn0: fail (0) to get firmware image with name: radeon/RS780_uvd.bin Jan 24 17:35:24 jerusalem kernel: drmn0: successfully loaded firmware image with mapped name: radeon_RS780_uvd_bin Jan 24 17:35:24 jerusalem kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072 Jan 24 17:35:34 jerusalem kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0146000). Jan 24 17:35:34 jerusalem kernel: drmn0: WB enabled Jan 24 17:35:34 jerusalem kernel: drmn0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0x0xfffff801cb29cc00 Jan 24 17:35:34 jerusalem kernel: drmn0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0x0xfffff800d0056038 Jan 24 17:35:34 jerusalem kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Jan 24 17:35:34 jerusalem kernel: [drm] Driver supports precise vblank timestamp query. Jan 24 17:35:34 jerusalem kernel: drmn0: radeon: MSI limited to 32-bit Jan 24 17:35:34 jerusalem kernel: [drm:drm_irq_install] irq=18 Jan 24 17:35:34 jerusalem kernel: [drm] radeon: irq initialized. Jan 24 17:35:34 jerusalem kernel: [drm:r600_irq_process] r600_irq_process start: rptr 0, wptr 32 Jan 24 17:35:34 jerusalem kernel: [drm:r600_irq_process] IH: D1 flip Jan 24 17:35:34 jerusalem kernel: [drm:r600_irq_process] IH: D2 flip Jan 24 17:35:34 jerusalem kernel: [drm] ring test on 0 succeeded in 1 usecs Jan 24 17:35:34 jerusalem kernel: [drm ERROR :uvd_v1_0_start] UVD not responding, trying to reset the VCPU!!! Jan 24 17:35:35 jerusalem kernel: [drm ERROR :uvd_v1_0_start] UVD not responding, giving up!!! Jan 24 17:35:35 jerusalem kernel: drmn0: failed initializing UVD (-1). Jan 24 17:35:35 jerusalem kernel: [drm:r600_irq_set] r600_irq_set: sw int Jan 24 17:35:35 jerusalem kernel: [drm] ib test on ring 0 succeeded in 0 usecs Jan 24 17:35:35 jerusalem kernel: [drm:radeon_atombios_get_tv_info] Unknown TV standard; defaulting to NTSC Jan 24 17:35:35 jerusalem kernel: [drm] Connector VGA-1: get mode from tunables: Jan 24 17:35:35 jerusalem kernel: [drm] - kern.vt.fb.modes.VGA-1 Jan 24 17:35:35 jerusalem kernel: [drm] - kern.vt.fb.default_mode Jan 24 17:35:35 jerusalem kernel: [drm:drm_connector_get_cmdline_mode] cmdline mode for connector VGA-1 800x600@60Hz Jan 24 17:35:35 jerusalem kernel: [drm:drm_sysfs_connector_add] adding "VGA-1" to sysfs Jan 24 17:35:35 jerusalem kernel: [drm:drm_sysfs_hotplug_event] generating hotplug event Jan 24 17:35:35 jerusalem kernel: [drm] Connector DVI-D-1: get mode from tunables: Jan 24 17:35:35 jerusalem kernel: [drm] - kern.vt.fb.modes.DVI-D-1 Jan 24 17:35:35 jerusalem kernel: [drm] - kern.vt.fb.default_mode Jan 24 17:35:35 jerusalem kernel: [drm:drm_connector_get_cmdline_mode] cmdline mode for connector DVI-D-1 800x600@60Hz Jan 24 17:35:35 jerusalem kernel: [drm:drm_sysfs_connector_add] adding "DVI-D-1" to sysfs Jan 24 17:35:35 jerusalem kernel: [drm:drm_sysfs_hotplug_event] generating hotplug event Jan 24 17:35:35 jerusalem kernel: [drm] Radeon Display Connectors Jan 24 17:35:35 jerusalem kernel: [drm] Connector 0: Jan 24 17:35:35 jerusalem kernel: [drm] VGA-1 Jan 24 17:35:35 jerusalem kernel: [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c Jan 24 17:35:35 jerusalem kernel: [drm] Encoders: Jan 24 17:35:35 jerusalem kernel: [drm] CRT1: INTERNAL_KLDSCP_DAC1 Jan 24 17:35:35 jerusalem kernel: [drm] Connector 1: Jan 24 17:35:35 jerusalem kernel: [drm] DVI-D-1 Jan 24 17:35:35 jerusalem kernel: [drm] HPD3 Jan 24 17:35:35 jerusalem kernel: [drm] DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c Jan 24 17:35:35 jerusalem kernel: [drm] Encoders: Jan 24 17:35:35 jerusalem kernel: [drm] DFP3: INTERNAL_KLDSCP_LVTMA Jan 24 17:35:35 jerusalem kernel: [drm:r600_irq_set] r600_irq_set: hpd 3 Jan 24 17:35:35 jerusalem kernel: [drm:radeon_atom_encoder_dpms] encoder dpms 21 to mode 3, devices 00000001, active_devices 00000000 Jan 24 17:35:35 jerusalem kernel: [drm:radeon_atom_encoder_dpms] encoder dpms 31 to mode 3, devices 00000200, active_devices 00000000 Jan 24 17:35:35 jerusalem kernel: [drm:drm_crtc_vblank_off] crtc 0, vblank enabled 0, inmodeset 0 Jan 24 17:35:35 jerusalem kernel: [drm:drm_crtc_vblank_off] crtc 1, vblank enabled 0, inmodeset 0 Jan 24 17:35:35 jerusalem kernel: [drm:drm_client_modeset_probe] Jan 24 17:35:35 jerusalem kernel: [drm:drm_mode_object_get] OBJ ID: 46 (2) Jan 24 17:35:35 jerusalem kernel: [drm:drm_mode_object_get] OBJ ID: 48 (2) Jan 24 17:35:35 jerusalem kernel: [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:46:VGA-1] Jan 24 17:35:35 jerusalem kernel: [drm] Cannot find any crtc or sizes Jan 24 17:35:35 jerusalem kernel: [drm] Initialized radeon 2.50.0 20080528 for drmn0 on minor 0 Jan 24 17:35:36 jerusalem kernel: [drm] Cannot find any crtc or sizes [insert image of open jaw and glassy-eyed stare] The GPU is a Radeon HD 3300, and at one point this used to work. Help, please? Respectfully, Robert Huff