Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7103229ybi; Thu, 13 Jun 2019 09:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyTQsFsyj+Z2rh8AlbISTbzgsBgFVTiFtigcRVoiSLuI4ok569QjktQS+vq+qab07rMDjj X-Received: by 2002:a17:902:bb90:: with SMTP id m16mr21435817pls.54.1560443756120; Thu, 13 Jun 2019 09:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560443756; cv=none; d=google.com; s=arc-20160816; b=Q2elLXyqsMA7ZgE9l4PveMiVlaG+aTTMhE8Eg39DTbZQdIK59Mqcf8Mx6hAsxmGzpV RLZ4YhSClnVZL07ceRLxXkGirtaiIRw5TW3/8EGX+Lr2c5O4ITNaXU3d7CeO90QBBVJr dEbFxBHaAm4mlPbV5sKbUmNiK6bgb1PzG1CRDkdD+n2MBLvcvuZGAV6r2hzhan3enVxw jY/4MVXSNScgvxqGwBqkDiUnlLhRARkKuGQ8+f+7wdcBJLKFAoosdqiJm7U8k3/8w5V4 dJYuhcdVL5C9OPwyO3EBofLXoF5YC4MOXp0VdNr9k4bo+OC5zsEYpEtzcvl4mmHo6i6p 9lbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SHZxhzvqrZEX5QBuRdsaPQngN00r5JPOileaKFnasgg=; b=xlCmuBSpG+uqDFKWL6Dxhs34CxDCqvA+lU1OOy8D3mugwFo4PBj4T+9FL2O4/13b1A wDR2IpBoPjkRUCcdYiYm/N4Bb+wFdxrk8+CGNek3keg23/hMeXUkOEX5Nl/aWkrPjtHf 0BZkoGcQD8IsPvzBz4EI7B0A0D9vgr+i8fESOvX6rYuAlVPKet747/Eh4R3ymOdWNOZk GOTPe0BJ28UQbbyHIY5fvdNGA7z5jqhA7cByjiz70C9UIuW+hjDGtNLtxbarXnetAOgy ef7mD6g9/AsXr9UgozA+vhix1ba4ttO0qEm2qRxUOAArdp4+l8jqDVlp/TZU/hLzXqAt hPiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FDiVMNFL; 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 16si78525pfo.12.2019.06.13.09.35.41; Thu, 13 Jun 2019 09:35:56 -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=@kernel.org header.s=default header.b=FDiVMNFL; 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 S2404065AbfFMQfd (ORCPT + 99 others); Thu, 13 Jun 2019 12:35:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730723AbfFMHmN (ORCPT ); Thu, 13 Jun 2019 03:42:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFD5C20851; Thu, 13 Jun 2019 07:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560411733; bh=voKIfi0wvZgyalG6qW+Qe9OYNlUk2m+vLvb+SlTnM8k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FDiVMNFLhufffuPt64Zul1Fxzlb1v8WMn+X0ZQHx1zISGP/cNxT9Rc2ugzAgwJZu6 BUoyWyLfpHCzDqhSh0/4oemHLL7pCwpr03cQjSdqWmYOR9lIGTUOfFvtAZ670hriG6 INxwJw/FpQZ0lJXZEfwv2T5NCqiggvZyYIVI5FA8= Date: Thu, 13 Jun 2019 09:42:10 +0200 From: Greg Kroah-Hartman To: Daniel Vetter Cc: Sven Joachim , stable , Linux Kernel Mailing List , Dave Airlie Subject: Re: Linux 5.1.9 build failure with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=n Message-ID: <20190613074210.GA16875@kroah.com> References: <87k1dsjkdo.fsf@turtle.gmx.de> <20190611153656.GA5084@kroah.com> <20190611174006.GB31662@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190611174006.GB31662@kroah.com> User-Agent: Mutt/1.12.0 (2019-05-25) 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 07:40:06PM +0200, Greg Kroah-Hartman wrote: > On Tue, Jun 11, 2019 at 07:33:16PM +0200, Daniel Vetter wrote: > > 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? > > The above patch does not apply to all of the stable branches, so how > about I just revert this? People can live with this option not able to > turn off for now, and if they really want it, they can use a newer > kernel, right? I've just reverted it now. If someone can send me a patch series of all of what needs to be applied, in a format that I can actually apply them in, I will be glad to do so. But for now, I'd like to get people's systems building again. thanks, greg k-h