From patchwork Tue Jun 8 11:41:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 12306549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7942DC47082 for ; Tue, 8 Jun 2021 11:43:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5743761359 for ; Tue, 8 Jun 2021 11:43:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232197AbhFHLpc (ORCPT ); Tue, 8 Jun 2021 07:45:32 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:43719 "EHLO mail-ed1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232146AbhFHLpc (ORCPT ); Tue, 8 Jun 2021 07:45:32 -0400 Received: by mail-ed1-f54.google.com with SMTP id s6so24115728edu.10 for ; Tue, 08 Jun 2021 04:43:28 -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=65A8swxG6F/ylZkbgWYzbxA0ZkKEGw9/dd1+oL9pTwE=; b=kcgHRx7Fut0ZIyND9s9iBNEwwWtFn1Ujj0GtMhNPnfIFh8cO6bu+xyZs+dUeG35X0E wAuK6peHjb/7oXjVSRtajwSpkNEWHcuT5E8XHfaW67jAwKQfbKLbqM38gUocQLotVLQ+ IrtM4g8eWVmSxfQintTUpcTFGLa2AyyVZGY6s5s7gb/J0Rv8UI5VkcPoXR+HDlaODv4X qyI5HGyX+PNcH/vDex5ImOWEewbLkX5kh7MjudnX2pNu7FuFDcMqI+SdEIzIgoBzEsPH Sahl6REdq9wzYfjWWvKQ7KD0MiIudWhRlhyvHAv0dckZ+Msq9Q3wNZY3zhOJc2V3ttIV VovQ== 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=65A8swxG6F/ylZkbgWYzbxA0ZkKEGw9/dd1+oL9pTwE=; b=o56ZGGkSsuCB6pIitPu/WR99mArNq9BVl+wcgZ5wbvbBgmuUFpfhYSeINzwXsF3OF2 1sR9730YWYC4V/B8bEVvv/dQ3+PwToXK09OIKjfRh/gMLIuCTr31dcJwE0W23XFDSGIb iiImvxWctReCwSbtTEGeudRli4uugh6g/pFN3WHZZftkGzWB9Zm+olmAP9RouiFD0TdY hHa5fYYU1oJkWlYEUuZQCFTwxA0fTyMQKp2BKOuexCVMNo7u2mqoZGWDrugEVh5f92Au D3bHhSWrwgzEjJVeaPn7Ii44GdV1i7wFGew6tgZZqcL3LxpWXJnCDDhNPgWSav9LMtcH J1ag== X-Gm-Message-State: AOAM5336OtI8vKsQVkFYqyR4GoA5+vLQked4Q864CwgbPtyZoBdltPyw j916XwrHqRT616VuoXO8xG27S6/kx928MN5j X-Google-Smtp-Source: ABdhPJwGWZ8jOAdwtABw7tBzCTlHxQlQSIzH1R8MjGRJMsaIzJi7acSzOtAPhe6jqNDcBIf/ENMwYQ== X-Received: by 2002:aa7:db93:: with SMTP id u19mr24987185edt.227.1623152548257; Tue, 08 Jun 2021 04:42:28 -0700 (PDT) Received: from localhost.localdomain (hst-221-104.medicom.bg. [84.238.221.104]) by smtp.gmail.com with ESMTPSA id x4sm8754740edq.23.2021.06.08.04.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 04:42:27 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vikash Garodia , Mansur Alisha Shaik , Stanimir Varbanov Subject: [PATCH v2 0/5] Venus fatal error handling Date: Tue, 8 Jun 2021 14:41:51 +0300 Message-Id: <20210608114156.87018-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Changes since v1: * replace pm_runtime_get_sync with pm_runtime_resume_and_get in 1/5. regards, Stan Stanimir Varbanov (5): venus: venc: Use pmruntime autosuspend venus: Make sys_error flag an atomic bitops venus: hfi: Check for sys error on session hfi functions venus: helpers: Add helper to mark fatal vb2 error venus: Handle fatal errors during encoding and decoding drivers/media/platform/qcom/venus/core.c | 13 ++- drivers/media/platform/qcom/venus/core.h | 6 +- drivers/media/platform/qcom/venus/helpers.c | 16 ++- drivers/media/platform/qcom/venus/helpers.h | 1 + drivers/media/platform/qcom/venus/hfi.c | 48 +++++++- drivers/media/platform/qcom/venus/vdec.c | 18 ++- drivers/media/platform/qcom/venus/venc.c | 116 ++++++++++++++++++-- 7 files changed, 201 insertions(+), 17 deletions(-) Tested-by: Vikash Garodia