From patchwork Fri Oct 25 10:50:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 838602 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B5E718BC0B for ; Fri, 25 Oct 2024 10:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729853476; cv=none; b=Eyefzbz3/OraUXiYDY2mgs/g7zVgB7z2q3rbiCu600Ex7iKneBCtRNUJs4RwR69/M96vr8xS5j0RmtZVvQnLdas/xpjEME/6bkZmL77PF/WV+NdWFQj656raLm8GuNuBN5tIdekFYCfZGl2ygeXy0P8cd8vPzFNAzoom8r/efd0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729853476; c=relaxed/simple; bh=SgfN217wiW0ngwkvZqWpWi0XYY+z2I+WplJDCTvPZ4A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KYHH+RXJOF7XU6gplsugocrOZC+dVIRkLD2M2QEyfvWDnxN6RCcTo1XHEMtdSiFFULsMzV1RsCOcrh4tYlfycCN3fA4G35AIftGD3Jap/u/jGKDPMORijoIx+wC7Pc7lCk50QYg1CkwzauyBsJzupM5IQU5et4qKfYqn0Mu8afc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=auVTtDDT; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="auVTtDDT" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20cdda5cfb6so16564115ad.3 for ; Fri, 25 Oct 2024 03:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729853473; x=1730458273; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xbGIK5yiKqa3T/S+Q1n71HBSd3T2s6s0+kJr3t8PUD0=; b=auVTtDDT/MsrCu9xVGmsg2KYzslWe1bfr09PnZAO3hv9Hfh+dn/+jcSL2698tIcxAB XReZWOUIBBmoZfVJQpLVGpHO/yf0kKkKbghEtArMqdAOi8L8//5rLQ2yfTtjTuEGcymJ g5Hl5NZNTuF5E28cT05CXFKwEiSQjdsciUqPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729853473; x=1730458273; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xbGIK5yiKqa3T/S+Q1n71HBSd3T2s6s0+kJr3t8PUD0=; b=PZeto6HZDC+bWR4WiscQKIS4k2YyQMrX+KFf8TxlWUsXf11cCiZQEEsOXWJk2eUtW5 KIvbdYXVsy5KCBU6DvQINg3YAvQo7G66yy2Ae2uRh5CR7OBOW6SMKz/oFzD0R6yF5nW6 3nUlYUJYWQC2UuHMMq6W6Nt+BweEb5djALhacVXm8oiUJt6VqfrBE9QdOOiKk/D3GDde 4NI01sIw83iX0vyBCuyqnK+Z35pF1y4exixFNkoNtAIIn9gKFhlkm7tykKIVHc2+J2CI bDQzRht5Si+nEdKZvezFdxTLMU7dccdsvhRDM5Gy6FiUPF6psQCRaJVYXtblmlZOEKqu MEQg== X-Forwarded-Encrypted: i=1; AJvYcCWNoNVzEXhZZhPNP+y6zdFOzOhVA+fwrAiflZJPRF7gbZKXBMkDBzTHsWgDGyUpuFAVwq6KwTHauJWu+w==@vger.kernel.org X-Gm-Message-State: AOJu0Yyw+rzBVJs8to2LzGKd34fu1mRbJ/wbOYQmTCrX818QvhBXOx0m ZIdYgUIDd8THM0kl0jU4IhBi5YQMtCWKVNTnDiB3jwcQtpj5S/b7KGlGARiqeQ== X-Google-Smtp-Source: AGHT+IFbhBwuu9+pwYn7L9yN5+DIj8UKK9XGyWuwW3fKpksbAHz+ZnTk96qEHLqbLJ1urWYSfFRVJQ== X-Received: by 2002:a17:902:ec8d:b0:20c:dd71:c94f with SMTP id d9443c01a7336-20fa9ea09bdmr105461235ad.41.1729853473542; Fri, 25 Oct 2024 03:51:13 -0700 (PDT) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:bd37:bccf:f3e:a9ef]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-210bc030809sm7326755ad.227.2024.10.25.03.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 03:51:13 -0700 (PDT) From: Sergey Senozhatsky To: Stanimir Varbanov , Vikash Garodia Cc: Dikshita Agarwal , Bryan O'Donoghue , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCHv4 0/3] media: venus: close() fixes Date: Fri, 25 Oct 2024 19:50:36 +0900 Message-ID: <20241025105104.723764-1-senozhatsky@chromium.org> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-goog Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 A couple of fixes for venus driver close() handling (both enc and dec). v3->v4: -- removed vdec_ctrl_deinit() (Dikshita) Sergey Senozhatsky (3): media: venus: fix enc/dec destruction order media: venus: sync with threaded IRQ during inst destruction media: venus: factor out inst destruction routine drivers/media/platform/qcom/venus/core.c | 25 +++++++++++++++++++ drivers/media/platform/qcom/venus/core.h | 2 ++ drivers/media/platform/qcom/venus/vdec.c | 13 ++-------- drivers/media/platform/qcom/venus/vdec.h | 1 - .../media/platform/qcom/venus/vdec_ctrls.c | 6 ----- drivers/media/platform/qcom/venus/venc.c | 12 +-------- 6 files changed, 30 insertions(+), 29 deletions(-)