Received: by 10.213.65.68 with SMTP id h4csp397426imn; Sat, 7 Apr 2018 00:55:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+QTa4FgYyz9S+cu4hrulsh3A6eqpppnOo06lKiWNTu+L/aFsN+GtPAoYDc3DtqG3kFUsd0 X-Received: by 10.99.182.6 with SMTP id j6mr19670376pgf.122.1523087740499; Sat, 07 Apr 2018 00:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523087740; cv=none; d=google.com; s=arc-20160816; b=L7HdO2v8LALnKScxc60bLGlwrDjIjj65a7z7kGvKBpcpzCsoCyXsZ61OYeoV7+Doa7 pz8bcg838AAe66k2k6dNKuGsosDVok7TXUkfxFDmpJSAuh5F97qLrU8U4dZJYkPjF4gh VTpqc6MjeSjLueGzOWtDsUJfjbsR8wddyQusgiJmN5l3CcF0cZblXWdRG+7CJ7USlWrR FG3LNaF40CZ45h6FDqZ9/nd6iQSirl/2B1Ybx/ehQID9SqBss68lLsDoWikjfJqTY+ih 9gYvsTN6jXsDLeUF4wrhB/rCFJiYTPgGtN3EaG1X4mv7ghPOuo2os2v+DkmpdE6UtBmc Z0mA== 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 :mime-version:dkim-signature:arc-authentication-results; bh=GJKKWT/wKZtnxMY50cfYbO0o885psJpL5XM/Fqui2xA=; b=yZxroc6LugObd6LU9LE8kN1VoOEshC48QLTgsMbUpSNtDOBgeTJzAiODusHMK6iO0c gjcsMo/M+mUTQMqA6sx+QINEzdsvzif/bL853rvSLQVry9084DnfB/9l9Uz4CahiRgi1 zfbCZyJ9oM6tqBkN2uG2Ji9xhDZFOVa7kayluOH1ltw/x+twI2hoRZMZnVkI/yDPRv6R yeLPQ894hcL/n3QCoJhoNK5i7IwfyVC7znSFiKSfnHBtNkgZFsoLOwUvPtxmz3UHHT8Q J7+QrRA+VS4lbnlg+STkbbtnOWCdBDIJ7f3n94+UdWWxPjd/57X1cqgLSYzJ03cvOPiQ 6VXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quora.org header.s=google header.b=SR40uGs3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b91-v6si10190480plb.90.2018.04.07.00.55.03; Sat, 07 Apr 2018 00:55:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@quora.org header.s=google header.b=SR40uGs3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751681AbeDGHuJ (ORCPT + 99 others); Sat, 7 Apr 2018 03:50:09 -0400 Received: from mail-io0-f180.google.com ([209.85.223.180]:39473 "EHLO mail-io0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbeDGHuH (ORCPT ); Sat, 7 Apr 2018 03:50:07 -0400 Received: by mail-io0-f180.google.com with SMTP id v13so4240402iob.6 for ; Sat, 07 Apr 2018 00:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quora.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=GJKKWT/wKZtnxMY50cfYbO0o885psJpL5XM/Fqui2xA=; b=SR40uGs3/LfHRPPm88jE4NqgJI40vJKqL7rbpmnZykSQgXM7x8TZTVgr5mlbetE61R gKBXMaFJYUk3V46Yl45VFoCQxIk9h55oNWvYtrCs87cvRZqURHD9pM+6Ce/PxmhxojN1 ZKwR29vAI9uZ2rLRz0VP0J9+WmexFgt8dg4rQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=GJKKWT/wKZtnxMY50cfYbO0o885psJpL5XM/Fqui2xA=; b=FLsibBxs4ENA+bDQllKdybb3t3zIS/SOegTE34Uc+r0Blo5dYEM8LtJVTSfFNpOKDh bv9btHoHHfuZC9d2PbBCVcRNEDKgWjC99ngJU6HLJANkXaNW3WwINSxrrPTlRhkjYhXK 2JfdE2KeDyYenOGgpoxo8YmSe2D3eiW/uu2GGrZWaRUYhJAgQEC9Wd3qSNu0r9NP/PYv xQPlM6m5z+XZYnExp1EO3V2SDtCwRCY1bEkqV34IWs8egC6Rlei8GomrDtz0xt72Xl5E lm1LPpQSNMeTsdfO8SY4kP9zJy7AkKAF6hnnQwohN2N8TB58O+vc1RXhDU2lsKmKYU4c P4mA== X-Gm-Message-State: AElRT7HO+DbqGnjG9nIDNOXWLb8DIE7hWwoaP35AIsBPmOhnqaADQ5PQ y4mXsxgxT5Ny3mKk/G8R5a4CnRNPPt+Zc87NQ6bfOQ== X-Received: by 10.107.2.7 with SMTP id 7mr27720619ioc.187.1523087406924; Sat, 07 Apr 2018 00:50:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.12.73 with HTTP; Sat, 7 Apr 2018 00:50:06 -0700 (PDT) X-Originating-IP: [175.156.94.175] From: Daniel J Blueman Date: Sat, 7 Apr 2018 15:50:06 +0800 Message-ID: Subject: drm/vc4: false-positive negative cursor position warning To: Eric Anholt , dri-devel@lists.freedesktop.org Cc: Dave Airlie , Linux Kernel 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 Hi Eric et al, In a number of windowing environments (eg GNOME 3) on Raspberry Pi 3B on 4.16.0 arm64, the mouse cursor top-left gets down to x,y -4,-4, tripping WARN_ON_ONCE(plane->state->crtc_x < 0 || plane->state->crtc_y < 0) [1], which therefore seems false-positive. Git history doesn't turn up any reason, eg it could cause undefined hardware behaviour, which it doesn't appear to, so would it be better to drop the warning, or adjust it to trip on x or y < -4 or so? If so, I'll prepare a patch to adjust it. [Side note: simply opening the GNOME 3 Activities menu with libgl1-mesa-dri 17.3.7 is a reliable way to reproduce "[drm] Resetting GPU"] Thanks, Dan -- [1] WARNING: CPU: 3 PID: 966 at drivers/gpu/drm/vc4/vc4_plane.c:771 vc4_plane_async_set_fb+0x98/0xa0 CPU: 3 PID: 966 Comm: Xorg Tainted: G S 4.16.0+ #13 Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT) pstate: 00000005 (nzcv daif -PAN -UAO) pc : vc4_plane_async_set_fb+0x98/0xa0 lr : vc4_plane_async_set_fb+0x4c/0xa0 sp : ffff0000086ab9b0 x29: ffff0000086ab9b0 x28: 0000000000000000 x27: 0000000000000009 x26: 00000000fffffffc x25: ffffa81b36ca8b00 x24: ffffa81b30667c00 x23: 0000000000400000 x22: ffffa81b30790400 x21: ffffa81b36ca8b00 x20: ffffa81b30a53018 x19: ffffa81b30667c00 x18: ffffffffffffffff x17: 0000ffffb4fcec50 x16: ffff3447cc0e8588 x15: ffff3447d14fbf88 x14: ffff344851bb337f x13: ffff3447d1bb338d x12: ffff3447d153b000 x11: ffff3447d14fc7f0 x10: ffff3447ccb3dac8 x9 : 00000000ffffffd0 x8 : 0000000000000005 x7 : 3932373639343932 x6 : 000000000000056e x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 x2 : ed59bd53d8905e00 x1 : 00000000fffffffc x0 : ffffa81b30667c00 Call trace: vc4_plane_async_set_fb+0x98/0xa0 vc4_update_plane+0x124/0x1a0 __setplane_internal+0x1f4/0x260 drm_mode_cursor_universal+0xf4/0x220 drm_mode_cursor_common+0x19c/0x218 drm_mode_cursor2_ioctl+0x34/0x48 drm_ioctl_kernel+0x70/0xd8 drm_ioctl+0x30c/0x438 do_vfs_ioctl+0xc4/0x880 SyS_ioctl+0x8c/0xa8 el0_svc_naked+0x30/0x34 -- Daniel J Blueman