From patchwork Thu Oct 18 17:55:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Alho X-Patchwork-Id: 986079 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nvidia.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nvidia.com header.i=@nvidia.com header.b="EvabQ/9f"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42bcD20H6mz9s5c for ; Fri, 19 Oct 2018 04:56:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbeJSB6E (ORCPT ); Thu, 18 Oct 2018 21:58:04 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:11311 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbeJSB6D (ORCPT ); Thu, 18 Oct 2018 21:58:03 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 18 Oct 2018 10:55:54 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 18 Oct 2018 10:55:58 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 18 Oct 2018 10:55:58 -0700 Received: from HQMAIL102.nvidia.com (172.18.146.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 18 Oct 2018 17:55:58 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL102.nvidia.com (172.18.146.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Thu, 18 Oct 2018 17:55:58 +0000 Received: from talho-ln2.nvidia.com (Not Verified[10.21.24.139]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Thu, 18 Oct 2018 10:55:57 -0700 From: Timo Alho To: , , CC: , Timo Alho Subject: [PATCH V2 0/5] BPMP-FW version query ("tag") update Date: Thu, 18 Oct 2018 20:55:39 +0300 Message-ID: <1539885344-18974-1-git-send-email-talho@nvidia.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1539885354; bh=PPhrzi/pmkRk1MA3YN+TU2qxa+PvWMyRcvMOIGX2rSA=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type; b=EvabQ/9fovRqUOR1oRPMqRthWlrpmahx4BvizKjbgdlXUflk97CDZEMVn0bxkyciw 6f0fftVlZmTy0aoFvJ30sFPeVaDhwkpnw+bbNjL0fekYGuuB15DTVlH1OdHVywwqYt 8dO5I4WBT2Gbrf9CzklqDw26xrWbAJ8TxyWEPgzoui7kGBl0JOIyum9fqpayUgThx9 2oiOVQ40kAyLXgWBsXF0H9DLh7LyEjN0/vDNkIh1/yJmelLOGETxjsOii8UeXZHGfU hYslvSPrIzFJZQtjfZCn4ylKDcmycokIvFHwdOjpETJ7wbM3EZIFhOX2oIIa/NQatx nVhJIbpLdKuvw== Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Recent versions of bpmp-fw firmware have moved away from using IOVA memory for reporting version information string (as a response to MRQ_QUERY_TAG). Update the driver implementation to use a new MRQ that uses in-band messaging. While making this update, also update the firmware headers (bpmp-abi.h) to latest available and refactor a helper function to query if a given MRQ is supported. --- v2: * added patch fix to print tag at full (i.e. all 32 characters) * other minor cosmetic edit as per review comment Timo Alho (5): firmware: tegra: add helper to check for supported MRQs firmware: tegra: switch to global mrq_is_supported() firmware: tegra: print version tag at full soc/tegra: bpmp: Update ABI header firmware: tegra: use in-band messages for firmware version query drivers/firmware/tegra/bpmp-debugfs.c | 29 +- drivers/firmware/tegra/bpmp.c | 73 +- include/soc/tegra/bpmp-abi.h | 1188 ++++++++++++++++++++++++++------- include/soc/tegra/bpmp.h | 7 + 4 files changed, 1021 insertions(+), 276 deletions(-)