From patchwork Fri Jan 5 23:57:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 123572 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1428073qgn; Fri, 5 Jan 2018 15:58:15 -0800 (PST) X-Google-Smtp-Source: ACJfBovXYdwjCRw2uv2g5m/3zWkRl/uiz1dLQw1l7Zy8mEXRYbO6wZw+nQ7p6fUzCMrMjmJWxJBS X-Received: by 10.99.104.9 with SMTP id d9mr2381345pgc.193.1515196695778; Fri, 05 Jan 2018 15:58:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515196695; cv=none; d=google.com; s=arc-20160816; b=JLSZvmhdGlApq9FUIgpZnR/0I62vkMBsZ4or1f4ZaExeeDHnbRDqHcnp1LDGCoJpXW EvImudtCdnAYxpCDTYfOXXqxxCb5PAaMSYAo/XT1JkZZVvcLCOjTUAPMizdCkkeon3Ug qK8nImBnU02KabviLvrDgdcuGoSVsmxuL+bEJEWcCut7EXhux25GxmZ/Y1mHATdhDECR kBN8qmRZqAR0X9T9BL5HYnORtI96Mui/9fVVqaWfxxwYEajLCnGhpBTnYUD9o6Tb6f9Q /2oT8blnUuS/0Fqqy5AJGIiXSVpQGVclk4X3w6PulnXzdUJFY5XxzYD5lYo+B02dUD9Q pbtQ== 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:arc-authentication-results; bh=Ldz/NHhdimmRiF4xiGfvTg+EaI+TST0BBLPYqqGgQdA=; b=NgdM4kov9U8w9Vw1fAorB9b+/5z7UPrdillgBrzaEVs3ALg2bRxYh8tQD84pLo7fkr f1EZTKzPDKKeBVm9S5gpZvz97YVJ5xpn+DVh2uCskxdvnWn7BC3ozs7XAMEy26TmZeTs bBzveLYHv4IdibruC8hLzA0wJ1Zrl5AxYXBhUsQ6K9F5Fu1rVKhmiS1WB0e/yYyMO2t1 KZsDktLAtTuh1w/T6I9PVuB7g3o5TECT2VeqkSqBd9j1AEbr291KZdQo9FeeIRHQnKxI CxKr1BpbR6JFeyfqqKq6kXuW6hYCn4k0JQJjIQGSyRyqqi5upu9TijAaFU80wYecgd/G LPvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QSfMniwm; 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 u13si4724692plq.204.2018.01.05.15.58.15; Fri, 05 Jan 2018 15:58:15 -0800 (PST) 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=QSfMniwm; 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 S1753352AbeAEX6M (ORCPT + 28 others); Fri, 5 Jan 2018 18:58:12 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:42679 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752875AbeAEX6K (ORCPT ); Fri, 5 Jan 2018 18:58:10 -0500 Received: by mail-pg0-f68.google.com with SMTP id q67so2567856pga.9 for ; Fri, 05 Jan 2018 15:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Ldz/NHhdimmRiF4xiGfvTg+EaI+TST0BBLPYqqGgQdA=; b=QSfMniwmbEuzm0Nh/wsVbjJ6TF0lWEchryugJl/dkcozTjAedv7yqLbztRbuPfDedl K4XYJecgeq7lMkgqVolzxNzrZnBicageXF62+9vJ7mhRPHr+q1zK8zw2wivtPvs1Xeb0 O7lzlHT4ds/Gs0uT712Ps2V7HrLDXnlnpw1Gk= 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=Ldz/NHhdimmRiF4xiGfvTg+EaI+TST0BBLPYqqGgQdA=; b=X09QcRptSHvztKOoJeOMRWoK14b6XhpYtqYrrIqHaURXAgO/zOK5bdS0KY5j0T8KYB unhHRVbXN5WJz9XLnGcREr9rUEBykDAmCw5y7lwLNVxaiP7JNkWfRg17fkoaE3ESpIIT KL8FUgJaPsyz70m/hFyL7ELiYkLw84MDzbXIYZeG8DFcKJ0ENh1aUjKNmu7HAIoGq4bg LwocyyvFJf+ZhEquzsrPFeEKWYDM7vkctxqHLLYpzHyZYSpzc8px5o8rrX1Odor4yhVp vHh8KnW3ty5EztxQn3emRkHb1N2f8O//NkgbSl9leU5N5OKZwTna3SK6I2mQ+qdaCI/G qIRg== X-Gm-Message-State: AKGB3mLHxQfRhU8+f0S8l6yamvKoiIc8BpUHtijokPQ8zZtGS9IX3c/m uS6xRxwuTyZTyERNYgbv4MHIRcfbAeE= X-Received: by 10.99.56.77 with SMTP id h13mr3866783pgn.275.1515196690019; Fri, 05 Jan 2018 15:58:10 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x4sm14473188pfk.51.2018.01.05.15.58.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 15:58:09 -0800 (PST) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Loic Pallardy Subject: [PATCH v2 0/8] Remoteproc cleanups Date: Fri, 5 Jan 2018 15:57:57 -0800 Message-Id: <20180105235805.9948-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch removes code that became unnecessary when the recovery flow was redesigned. The following patches moves the assignment of cached_table to the resource table loader, rather than core code, which allows this to made optional and finally drops the various dummy resource tables provided by drivers. Then finally the last patch ensures that table_ptr isn't left pointing into memory of a stopped remoteproc. Bjorn Andersson (8): remoteproc: Remove depricated crash completion remoteproc: Cache resource table size remoteproc: Clone rproc_ops in rproc_alloc() remoteproc: Merge rproc_ops and rproc_fw_ops remoteproc: Don't handle empty resource table remoteproc: Move resource table load logic to find remoteproc: Drop dangling find_rsc_table dummies remoteproc: Reset table_ptr on stop drivers/remoteproc/qcom_adsp_pil.c | 8 +-- drivers/remoteproc/qcom_common.c | 19 ------- drivers/remoteproc/qcom_common.h | 4 -- drivers/remoteproc/qcom_q6v5_pil.c | 18 +------ drivers/remoteproc/qcom_wcnss.c | 8 +-- drivers/remoteproc/remoteproc_core.c | 83 ++++++++++++------------------ drivers/remoteproc/remoteproc_elf_loader.c | 59 ++++++++++----------- drivers/remoteproc/remoteproc_internal.h | 57 +++++++------------- drivers/remoteproc/st_slim_rproc.c | 32 ++---------- include/linux/remoteproc.h | 21 ++++++-- 10 files changed, 106 insertions(+), 203 deletions(-) -- 2.15.0 Reviewed-By: Loic Pallardy Tested-By: Loic Pallardy