Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1097826yba; Tue, 2 Apr 2019 02:09:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkBtjsc/IWyLzSXDt/ieGNgF7dHWo41ozquwKKEjspu8F+AIFJULqULk9KpFkJ4uz2PTo0 X-Received: by 2002:a17:902:1122:: with SMTP id d31mr35056538pla.29.1554196157938; Tue, 02 Apr 2019 02:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554196157; cv=none; d=google.com; s=arc-20160816; b=LE/vLlv1tU3j/fA+uX/GTQiEwrWY0P72pGDkMYXxbm9Gc0becigVBo1udh0Pck2BJB C/WUKMlv7VNil0IWXMdEjiLXHr7JB1cEzMB1DgxM9C7x3+14b8f/qiZ3DkjwH8WJTtf/ tahqLchoj4BMKaMvvMeyFeHrLnwkKXcDG86Y0iegkD4xVqAWkQzNP+mLMyRrxbs9XMdb nXBnWA+ftsYQfNh/baNARt9Vl1c901s9BkqKjNoWjCNPFvbUrK1Qkhm/tCfCgyEA200O AFslZ3SvDuqQLHr2+Mf0K63sQnSW/llua9KcsEm4sH4nGe3dpIcieZY8690KpzAyQG/X Q42Q== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=oFHg+lBSloBl+YYC+znOHViFwx8OkjOVExLdtTv/B4Y=; b=FhWS9gd92KOQ4g1tmJ+Id1blOKeRgfMKhpevqjXxGN9p/zlbv1ePtBPVVGFkFiqA5Q AmGMsTXFKsZxjGzNWOXnPTg33Y5AH07Y/e3fowH2Jc4jr4VbqOzq0K8EXqsvzbBLQsZE yTNfqSqqTtuqDnTVNpoot769LHydA9+uv7JwbrBgU1Dhgh+Iw8/t04GbfPk4g2EUQHO1 3Uy2trgE5ShVboXsiE6L8cW+ndrc5n+LJktcS2EkeihnVxzssoABGQwE5LDjvAqT/vSD vNYkdEVbY5P2ADFhDJ91iBdD+zB+5Njro3ncK0K/njwlIexA3zG3UGzj7Exb7jDM6cMk MHOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=GvSbSDnY; 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 g126si10635340pgc.75.2019.04.02.02.09.02; Tue, 02 Apr 2019 02:09:17 -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=fail header.i=@ffwll.ch header.s=google header.b=GvSbSDnY; 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 S1729689AbfDBJIN (ORCPT + 99 others); Tue, 2 Apr 2019 05:08:13 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:45639 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbfDBJIM (ORCPT ); Tue, 2 Apr 2019 05:08:12 -0400 Received: by mail-ed1-f65.google.com with SMTP id m16so10898417edd.12 for ; Tue, 02 Apr 2019 02:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=oFHg+lBSloBl+YYC+znOHViFwx8OkjOVExLdtTv/B4Y=; b=GvSbSDnYgg75G0JtiVzcZ814iXjbx6lgqrqqTbAw4hfA67acHcJvJ9cIer5TAsqjSa 2WYlUnvWtupsZGJu4zstTfVh8/8+e8fhjtwU3iLwUEyMZPtQtWS55BgmzuBjB7p/rtV3 heRwAKzBWsu/Ll8HwS+R1Vi6LE//VVJ8O2YPg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=oFHg+lBSloBl+YYC+znOHViFwx8OkjOVExLdtTv/B4Y=; b=pUCTyByNgOJJ8kOYgn0NzSrjnUlY2JztZ/50qWqKqssZjHYuAmo2W8ypyZ3jx+pX6J +2OvDv6jVBmloMTfrf+acDzhRreBgij2nqOEspOSHJ/nykv/u2uUVGdusFFeVD03VpY2 H0B+46/dFYSCTTgmyLG5x6Zb4/Vr4ExkjdF31ZuMk//tTHL9Dz7yNBvJUpEQjCUEZuxm EvENwsL7n42gph/0WrxlnzpnGefcxjYrM5n8nbAhL3lfESRtxAnejmU3G3X3DG97Mzou 0iRL9P6sWc4V0ZFbfBdduRuaA87ETfXGKyywwDdKHPBPLwFx3FnS9IS4Rka6JdGuRJkX fpUA== X-Gm-Message-State: APjAAAW7Xb5TqTnR4/epfBkXpHE0CyMpdH9aVpGmYQHe7cWbqZgSlvUH vjCTcUkVUMWRHHXUGFrnSRZYJw== X-Received: by 2002:a50:a5e5:: with SMTP id b34mr34827444edc.260.1554196090542; Tue, 02 Apr 2019 02:08:10 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id m47sm3932483edm.7.2019.04.02.02.08.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 02:08:09 -0700 (PDT) Date: Tue, 2 Apr 2019 11:08:07 +0200 From: Daniel Vetter To: Qiang Yu Cc: Stephen Rothwell , Intel Graphics , DRI , Linux Next Mailing List , Linux Kernel Mailing List , Eric Anholt , Matthew Wilcox , Daniel Vetter Subject: Re: linux-next: build failure after merge of the drm-misc tree Message-ID: <20190402090807.GI2665@phenom.ffwll.local> Mail-Followup-To: Qiang Yu , Stephen Rothwell , Intel Graphics , DRI , Linux Next Mailing List , Linux Kernel Mailing List , Eric Anholt , Matthew Wilcox References: <20190402105006.48f93e53@canb.auug.org.au> <20190402075744.GC2665@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.19.0-1-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 04:59:37PM +0800, Qiang Yu wrote: > On Tue, Apr 2, 2019 at 3:57 PM Daniel Vetter wrote: > > > > On Tue, Apr 02, 2019 at 01:55:03PM +0800, Qiang Yu wrote: > > > Thanks, patch is: > > > Reviewed-by: Qiang Yu > > > > Good time to get started with committing patches? In general it's kinda > > confusing if the maintainer r-bs a patch, but doesn't say whether/when/how > > it gets merged. Big chance the patch will get lost in limbo and fall > > through cracks. > > Thanks for the remind, this patch should only be applied to drm-misc-next > branch when 5.1-rcx branch gets merged to drm-misc-next for the new > xa_alloc API. So I expect the guy who do the 5.1-rcx merge should apply > this patch. Who will do the merge? Oh right, I was kinda not yet awake :-) Yeah Dave/me and drm-misc maintainers will resolve this when drm-misc lands in drm-next. Might then need a backmerge in drm-misc to roll forward. -Daniel > > Regards, > Qiang > > > > > > > > > Regards, > > > Qiang > > > > > > On Tue, Apr 2, 2019 at 7:50 AM Stephen Rothwell wrote: > > > > > > > > Hi all, > > > > > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > > > allmodconfig) failed like this: > > > > > > > > In file included from include/linux/kernel.h:7, > > > > from include/asm-generic/bug.h:18, > > > > from arch/x86/include/asm/bug.h:83, > > > > from include/linux/bug.h:5, > > > > from include/linux/mmdebug.h:5, > > > > from include/linux/gfp.h:5, > > > > from include/linux/slab.h:15, > > > > from drivers/gpu/drm/lima/lima_ctx.c:4: > > > > drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_create': > > > > include/linux/limits.h:13:18: warning: passing argument 3 of 'xa_alloc' makes pointer from integer without a cast [-Wint-conversion] > > > > #define UINT_MAX (~0U) > > > > ^~~~~ > > > > drivers/gpu/drm/lima/lima_ctx.c:26:36: note: in expansion of macro 'UINT_MAX' > > > > err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); > > > > ^~~~~~~~ > > > > In file included from include/linux/radix-tree.h:31, > > > > from include/linux/idr.h:15, > > > > from include/drm/drm_device.h:7, > > > > from drivers/gpu/drm/lima/lima_device.h:7, > > > > from drivers/gpu/drm/lima/lima_ctx.c:6: > > > > include/linux/xarray.h:817:9: note: expected 'void *' but argument is of type 'unsigned int' > > > > void *entry, struct xa_limit limit, gfp_t gfp) > > > > ~~~~~~^~~~~ > > > > drivers/gpu/drm/lima/lima_ctx.c:26:46: error: incompatible type for argument 4 of 'xa_alloc' > > > > err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); > > > > ^~~ > > > > In file included from include/linux/radix-tree.h:31, > > > > from include/linux/idr.h:15, > > > > from include/drm/drm_device.h:7, > > > > from drivers/gpu/drm/lima/lima_device.h:7, > > > > from drivers/gpu/drm/lima/lima_ctx.c:6: > > > > include/linux/xarray.h:817:32: note: expected 'struct xa_limit' but argument is of type 'struct lima_ctx *' > > > > void *entry, struct xa_limit limit, gfp_t gfp) > > > > ~~~~~~~~~~~~~~~~^~~~~ > > > > > > > > Caused by commit > > > > > > > > a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs") > > > > > > > > interacting with commit > > > > > > > > a3e4d3f97ec8 ("XArray: Redesign xa_alloc API") > > > > > > > > from Linus' tree (v5.1-rc1). > > > > > > > > I have applied the following patch for today. It could be applied as > > > > part of a merge of v5.1-rc1 into drm-misc. > > > > > > > > From: Stephen Rothwell > > > > Date: Tue, 2 Apr 2019 10:45:32 +1100 > > > > Subject: [PATCH] drm/lima: update for xa_alloc API change > > > > > > > > Signed-off-by: Stephen Rothwell > > > > --- > > > > drivers/gpu/drm/lima/lima_ctx.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/gpu/drm/lima/lima_ctx.c b/drivers/gpu/drm/lima/lima_ctx.c > > > > index c8d12f7c6894..bafa00d74cc5 100644 > > > > --- a/drivers/gpu/drm/lima/lima_ctx.c > > > > +++ b/drivers/gpu/drm/lima/lima_ctx.c > > > > @@ -23,7 +23,7 @@ int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id) > > > > goto err_out0; > > > > } > > > > > > > > - err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); > > > > + err = xa_alloc(&mgr->handles, id, ctx, XA_LIMIT(*id, UINT_MAX), GFP_KERNEL); > > > > if (err < 0) > > > > goto err_out0; > > > > > > > > -- > > > > 2.20.1 > > > > > > > > -- > > > > Cheers, > > > > Stephen Rothwell > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch