From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x227RJqKObcWP7NIIrPGQpO+UxOgDQHJnmRGxTgAAd9dBX+y+Oev+Py3qyjb6SOqi+KHAJeAj ARC-Seal: i=1; a=rsa-sha256; t=1516937815; cv=none; d=google.com; s=arc-20160816; b=WURbv9YWG76NGL7uEdiRA2LH4Tz033v8DIFc1mB+TdbSR0j9VgKs9A5iBPGBx5boni hpEHQ3awHRC0eE8RENjOEETXf9a7NrnxK6S/aC7Gol/gf5NVgRShbS9R7sjLIsr5ACCv xCDXalsdZq94ia1cGsv0f9eRR54fGU5BWIO+6OQsbhu7+jryZOZvp8/LbFMYHLC3osFo 2uHhk1mw04bx+pivX+wMuc7TOZi3e8TTG3uiXW7YPKJhzCvumj/jnLGkLVNvOwX1rEjs xB5n6tNk21PQZDYF0Tms5KItvUjOmtkZ5Ai0IynjZbNjElj/Wp/o0b0vqlG+1BHttnRO Mokw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=UdVd1uTMEqjQZrq0kFRUJWIyz/0MZzhFi3Ea6VxxznM=; b=OXieu5iJsgsibMNcyx4gOb4qBOoUmfIjfKa9P9+oLG9bhjKpvagLcSNFDpotAPOyNd PMDIGhHqASgvVOB88yt0UxwRfBUucz+p16GtPqYamIvx16unUpn1NrdKWG/7+qbVkLVh OgSu2eQmuyLciAKmX6EgXz4Gulpw1GWORgVZv0MyyAdtIImcwoS48y52Nb2D8IT1oPoN uHeSDbxIsYpmcdhRWRq7kQ6EE7zO755UW9Q5MqWFkOg+pjN2cwyKf8sBvSluN+pn8Qhs vcJZrRZMCNW4t/S6sAjaFXzM7tqPPyDUbu397Fc4LdwJyLCQOFLi/yrWPtgCE9eKSrrv 4lDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lyude@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=lyude@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of lyude@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=lyude@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com From: Lyude Paul To: nouveau@lists.freedesktop.org Cc: "Alexandre Courbot" , "David Airlie" , "Rhys Kidd" , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Karol Herbst" , "Thomas Gleixner" , "Ben Skeggs" , "Ilia Mirkin" , "Kate Stewart" , "Martin Peres" , "Greg Kroah-Hartman" , "Lyude Paul" , "Philippe Ombredanne" Subject: [RFC v2 0/4] Implement full clockgating for Kepler1 and 2 Date: Thu, 25 Jan 2018 22:35:02 -0500 Message-Id: <20180126033607.7682-1-lyude@redhat.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590624587251684401?= X-GMAIL-MSGID: =?utf-8?q?1590624587251684401?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: Next version of my patchseries for adding clockgating support for kepler1 and 2 on nouveau. The first version of this series can be found here: https://patchwork.freedesktop.org/series/36504/ Some minor changes: - Clarified that SLCG stands for 'secondary level clockgating', thanks for the small tip nvidia! - Removed the concept of levels, this was more useful for debugging then anything and having only a single level of clockgating enabled does technically open us up to running a configuration nvidia never tested. Additionally, this changes NvPmEnableGating into a simple boolean option. - Fixup nvkm_info() messages so that we don't mention powergating in them, since this isn't actually added in this series (and may not be for a while, only time will tell :) - Don't export unused function gk104_therm_new_() Lyude Paul (4): drm/nouveau: Add support for basic clockgating on Kepler1 drm/nouveau: Add support for BLCG on Kepler1 drm/nouveau: Add support for BLCG on Kepler2 drm/nouveau: Add support for SLCG for Kepler2 drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h | 1 + .../gpu/drm/nouveau/include/nvkm/subdev/therm.h | 17 ++ drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 25 +-- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h | 1 + drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c | 207 +++++++++++++++++++++ drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.h | 55 ++++++ drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c | 155 +++++++++++++++ drivers/gpu/drm/nouveau/nvkm/subdev/fb/Kbuild | 1 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c | 6 + drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.c | 47 +++++ drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.h | 35 ++++ drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c | 71 +++++++ drivers/gpu/drm/nouveau/nvkm/subdev/fb/priv.h | 2 + drivers/gpu/drm/nouveau/nvkm/subdev/therm/Kbuild | 2 + drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 70 ++++++- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf100.c | 67 +++++++ drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf100.h | 35 ++++ drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c | 8 +- drivers/gpu/drm/nouveau/nvkm/subdev/therm/gk104.c | 136 ++++++++++++++ drivers/gpu/drm/nouveau/nvkm/subdev/therm/gk104.h | 48 +++++ drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c | 2 +- drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h | 23 ++- 22 files changed, 988 insertions(+), 26 deletions(-) create mode 100644 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.h create mode 100644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk104.h create mode 100644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk110.c create mode 100644 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf100.c create mode 100644 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf100.h create mode 100644 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gk104.c create mode 100644 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gk104.h -- 2.14.3