Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3555060rwb; Tue, 20 Sep 2022 01:04:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MGib+1OLkcJCjCxf7zb8USdIZWtfm4GVzTDRDAurx3VOpOtQxYOArs/hW5dSl6zPQoSn1 X-Received: by 2002:a63:3e4a:0:b0:439:246d:e681 with SMTP id l71-20020a633e4a000000b00439246de681mr18632689pga.424.1663661091319; Tue, 20 Sep 2022 01:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663661091; cv=none; d=google.com; s=arc-20160816; b=oOgHzW+UJSgSno4ybdsyYP8aPV627j45/+2fOieACr/imMCdRjsFTB2dfARKZLs5wZ PtmvrPMhzdUsnUPCJSyx/FnsllRrbIPQiZMaS+GBymwr6nhusIE90qE7yTl6rY1CM1P8 6ZSZgzRGYBi24Eed+PDQJHnLznGE3AilfT+sjfQqtI83LZLm9pp0CeqqIy/iYzxlOhdS kzRGo4tCiGXnxf4NhIK4yVXcXxbGVC/F6T1j4niyosHgm6IC+Kcx+Uhd/YqhWbv2Ggl+ YuGmkaMcOHnMgLX0k99zWpSn8DFW35g/RHLNs9TMjHFDOi8KPuCTGmyG5AlDZUc92V/N LlWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pNBPv0dQlEqfnuQ+xyBze7MGqAgLe+XS5KX5aETiv/8=; b=Fzlvb3b8+w4pLe1/eNw0eqdvMedOUdLAaEGl8uzG2scrQ7s/5G51UaL0QMcXwcUCd+ aW4s4OlnliosJBhMwhBxs/va2cbllsMIHXK56oO1YIY/ZkqAkNC+o1he2WXztImcWZ7l 7RzDO0NvzgFhXQCbpKczydHBHFnAmWahlg//IMzxxJGC+NmzCljMTflggogyzQVm3r4i +Y73EoEnh7MOrbraoGh9Ur1UQLwoFDVpoTCEkiqOBJrAYdCVc1fSN+hs4FUKL9jMD3dQ Mqkqsighmz2VdOhKumlHocOrGfSOcDF7JDF1AZ6xGfhzK/bfDfT8AoiCDq8u5FQvJR75 lw6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=Yr5i5f+6; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=maxlinear.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170902c94a00b0016eec1292e4si1159003pla.500.2022.09.20.01.04.38; Tue, 20 Sep 2022 01:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maxlinear.com header.s=selector header.b=Yr5i5f+6; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=maxlinear.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231251AbiITIDT (ORCPT + 99 others); Tue, 20 Sep 2022 04:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbiITIBv (ORCPT ); Tue, 20 Sep 2022 04:01:51 -0400 Received: from us-smtp-delivery-115.mimecast.com (us-smtp-delivery-115.mimecast.com [170.10.129.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFD263F3F for ; Tue, 20 Sep 2022 01:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxlinear.com; s=selector; t=1663660908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pNBPv0dQlEqfnuQ+xyBze7MGqAgLe+XS5KX5aETiv/8=; b=Yr5i5f+6fqH6BFQbrokqjhBBLGd6SOZzU1JnESH/LxfSOZe/q4mIkaMgQOQK9MFUB2WACy aNef3Vcg1r917hYl1DrGO5upvmEZA+PpGTi3ZRwEsOTB5HZz0yEOC7b8PbSPLLYd8heWIo CHTgppWIwT85EjTpIs64/D0K/WgSolj+DCWzyctw2sewvhvgjgtqt92fHgMXd4ZLfUq6pI vg62i8i2cgIpoKH3tPjpD6ZHBW5CvHxI75QeIAgYsl7ZEJxdDP2mn4SvbRknq0VT24rjrW zNfEHFMryCyWSPKS79HCfY+7KpFwgArhOFrS3swzhlZbgYe55apZ+0tjFIRH8Q== Received: from mail.maxlinear.com (174-47-1-84.static.ctl.one [174.47.1.84]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id us-mta-235-S6_y53J2Oaq-rydOI-MWxA-1; Tue, 20 Sep 2022 04:01:43 -0400 X-MC-Unique: S6_y53J2Oaq-rydOI-MWxA-1 Received: from sgsxdev002.isng.phoenix.local (10.226.81.112) by mail.maxlinear.com (10.23.38.119) with Microsoft SMTP Server id 15.1.2375.24; Tue, 20 Sep 2022 01:01:40 -0700 From: Peter Harliman Liem To: , CC: , , "Peter Harliman Liem" Subject: [PATCH 0/3] crypto: inside-secure: Add Support for MaxLinear Platform Date: Tue, 20 Sep 2022 16:01:36 +0800 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: maxlinear.com Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, I have been utilizing inside-secure driver on MaxLinear SoC platform (which has eip197 hardware inside). One issue I found is that I needed to flip the endianness in eip197_write_firmware() function, which for reason I am not aware is using big-endian. The firmware that I have is clearly using little-endian, and unfortunately I do not have access to Marvell platform to do more investigation or comparison there. I have also tried to look for clues in Inside-Secure's hardware/firmware documentation, without success. Thus, assuming each vendor may use different endian format, on these patch set I add support for little-endian firmware (default remains big-endian). MaxLinear platform can then utilize the option, which is implemented as soc data. An alternative to this would be implementing the option as a new device-tree property, but for now I assume we do not need that since each platform endianness should be fixed, and will not vary per board/hardware. Please help review. Thanks! Peter Harliman Liem (3): crypto: inside-secure - Expand soc data structure crypto: inside-secure - Add fw_little_endian option crypto: inside-secure - Add MaxLinear platform drivers/crypto/inside-secure/safexcel.c | 73 ++++++++++++++++++------- drivers/crypto/inside-secure/safexcel.h | 10 +++- 2 files changed, 61 insertions(+), 22 deletions(-) --=20 2.17.1