Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1290830ybi; Fri, 21 Jun 2019 18:23:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBkMkFBMy0/EX7v9U4oJH+dSpD6WdyoFcipclbqo2rXvjxqW45DPPHazuKeTT+dB7XXC/a X-Received: by 2002:a17:902:9688:: with SMTP id n8mr52514415plp.227.1561166596225; Fri, 21 Jun 2019 18:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561166596; cv=none; d=google.com; s=arc-20160816; b=EVgJ1gyr63jOu71Vvt0f7M9+12llnvE+h2qDgrAPxbolxns8IUfOj6ntP7RyfqKyrH LwaZ0oQARiSCOlGQSC3Cmwz7+JfRweC8tVYdWzr2/KImdq4IcEnzPVYMiXNFJB15vACQ 4c/6nyldcZthpipdguMPeAuh7k8npingwiicKrbwAmPRrR9jha3niUQRD5j27M0vpeSA ZBTj05eQ4jNb8/pP62O1zBcSbyhTkGmr5cVsyaV0YuuCPcaP2aO/FXR28MngkfM5BTf6 2q5hzvB25Fa7jsD3H7a/HrFie9J6hJlUJEzCtWgVKXV9Pw2r1aFCgs8iA/iJrEJ6mg3L Pckg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=gfKY55VDFmH9sfDf7QmSwnOcZWdz3/zPBcS1vbxTeIs=; b=BbYUAs4N+Ed/WmuQCR0/3ZmwuUP0ay4jaKPRcWDZPOgBQAwLlP0W+LW5/z2ngHKfBm +pi1tEpXvSxSjR4uQyMPRO1v85K0zvPuXig03TV9oXaeUDHP827XLo56r72BhdZZd2MR RkNGHMKFZnIo0T0UMc2pLpDA+FEkVCCbAaAOQmJd70chOuCgsx3FmmAjNTRWrWiHZg8c 3PLsdMDZ2+vtUVpvtY0FzpacrMcWb4dijqnJCPoJJyk0p7WqlAzbF9MD719a1ykwZl/6 hd85kWuRr+OncwCWwAbH6eBVPpHgLb1geSRZCQSbA2h+VnuwcfCehXL6veL347wUId/A faUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vSE0SwOp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si4270180pjq.69.2019.06.21.18.23.00; Fri, 21 Jun 2019 18:23:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vSE0SwOp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbfFVBVv (ORCPT + 99 others); Fri, 21 Jun 2019 21:21:51 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:43667 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbfFVBVv (ORCPT ); Fri, 21 Jun 2019 21:21:51 -0400 Received: by mail-pl1-f195.google.com with SMTP id cl9so3778442plb.10 for ; Fri, 21 Jun 2019 18:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gfKY55VDFmH9sfDf7QmSwnOcZWdz3/zPBcS1vbxTeIs=; b=vSE0SwOpKpJr4NR9EMm+8dVlG2peppROnIGEZle3TSjbPYS/NAc3/8BaXLuoGTies0 nW1NbiYojr581BtnqZNlK3MJSythEOHVVihKngZUfmHVIMpsqUYWdw3IhT2sqHsV6sWi W4BIIOjK7yTDtJqj6eTDHISx+Nyl3A1NgqTXsv85rTbrlaBbEHGdSSYIfsVcXMHZp0nT oE2xzNxcPuzvVpIaOSx0u5orCPE/PvCFXZ/gGLN0HcqPW6q5yJj1NzwzTuey2x/FjTbU yNezDim0JlOy9KIv8aPaJR7SZmsGwSxPhVCbPTqtLYWdjKc2aGPEvVL4xVk2z+rXD2LP lgdg== 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; bh=gfKY55VDFmH9sfDf7QmSwnOcZWdz3/zPBcS1vbxTeIs=; b=CrfRcXQOVQV+/pVIbbdqaK6MpiYCKL7thaF21W+spFCGp21rkBPJYhBTsP7rUSXnQf qc3TZiKELbxlOPnAyNkNvpXmeYgY1G8Um05XwIsTTeJWsCftiZBwpiMWT/ejFTwESJCc fuPwfJ4tQEpwX/dzMewJcoMIjfRZ/wIyJ7VAefl1Q/6nOY1XikL2VsBOKrI/q02MGp+/ Ln4R2YgS1SstjK45mkCWwHVZbmDaoD4BXvq/Ggq1mnOpVYlS4SyDfSSa1YVrBA9rihbO BRM8sOrhnZ6hzjWo+pbst3yC4xTY3c1LKfFENkt5Xack1HFQbmlDa0csqeYrsPz+eEIH 9mIw== X-Gm-Message-State: APjAAAXWItctcBqZSm4YnPOikBBSOvlczVCJqBhOVQ7n7ySmhzziMf75 KPO7j25Qsjhq3jO3+JM8fziHcA== X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr52642916plo.88.1561166510236; Fri, 21 Jun 2019 18:21:50 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id u5sm3539148pgp.19.2019.06.21.18.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jun 2019 18:21:49 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Ohad Ben-Cohen , Bjorn Andersson , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] soc: qcom: mdt_loader: Support loading non-split firmware Date: Fri, 21 Jun 2019 18:21:44 -0700 Message-Id: <20190622012146.19719-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Typically the firmware files for the various remoteprocs is split in a number of files. But in some releases these files are available in their unsplit form. Extend the mdt loader to detect the unsplit firmware and load it transparently. Also expose the function that compose the metadata header for validation and use this from the modem remoteproc driver, so that it can support unsplit files as well. Bjorn Andersson (2): soc: qcom: mdt_loader: Support loading non-split images remoteproc: qcom: q6v5-mss: Support loading non-split images drivers/remoteproc/qcom_q6v5_mss.c | 33 ++++++++--- drivers/soc/qcom/mdt_loader.c | 88 ++++++++++++++++++++++++++++- include/linux/soc/qcom/mdt_loader.h | 2 + 3 files changed, 112 insertions(+), 11 deletions(-) -- 2.18.0