Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E848C2D0DB for ; Tue, 28 Jan 2020 15:02:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 313F02467E for ; Tue, 28 Jan 2020 15:02:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="W6nYxWEz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 313F02467E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 716216E06B; Tue, 28 Jan 2020 15:02:07 +0000 (UTC) Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 732826E06B for ; Tue, 28 Jan 2020 15:02:06 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id a5so2888129wmb.0 for ; Tue, 28 Jan 2020 07:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7XoF0plGDCzaQQj/DdAEdPuSDr2qTr4cuR0UW8Rmz84=; b=W6nYxWEz+rkPjKwxlUEnXVMdEJ5kUG6KxMml96C/WQBYBsJuTmt4kTbb9ClSDd28sH OyBY1p3iA5iMnfwQrR+Nw3V6TIzr/JgRUaTB/YqiNdsLwoftqDFcRj3FONPK5YTBXBmb Ms/tZB5ymClVZsLurBYs/MfWLEkhBe5G0M2W8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7XoF0plGDCzaQQj/DdAEdPuSDr2qTr4cuR0UW8Rmz84=; b=dbJP8ae+pavIPLfTxIqpmd/IkCcuBADgPhmxpAsLa3mp6OA/p/z5f4H1hdq8fmPVye Z3KHqlZOKhM07hNcUDlqiyKn28csEUP5cJkqmASawm3wzEIhN8XluKODTA1wtFMNLljd r+KjLFTf2Y2h6wI1wrSvENIbINMxoAu5shoGwShBBLokoqAWiVQBQUe8h31rMjwRHdCz XyRb/izdWw9o9XjjluqOLp5K089lsQrXWIgWHvPPjzEMECItoz+6IU7nHWYL6gzaBBI7 mPwJV9KiprbldUHbJVRMJwhHxKRa8CAaPVzzAN9xchUwIb9WB4fJamrxL04kZPhJ2xcX v8wQ== X-Gm-Message-State: APjAAAXX6d3RwRCFF2DREgzuF4ItM8RS/X2WaRHN+X7rQuMXeJSCF0za sipdMIHJGpQVhzksbpii8B8z8A== X-Google-Smtp-Source: APXvYqz2B0u+017u8gfxyGI38dajvt8J16sEWM3hF4TXxjVbukoktIS7OTSNcojeoSomzACzCnXGfg== X-Received: by 2002:a7b:c753:: with SMTP id w19mr5656661wmk.34.1580223724968; Tue, 28 Jan 2020 07:02:04 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id u1sm3275039wmc.5.2020.01.28.07.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2020 07:02:04 -0800 (PST) Date: Tue, 28 Jan 2020 16:02:02 +0100 From: Daniel Vetter To: Chris Wilson Subject: Re: [Intel-gfx] [PATCH 1/4] drm: Complain if drivers still use the ->load callback Message-ID: <20200128150202.GG43062@phenom.ffwll.local> References: <20200128104602.1459802-1-daniel.vetter@ffwll.ch> <158020847932.30113.5492073782079336156@skylake-alporthouse-com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <158020847932.30113.5492073782079336156@skylake-alporthouse-com> X-Operating-System: Linux phenom 5.3.0-3-amd64 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , DRI Development , Daniel Vetter Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, Jan 28, 2020 at 10:47:59AM +0000, Chris Wilson wrote: > Quoting Daniel Vetter (2020-01-28 10:45:58) > > Kinda time to get this sorted. The locking around this really is not > > nice. > > > > Signed-off-by: Daniel Vetter > > --- > > drivers/gpu/drm/drm_drv.c | 6 ++++++ > > include/drm/drm_drv.h | 3 +++ > > 2 files changed, 9 insertions(+) > > > > diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c > > index 7c18a980cd4b..8deff75b484c 100644 > > --- a/drivers/gpu/drm/drm_drv.c > > +++ b/drivers/gpu/drm/drm_drv.c > > @@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags) > > > > mutex_lock(&drm_global_mutex); > > > > + if (dev->driver->load) { > > + if (!drm_core_check_feature(dev, DRIVER_LEGACY)) > > + DRM_INFO("drm driver %s is using deprecated ->load callback\n", > > + dev->driver->name); > > DRM_WARN() if the plan is to remove it? Consensus from the security check work that Kees Cook is doing seems to be: - Put new thing in place, convert lots - Start to do opt-in/informational stuff - Once you're sure it's all gone, put in the big splat that kills the box/driver. Apparently radeon/amdgpu are the hold-outs, once those are done I think I'll just outright disable ->load/unload for !DRIVER_LEGACY. Cheers, Daniel > That should encourage people to complain louder. > -Chris > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel