From patchwork Tue Jul 7 21:00:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11650249 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 409146C1 for ; Tue, 7 Jul 2020 21:00:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24A6220738 for ; Tue, 7 Jul 2020 21:00:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tCwo5WCq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728982AbgGGVAR (ORCPT ); Tue, 7 Jul 2020 17:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbgGGVAR (ORCPT ); Tue, 7 Jul 2020 17:00:17 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 007B7C061755 for ; Tue, 7 Jul 2020 14:00:16 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id t6so20590345pgq.1 for ; Tue, 07 Jul 2020 14:00:16 -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:mime-version :content-transfer-encoding; bh=e0eJn8FGSR8dkHsS13OS+/058gx5Z0WZfRiZRVi4N2k=; b=tCwo5WCqkQBIbpNM9kp9nC0WWWNsmQijesmFFk/s/0UkiFbatdZB6A0JOVesxoY6Hb E3V7T8CWlhR/h6r5dwWHZ2cx8M5o6egFs39C7PEDovTDj3iiQLS+cSccRLvzPbzD0KnF PHKtu97DE8wK7Kqvo+hQaXolXcC0LjKEeIiIY+1MbXjbVKjZIhezLZExpcLXDeg+suvd yhw02wjZzVzeKCq3tplC5GDwdxokLiwCu1YDGKshNXkszA0XvdfEzyLvKMy9hdz3B/ed /N/sEBqwP380yOu1do8qXxYO0qexVAB20i69eZbMcpEclBSeB5mlIWKBGkjvIhTFQGcc wMMA== 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:mime-version :content-transfer-encoding; bh=e0eJn8FGSR8dkHsS13OS+/058gx5Z0WZfRiZRVi4N2k=; b=f3AtORXYxyHOwXV6Zu6jHmQnP5W8ChbqbGKie8doJXoJgRxB8GCU491LfW5rxzO2aL HMhZOsbEHa6NN9Gn0oMb4mtzH0Vd6xC26aWfWrAEHo15SmnylQ7rcvZQ4MPK4MARBcfm RCoKj1ra/LK2eRrmV36ScurpK5YDugkLv2fCPVfLpn+4+1czM7HJe6f+1v6TTGUo6N+f DadJNSgySMec9KJFELoowNCxdHHUHa0YszgHwrMKLMDSZoWziPMtf4EyysUMKxJzOB4k X1QQYW/WE0qa2yS66cwy9YKB9OWcTlJ2q8Rw8wvcgaFOlk/HBQ2LL63gx6IHaCIeeqoj lDMQ== X-Gm-Message-State: AOAM533tgAvAZapALIjymX09atimfWvQCcnpb4MKsGN31tJV5KPDBVRJ UI7qkZl6dahV5EFb90MJLPNXqA== X-Google-Smtp-Source: ABdhPJwh6/TcSsh6pYnC27AJdTiG0hqRhzapf7D7/kHjK8mNOh78D6OxQPwnNLcGit+QIWG8jPizLw== X-Received: by 2002:a63:a05f:: with SMTP id u31mr39957007pgn.4.1594155616424; Tue, 07 Jul 2020 14:00:16 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id b21sm13738061pfb.45.2020.07.07.14.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 14:00:15 -0700 (PDT) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/9] remoteproc: Add support for attaching with rproc Date: Tue, 7 Jul 2020 15:00:05 -0600 Message-Id: <20200707210014.927691-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org This set provides functionality allowing the remoteproc core to attach to a remote processor that was started by another entity. New in V5: 1) Added Bjorn's reviewed-by. 2) Removed PM runtime call from patch 04. 3) Used a 'case' statement in patch 05. Patches that need to be reviewed: 4, 5 and 9. Applies cleanly on rproc-next (49cff1256879) Thanks, Mathieu Mathieu Poirier (9): remoteproc: Add new RPROC_DETACHED state remoteproc: Add new attach() remoteproc operation remoteproc: Introducing function rproc_attach() remoteproc: Introducing function rproc_actuate() remoteproc: Introducing function rproc_validate() remoteproc: Refactor function rproc_boot() remoteproc: Refactor function rproc_trigger_auto_boot() remoteproc: Refactor function rproc_free_vring() remoteproc: Properly handle firmware name when attaching drivers/remoteproc/remoteproc_core.c | 213 +++++++++++++++++++++-- drivers/remoteproc/remoteproc_internal.h | 8 + drivers/remoteproc/remoteproc_sysfs.c | 17 +- include/linux/remoteproc.h | 9 +- 4 files changed, 230 insertions(+), 17 deletions(-) Tested-by: Arnaud Pouliquen