Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2923106pxb; Mon, 18 Oct 2021 04:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD2eZZVTddTTctDgmTfIsvg0c+nr7Vpkzj0C59BQYQHoO80d3hH7cK+Lkn7dUldlrt3f3P X-Received: by 2002:a05:6402:5207:: with SMTP id s7mr43914876edd.260.1634558049939; Mon, 18 Oct 2021 04:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634558049; cv=none; d=google.com; s=arc-20160816; b=0lgVnuz3W2rrKs51DU5KDVhHffNIySPQPodlwCFlZrcMB11NzUERcSzmobDtzKqdf1 tAzSWZRwxT/vw3URlEORO+5gkAb/vkiae7nZR47vmRinUMgZZHBUxwtUSr3/9aP2TMN4 Dzo28wB0xj+KEdhz9Q+qAVM128p4NOFy0eTUvmI9kAP7JpH18xoUmmJNbnhkPBi8ZGXT 9hjekbrk66B4kYzZ1GEIBLt7IhKn8K5HDbpLQkHzN0vokKPLVuzm6RzGiftE5QRVeLbu Z2h59Q5THa6s/jn3DPM3bwKOaifVSm0AQW/A7SLK+ung5lUwDdl3/qnIaJU03PNPZSgE wiJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=yrE8OLB0T0NrdD8P3Snx9gdVEMNGFaw/cI18DhS8TuE=; b=IgR+MjW5E7FBzXcyZbhJ6AxkwtKD7SX/8SipTlPC28/FVSHF2i+V0vZdeLui7W2EkN HXBvJhao/y4+1V2YiUwiTZa7pBz9v7Q/oN+oxnpyFLC9T5EzkA8x9pmgHDhEtAWTQMuK bcYEfYLfj/wSXKqLWhLL1rt5vpfvVoJeJ83CzRxL1l7J8q//SAlmpDA+8SxnabV5/Wbf /a3NiSyWmuLFtKMErsPMcNP73lS0ucJLwQwzuzQCI7/UMIQiWoTqSuauKJjbAnQzDUfT zzPUemoWlj6SFLzg3QiC7llIE0BQWWUfXk6RSZrSsfDIjOTrgwIdfySim9Mp5UujtInl O6LQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv16si19845868ejb.529.2021.10.18.04.53.46; Mon, 18 Oct 2021 04:54:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhJRLwQ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Oct 2021 07:52:16 -0400 Received: from mail-ua1-f45.google.com ([209.85.222.45]:34588 "EHLO mail-ua1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhJRLwP (ORCPT ); Mon, 18 Oct 2021 07:52:15 -0400 Received: by mail-ua1-f45.google.com with SMTP id h4so3784127uaw.1; Mon, 18 Oct 2021 04:50:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5k/lpb+l8LiCQGm9WxrBH5sQpLcaEAbjVKVFfUJrgn0=; b=cXd7+xHv4/YI8q2NCKEGi4EJtQDbeaf6n9wYyhxqn2VCF/q9u9jsyygdnN69nJK3CI iOHljqGOxuBXg5biDHRgaYPBnCdhDK547d9NTl5hqsp/wVhWdNzSOOIiEx7JNDsvkKHg RZ8E9Gv80Na1lB3hKSGUowT5Q4l1xGDLaeVnOvAoOZ+7lbNp2jNVLa8oSikDIDQZq0aO Zaw/ShX01UKDdgd391+mOcUCYOUpF2nlFcgFsuyCW4QJykmsq8hoXfxPYmdmCSBcNLcw Y+fREK29+bkXH8DrzRu+ub2Np1jcuhAAKuYNeRlx4n1xjNRAw1JHcvy1rnsRmUj7/Mlr rQrA== X-Gm-Message-State: AOAM532ZdJXkHxMOlyzEMKkzigTetqe9qvITRrpCGvccoyGHg8rFaAHV OdlfCUsYhElGplz40YCzJrovF4+FQayK8g== X-Received: by 2002:a9f:23e2:: with SMTP id 89mr24638342uao.44.1634557803403; Mon, 18 Oct 2021 04:50:03 -0700 (PDT) Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com. [209.85.222.42]) by smtp.gmail.com with ESMTPSA id 37sm8579119uac.20.2021.10.18.04.50.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Oct 2021 04:50:02 -0700 (PDT) Received: by mail-ua1-f42.google.com with SMTP id f4so5191835uad.4; Mon, 18 Oct 2021 04:50:01 -0700 (PDT) X-Received: by 2002:ab0:538a:: with SMTP id k10mr25439724uaa.14.1634557801457; Mon, 18 Oct 2021 04:50:01 -0700 (PDT) MIME-Version: 1.0 References: <20211013144308.2248978-1-arnd@kernel.org> <25ccdc75-67da-a955-b8ef-641a2f007d13@amd.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 18 Oct 2021 13:49:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm: msm: fix building without CONFIG_COMMON_CLK To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Arnd Bergmann , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Arnd Bergmann , Randy Dunlap , Dmitry Baryshkov , Alex Elder , Akhil P Oommen , Rajeev Nandan , Abhinav Kumar , linux-arm-msm , DRI Development , freedreno@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, On Mon, Oct 18, 2021 at 1:41 PM Christian König wrote: > Am 18.10.21 um 13:38 schrieb Geert Uytterhoeven: > > On Mon, Oct 18, 2021 at 1:37 PM Christian König > > wrote: > >> Am 13.10.21 um 16:42 schrieb Arnd Bergmann: > >>> From: Arnd Bergmann > >>> > >>> When CONFIG_COMMON_CLOCK is disabled, the 8996 specific > >>> phy code is left out, which results in a link failure: > >>> > >>> ld: drivers/gpu/drm/msm/hdmi/hdmi_phy.o:(.rodata+0x3f0): undefined reference to `msm_hdmi_phy_8996_cfg' > >>> > >>> This was only exposed after it became possible to build > >>> test the driver without the clock interfaces. > >>> > >>> Make COMMON_CLK a hard dependency for compile testing, > >>> and simplify it a little based on that. > >>> > >>> Fixes: b3ed524f84f5 ("drm/msm: allow compile_test on !ARM") > >>> Reported-by: Randy Dunlap > >>> Suggested-by: Geert Uytterhoeven > >>> Signed-off-by: Arnd Bergmann > >>> --- > >>> drivers/gpu/drm/msm/Kconfig | 2 +- > >>> drivers/gpu/drm/msm/Makefile | 6 +++--- > >>> 2 files changed, 4 insertions(+), 4 deletions(-) > >>> > >>> diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig > >>> index f5107b6ded7b..cb204912e0f4 100644 > >>> --- a/drivers/gpu/drm/msm/Kconfig > >>> +++ b/drivers/gpu/drm/msm/Kconfig > >>> @@ -4,8 +4,8 @@ config DRM_MSM > >>> tristate "MSM DRM" > >>> depends on DRM > >>> depends on ARCH_QCOM || SOC_IMX5 || COMPILE_TEST > >>> + depends on COMMON_CLK > >>> depends on IOMMU_SUPPORT > >> We also need a "depends on MMU" here because some automated test is now > >> trying to compile the driver on parisc as well. > >> > >> I have absolutely no idea how a platform can have IOMMU but no MMU > >> support but it indeed seems to be the case here. > > Huh? > > > > Parisc has config MMU def_bool y? > > Then why vmap isn't available? > > See the mail thread: [linux-next:master 3576/7806] > drivers/gpu/drm/msm/msm_gem.c:624:20: error: implicit declaration of > function 'vmap' You mean https://lore.kernel.org/all/202110141259.i36iJnsA-lkp@intel.com/? Hexagon != parisc. . And Hexagon also has config MMU def_bool y Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds