Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5218756ybh; Wed, 7 Aug 2019 02:42:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzx2ohiNkLIhbkZ6LBBz8p2/s+fuMnBIFqRSFmtRJX+fNHcTE41kkMhj0gvVKVO47u0754D X-Received: by 2002:a62:7641:: with SMTP id r62mr8350355pfc.35.1565170945618; Wed, 07 Aug 2019 02:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565170945; cv=none; d=google.com; s=arc-20160816; b=NwKKbuIla+9T+OWhnwiWlZDOS9ATFhydWobCjSzP8CT3LemdkHuyEPFFzR/M9FNliT hTuUtL6GP46hsX7aS5NDIRPxLmQSaK6prs7Fw0A+SdOBlhjgp79tXVnsiKoiTCUdIsxu AoU8tjXo56h5lg1CKFM8ky39RAHLgKIxY2UM9eziDMNodPNY/YHJaTC9iq+tuKtW8OQv diJhz0ww4bGhksp5JRvJQs6MtTVJ+JlaZlI3Z1HMixF15f0vAVG4pJ4NR7S29HsnwY3H SpVBfhe6EOYNYBO0wP/IOEXvQKm+VmUuZcDXzsl9zWzJH1zkMZfTNYud73McJrLbtmMX vzrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=qS4DePYK3LoLrsVbTANrZZhVUCfmfeWUeshitfyIKXA=; b=cFyb+vU3rmdw3ZdQERKKiSHLAC49E6SlS5VmDRfkRrIU/tqSy0Lorab0l1FpJ3E/Rk 1uljd858UkRqrE1mQbGCmaFsqZPZNv0oKFHSnWdyn39BEYQeC4jqRZvDgOR6V+16vp+V dTf1EABKNK0Ow/44o0g3fuTpzsgk+eEIL0izK/2kbqvwIQ8D/cJYcPObAIsIIuDxIKyY CmyjLvgPBQXZH9A/UzymeVdy+9FYM4ya4MAWmwQVNs+qSuvkwiLy2BiVCwSDbzaX78vT k1+WFZHfsuiBymNh1VigzqJcAFd7VTI0K3LnKkgoZZrjpeUFZPgQHB2p8i2odGzIQDeb 8n/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=vv9eVlJP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si48009732pfr.8.2019.08.07.02.42.10; Wed, 07 Aug 2019 02:42:25 -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=@st.com header.s=STMicroelectronics header.b=vv9eVlJP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728202AbfHGJl3 (ORCPT + 99 others); Wed, 7 Aug 2019 05:41:29 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:21804 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbfHGJl3 (ORCPT ); Wed, 7 Aug 2019 05:41:29 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x779aCO3014067; Wed, 7 Aug 2019 11:41:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=qS4DePYK3LoLrsVbTANrZZhVUCfmfeWUeshitfyIKXA=; b=vv9eVlJPjRfxmVNy8iRX8uPgnISgaeWsF/X9Z32xZR76QKpVWNmqakos3us0BkLqHCHR Wor3M9x/CEXUBz2yL390fM+/5CKmkmVFtugLUBb6U+atR+r2ROmc4TLfFw8Z20byZEKP V/M/ZvEHeywnQ7l9BcgAEWxcxeRIliTNwkmiqCTI1bPo6Tw0FM7E5fOelouUCabauDtr EfKZE+tu2OOvdVmSKZEFUQ6HmM8WT9JxW/eciwkMurqvuxTQP54BMNCe1qSKn9T4IU24 6XkGeXh39QNhq+IxkKwb8GCoIH3FmG9iCeapvLtY+zsoVz1Po0cmPHogiTBqFwAkgAVZ Jw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2u4yr264d4-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 07 Aug 2019 11:41:23 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 217DF31; Wed, 7 Aug 2019 09:41:23 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 11CE12D9041; Wed, 7 Aug 2019 11:41:23 +0200 (CEST) Received: from SAFEX1HUBCAS21.st.com (10.75.90.45) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 7 Aug 2019 11:41:22 +0200 Received: from localhost (10.201.20.178) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 7 Aug 2019 11:41:22 +0200 From: Loic Pallardy To: , CC: , , , , , , Loic Pallardy Subject: [RESEND 0/2] remoteproc: add support for preloaded firmware Date: Wed, 7 Aug 2019 11:41:17 +0200 Message-ID: <1565170879-3185-1-git-send-email-loic.pallardy@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.178] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-07_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series introduces a new flag in remoteproc core to add support of remote processor having their firmware loading by another way than standard remoteproc core sequence. Firmware could be ROMed, loaded by security or bootloader before kernel boot or loaded by a special rproc platform driver interface. When "preloaded" flag is set by rproc platform driver, remoteproc core doesn't request firmware and execute rproc_start sequence as usual allocating associated rproc resources. It is rproc platform driver responsibility to implement the right firmware load operations according to HW specificities like resource table location or firmware definition if needed. Regards, Loic Loic Pallardy (2): remoteproc: replace bool from struct rproc by u8 remoteproc: add support for co-processor booted before kernel drivers/remoteproc/remoteproc_core.c | 37 +++++++++++++++++++++++++++--------- include/linux/remoteproc.h | 14 ++++++++------ 2 files changed, 36 insertions(+), 15 deletions(-) -- 2.7.4