From patchwork Wed Jul 13 11:03:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 590646 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 145ECCCA482 for ; Wed, 13 Jul 2022 11:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235672AbiGMLEf (ORCPT ); Wed, 13 Jul 2022 07:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235765AbiGMLEc (ORCPT ); Wed, 13 Jul 2022 07:04:32 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6455411A11 for ; Wed, 13 Jul 2022 04:04:29 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id y8so13619795eda.3 for ; Wed, 13 Jul 2022 04:04:29 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=qNYP8B1ME9KY0a8jTfTcqgXcyXU8mAW2KwCYvewBtYU=; b=T7znwU0n1MdPtajzmK7Z6fMAwbtfuwSIUu8mM8O7VeRVr6QGzfWysCMZQH344Csi9c oQUSSw9tGF1UgDTtRcN25QkNoCMaCjWOdTCpNLch2HOtVv/s7tTtWr+jl1IFdPF+4ejd HLSUotBKqnR24kDe/koZBTZfQ2emZ/kEiJGWPsu9IvsS1Iv/4Oo+kb8vJzCEMPz/3lVr VJ1NePYiwRaxCsoT1JiFExVvi/AVaCsVC3j2G8iNQWL15KYNBkKzAgol826nOzx/igsX RRgOE+MTu16LEhyaaVlKs59KVkekV6gQ1mqdPcoUYrtPYEhlpXtP9lc7Iy2qZVDWb2NV yN5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qNYP8B1ME9KY0a8jTfTcqgXcyXU8mAW2KwCYvewBtYU=; b=k+sP/Smjxkd6pvx/2YEZbOrwVULyju9iKyWM4miR7lnnCsv8h4MYoV50f4LAdX/yX6 906r2w28J+f4yksKhHgOdgt5JzE7mpA3cfqA4OXaRRWUXKOxwv8zm+R+CcD5exI5LzSi DtE2bZtNOmbvp8LyJFnnjTvY5a3/ff6XmcR0SAJdhoYfljp7jsKket9fenijrM3I1kgY NuQw9UNmDPmbA++PqqTrjTwNg1P5hiNTF0iuVS7f6rBDmcYasUIIq34NWKcK8GI1UQGE MS5oDtpq6+r0d16hxq8T4K8DFGia/BReSxHOFagRqgUARcvonDBdakTKGlzrSz2/U6E9 1jiQ== X-Gm-Message-State: AJIora/1InW2XRv8Y4EEvuuVBZYirxIiFMwq07xtCgaK/NrV3ay0Fwwx Gu+eJzqZcrNFdyseA2THr5c6TaEdP/o+mJCS X-Google-Smtp-Source: AGRyM1s2KBHAmTAhxDYhWdtvoYkDXjG3eS3gnOPmKV32f9vYdsQr7ybH+7neovTiTcbxD3KuTYNi2A== X-Received: by 2002:a05:6402:3219:b0:43b:6f3:8ccb with SMTP id g25-20020a056402321900b0043b06f38ccbmr4050107eda.345.1657710267815; Wed, 13 Jul 2022 04:04:27 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id c9-20020aa7d609000000b0043a75f62155sm7801152edr.86.2022.07.13.04.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 04:04:27 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Andersson , Mauro Carvalho Chehab , Hans Verkuil , Stanimir Varbanov Subject: [PATCH 1/2] venus: kconfig: Fix compile-testing on x86 platforms Date: Wed, 13 Jul 2022 14:03:50 +0300 Message-Id: <20220713110351.827446-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220713110351.827446-1-stanimir.varbanov@linaro.org> References: <20220713110351.827446-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fix Venus driver COMPILE_TEST compilation on x86 platform by adding a dependacy on V4L_PLATFORM_DRIVERS and select QCOM_SMEM instead of depending on it. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/Kconfig b/drivers/media/platform/qcom/venus/Kconfig index bfd50e8f3421..95814b175c3e 100644 --- a/drivers/media/platform/qcom/venus/Kconfig +++ b/drivers/media/platform/qcom/venus/Kconfig @@ -1,12 +1,14 @@ config VIDEO_QCOM_VENUS tristate "Qualcomm Venus V4L2 encoder/decoder driver" + depends on V4L_PLATFORM_DRIVERS depends on V4L_MEM2MEM_DRIVERS - depends on VIDEO_DEV && QCOM_SMEM + depends on VIDEO_DEV depends on (ARCH_QCOM && IOMMU_DMA) || COMPILE_TEST select QCOM_MDT_LOADER if ARCH_QCOM select QCOM_SCM select VIDEOBUF2_DMA_CONTIG select V4L2_MEM2MEM_DEV + select QCOM_SMEM help This is a V4L2 driver for Qualcomm Venus video accelerator hardware. It accelerates encoding and decoding operations From patchwork Wed Jul 13 11:03:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 590202 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE9DECCA479 for ; Wed, 13 Jul 2022 11:04:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236141AbiGMLEh (ORCPT ); Wed, 13 Jul 2022 07:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236038AbiGMLEf (ORCPT ); Wed, 13 Jul 2022 07:04:35 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8520E113D for ; Wed, 13 Jul 2022 04:04:31 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id k30so13605528edk.8 for ; Wed, 13 Jul 2022 04:04:31 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=DU5XuSW/046mOOm+NLcLZp7tRfHbjzmrVG2d7moN73o=; b=TfwpHdjd3WTm7+Q1rz1BBJtUZDY36nJHU4SwbysADFTmD8X2vkgPfHAu1cL5imoXjo aC5qceDOX2HhpYWLd8Dog+yLL7CHJiFAkMF0xR+7ColcILO/beGrIuPLKWtHk8EarT4n 01ct3IkgVRX0Dn2p5Gwck4nvsvMAyq2Ksi7ROAP1GZiujf3wCdSfjSB6bZRoMRp6PBzP MFbrOLhJnc++ddD6X/PXb9Xff9fvIQ2sVUltx3KcNO/2dgWVUceJwbDILWJTnCu1kQxv IbXx19TEvYQO9lZeflifdo7o/gab97aNsL1SRGC82cHS1GhHmlb+JsCtDy08smhoEHeG ZSEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DU5XuSW/046mOOm+NLcLZp7tRfHbjzmrVG2d7moN73o=; b=uMEVXbw0/LcNEnlurmHUmGzDVPsEMRxpl1ymbcM0kzv6ymh7QctmHXIU2x+VPWZ1D7 ph1Xqw7yFLbSULT5eV0kro1z1h/0O83teIwgxjasgSCur8qffBy9CKXo7HwtcFIrLy/H 5lRKZaq6ng/9u3ZQsnyPy3uJPGSmsx4Kxxemif2iF4QICiwxBD38V4Th/2qI4YbePskW COW39vMoByWXzHH8X6a/z1UYnr2MaenkZN534ng7snc0KUxY799m0YeZLN3rPHBASiou GDp5Td080wPjGBBYPOIfu3BUOxIva4lILG2oD54FDr9mxJk1Z903/bzY5wBGacmqg6WX odvw== X-Gm-Message-State: AJIora8GX5LtXXQXeKHKSuzlCAgo+yuyH5VUL+oErozMwFgMjGu6zJam hMCRTFdgYpNegc1Rt1h+TD7ZwBz3CgVnhhlz X-Google-Smtp-Source: AGRyM1sF3/3nzpdNyUiYD97PSTi6VVNkfmFxs8ONGJPQV8pikiV9P9XJvw2wvdvABIFiNmMi1ffSAw== X-Received: by 2002:a05:6402:1e92:b0:43a:7cd0:6bed with SMTP id f18-20020a0564021e9200b0043a7cd06bedmr4079253edf.423.1657710269651; Wed, 13 Jul 2022 04:04:29 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id c9-20020aa7d609000000b0043a75f62155sm7801152edr.86.2022.07.13.04.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 04:04:28 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Andersson , Mauro Carvalho Chehab , Hans Verkuil , Stanimir Varbanov Subject: [PATCH 2/2] soc: qcom: smem: Fix compile-testing on dependent drivers Date: Wed, 13 Jul 2022 14:03:51 +0300 Message-Id: <20220713110351.827446-3-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220713110351.827446-1-stanimir.varbanov@linaro.org> References: <20220713110351.827446-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fix following unmet dependencies seen when compile-testing Venus driver: WARNING: unmet direct dependencies detected for QCOM_SMEM Depends on [n]: (ARCH_QCOM || COMPILE_TEST [=y]) && HWSPINLOCK [=n] Selected by [m]: - VIDEO_QCOM_VENUS [=m] && MEDIA_SUPPORT [=m] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_PLATFORM_DRIVERS [=y] && V4L_MEM2MEM_DRIVERS [=y] && VIDEO_DEV [=m] && (ARCH_QCOM && IOMMU_DMA [=y] || COMPILE_TEST [=y]) by select HWSPINLOCK instead of depend on it. Signed-off-by: Stanimir Varbanov --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index e718b8735444..68f29452e5fa 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -139,7 +139,7 @@ config QCOM_RPMPD config QCOM_SMEM tristate "Qualcomm Shared Memory Manager (SMEM)" depends on ARCH_QCOM || COMPILE_TEST - depends on HWSPINLOCK + select HWSPINLOCK help Say y here to enable support for the Qualcomm Shared Memory Manager. The driver provides an interface to items in a heap shared among all