From patchwork Tue Mar 30 15:17:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Sneddon X-Patchwork-Id: 12172985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC61EC433E0 for ; Tue, 30 Mar 2021 15:19:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 784E16198A for ; Tue, 30 Mar 2021 15:19:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 784E16198A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=DhT8fENdT92JBLdSmCN9D0pVSWaHq/MRRDlIcwoJlR8=; b=YPo3gLJwXsUzGG1lsdR90I2DlA XAbaV997qEiyxWe4pVflKOK2YOjvur62fkA9xIbDQyeSPVXtcR3XhrIfWyfaM8fNUHLaZbuMVfJX9 mytNm43Z33mRx22wCfzh2znCs5jtHptFaPIWVeIa4UZp69+jQI/IBeTPx9vxIvTuXnAFBDxL4UJS4 J/C4UMgtopOpy5ekfdTaO5WwBvR6BMP07lLhh/xYUCLmL+bkwAo2emkcT+bN0mLDdgRT41JOvnWTh ApunyPwUFRK4L2amXq0/cVHze0wf7/M6J8QatISxhfwGk8hh7fK3Cd8ON1GgR+wGdgStQApeiwSJC ldA6qI6w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRG7v-0048ml-Fw; Tue, 30 Mar 2021 15:17:55 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRG7n-0048kg-D9 for linux-arm-kernel@lists.infradead.org; Tue, 30 Mar 2021 15:17:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617117467; x=1648653467; h=from:to:cc:subject:date:message-id:mime-version; bh=i7hqXDBFMEOH344k9HghH3EKm0gmYqjjMoYYpOlfG7k=; b=o23QMQ2z1hYTlHqzyTHmmmtIbiwBoWvCEEdI2bIjhdRl1uz6Hpji9zIo Ql85lD+y9NebZv7EEsEQ12jL1wasWDFRpm+tCMqN8ft5MK8abJ2lgP53t 4MF8+sFH4mZCExgZ+X7sNOOzrreh1y2snPJY2+955MA4pPGBX0xM2VlS5 St5jQ8wJ9xd0fwzmf1vtjChP9Aj5UjUonEjEIkc1NOGY9eYmcRIy6AZgF A7RTj3RW6n5OC/wLCZQkaSGV78KGZ31lncFrLfNoB/YDeCqgvmccUT3yw VA7cl70b9d2bpd957WEYlOqZe4pQehgXS1y+KvKOClbblrnhoy1e0c1ov w==; IronPort-SDR: U9O3kSBVfij23VJN3kWbJ3je+zz+RMiXR7LRbIi6o5gkhZu85AMJIZzFIvJ86U3HVPsOoxH7OM 7znL/NhjmgEVChD9v1YsRi9ufEVAI9x5T5iWBkBUXAE2JMpjFTx7OflUa9Yw7YiNLCRMy2EMQK 1q423DvIHQ7VPLqPsE+XtUXIgg0rdeTXGaRQ/Qmnk4Sjy6YnblAwCparZ9FzLIlxqWHEGozIFj 2oJzICgm253FzpLTF4DsHvqQNxSk4aOmtfpWFZEMb4vBLIfw7+kfDtuIQebLN0Bb2OCXxWqLfJ AsA= X-IronPort-AV: E=Sophos;i="5.81,291,1610434800"; d="scan'208";a="121077763" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Mar 2021 08:17:31 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 30 Mar 2021 08:17:31 -0700 Received: from dan-linux.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 30 Mar 2021 08:17:31 -0700 From: Dan Sneddon To: Sam Ravnborg , Boris Brezillon , David Airlie , Daniel Vetter , "Nicolas Ferre" , Alexandre Belloni , Ludovic Desroches , , , CC: Dan Sneddon Subject: [PATCH] drm/atmel-hlcdc: Allow async page flips Date: Tue, 30 Mar 2021 08:17:20 -0700 Message-ID: <20210330151721.6616-1-dan.sneddon@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_161748_022396_C2B6577A X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The driver is capable of doing async page flips so we need to tell the core to allow them. Signed-off-by: Dan Sneddon Tested-by: Ludovic Desroches --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index 871293d1aeeb..f6c3d8809fd8 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c @@ -686,6 +686,7 @@ static int atmel_hlcdc_dc_modeset_init(struct drm_device *dev) dev->mode_config.max_width = dc->desc->max_width; dev->mode_config.max_height = dc->desc->max_height; dev->mode_config.funcs = &mode_config_funcs; + dev->mode_config.async_page_flip = true; return 0; }