Received: by 10.192.165.148 with SMTP id m20csp3517234imm; Mon, 23 Apr 2018 07:53:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx48X516x001v64xZjQf1GKvCaDMfBYwUtxxItIK9oOWZutI9NSLT8mU+O8qEWIGPWVV7ysnG X-Received: by 10.98.214.5 with SMTP id r5mr12409046pfg.8.1524495239101; Mon, 23 Apr 2018 07:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524495239; cv=none; d=google.com; s=arc-20160816; b=DGWvakLGZCpb0GxKjygcB3PvoSBBX5rIXAyiOB/b5pV9Q5CqwpXvDt92o5ITu7oXcu t96kGHaGQ/Ty0D8Bo7Ec4ZsoX9ayMHCvt1Nuobez+3tbwzRzzciZ8nnHDwyvjSKZHV6Z fUJh8/m2+3Fht5Cb+IoDtzI8JETyq7Ee3VtDUMflzdoIU4U//kw/4RN+z5BqnA9wG/yD q4bfOlpFkfOYAEjywJXVkj7k3xsIFar3jfG6WG6j4xo7Jb05bPra/bnW55NpcmvVgCzh qduC3HKNrQHroNpOFM2cc2oZlwGDqxSeQ59he/K1iUwrXrVuONzCXjPXpJ7b3LTMJlIP 5YJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:nodisclaimer:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Ksdqdow5fQOmD6K8AGbEc6ydCWE1n/zzdr3HlixzQ/o=; b=fN7uyDrEZUEBGwpzorr+zzYc6L7ZS8ea8+3p/fUBrVzn+W0p/Pu2Nfa2zPeKGBR11u YhHbbyTaoGRnvVJXxxJHk01FMpJxcQULge6sX6O2CkfWUd0M7v3cU0SqZLmTqYpd9KLV p09JCFSClymHMfsqaTZx0h6CVUQiNMSl/ddYNlfSjefIPjSuY/ShvCj54d+MpmCS4+RW aFv2HHtJuDjdFcUpD1bZ/+ZY64jRrwE6f4XeqXU8ze0z+DHOklycmqqL/uto3u1ZyRLO 4iXH6lu0WtsXlngV8ky3u9E65cZr6HMdE+T3pp2MY8dedCXqoB86ht6jQiyj09ft32CT fuHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=sIg89/LW; 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 a36-v6si11880343pla.73.2018.04.23.07.53.44; Mon, 23 Apr 2018 07:53:59 -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=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=sIg89/LW; 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 S1755793AbeDWOwR (ORCPT + 99 others); Mon, 23 Apr 2018 10:52:17 -0400 Received: from mail-he1eur01on0056.outbound.protection.outlook.com ([104.47.0.56]:26568 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755443AbeDWOvW (ORCPT ); Mon, 23 Apr 2018 10:51:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Ksdqdow5fQOmD6K8AGbEc6ydCWE1n/zzdr3HlixzQ/o=; b=sIg89/LWRFIxHTF7oVa16E+krjTkXWEuhzS+H5A6ZjSLAD1X94DPwIzZc5GjV0EqZLQtdcZJhnWBdCNLa/ro2Q+mtnY35dB/+l0vRxE3Z5Z9Ypi3wyJXFpPk5jTwiWfA6LY9JBDJlm1bqumXj1kRHk+gBWUktcHpFBahqieouoQ= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Received: from e113505-lin.cambridge.arm.com (217.140.96.140) by VI1PR08MB3039.eurprd08.prod.outlook.com (2603:10a6:803:45::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.12; Mon, 23 Apr 2018 14:51:09 +0000 From: Ayan Kumar Halder To: ayan.halder@arm.com, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: nd@arm.com Subject: [PATCH v2 6/8] drm/arm/malidp: Enable/disable the scaling engine interrupts with memory writeback Date: Mon, 23 Apr 2018 15:50:49 +0100 Message-Id: <1524495051-3891-7-git-send-email-ayan.halder@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524495051-3891-1-git-send-email-ayan.halder@arm.com> References: <1524495051-3891-1-git-send-email-ayan.halder@arm.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: VI1PR0701CA0055.eurprd07.prod.outlook.com (2603:10a6:800:5f::17) To VI1PR08MB3039.eurprd08.prod.outlook.com (2603:10a6:803:45::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020);SRVR:VI1PR08MB3039; X-Microsoft-Exchange-Diagnostics: 1;VI1PR08MB3039;3:yA0eLf64wxM91GYlk5j6hE5ggJox/IC90EbNimmUOnBNOvwUT/Smir2chWEz6Iq0Qs52HJjnIXW1jqTZczZ7gz7DJga6xGh4Aads22W0/u/402uhCpJUB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VxWLpSUSrQMHy+CzPtB6feNP5dbrZcyNkixum0NXoBcGNcbs3sLZ2oHKKPUoNDY/hNp9wyAOhHtFvhRM81egeauoVYpuvM+V5NkBZgg09d1II+VmT3P3z+oWmzS1966inibnnyKco6gUpKqX+dif+YtzDgV+dNxJ1gwQmbVOabcPsVIh7s32iVGAnV6UUKsUnzG0z9yFabY/O9bga/+HFLKTH9w8o24Q6WK0/+o9lzHi8to7nZddPSRbL0gvoyUul5LCpvMxOct3zoQYBAulAUQAv63fkQY4Xpl4vTB0s2Huq8v/t4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:VI1PR08MB3039;BCL:0;PCL:0;RULEID:;SRVR:VI1PR08MB3039; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(39380400002)(396003)(366004)(36756003)(47776003)(50466002)(6116002)(26005)(81166006)(3846002)(8676002)(48376002)(5660300001)(7736002)(66066001)(305945005)(16526019)(446003)(478600001)(2616005)(956004)(476003)(16586007)(52116002)(76176011)(59450400001)(316002)(4326008)(386003)(25786009)(72206003)(6306002)(86362001)(6666003)(7696005)(11346002)(6486002)(2906002)(8936002)(50226002)(966005)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR08MB3039;H:e113505-lin.cambridge.arm.com;FPR:;SPF:None;LANG:en;MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR08MB3039;23:X8vekrW94BdnnLeIUR3xaqoy5O5daC/zsF9A0JJsc?= =?us-ascii?Q?qSnUbnSt7YgmT54Jibxy4ncC/zIZYdpresvRg+x47avtvJBQethtBx1kG0Oj?= =?us-ascii?Q?E97XowGOW+8gxUSQL7F2Gzks3O0uoKaXGOZem7kHJB5ti3jB5oPnyqNw2OmO?= =?us-ascii?Q?ZO53prG3Y6crNzmk74flQl1revVHOF813JLebaVSbRwnm84JbQwXXfmmVk1V?= =?us-ascii?Q?XVqOFKq7HROD8abN6JM1ub8R8UpLglOGDsWLTNm9MfuZLcuEgyKSAeIv3YbV?= =?us-ascii?Q?+HxXmWyWTAnD/NzqeWXsysduAXg4qU3Fh4t/zdIZVk7ubYTaQ0/AHB/3XuUk?= =?us-ascii?Q?oB5N5uotEb1C5Qy+bvqa8o4V71fB3SHlKcF41RqLG5LXWVlJG6LfSFGQKhoJ?= =?us-ascii?Q?r+q1BAgWCWwKC+yQXQu09+XRlEqYFUaqLKCrwmsJCA2G8AjPC5yhDFshinAj?= =?us-ascii?Q?pRnQnEoYYMnCKGqRoQu1Z9pqxxNi2YWjnHrU3f+sJhk+YV+kHdQNAPnEJlNW?= =?us-ascii?Q?8DBO35Rtux6OxfcYRpC/57uFqQSE10atody22PloZv5iROQJVZEXYoWlvNMU?= =?us-ascii?Q?Adw6Fy9qHYARsAaaE98CD6W/5OhopodN320jNz4U29T7IA6nVIF5DH6WniTW?= =?us-ascii?Q?/omFpNSl4g84c2NGmtTjsYCqGet08Efcqhuk5HtrmleGg31uibo/wwo6l9cx?= =?us-ascii?Q?yya70qXQFIm+a3aSTaP6Pmpjt+MjA+iGsUMH6RxfyDtwldEQ2Fqq5ZbYqbgt?= =?us-ascii?Q?TF/A1WRjSWOiBUMJFseyDFGduByP7crf1dBAvgn497b/9huGgqb/pbBVwXul?= =?us-ascii?Q?UXqNvmrcbGr0yQFgmm66nn2g6JAkDwer5CbHSoNIcttWSCLasuJQmAPxL6Uw?= =?us-ascii?Q?Z+S3ksxarrQUfOUBkljkKMPOVurJTDWFdpToGhHIUwxwzENvRwDFA43Vch16?= =?us-ascii?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YSDE/Y40Yb/1H7VxqvzDPLwWCdXndzjTmp3Nw+JkxkVdTFtg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR08MB3039;7:0JawdeviG9WvO83+MR7tOP//cEpTgKSd3NokvvBYVZT3CxGY0p2nk/PNxRm0rMDL7XA/0Ju15JceRUiOhtLzyhF42V/zC2DrAiIl0eVZIWholPAqD7qhTBfMEf/8yX+GJiixbczB1YkjP+BDcC8LO+a7UxrMZ4vBIozQn+TAObCzE0b60qgF/u5UBQk5Ty1BYHrWFgTvpwnsZn2OQFVjBAeda1UyidKEu8K1uAhuLYDyjC9iw9834pdw4pFyctdy X-MS-Office365-Filtering-Correlation-Id: 404a38ec-1c87-44b0-c81d-08d5a929a6bd X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 14:51:09.5564 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 404a38ec-1c87-44b0-c81d-08d5a929a6bd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3039 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Scaling engine interrupts need to be enabled/disabled as and when memwrite is enabled and disabled. The reason being scaling engine interrupts are used only by the memory writeout layer. This patch depends on: https://lkml.org/lkml/2017/5/15/695 Signed-off-by: Ayan Kumar Halder --- Changes in v2:- - Removed the change id and modified the commit message --- drivers/gpu/drm/arm/malidp_hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c index f5633bc..90d76e4 100644 --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -621,12 +621,14 @@ static int malidp550_enable_memwrite(struct malidp_hw_device *hwdev, malidp_hw_setbits(hwdev, MALIDP550_SE_MEMWRITE_ONESHOT | MALIDP_SE_MEMWRITE_EN, MALIDP550_SE_CONTROL); + malidp_se_irq_hw_init(hwdev); return 0; } static void malidp550_disable_memwrite(struct malidp_hw_device *hwdev) { u32 base = malidp_get_block_base(hwdev, MALIDP_DE_BLOCK); + malidp_se_irq_fini(hwdev); malidp_hw_clearbits(hwdev, MALIDP550_SE_MEMWRITE_ONESHOT | MALIDP_SE_MEMWRITE_EN, MALIDP550_SE_CONTROL); malidp_hw_clearbits(hwdev, MALIDP_SCALE_ENGINE_EN, base + MALIDP_DE_DISPLAY_FUNC); -- 2.7.4