Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3017633pxk; Mon, 7 Sep 2020 00:05:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVpYXa4GYbs2sO8YWtX5MG19ZdopTFa5/kBOmV+wBGmteUnvz4QrML2BvXNxLIv1pcZJaM X-Received: by 2002:a17:906:7d0d:: with SMTP id u13mr20608792ejo.448.1599462334354; Mon, 07 Sep 2020 00:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599462334; cv=none; d=google.com; s=arc-20160816; b=NhmZoh9lCX8ijmxp1bOVLgZX/mVMQa6MJ9C1/sCNZhWbKdq4DdiSikFIFEgK7aQvy5 1PQ1eSJPfyRem87AfodBCN/dXtsyPXcVI3bfU3om8p+Xx+jhqR1fM2BLZgiplVyxeS6C /Ad9qOpyJzRVswz9CopDCbdKsojrow2vWJzpRDw0EPLCqW5Wn/TuMs2t7M7bzEIendUd 9QpZGYZr53C2TmtC/LpDeCd+s4zKr8mR+hSL1QljXXfyBbtjH6MnstQaeoFNm+fi+ZnK 3aEod9w/SaFT5HUeNePOpbF6AN029GinsF9QLHqpI1QXlTEfBCLWCo/7KWaYzs7FULll /cPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XxdgRFlQigk4lLEnKCMOhpL5rmLS0bgdeVzH2zzhbYk=; b=Pt5ZnSjLsDzlFtAuGoawjztuGuhBMf+tSHRZO1ufMJq9RTx1NQKa+aXPZvT+XfvtrY Pl/kF9EPCAB7JeLFQN6aqz1rs/UBfHnEGUpJibGAo1W0Znb1Ro6WbqAIORoknxx7xx8S UPLASL8X2X8rYdPwSnBJNUHvw0w6aP09I3u/+ys8DkD7KcRAcejyogtIAhkBrOumFrZ+ +gHBkVgnu8tPcLgn5yHRTrWFZtxSWWmANl4JujcP+SViGRaOKyvz+J8RCmMRUnHTcpaG xAaIBJE09MUDKs17qASxm/CixVPi4C7ZbqROdoDj3gdlmlkIUyuPvMEMFYfQDGclsFyF mPfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M5a+MLnV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si2302731edy.100.2020.09.07.00.05.11; Mon, 07 Sep 2020 00:05:34 -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=@gmail.com header.s=20161025 header.b=M5a+MLnV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgIGHEe (ORCPT + 99 others); Mon, 7 Sep 2020 03:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgIGHEb (ORCPT ); Mon, 7 Sep 2020 03:04:31 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4398AC061573; Mon, 7 Sep 2020 00:04:28 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id c3so3798943plz.5; Mon, 07 Sep 2020 00:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XxdgRFlQigk4lLEnKCMOhpL5rmLS0bgdeVzH2zzhbYk=; b=M5a+MLnV7m4BYslTgTXLbVYvDCJ2QB7MC9Se+kNZ7FNpVHy7lHDPtsKHEFFti0QN9k PWOhVugkp82UCARsJ6e5aHJE/eeezbYXjCv3lokjUauh6ayjQo7iY7mOl+D6HJIyj9GM xCvcxP81rQzAbPFVvVpFfBkw9QB1MZ8sWTKw2oksX253tgDfHVpIZzGAC6CqhYL91IqE ErH43LJwV53Kwfp/kElozpKW0tdOH+QtM+XUGtVBYpvRupAR6s993NNAZB+LZtxvzZUL UJdOzeDkCzG/eZNgTwGcuLSvg8aIZA61IfPdA6xL1DknoDpu8fy0JYIfVPpXMUYwinuu xqGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XxdgRFlQigk4lLEnKCMOhpL5rmLS0bgdeVzH2zzhbYk=; b=biZPDfS+BwZSERqadFUG9HWHgFufDPmCmDWenkX3lO3Plpp7VladkKDYXDX2viEo3i KAf9iVM/iacYplCpvJZfKyyYtg7n31X8M+TLCf/0IFnjeqOYAEQ6sBxjA5nabPFH1LDH wiNwOOsKYyU4+3Zb2NfmUf2PdPxH6jvg+Aqv5EWWJsQnwiKNAvKGmBIk+AylLEDaUPDT lPEVtUgpz13kBfoQsiaztrwgBxy92Wu7yE5CQSJqC9DMe8qgeGXRKVtSo6kFrgvM4cCa K7FpniWFgavVaX1sRqsisjVJiMf+3ZbCjHMLO50M+ShE1/RbTRpIG7ITh9sGgNpovJ95 35NA== X-Gm-Message-State: AOAM533kVcR6ReOYFG+ubkGpeEuiea7lEyVGtThg7HKo9YThM9fkSk/N EaYRGF+kxRMvY+GLXEKEd5c= X-Received: by 2002:a17:90a:bc08:: with SMTP id w8mr19016149pjr.168.1599462267567; Mon, 07 Sep 2020 00:04:27 -0700 (PDT) Received: from varodek.localdomain ([106.201.26.241]) by smtp.gmail.com with ESMTPSA id 204sm6804733pfc.200.2020.09.07.00.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 00:04:27 -0700 (PDT) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Benjamin Herrenschmidt , Bartlomiej Zolnierkiewicz , Thierry Reding , Thierry Reding Cc: Vaibhav Gupta , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan Subject: [PATCH v1 0/2] video: fbdev: radeonfb: PCI PM framework upgrade and fix-ups. Date: Mon, 7 Sep 2020 12:32:19 +0530 Message-Id: <20200907070221.29938-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.27.0