Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4676988ybi; Tue, 11 Jun 2019 10:34:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyopIEzRy6JITFJ5xsOIeszDRSmVznW7xVYw+ubJuyYoe30DkANrqXjIruen5j3U2e6h0Mu X-Received: by 2002:aa7:919a:: with SMTP id x26mr67595318pfa.134.1560274446863; Tue, 11 Jun 2019 10:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560274446; cv=none; d=google.com; s=arc-20160816; b=gSKbbIY2lajI7eT5y7vPdld+8/WFwD4GXTVGkR/kCNPY0JkXHKZACm0VIeCGJWXrrT rBqVYyXfbX2/z2hC7zs4YlqLMP3+HedXPKB8bh+A4pEZBh4NP1qAN6L6QdT/ZynemeSv yKyOSNo0PGiPJCx+Aw+ex1I2e7wkqWntGATCwLKhfJTZtRBVBc0PWealH/FhqkSv7AGD TdisLdOD9ggZ/gu15zP8Qc2pUu73t9WYxTE8QLA/p7HquLua/Mna98ySy9X2XabPcAMp y4NT7pqszV3x30xI0wSdKaWjHSyNR+MRDZk4VEgGyjCHCqkqSZ4sbalaTupG3qgDI2IB yc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N8nzla2nhdrhp+/IZCs1+OTgK//WXZgK4kNyZnUr2Po=; b=bR5Kett0SiOv7mPxWhZwo/z7+z+j2yLGmCQ9+YmCC8CLEc7hHegZuBrbypTeH5+IkE Wc/ZjDlE26eA98uBLCd6Qrve8MZlp3bEfAzxYENSpa8vm8IftgYo1WHnVhICW1VnfeRY OFREGpYej354+fje4p3WynIq5mckSlv57pEsSz5+nAt1yDbPbsugA5iekPobfrHh/iBF 4EoB50GQhnUBBkeYhvSPFlUe9VKduVUBVpzrvVlAKeAPxtyVKDgGw2KTUYgnQzgKDtpz 79b7yiqkLm7e1lotexdBm80EyIz2r5PvXfY1jOy1sas+kNmVHkk7JAVf2P4gG0rSAm6r Z9cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="YIOBu6r/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si2772383pju.93.2019.06.11.10.33.52; Tue, 11 Jun 2019 10:34:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="YIOBu6r/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406156AbfFKRd2 (ORCPT + 99 others); Tue, 11 Jun 2019 13:33:28 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:32917 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404408AbfFKRd2 (ORCPT ); Tue, 11 Jun 2019 13:33:28 -0400 Received: by mail-ot1-f66.google.com with SMTP id p4so9489436oti.0 for ; Tue, 11 Jun 2019 10:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N8nzla2nhdrhp+/IZCs1+OTgK//WXZgK4kNyZnUr2Po=; b=YIOBu6r/nImhIKSwlRcFGhLbbEem2jjbzfIQXh2YW0B/MeYaZ9NEnCchaYX1ftEUP7 WXu0ggkj2bWy6Wv8GeH6ZODRSthNZKVorXwVQJzuc0+Ta+11fr0FamnTgyc3a0tuqp+2 LL9xs08ntR78279L5hwL/2t4knnvPcLASo9js= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N8nzla2nhdrhp+/IZCs1+OTgK//WXZgK4kNyZnUr2Po=; b=T539OtNnhLfj0Kp4YwIh66MyqxpCZCBCRNd4hcHUVW7hgDsPkxwzjRjwFAmigPcTEy DVuFvtWa/9534CbyGz3gKSdpnZ5gvwruuEnSKFKuNfxaKnfbzuAHt6OzMDv4xAnogwXe gFrtIH9pEFGbEAf8cbGfI2NY+fAeWPpco1gX19Vt0nTdwIN0B0AY/BsatdegnFK6T3qI O50auU+F5j7xTXziWz7f+uQtp5k5Jps5PxTelgfAews9ujdz6drkKLAfTpjyUHPk+er5 smSR3rGDk49spROr9ON0tkDYFx5+e7Fc7RTpUb0C/zzHfW1inNHnDNCW5pB1tT2VseI8 +R+w== X-Gm-Message-State: APjAAAVl/I1HKoKX7UdhbVRY+TeIUHbhAulN0pRmXQ+RruFoalDOLSd5 Q7jBoHEQ/5DNVdB76KUu45Q0AIRoSYhIbOf4VNIXXg== X-Received: by 2002:a9d:7451:: with SMTP id p17mr4008898otk.204.1560274407636; Tue, 11 Jun 2019 10:33:27 -0700 (PDT) MIME-Version: 1.0 References: <87k1dsjkdo.fsf@turtle.gmx.de> <20190611153656.GA5084@kroah.com> In-Reply-To: <20190611153656.GA5084@kroah.com> From: Daniel Vetter Date: Tue, 11 Jun 2019 19:33:16 +0200 Message-ID: Subject: Re: Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n To: Greg Kroah-Hartman Cc: Sven Joachim , stable , Linux Kernel Mailing List , Dave Airlie Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 5:37 PM Greg Kroah-Hartman wrote: > On Tue, Jun 11, 2019 at 03:56:35PM +0200, Sven Joachim wrote: > > Commit 1e07d63749 ("drm/nouveau: add kconfig option to turn off nouveau > > legacy contexts. (v3)") has caused a build failure for me when I > > actually tried that option (CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n): > > > > ,---- > > | Kernel: arch/x86/boot/bzImage is ready (#1) > > | Building modules, stage 2. > > | MODPOST 290 modules > > | ERROR: "drm_legacy_mmap" [drivers/gpu/drm/nouveau/nouveau.ko] undefined! > > | scripts/Makefile.modpost:91: recipe for target '__modpost' failed > > `---- Calling drm_legacy_mmap is definitely not a great idea. I think either we need a custom patch to remove that out on older kernels, or maybe even #ifdef if you want to be super paranoid about breaking stuff ... > > Upstream does not have that problem, as commit bed2dd8421 ("drm/ttm: > > Quick-test mmap offset in ttm_bo_mmap()") has removed the use of > > drm_legacy_mmap from nouveau_ttm.c. Unfortunately that commit does not > > apply in 5.1.9. > > > > Most likely 4.19.50 and 4.14.125 are also affected, I haven't tested > > them yet. > > They probably are. > > Should I just revert this patch in the stable tree, or add some other > patch (like the one pointed out here, which seems an odd patch for > stable...) ... or backport the above patch, that should be save to do too. Not sure what stable folks prefer? -Daniel > > thanks, > > greg k-h -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch