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: 590103 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 B743ECCA483 for ; Wed, 13 Jul 2022 11:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235540AbiGMLEe (ORCPT ); Wed, 13 Jul 2022 07:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235490AbiGMLEc (ORCPT ); Wed, 13 Jul 2022 07:04:32 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E0DDFD6 for ; Wed, 13 Jul 2022 04:04:29 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id e15so13618504edj.2 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=S+XmJAPFv2qzgUvkDzxySkiTxxtXp1MIHBecJRqyQIWK2lSkmz49ED3nDv9i/REMfy y/QjZBaskkbbeR8DCwukn9NcxU+dExGyDN3OUITH+HEHdTbh8shuiiNrwD83DydZXa63 WLrqicKD1FSuKiodi7K1WW6KlUnp3x313+i7flqkrDs4xcXNVE7753MfcqT0tn+eo7bH 8ionuzFClFQhcoyn6iii22AgsnHziF61AA9KBmGj+Vbops6Ajg+DLY2H9ocHjB0+iEFA v2ePq1aN9N1c62OjCLhxjVcjf67X6fueMYrSgGlPGQArY9glMJJsWh8IDRx3xEria/O+ PUQA== X-Gm-Message-State: AJIora8wEsHS73CpsMvgL3IOe7G/6Ao3R9jxqUgwd6bWhPMi/oETH9fG FdQvn/U+2n188KO+4Yw9hLYKZw== 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-arm-msm@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: 590465 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 6CC71C433EF for ; Wed, 13 Jul 2022 11:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231480AbiGMLEf (ORCPT ); Wed, 13 Jul 2022 07:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235909AbiGMLEd (ORCPT ); Wed, 13 Jul 2022 07:04:33 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D22F255AC for ; Wed, 13 Jul 2022 04:04:31 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id g1so13589909edb.12 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=qrHTUAVHeAQhk9r13GxAgREi+MrtbGx4T4yZXJa5eQfTm3TDt6uEa5dwCCKvAMnjDO TdmDY4fJCp+YZpACpI8ueI3YNnPdObBzRmQ1/0U8qL/WyEDe1lpQ4hqaBP9tR/FuH18s TDSuMuU+bogRbnVYM5/hhizoA5leSbYthaQiIhNmAm4a0NnfLogMhd9OduCt4Kgm+G1V GKsFjoxOIaIZnBrC/NkAUpTovNITeT96cBLGJ25BNTGme8fEjPV8UTLcKC3rTXKD2fYm MxBz20UBC/KEsud9ReoCjU0ZbYHhy9bYNM0qS2dycwW7I0CC0zAgqqU/Xi1HAvjOYen/ 2Fpw== X-Gm-Message-State: AJIora/JN9JX84IAbpqpzoFx9rVVdVPIA1/sIf8+o0WT5JTvsYnWlIcu W/zZw40ms6pc5PkfGGNF/imJs3aZ5WhyjI2T 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-arm-msm@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