From patchwork Sun Jun 2 14:13:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rhys Kidd X-Patchwork-Id: 10971785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CABEA6C5 for ; Sun, 2 Jun 2019 15:01:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA7F728405 for ; Sun, 2 Jun 2019 15:01:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE99828A26; Sun, 2 Jun 2019 15:01:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 749812877E for ; Sun, 2 Jun 2019 15:01:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 81D4F89701; Sun, 2 Jun 2019 15:01:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id C4C0D8999C; Sun, 2 Jun 2019 14:13:31 +0000 (UTC) Received: by mail-pg1-x544.google.com with SMTP id v9so6714455pgr.13; Sun, 02 Jun 2019 07:13:31 -0700 (PDT) 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=SaAxieWedSqrCsn1eZtk8frpM0Ozx5cj9+gtVFSLioA=; b=rleMx1S68vn1CN4mEWWdclWrBwB76QDboSHH4biTsI1P6QNB9cIydDslLnvjN0Jeqj VaVE88ei9A2htbciciweuNqEHF/ZSSGaWFAqv3XCleRAA1dXfNODPpdq6KBELtogRRMA hW0uxlUr09M+x8D4EnZdqRCdHWab9OSV1EYaIagvcj0Fkk1vYE5aQhYf0bmI4xCAbEbm vUkYAaHA/+v4tsWVqgTt+WSReXLP8ZFrTf3l72omaZnhrYWA3VbVu2O7GnhD1AC7BeHS JGorkzM99PKy6He+E5fGhct8wMXe9/RAffI6g8ED97amw84u0Zwj03z+2xgRZD107cW8 i8VA== X-Gm-Message-State: APjAAAWyOHbjOX2US0tfI+Lm2jU8FPKTJaGRnK8pCyFqSh4dV3eJKsid 4IKc0yY4P4izo4gz2oM4lm8= X-Google-Smtp-Source: APXvYqwpOneLZKkuOl7f486zM64Y/OQvcykbdFN1AY/pSfx4mQUe+lKV76ssomb8gqFClbHS4hrnNw== X-Received: by 2002:a17:90a:a608:: with SMTP id c8mr22499038pjq.37.1559484811356; Sun, 02 Jun 2019 07:13:31 -0700 (PDT) Received: from localhost.localdomain (119-18-21-111.771215.syd.nbn.aussiebb.net. [119.18.21.111]) by smtp.gmail.com with ESMTPSA id x66sm12533278pfx.139.2019.06.02.07.13.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 07:13:30 -0700 (PDT) From: Rhys Kidd To: Ben Skeggs , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Karol Herbst , Lyude Paul , Ilia Mirkin Subject: [PATCH 0/2] drm/nouveau/bios/init: Improve pre-PMU devinit opcode coverage Date: Mon, 3 Jun 2019 00:13:13 +1000 Message-Id: <20190602141315.6197-1-rhyskidd@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 02 Jun 2019 15:00:55 +0000 X-Mailman-Original-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=SaAxieWedSqrCsn1eZtk8frpM0Ozx5cj9+gtVFSLioA=; b=ci5MFymqmwyE1FbHvEUfTWoN9KfK0OOI8NC4x1fak7yQ+UO43KiT5st644PeuhVHSR RnM5tB9j97yPVNtOAWf8Wd0gRoHtOuZirqjmcAWexxhFIlVbLAEAgMqJlH3RfUrbSxbe fKwUpyDq8w1UkKUJkqMLT70YFv+sonJx8y3O53sQgJTpH4t1j53mN6pXq9vGPNohEU2l AS9J8HkBwPAGhe1hu6VpdwEkz3OPvSHiYhIAiyn7CX0CHHv+jXkBP77TsVSpHePYFK6t OvGHIr3m7lcg8amxRuXA3TXkqqxdIBsmn+7uBlaFvMPX5bWLbIFi9YgHU3ddP6j+FfD3 DDXA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rhys Kidd Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP NVIDIA GPUs include a common scripting language (devinit) that can be interpreted by a number of "engines", e.g. within a kernel-mode software driver, the VGA BIOS or an on-board small microcontroller which provides certain security assertions (the 'PMU'). This system allows a GPU programming sequence to be shared by multiple entities that would not otherwise be able to execute common code. This series adds support to nouveau for two opcodes seen on VBIOSes prior to the locked-down PMU taking over responsibility for executing devinit scripts. Documentation for these two opcodes can be found at: https://github.com/envytools/envytools/pull/189 Rhys Kidd (2): drm/nouveau/bios/init: handle INIT_RESET_BEGUN devinit opcode drm/nouveau/bios/init: handle INIT_RESET_END devinit opcode .../gpu/drm/nouveau/nvkm/subdev/bios/init.c | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) Reviewed-by: Lyude Paul