Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2731065rdg; Mon, 16 Oct 2023 13:04:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqJOyIwtQ3fZjSoSoREARjx9eFv32r3xaUIa0YzLDZiNOpe0qPDonxraDLhiAaurXh2Blo X-Received: by 2002:a17:903:404c:b0:1ca:16e8:1b47 with SMTP id n12-20020a170903404c00b001ca16e81b47mr342156pla.1.1697486678798; Mon, 16 Oct 2023 13:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697486678; cv=none; d=google.com; s=arc-20160816; b=GvU3ZOaaHxcJFmWkvSoe9gtXtLObj8an1nlPH6DCnQyU6i6p7TCmu/cnTzRF0z8Vy8 36bVl1RR4pZck0GkXhcksODEZF93+tWqWWggys+z9KhaO+AzquXLUuGIPLzBzBRLVp+W KP1PLgtZsMU65BusJfsz2cv0PGU9BribEEJw8Ae6fc2C+W54tN52iAW7kxyPpOacaQxT KxmYQgbVhLFPbUgnjLk1GbuSwQ9ll5R+IFRk6uvytOgRb61eHpAXvLRuNZyn9+ystDHf OMS7nidmHQzJSYNHo3whoOjPY61oXtt1khX+D4B9KF6gMed5R2S+V4p5e8mKabqiVGFw DwtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=H4wuLAUHGxxZ/Xkt4S+L2w+KtY0MeJ27/zJmuswtd2E=; fh=XfEqs25zsSSr3rwzBI0pMwmz1Ca0bWzeplPUZFAOOvA=; b=jijpq7ckOtEuBYVTKc5x0zCPRRZWx8+pfDqu4pkNhUM+A+wdb+ilwshJqARdWH0Hdp l2tOApPBu6MIC9a9HWLODnngvGhjAyUrjcNNSoAURsonifUyBvhawjvAX7rbe7nAXBUs PzG1LwZzRjCydTogxZOuP9u3rM90eHRI/zy3xTWSehYFC+CY23y6BN8mc3+FvRoF+wGD VsoLfMoAqn1EphdUf7MGqufn6eThW5nrlWElaE9l3UnaQa18l6kxhoKL9POKgCvmSeEX FtRwha5igRc3QjWQPMm0kX/yBt6adSDIk3Dh8dkz1iFtZ6HOdvXXAXMXHGJBBwFeChpf X4xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NF3cSB3n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u10-20020a170903124a00b001b9c1821f6bsi68865plh.98.2023.10.16.13.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 13:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NF3cSB3n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EF1F4803955E; Mon, 16 Oct 2023 13:04:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232578AbjJPUE1 (ORCPT + 99 others); Mon, 16 Oct 2023 16:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233788AbjJPUEZ (ORCPT ); Mon, 16 Oct 2023 16:04:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F5CB83; Mon, 16 Oct 2023 13:04:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76274C433C7; Mon, 16 Oct 2023 20:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697486664; bh=LicEPcKoL9Sru0ZtpvzVU3YUUcuxZ6s7vspnx7TkER4=; h=From:To:Cc:Subject:Date:From; b=NF3cSB3najqsbPo3qib9+Dzj+MAvqLUUgu9V+CzC61e/PcC/3U8wuBF+GWcuNlajs 9PjV3EQnpMyo7CnVqq+v3ODtP8TTKE9CRBmXL5kvpIXalUTeT2UuUTIHPWM8IWXCM7 wpRkICK80B8j51mS3KMD2R/hsBQ2LoaBMEBFnE32fbJ5l3DOvJm/qxVqJMGXFUCy2W UOgVv6nBwGvaTP4yA/h6hvSC+bg37y5ofArWrp75AYj0tDVeT+N/WdFNS0dPgqLVLC TBbuYYR6lNGcw95F+epv8LeK9MXgh7bMTweBSxqzd9Ix6379AeQN9e163/BkVcuxf7 nymLpxS0Ju75A== From: Arnd Bergmann To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , David Airlie , Daniel Vetter , Konrad Dybcio Cc: Arnd Bergmann , Sean Paul , Marijn Suijten , Ulf Hansson , Thomas Zimmermann , Randy Dunlap , Neil Armstrong , Akhil P Oommen , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/msm/a6xx: add QMP dependency Date: Mon, 16 Oct 2023 22:04:03 +0200 Message-Id: <20231016200415.791090-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 16 Oct 2023 13:04:33 -0700 (PDT) From: Arnd Bergmann When QMP is in a loadable module, the A6xx GPU driver fails to link as built-in: x86_64-linux-ld: drivers/gpu/drm/msm/adreno/a6xx_gmu.o: in function `a6xx_gmu_resume': a6xx_gmu.c:(.text+0xd62): undefined reference to `qmp_send' Add the usual dependency that still allows compiling without QMP but otherwise avoids the broken combination of options. Fixes: 88a0997f2f949 ("drm/msm/a6xx: Send ACD state to QMP at GMU resume") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index 6309a857ca312..ad70b611b44f0 100644 --- a/drivers/gpu/drm/msm/Kconfig +++ b/drivers/gpu/drm/msm/Kconfig @@ -6,6 +6,7 @@ config DRM_MSM depends on ARCH_QCOM || SOC_IMX5 || COMPILE_TEST depends on COMMON_CLK depends on IOMMU_SUPPORT + depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n depends on QCOM_OCMEM || QCOM_OCMEM=n depends on QCOM_LLCC || QCOM_LLCC=n depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n -- 2.39.2