From patchwork Wed Jan 17 08:21:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Hellstrom X-Patchwork-Id: 10168733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D17B1601D3 for ; Wed, 17 Jan 2018 08:21:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B96A825D9E for ; Wed, 17 Jan 2018 08:21:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABDB526E1A; Wed, 17 Jan 2018 08:21:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3A2AC25D9E for ; Wed, 17 Jan 2018 08:21:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F1428959D; Wed, 17 Jan 2018 08:21:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0074.outbound.protection.outlook.com [104.47.41.74]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB30E8959D for ; Wed, 17 Jan 2018 08:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PHFpD9rhqJM8OLOtPP/RiLMyGY1Lqfq3izp/TBAD6So=; b=ogttMzItydeqyrfIeQnnX8ezjWLe4qNQkGFYMax7E2Y1SXDlQxLtCPUG64jEBUDIrSVmoZ8AHueFgRfASKRlhz0De84M5IUHmrvb9/q1QrHo95+OBx49R/BuKaZoHcFojq19JvZhCaaPXfFMd55gI4HlSzJTuEZYHfgxQy0H20k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=thellstrom@vmware.com; Received: from ubuntu.localdomain (155.4.205.56) by BLUPR05MB753.namprd05.prod.outlook.com (10.141.208.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.9; Wed, 17 Jan 2018 08:21:46 +0000 From: Thomas Hellstrom To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/vmwgfx: Fix a boot time warning Date: Wed, 17 Jan 2018 09:21:25 +0100 Message-Id: <1516177285-2384-1-git-send-email-thellstrom@vmware.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: HE1PR05CA0179.eurprd05.prod.outlook.com (10.171.109.155) To BLUPR05MB753.namprd05.prod.outlook.com (10.141.208.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 138dba40-e4fc-4035-7fec-08d55d835a0c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:BLUPR05MB753; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB753; 3:L+tKW71tTgOnSSMEUTw7wa8ZZcylxvcYiNcgyqRmhn024p2YU5qo+mneo4Rzh6kb6c4yrmjHZ0tPvHt3NO12RV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+OFQllTojIlLlL7H+zM8bWa+LxR2pz3GKo3Bmcgsw5uhmW5MjdOSQFTIak64ZfqotB0rxj8y9n9EUN9+ylE7bnNs2R84cGMZ/Ho8otDpR9iqZsPpy+a4aE0tB8iwD+y1mEeEqfNa8TlmQznZLN3Z4e4drXD5MXjbQj8pKU9gCmyKwTHysTbjkd6hJwcCaeIdEYoyriPUEMc4YfCgrx+bUBzJwzUCBlVsq7D3Bys1AcUIB8GWqf8R27J+Ao0Cwsby; 4:SwpgyxXrGrTHJGw1v9RiQHipm/X2Cwce+3odR2MJd+GRrhFLESzcRWFgBM+rui3HhEba3a9JZR4ppmEFwnUzIaGP2gTkIslfN6tijZcn2Fwhy29zhESGK4/N41w/l8imPzlNAvsBaopmec7KCd9XbEfts4aLvrpsQT1KVYg29nvxhwuEBdzw2d78VzA7ukcU678xHLWMr44fEbVDCYd3/sk5Mc/0hsyyFRdSH03bnmjNF2lF4m6KJrPslZyC1v158Smf8xORbUP6xjM9MptitWT/vLPKkBychQiY9KMOcx5GT50Zy/4s82p8ot7JjBESPHZ1kFTHH1NvQqWjGBHMIKOQzaq8jKZpacZ5fyOHkLo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150)(85827821059158); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(944501161)(93006095)(93001095)(3002001)(10201501046)(6041268)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:BLUPR05MB753; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BLUPR05MB753; X-Forefront-PRVS: 0555EC8317 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(346002)(39860400002)(376002)(199004)(189003)(6916009)(81156014)(478600001)(81166006)(6486002)(2906002)(26005)(2361001)(50226002)(105586002)(16586007)(48376002)(54906003)(5660300001)(47776003)(50466002)(16526018)(66066001)(316002)(86362001)(2351001)(8936002)(53936002)(51416003)(52116002)(6116002)(59450400001)(106356001)(97736004)(3846002)(36756003)(25786009)(8676002)(68736007)(6512007)(305945005)(7736002)(4326008)(386003)(6506007)(107886003)(39060400002)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR05MB753; H:ubuntu.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR05MB753; 23:G5PNM4v9AoMtXGpZjAPzGXx2uX55980knhGrMAeEZt?= =?us-ascii?Q?lzYlqZMwRiKQujvq7qtM2NskFdMEdD5vfJC851Njdwzp5gM0afLZEQbU3s0U?= =?us-ascii?Q?nnivbdOQISD3aSgSF6gHcX456N2nv65V6AjFQ/faBRYic76EvUfSomjezoLG?= =?us-ascii?Q?5Bq6kqwx04seSqhJ2JflSVeqCbGPHIcX3Y5Iba3AU5pLuIXz0BnppQkU/bu0?= =?us-ascii?Q?Sf7jJHsbBOP6zBE1pb2WudrGvZ3S5QKTQGlTewLcmSP337ZfRfM60b9ZNWyO?= =?us-ascii?Q?uiXBbtsjf9BXYNXawRs86mar45t8heQqXD8A+IphIdodO+Ez2ZW9HqWjIYtK?= =?us-ascii?Q?+VjHM3WqPrCOFwu0EG87BT8SMRGQpZz3hSbTuw1BoVopbIKMCx3AtnZMW+vx?= =?us-ascii?Q?+kyAHBeccXC9881KmsV2q1BY3BBCEHXVsk4aPE2QkpwjWFs4KbTosUJqAKmJ?= =?us-ascii?Q?DDRKBqwjh1H+GBr4A4o1v8N0svqU9Or8zLdXaG5N/4DQgqzkdzj6c1qBwc9M?= =?us-ascii?Q?G0z1sCa4l/JENGVVxrsoT2VLQdwrQ2dvpe50eZ7zpJxRF+r/b1HwTKINq9RW?= =?us-ascii?Q?vcb/G4DI6oOd2TiWeE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CZDS/eGljKQVJuOMCJrU=; 5:/69sanbpjeQQOmYPddUWx8PrD1Ycgyo+946+uFW0c6ZUQkTlFm4K3dapZ9x6uGYm02K/HS+HjaL+pVMwJQbGofV7cVUAfTFVa3rLpg4op4ndasf56lzJUWPZ4CtOnK9JlN8U829+kPXscbfgGxaMtckH6m0HUBAeUpPPsL1FdBk=; 24:wssgqEUA2xULsem1mS5QxL/EbQIK7iwBWn5nayl3nbcKZsBWmskZmT3InR1obtXts5PSoP3vk89gWOYGYxxLcSHE5ppwJF0EyvZ0CeYzr8k=; 7:WSCatOHkNQVQioHyeyj0U7B14k0FekeZq3+LVDzT7V8AP3loo1seiRvhzSYoZk4+9R5J6fc3wkfKyva14es0ROxte5Pq+xy0/z1P2vVnU8BD3dfLWveCOmh/regdgFFYlM1rCV6DQqbt/IOAHlyOcRlmechNVPuX1kZlTrcdCR9gi1E9TsnGdiNRj7FW8jCvvE5H0LECDncxcGes1lPjag4QT1s7gwfBJ2h4pZwKx8IAzCxKf16ekVsj3evnjz4F SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB753; 20:Qx+SMtGtJzaBmKtr/RPABulySkJaAD8F1y4y6IAFz6I1jpjjtwht7zCT5RsynF5X2evfdftewP8lBiIXyzPKwcGg13Vsu4DIqh/VWpQNqE1LOJBumIwKOwvN+Txts0j/6K+hjvZ+CO6DbjBnNnvjyLWXt84rJNxQOg8sF4SYzu0= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2018 08:21:46.8785 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 138dba40-e4fc-4035-7fec-08d55d835a0c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB753 Cc: Thomas Hellstrom , Woody Suwalski X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Woody Suwalski The 4.15 vmwgfx driver shows a warning during boot. It is caused by a mismatch between the result of vmw_enable_vblank() and what the drm_atomic_helper expects. Signed-off by: Woody Suwalski Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 641294a..fcd5814 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -1863,7 +1863,7 @@ u32 vmw_get_vblank_counter(struct drm_device *dev, unsigned int pipe) */ int vmw_enable_vblank(struct drm_device *dev, unsigned int pipe) { - return -ENOSYS; + return -EINVAL; } /**