Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp109520pxa; Tue, 18 Aug 2020 17:41:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFmWsytG/m7YyyG1Uar1cEbPBoQSXflrTAk8hUpo1rOQRNChpJQcmuUuxMyRpjfLyTabJ/ X-Received: by 2002:a17:906:4d89:: with SMTP id s9mr21676040eju.365.1597797670145; Tue, 18 Aug 2020 17:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597797670; cv=none; d=google.com; s=arc-20160816; b=khKlNydRnO8zuR+MaA0RJ95FrnjRLvkemy8iQCrlPASkSWFinh6foJ/vI0Et/vmVZM MycPEVXvC7fxyPAMOmmf+bymj528vdCftdL+tHG7MKtLeEDcm5tXqLchAKv/c1X/bOXW agT49eFxeTznc4/ycXajIefZltJnz+/lCPMme62H8YvGTl2BXgJVYgS5AOZLU0I7W3MR qOYSpb/294L2ytOmI4DVXvO3Ft3WuCbVvwtZ7+wMx1rzMINtVNbtqoVsbmt8wBJIDXYA KV6B6KN2p7RHC6iWK/PC4yUydyNixia2lIX3jUttXGBHMRCdmGyhCf6IWA8OTUSqG5t1 35Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yd8RQiYd3lIlnveKq9AD3vAUL0UPw0snW7rgN+Ot8+A=; b=uHKBWVyaTSlENj2ISWg51zYvAPZx4B9o6gzD82ho5QbF3RfsNdoP+AzLP8OwNw1S3b xwyeUxJHDimFM1SSY0zhCUtzKN6sdZxXBXo0sKZjn4SHIl08szZ/49s8XbaBXEcwJM4T nAC0QmglJBu845uVhhIAcX4pKKOR9D+KsA43/UIFAH/+cgYbpzM0mtMysh7tc5fZEq7r IoQOQXq4j9Llp8bNZY2867hF2mMSiobqpAwuIGZXtQl3nlKrAHYDemxCiI1mqibVlN0h yPwTjo7osHrqBxlpwxQnNnLYZt31y6VEbfI7586pzzNHwUuWzm5DYDI0CkNp2h50sqz2 z+Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YWKYVyFK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si13766059edi.330.2020.08.18.17.40.45; Tue, 18 Aug 2020 17:41:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YWKYVyFK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgHSAid (ORCPT + 99 others); Tue, 18 Aug 2020 20:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgHSAic (ORCPT ); Tue, 18 Aug 2020 20:38:32 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56AA2C061389 for ; Tue, 18 Aug 2020 17:38:30 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id m22so23435109ljj.5 for ; Tue, 18 Aug 2020 17:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yd8RQiYd3lIlnveKq9AD3vAUL0UPw0snW7rgN+Ot8+A=; b=YWKYVyFKZKU8Du8+0eku2p5ObHZXJkU0CbMfnVxdCIL9RSlgf5EBwXe+dKU14eyYUO +iL7GeDnuanZIJgxOkMR4E8EbAjyPFiGvW6/wCGigLTZ8AKm6yL1sM1IyuikinZ8PyH4 d20kY/3xnxM/f+cb3jcvtnmo+t0BTkuumJlJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yd8RQiYd3lIlnveKq9AD3vAUL0UPw0snW7rgN+Ot8+A=; b=l7IC0Hk2E7I12CE3qAApV33qU21MjqEhWd+JDo5yjkcHFkYube5tEyL993WRNIG5Sr vNx2nOL9n73oT31En0FGG9UJMkkIQnXaRtdsS/Csm7N2/qOgsq9CeWR55GEpx8+2UFsY Wl90FvgrSoz0BgQcVPxXE/0ZNdwhfVhiuNEc+UgkUgMU6drlPasf6i9f5RWIFUQ9RpRx Jblq2/vUEh2a/hOycnKUzQ2LR+3UsyjDUfYDq8lOsoiiqTgYFCVqv/0IHbj85g/I78LR FjDIn7JAsPDw0MyeJdGVV+XuQ5R8+95ootTok4H1fB4MmtJWpakk2CFYyo47deWrwaYr PPgQ== X-Gm-Message-State: AOAM533ErZ8y5BbtCGA+jOYz5OfO1PPUANtuo4PjBQ8F4NT6N0RIX5Wm r8yeqlNi12/mR/nUAai0BSBdP7hDViM/iA== X-Received: by 2002:a2e:98ce:: with SMTP id s14mr10144964ljj.358.1597797508207; Tue, 18 Aug 2020 17:38:28 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id f3sm6417860ljo.81.2020.08.18.17.38.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Aug 2020 17:38:27 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id t23so23480424ljc.3 for ; Tue, 18 Aug 2020 17:38:26 -0700 (PDT) X-Received: by 2002:a2e:7615:: with SMTP id r21mr10229382ljc.371.1597797506311; Tue, 18 Aug 2020 17:38:26 -0700 (PDT) MIME-Version: 1.0 References: <20200817161132.GA4711@amd> In-Reply-To: <20200817161132.GA4711@amd> From: Linus Torvalds Date: Tue, 18 Aug 2020 17:38:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 5.9-rc1: graphics regression moved from -next to mainline To: Pavel Machek , Chris Wilson , Matthew Auld Cc: kernel list , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping on this? The code disassembles to 24: 8b 85 d0 fd ff ff mov -0x230(%ebp),%eax 2a:* c7 03 01 00 40 10 movl $0x10400001,(%ebx) <-- trapping instruction 30: 89 43 04 mov %eax,0x4(%ebx) 33: 8b 85 b4 fd ff ff mov -0x24c(%ebp),%eax 39: 89 43 08 mov %eax,0x8(%ebx) 3c: e9 jmp ... which looks like is one of the cases in __reloc_entry_gpu(). I *think* it's this one: } else if (gen >= 3 && !(IS_I915G(eb->i915) || IS_I915GM(eb->i915))) { *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL; *batch++ = addr; *batch++ = target_addr; where that "batch" pointer is 0xf8601000, so it looks like it just overflowed into the next page that isn't there. The cleaned-up call trace is drm_ioctl+0x1f4/0x38b -> drm_ioctl_kernel+0x87/0xd0 -> i915_gem_execbuffer2_ioctl+0xdd/0x360 -> i915_gem_do_execbuffer+0xaab/0x2780 -> eb_relocate_vma but there's a lot of inling going on, so.. The obvious suspect is commit 9e0f9464e2ab ("drm/i915/gem: Async GPU relocations only") but that's going purely by "that seems to be the main relocation change this mmrge window". Linus On Mon, Aug 17, 2020 at 9:11 AM Pavel Machek wrote: > > Hi! > > After about half an hour of uptime, screen starts blinking on thinkpad > x60 and machine becomes unusable. > > I already reported this in -next, and now it is in mainline. It is > 32-bit x86 system. > > > Pavel > > > Aug 17 17:36:04 amd ovpn-castor[2828]: UDPv4 link local (bound): > [undef] > Aug 17 17:36:04 amd ovpn-castor[2828]: UDPv4 link remote: > [AF_INET]87.138.219.28:1194 > Aug 17 17:36:23 amd kernel: BUG: unable to handle page fault for > address: f8601000 > Aug 17 17:36:23 amd kernel: #PF: supervisor write access in kernel > mode > Aug 17 17:36:23 amd kernel: #PF: error_code(0x0002) - not-present page > Aug 17 17:36:23 amd kernel: *pdpt = 00000000318f2001 *pde = > 0000000000000000 > Aug 17 17:36:23 amd kernel: Oops: 0002 [#1] PREEMPT SMP PTI > Aug 17 17:36:23 amd kernel: CPU: 1 PID: 3004 Comm: Xorg Not tainted > 5.9.0-rc1+ #86 > Aug 17 17:36:23 amd kernel: Hardware name: LENOVO 17097HU/17097HU, > BIOS 7BETD8WW (2.19 ) 03/31 > /2011 > Aug 17 17:36:23 amd kernel: EIP: eb_relocate_vma+0xcf6/0xf20 > Aug 17 17:36:23 amd kernel: Code: e9 ff f7 ff ff c7 85 c0 fd ff ff ed > ff ff ff c7 85 c4 fd ff > ff ff ff ff ff 8b 85 c0 fd ff ff e9 a5 f8 ff ff 8b 85 d0 fd ff ff > 03 01 00 40 10 89 43 04 > 8b 85 b4 fd ff ff 89 43 08 e9 9f f7 ff > Aug 17 17:36:23 amd kernel: EAX: 003c306c EBX: f8601000 ECX: 00847000 > EDX: 00000000 > Aug 17 17:36:23 amd kernel: ESI: 00847000 EDI: 00000000 EBP: f1947c68 > ESP: f19479fc > Aug 17 17:36:23 amd kernel: DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: > 0068 EFLAGS: 00210246 > Aug 17 17:36:23 amd kernel: CR0: 80050033 CR2: f8601000 CR3: 31a1e000 > CR4: 000006b0 > Aug 17 17:36:23 amd kernel: Call Trace: > Aug 17 17:36:23 amd kernel: ? i915_vma_pin+0xc5/0x8c0 > Aug 17 17:36:23 amd kernel: ? __mutex_unlock_slowpath+0x2b/0x280 > Aug 17 17:36:23 amd kernel: ? __active_retire+0x7e/0xd0 > Aug 17 17:36:23 amd kernel: ? mutex_unlock+0xb/0x10 > Aug 17 17:36:23 amd kernel: ? i915_vma_pin+0xc5/0x8c0 > Aug 17 17:36:23 amd kernel: ? __lock_acquire.isra.31+0x261/0x530 > Aug 17 17:36:23 amd kernel: ? eb_lookup_vmas+0x1f5/0x9e0 > Aug 17 17:36:23 amd kernel: i915_gem_do_execbuffer+0xaab/0x2780 > Aug 17 17:36:23 amd kernel: ? _raw_spin_unlock_irqrestore+0x27/0x40 > Aug 17 17:36:23 amd kernel: ? __lock_acquire.isra.31+0x261/0x530 > Aug 17 17:36:23 amd kernel: ? __lock_acquire.isra.31+0x261/0x530 > Aug 17 17:36:23 amd kernel: ? kvmalloc_node+0x69/0x70 > Aug 17 17:36:23 amd kernel: i915_gem_execbuffer2_ioctl+0xdd/0x360 > Aug 17 17:36:23 amd kernel: ? i915_gem_execbuffer_ioctl+0x2b0/0x2b0 > Aug 17 17:36:23 amd kernel: drm_ioctl_kernel+0x87/0xd0 > Aug 17 17:36:23 amd kernel: drm_ioctl+0x1f4/0x38b > Aug 17 17:36:23 amd kernel: ? i915_gem_execbuffer_ioctl+0x2b0/0x2b0 > Aug 17 17:36:23 amd kernel: ? posix_get_monotonic_timespec+0x1c/0x90 > Aug 17 17:36:23 amd kernel: ? ktime_get_ts64+0x7a/0x1e0 > Aug 17 17:36:23 amd kernel: ? drm_ioctl_kernel+0xd0/0xd0 > Aug 17 17:36:23 amd kernel: __ia32_sys_ioctl+0x1ad/0x799 > Aug 17 17:36:23 amd kernel: ? debug_smp_processor_id+0x12/0x20 > Aug 17 17:36:23 amd kernel: ? exit_to_user_mode_prepare+0x4f/0x100 > Aug 17 17:36:23 amd kernel: do_int80_syscall_32+0x2c/0x40 > Aug 17 17:36:23 amd kernel: entry_INT80_32+0x111/0x111 > Aug 17 17:36:23 amd kernel: EIP: 0xb7fbc092 > Aug 17 17:36:23 amd kernel: Code: 00 00 00 e9 90 ff ff ff ff a3 24 00 > 00 00 68 30 00 00 00 e9 80 ff ff ff ff a3 e8 ff ff ff 66 90 00 00 00 > 00 00 00 00 00 cd 80 8d b4 26 00 00 00 00 8d b6 00 00 00 00 8b > 1c 24 c3 8d b4 26 00 > Aug 17 17:36:23 amd kernel: EAX: ffffffda EBX: 0000000a ECX: c0406469 > EDX: bff0ae3c > Aug 17 17:36:23 amd kernel: ESI: b73aa000 EDI: c0406469 EBP: 0000000a > ESP: bff0adb4 > Aug 17 17:36:23 amd kernel: DS: 007b ES: 007b FS: 0000 GS: 0033 SS: > 007b EFLAGS: 00200296 > Aug 17 17:36:23 amd kernel: ? asm_exc_nmi+0xcc/0x2bc > Aug 17 17:36:23 amd kernel: Modules linked in: > Aug 17 17:36:23 amd kernel: CR2: 00000000f8601000 > Aug 17 17:36:23 amd kernel: ---[ end trace 2ca9775068bbac06 ]--- > > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html