Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1293859pxb; Thu, 21 Oct 2021 20:41:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4OdL0BCjyXMJfhrfDBvNAc10ABeS+iP6U67VCFvJSRIWK1m8tWpIfjfuMuL01w+YqXuZK X-Received: by 2002:a05:6402:2793:: with SMTP id b19mr13676292ede.80.1634874101808; Thu, 21 Oct 2021 20:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634874101; cv=none; d=google.com; s=arc-20160816; b=UrTRYvzr1+GBhWyxYneH+cIxrFfU5EBSJMRLjkRfIVvhOJNsh7Qc9LKZ69CMfaenAK u2ibNh8Ukhl2qbOIj4ZOUkwcVwu5k5fGhxPIjUVLDt12WKUlFkQ5Wy/kPj8H/JFgHDLM j8zkb2Om4kLA1ri4f94MKWGzhT+xlAM7gOfKTFHtf3VrYlB9TW9mW+sfbqfdp1N8yZXm LYKC5Ccz7iJFv4Ua0tr2j3Bok8oZ8gHCfK10SSTd7/nJtTFUeghwra7IdWSGIxmv0cr1 aQHpw+CAoZ4onxdGo8MbCSCGgtERUd7NesJZuDrDJ08IbN8y8PSflPOF79psblbA5Waj igeg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=I20B8rmSUCEyNk/z8hlDzHyk8lEb5Mx4YIiLq34dR6o=; b=mlCD6TkjcJQvzpQ/wW8AzTYySoSi3r5Kna/fH5ml8mbZsISORepqRjq8T8oIC5st34 KwcXtwWfVb/CNfKSfSChb5DhJah8K0iGh4jfh7GgT+aI7NteUwUd/0h9NHBdGRJLSdbu Z+GCTaAd2T1TDq19CcN5rx2VLwN0QIhxqgW+68HJVqzeHWQ1Jqf2dUO/2AnFuDa0vtlL 9Mdsot2esHOFjv2K4nBenZi42LNb1/UZO/4KkSbtM2V3zS2584aQXmLgmXVzrrXYjRqM vuL2+0hHgWTNnfbyKMKgLKXn8/goJsCYxkYhi28LJqrrZPCCrbjoEk8Do2XYdVbvSrmf Uv0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=nO0WJv17; 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 b18si10318796ejh.638.2021.10.21.20.41.18; Thu, 21 Oct 2021 20:41:41 -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; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=nO0WJv17; 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 S232855AbhJVDlS (ORCPT + 99 others); Thu, 21 Oct 2021 23:41:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:42008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232845AbhJVDlQ (ORCPT ); Thu, 21 Oct 2021 23:41:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB75D610A4; Fri, 22 Oct 2021 03:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1634873939; bh=9TMOq2xQPIJH4U6BSsyCI1yOB5IvYFxcsxgSaPT7PFY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nO0WJv17dRlACHIr/0GNZYQnsy6tXHHuwlZjcd6so1f3kCb3EvbBJHg4fkhQJg+7G O2kyXtKYneEt0ZLHZrHz4hrrKuI9UZqLBMfY3OoMRZg9Bz7xWV8Mpmk0UWDVOOFWX0 Cf7x8TnbV/CLoKsyzLHZvgX+bod9cAwaAcGHJMuI= Date: Thu, 21 Oct 2021 20:38:56 -0700 From: Andrew Morton To: Vlastimil Babka Cc: Jani Nikula , Naresh Kamboju , open list , Linux-Next Mailing List , linux-mm , dri-devel@lists.freedesktop.org, Marco Elver , Vijayanand Jitta , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Geert Uytterhoeven , Oliver Glitta , Imran Khan , lkft-triage@lists.linaro.org, Stephen Rothwell Subject: Re: [next] [dragonboard 410c] Unable to handle kernel paging request at virtual address 00000000007c4240 Message-Id: <20211021203856.1151daebedef7b180fdfec22@linux-foundation.org> In-Reply-To: <2a692365-cfa1-64f2-34e0-8aa5674dce5e@suse.cz> References: <80ab567d-74f3-e14b-3c30-e64bbd64b354@suse.cz> <87fssuojoc.fsf@intel.com> <2a692365-cfa1-64f2-34e0-8aa5674dce5e@suse.cz> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Oct 2021 19:51:20 +0200 Vlastimil Babka wrote: > >> Then we have to figure out how to order a fix between DRM and mmotm... > > > > That is the question! The problem exists only in the merge of the > > two. On current DRM side stack_depot_init() exists but it's __init and > > does not look safe to call multiple times. And obviously my changes > > don't exist at all in mmotm. > > > > I guess one (admittedly hackish) option is to first add a patch in > > drm-next (or drm-misc-next) that makes it safe to call > > stack_depot_init() multiple times in non-init context. It would be > > dropped in favour of your changes once the trees get merged together. > > > > Or is there some way for __drm_stack_depot_init() to detect whether it > > should call stack_depot_init() or not, i.e. whether your changes are > > there or not? > > Let's try the easiest approach first. AFAIK mmotm series is now split to > pre-next and post-next part It has been this way for many years! > and moving my patch > lib-stackdepot-allow-optional-init-and-stack_table-allocation-by-kvmalloc.patch > with the following fixup to the post-next part should solve this. Would that > work, Andrew? Thanks. For this reason. No probs, thanks. I merge up the post-linux-next parts late in the merge window. I do need to manually check that the prerequisites are in mainline, because sometimes the patches apply OK but don't make sense.