From patchwork Mon Nov 7 00:13:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 9414205 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 329516022E for ; Mon, 7 Nov 2016 00:16:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2526628EB9 for ; Mon, 7 Nov 2016 00:16:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19F9428EBB; Mon, 7 Nov 2016 00:16:24 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CCD0128EB9 for ; Mon, 7 Nov 2016 00:16:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3XZk-0004P1-EI; Mon, 07 Nov 2016 00:14:12 +0000 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3XZY-0004Kd-CD for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2016 00:14:01 +0000 Received: by mail-pf0-x233.google.com with SMTP id i88so81116742pfk.2 for ; Sun, 06 Nov 2016 16:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ettus-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gBOZajfZ+Jkn/xiymDLs/klkSX2roCcAjbyJwBxFPyI=; b=g4EWidpVHW9yfO/ulhr3EIj9EOsZNqOftoOak5JdHFH72H0FXb2Fl9eyKr7kYQcPF5 6qQIahpWRfRr4RxJv/Js50KzcX33dAzMHd2nt2jffVND7y6itZ6ODuJvTEImOh07hr6U G9lmoRNDg96E6Zsc+jl2AV+uREhiQruxaXqT6PsputZ5plR/yzVxOOCBhuBPtU3i0ZgV L4wvYjN5m9n7e0Cfhls7he/k0zTNrITNksZbQ3QzIpGXrYcXoruarVMVWa81Xx0qKo5T /3yD+7lSn0Wsssynnj8ZW124ro0deeW/VJU9aDd5wlIyAhpzDkChjcgEEG5SC/wKz1CL tmvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gBOZajfZ+Jkn/xiymDLs/klkSX2roCcAjbyJwBxFPyI=; b=Wkez9PICgVUBPESPTqt0RqoM2qLmXmsXlqVHn+MhRZcrE7ROerBRs4pcJfid2SYWd3 ojWRF0XuGhlhHDNAtei7RtyKaQvTXy2F7/g33IfVEPIzb8aAwMtDeSEu8su3/8jhSzno EiwXx13A38UlaGAuJnCvMJMcpIo90CPjQOWQP+BxyHSXLTuQv7HmaxKsO06qWV4TDaY/ bITEK24Wf3BmJi2vDapWEg1qp8r44uJ6tSlMsfw6towZ0TXEgv/D4sR2iNmvv3UW0JiC eYAePsJd0mt3000ZKdTXEhxehHlHbvX9sVMd4DHYDYgnok5BZnbg7BKg02uCXhy97BvD fK1g== X-Gm-Message-State: ABUngvePxzjZASCtNhSyidmDTTDZXiuvbyxnS0zJhpCd34dmHpTylg0xT/g/5jKs15IhF1v5 X-Received: by 10.98.73.21 with SMTP id w21mr8493054pfa.26.1478477624332; Sun, 06 Nov 2016 16:13:44 -0800 (PST) Received: from archbook.lan ([2601:647:4b00:de01::921]) by smtp.gmail.com with ESMTPSA id t5sm35117798pfb.58.2016.11.06.16.13.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 16:13:43 -0800 (PST) From: Moritz Fischer To: linux-kernel@vger.kernel.org Subject: [PATCH 4/4] fpga mgr: socfpga: Expose support for encrypted bitstreams Date: Sun, 6 Nov 2016 17:13:26 -0700 Message-Id: <20161107001326.7395-5-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161107001326.7395-1-moritz.fischer@ettus.com> References: <20161107001326.7395-1-moritz.fischer@ettus.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161106_161400_479402_BC58DBFD X-CRM114-Status: GOOD ( 12.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Moritz Fischer , julia@ni.com, atull@opensource.altera.com, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, moritz.fischer.private@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Expose support for on the fly decryption of bitstreams. This needs no additional work or configuration, so just expose the new capability. Signed-off-by: Moritz Fischer Cc: Alan Tull Cc: Michal Simek Cc: Sören Brinkmann Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- Alan, can you please let me know if that works this way, or where to find information on encrypted bitstreams? I have a CycloneV SoCFPGA to test on ... Cheers, Moritz --- drivers/fpga/socfpga.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index fd9760c..ab57ec0c 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -579,6 +579,7 @@ static int socfpga_fpga_probe(struct platform_device *pdev) fpga_mgr_cap_zero(&caps); fpga_mgr_cap_set(FPGA_MGR_CAP_FULL_RECONF, caps); + fpga_mgr_cap_set(FPGA_MGR_CAP_DECRYPT, caps); return fpga_mgr_register(dev, "Altera SOCFPGA FPGA Manager", &socfpga_fpga_ops, caps, priv);