From patchwork Thu Jul 30 11:46:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 11692811 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 7881413B6 for ; Thu, 30 Jul 2020 11:47:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F4D720838 for ; Thu, 30 Jul 2020 11:47:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zt750EJ2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727932AbgG3LrV (ORCPT ); Thu, 30 Jul 2020 07:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727906AbgG3LrP (ORCPT ); Thu, 30 Jul 2020 07:47:15 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07872C0619D2 for ; Thu, 30 Jul 2020 04:47:15 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id a14so24618870wra.5 for ; Thu, 30 Jul 2020 04:47:14 -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=tIZ4h1fhX2WCRnbynq3WODdOngNcLlyJs5mtZ1Hut3c=; b=zt750EJ2vU5XTvLnTcd3pHK0vw5SOb0ldRbuYnr3ab8Zf4dINgPH7UflqWBIUOh2MA gI1ak3nj8MX5XFyP+Qk3S6t8HGEhnoDCmoFM8sY5WmZngoaHRZK953+SF48h1svyS3gS /xLwWTYGFhZ7mFZVetLJ7/yD/h7KGI8wFDFkT8rm7yEvNKpuuQLvMyNzKdy3hM12Xa09 BjqSKgN3suQwBePq013RLb5tToNA73yhMS0e2rQVX/vsly2WYcfaydWFCjNqZfQvEac8 sTyHni/P2R/jTQJBYg978K6NdNuVtsLXFRAVCwTqJ7Hqrgh5av5Ehx2gvQFSotiqhPD0 v46Q== 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=tIZ4h1fhX2WCRnbynq3WODdOngNcLlyJs5mtZ1Hut3c=; b=rBGAwObW4rI3zK5xxZGHL5CMhrzGvpz+tvvLZohlu75BdqpEspvZGO6W8QC8K6PSnm W0EURlBx+x0/JltsWr09JSgvGlgUCfx65U+o4VphZuCh1TRieHPEhvzA+ZnyRcGi6IAc tId8wdpqogbzQmO/omVAcYq3ugFF2LBX61XbjkUZd8H1Vz3Z7aW8j+uODmI6QsacQUxr UHldVdGN+n5hSAVKeRwLsiIYqjvfb2O/tVeGQRvJDow2ycq5DSKokBCV58YrXN1FDiw7 ygnpCJaXrtM+WnQHqE0FvmixcBD1MUL4T5BzCG2gfms3Q02a2ioUawXUW4/+f43HnHxV SEGQ== X-Gm-Message-State: AOAM533yxL5y4ioI+FDm1W0H7q7Hpq3nxQks3nenMpWzy5SFtpqJGAqf Qs1Q5ucoqORnEATZfa0AgLiQow== X-Google-Smtp-Source: ABdhPJyPiwoyW2cOAjYW4girHCbMu9Tu7U5+ZixtcXyQd7tg+oMUFYhvjMn9nKdgc/TW33ah40YvIg== X-Received: by 2002:adf:bc4b:: with SMTP id a11mr32401711wrh.381.1596109632946; Thu, 30 Jul 2020 04:47:12 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id 32sm9636691wrn.86.2020.07.30.04.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 04:47:12 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stanimir Varbanov Subject: [PATCH 0/3] Venus - recovery from firmware crash Date: Thu, 30 Jul 2020 14:46:29 +0300 Message-Id: <20200730114632.6717-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hello, The intention of this patchset is to correct the recovery sequence for Venus v4 (sdm845). Recently has been observed various recovery failures which leads to unreliable behavior in sys_error handler. To fix that the sys_error_handler is reworked, proper delays has been added over pmruntime handling to ensure that the hardware and encoder/decoder drivers are idle. Also a wrong watchdog code in threaded irq has been removed. regards, Stan Stanimir Varbanov (3): venus: parser: Prepare parser for multiple invocations venus: Rework recovery mechanism venus: Add new interface queues reinit drivers/media/platform/qcom/venus/core.c | 25 ++++---- drivers/media/platform/qcom/venus/hfi.c | 5 ++ drivers/media/platform/qcom/venus/hfi.h | 1 + .../media/platform/qcom/venus/hfi_parser.c | 3 + drivers/media/platform/qcom/venus/hfi_venus.c | 62 +++++++++++++++---- drivers/media/platform/qcom/venus/hfi_venus.h | 1 + 6 files changed, 74 insertions(+), 23 deletions(-)