Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3895224pxk; Tue, 8 Sep 2020 05:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzag2Ii8uAP59YI+fPbSachjWGHZ8jX84NoKdDVU4mBaMbseSYTzviWpnxN8Fp6+izcG4M7 X-Received: by 2002:a50:fd10:: with SMTP id i16mr27660664eds.54.1599568674751; Tue, 08 Sep 2020 05:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599568674; cv=none; d=google.com; s=arc-20160816; b=Zrh5I2BavHh0FzvocobjZ4DvgEW6F+ahwYLH0rEJHr7xgZgyfLWzrOT7V5BOyPxdwt fVaoHTUodsnEXPC+d2EBKbbOS/kAeRt8ije4qItl+RSGgVqWPuaGNFANL/IFd0ExM29a YPUR7cGgIaiV2UAhzkjdl6Gbz0J6ttfSvQAFIkL5r3/j98pSgcCRlPTeOF7uVdmO9a0+ Ydyd4udPRYiR09+iF0B4W9N+/VxcCa0N2pIIsPH0HwmGmAstdmjMfYH9hnZ+VDm+3SqK quyxB3mEO5W5pmC4Oa0czu+q6QYWM+s196XwTADpPNCl4bFmdlmdMgDk9iFXld7sALZx oT3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:cc:to:subject:from:dkim-signature :dkim-filter; bh=0s4Ik3+RTnNQIV6PDJ+CNOxzRLFQDzKVLXECY7JWkyM=; b=d/kPMi88Wm3vaTzd28fgInMARtBFmfDOpN0qxMbId78Egvt/0npVP9wmpiHwLiK1eP 18GmUvrmT3oN6zjhJsOqzoFHfZJ+KBYSvpVzxlYU4/+/+tbmqi2vvGxV/Mn5DvWaASQU 3XgdmbvWlvK2FW20fbGu61H9Z1BmbGRTcbKliHmYrIXzO+I8Fcfzlu4upACvko1K33TB 863aME9bbTy5chmtWUPqh/hx8lkTTyUF0TwWKU+jTwmHi0ZqOtSb2pl5zkuPqJIlLCkc Og8/8ieOrHKjHAbhJQ/SwaNZKT/BUv8JUEKB5jAGFNOz0iMQPPvLfC6iVpQ/4SQKtx76 2RSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Ci26dG2o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si5025240ejb.269.2020.09.08.05.37.31; Tue, 08 Sep 2020 05:37:54 -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=@samsung.com header.s=mail20170921 header.b=Ci26dG2o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730201AbgIHMge (ORCPT + 99 others); Tue, 8 Sep 2020 08:36:34 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:50433 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730159AbgIHLu7 (ORCPT ); Tue, 8 Sep 2020 07:50:59 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200908113759euoutp0182f60918801de51e947179797cba1d46~yy-cCbkcL0806108061euoutp01c for ; Tue, 8 Sep 2020 11:37:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200908113759euoutp0182f60918801de51e947179797cba1d46~yy-cCbkcL0806108061euoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599565079; bh=0s4Ik3+RTnNQIV6PDJ+CNOxzRLFQDzKVLXECY7JWkyM=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=Ci26dG2obB34PGBbpcoK3/8aXkWZccE2Q/NYKd9rxM/dP88l4hcJtM2441U11gcG+ T4Gn8XsB0ZutjBOOcG1QFvWK+iQ86H08q5XaGMNJQdoJaiaOSVq0ul5/+zr9qNmKC0 zZkubkZUIZJ14tCxrhmI3RprBLZ1cFyyFXcVN/4Q= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200908113758eucas1p1f922c5bbb2463f540d70f4e219a8362c~yy-bULu0c1732217322eucas1p1K; Tue, 8 Sep 2020 11:37:58 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id D5.6E.06456.61D675F5; Tue, 8 Sep 2020 12:37:58 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200908113758eucas1p29aad7c57574221fd154e74662a3bc75d~yy-a6Ng_02679626796eucas1p23; Tue, 8 Sep 2020 11:37:58 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200908113758eusmtrp11702a45991d6c386cce0918636f8b8e4~yy-a5eimt2072320723eusmtrp1K; Tue, 8 Sep 2020 11:37:58 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-43-5f576d16396f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 27.E1.06314.61D675F5; Tue, 8 Sep 2020 12:37:58 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200908113757eusmtip2ecc970bf5132f075feb3c4300f5e357e~yy-aUvAui1663016630eusmtip2e; Tue, 8 Sep 2020 11:37:57 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH v1 0/2] video: fbdev: radeonfb: PCI PM framework upgrade and fix-ups. To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Benjamin Herrenschmidt , Thierry Reding , Thierry Reding , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan Message-ID: <9798158d-ef29-e5a4-c792-fd51ba64b91b@samsung.com> Date: Tue, 8 Sep 2020 13:37:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200907070221.29938-1-vaibhavgupta40@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjm2zk7O44mn2ttL7MSRhRJWVLRqcTK+nGQqP6YXShbdZiiW7I5 SxHUylK7YKlJa6aJmVo5MfFaBCvTsK20K2lO0pWZy7GKtEjzdJT893zP5X3fBz6akPeJ1XSc IYkzGrQJGkpKNjwedy5X6qNjVrY6NIz3RBbBlJ+IZTJdXYh5+WOUYoaf3qGYjgteMZM7MEQy L1qsFHO/qELMjLdcI5me3/5MU2+OiCm/NyreJGObLe8lbGmdmW2wvybZcyOnxGxddQ7FPii+ LWFdZ9tF7O+xfMSeP/mVYr/VLdwp3SsNO8IlxCVzxhXhB6WxnoEPosSRwOMFdhuZgcoUuciP Brwa2u67UC6S0nJcieCn1UsJj+8IPr90TD++IfDmjUtmIv23aiSCcBNBz6lCES/IsQdBTU8A jym8Hi6eqZ6aS9Nz8T4o7FLztAIvg+42i4jPEriPgKL+ZwQvyHA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4M+8SM4QtLnHryXwmCFteYvvbOcwTGIVmIemehaRlFpKWWUhaFjCyrGIU SS0tzk3PLTbUK07MLS7NS9dLzs/dxAiM7W3Hfm7ewXhpY/AhRgEORiUe3g9eYfFCrIllxZW5 hxglOJiVRHidzp6OE+JNSaysSi3Kjy8qzUktPsRoCvTbRGYp0eR8YNrJK4k3NDU0t7A0NDc2 NzazUBLn7RA4GCMkkJ5YkpqdmlqQWgTTx8TBKdXAGDfn++vtAsv3ZUzZ3DNtjUqo0xeBBVWz lT1srvYnZ0TfmTrvxKqZBuHpDHrfzLKE9996d6puAqc0e+G/j7t+9Tm/0b3/0/j9tjMi5uLm U06/4f+pHxwx7X6nou0DPYYp/D8uLpLWu7yNU/J/29U5irO49suyL1/KHP/k57Elz9qznt9d Pf2B13olluKMREMt5qLiRAClTHXlAwMAAA== X-CMS-MailID: 20200908113758eucas1p29aad7c57574221fd154e74662a3bc75d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200907070432eucas1p27ce44eec5f3eaf3644c868c7a965ee74 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200907070432eucas1p27ce44eec5f3eaf3644c868c7a965ee74 References: <20200907070221.29938-1-vaibhavgupta40@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/20 9:02 AM, Vaibhav Gupta wrote: > Linux Kernel Mentee: Remove Legacy Power Management. > > The original goal of the patch series is to upgrade the power management > framework of radeonfb fbdev driver. This has been done by upgrading .suspend() > and .resume() callbacks. > > The upgrade makes sure that the involvement of PCI Core does not change the > order of operations executed in a driver. Thus, does not change its behavior. > > During this process, it was found that "#if defined(CONFIG_PM)" at line 1434 is > redundant. This was introduced in the commit > 42ddb453a0cd ("radeon: Conditionally compile PM code"). > > ------------ > > Before 42ddb453a0cd: > $ git show 65122f7e80b5:drivers/video/aty/radeon_pm.c | grep -n "#ifdef\|#if\|#else\|#endif\|#elif\|#ifndef" > > Based on output in terminal: > > 547:#ifdef CONFIG_PM > |-- 959:#ifdef CONFIG_PPC_PMAC > |-- 972:#endif > |-- 1291:#ifdef CONFIG_PPC_OF > |-- 1301:#endif /* CONFIG_PPC_OF */ > |-- 1943:#ifdef CONFIG_PPC_OF > |-- 2206:#if 0 /* Not ready yet */ > |-- 2508:#endif /* 0 */ > |-- 2510:#endif /* CONFIG_PPC_OF */ > |-- 2648:#ifdef CONFIG_PPC_PMAC > |-- 2654:#endif /* CONFIG_PPC_PMAC */ > |-- 2768:#ifdef CONFIG_PPC_PMAC > |-- 2774:#endif /* CONFIG_PPC_PMAC */ > |-- 2791:#ifdef CONFIG_PPC_OF__disabled > |-- 2801:#endif /* CONFIG_PPC_OF */ > 2803:#endif /* CONFIG_PM */ > > ------------ > > After 42ddb453a0cd: > $ git show 42ddb453a0cd:drivers/video/aty/radeon_pm.c | grep -n "#ifdef\|#if\|#else\|#endif\|#elif\|#ifndef" > > Based on output in terminal: > > 547:#ifdef CONFIG_PM > |-- 959:#ifdef CONFIG_PPC_PMAC > |-- 972:#endif > |-- 1291:#ifdef CONFIG_PPC_OF > |-- 1301:#endif /* CONFIG_PPC_OF */ > |-- 1430:#if defined(CONFIG_PM) > |-- 1431:#if defined(CONFIG_X86) || defined(CONFIG_PPC_PMAC) > |-- 1944:#endif > |-- 1946:#ifdef CONFIG_PPC_OF > |-- 1947:#ifdef CONFIG_PPC_PMAC > |-- 2208:#endif > |-- 2209:#endif > |-- 2211:#if 0 /* Not ready yet */ > |-- 2513:#endif /* 0 */ > |-- 2515:#endif /* CONFIG_PPC_OF */ > |-- 2653:#ifdef CONFIG_PPC_PMAC > |-- 2659:#endif /* CONFIG_PPC_PMAC */ > |-- 2773:#ifdef CONFIG_PPC_PMAC > |-- 2779:#endif /* CONFIG_PPC_PMAC */ > |-- 2796:#ifdef CONFIG_PPC_OF__disabled > |-- 2806:#endif /* CONFIG_PPC_OF */ > 2808:#endif /* CONFIG_PM */ > > ------------ > > This also affected the CONFIG_PPC_OF container (line 1943 at commit 65122f7e80b5) > > The patch-series fixes it along with PM upgrade. > > All patches are compile-tested only. > > Test tools: > - Compiler: gcc (GCC) 10.1.0 > - allmodconfig build: make -j$(nproc) W=1 all > > Vaibhav Gupta (2): > video: fbdev: aty: radeon_pm: remove redundant CONFIG_PM container > fbdev: radeonfb:use generic power management > > drivers/video/fbdev/aty/radeon_base.c | 10 ++++--- > drivers/video/fbdev/aty/radeon_pm.c | 38 ++++++++++++++++++++------- > drivers/video/fbdev/aty/radeonfb.h | 3 +-- > 3 files changed, 35 insertions(+), 16 deletions(-) Applied to drm-misc-next tree, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics