RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Meng Yi
Hi Stefan, > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a flat cache. See > >

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Meng Yi
Hi Stefan, > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a flat cache. See > >

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Stefan Agner
On 2016-06-06 19:16, Meng Yi wrote: > Hi Stefan, > > Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > >> >> static const struct regmap_config fsl_dcu_regmap_config = { >> >> .reg_bits = 32, >> >> .reg_stride = 4, >> >> .val_bits = 32, >> >>

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Stefan Agner
On 2016-06-06 19:16, Meng Yi wrote: > Hi Stefan, > > Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > >> >> static const struct regmap_config fsl_dcu_regmap_config = { >> >> .reg_bits = 32, >> >> .reg_stride = 4, >> >> .val_bits = 32, >> >>

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Meng Yi
Hi Stefan, Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Meng Yi
Hi Stefan, Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a

Re: fsl-dcu not works on latest "drm-next"

2016-06-03 Thread Stefan Agner
On 2016-05-26 02:11, Alexander Stein wrote: > On Thursday 26 May 2016 08:23:42, Meng Yi wrote: >> Hi Mark, >> >> > You've not specifically described the problem here - what are the >> > endiannesses of both the CPU and the device you're talking to? What >> > specifically is the endianess problem

Re: fsl-dcu not works on latest "drm-next"

2016-06-03 Thread Stefan Agner
On 2016-05-26 02:11, Alexander Stein wrote: > On Thursday 26 May 2016 08:23:42, Meng Yi wrote: >> Hi Mark, >> >> > You've not specifically described the problem here - what are the >> > endiannesses of both the CPU and the device you're talking to? What >> > specifically is the endianess problem

Re: fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Mark Brown
On Fri, May 27, 2016 at 10:36:21AM -0700, Stefan Agner wrote: > On 2016-05-27 05:20, Mark Brown wrote: > > That's another way of addressing it of course, but unless the register > > map actually is sparse it's probably still sensible to send the > > conversion to flat cache as a fix. > The

Re: fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Mark Brown
On Fri, May 27, 2016 at 10:36:21AM -0700, Stefan Agner wrote: > On 2016-05-27 05:20, Mark Brown wrote: > > That's another way of addressing it of course, but unless the register > > map actually is sparse it's probably still sensible to send the > > conversion to flat cache as a fix. > The

Re: fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Stefan Agner
On 2016-05-27 05:20, Mark Brown wrote: > On Thu, May 26, 2016 at 10:54:16PM -0700, Stefan Agner wrote: >> On 2016-05-26 02:11, Alexander Stein wrote: > >> > This needs to be a flat cache. See >> > https://lists.freedesktop.org/archives/dri-devel/2016-January/099121.html >> > or

Re: fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Stefan Agner
On 2016-05-27 05:20, Mark Brown wrote: > On Thu, May 26, 2016 at 10:54:16PM -0700, Stefan Agner wrote: >> On 2016-05-26 02:11, Alexander Stein wrote: > >> > This needs to be a flat cache. See >> > https://lists.freedesktop.org/archives/dri-devel/2016-January/099121.html >> > or

Re: fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Mark Brown
On Thu, May 26, 2016 at 10:54:16PM -0700, Stefan Agner wrote: > On 2016-05-26 02:11, Alexander Stein wrote: > > This needs to be a flat cache. See > > https://lists.freedesktop.org/archives/dri-devel/2016-January/099121.html > > or https://lkml.org/lkml/2016/3/24/281 > > max_register also needs

Re: fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Mark Brown
On Thu, May 26, 2016 at 10:54:16PM -0700, Stefan Agner wrote: > On 2016-05-26 02:11, Alexander Stein wrote: > > This needs to be a flat cache. See > > https://lists.freedesktop.org/archives/dri-devel/2016-January/099121.html > > or https://lkml.org/lkml/2016/3/24/281 > > max_register also needs

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Stefan Agner
On 2016-05-26 02:11, Alexander Stein wrote: > On Thursday 26 May 2016 08:23:42, Meng Yi wrote: >> Hi Mark, >> >> > You've not specifically described the problem here - what are the >> > endiannesses of both the CPU and the device you're talking to? What >> > specifically is the endianess problem

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Stefan Agner
On 2016-05-26 02:11, Alexander Stein wrote: > On Thursday 26 May 2016 08:23:42, Meng Yi wrote: >> Hi Mark, >> >> > You've not specifically described the problem here - what are the >> > endiannesses of both the CPU and the device you're talking to? What >> > specifically is the endianess problem

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Alexander Stein
On Thursday 26 May 2016 08:23:42, Meng Yi wrote: > Hi Mark, > > > You've not specifically described the problem here - what are the > > endiannesses of both the CPU and the device you're talking to? What > > specifically is the endianess problem you are seeing, what are you seeing > > and what

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Alexander Stein
On Thursday 26 May 2016 08:23:42, Meng Yi wrote: > Hi Mark, > > > You've not specifically described the problem here - what are the > > endiannesses of both the CPU and the device you're talking to? What > > specifically is the endianess problem you are seeing, what are you seeing > > and what

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Alexander Stein
On Thursday 26 May 2016 08:18:30, Meng Yi wrote: > Hi Alexander, > > > From your backtrace I guess wait_event_timeout is called in some atomic > > context (might_sleep(); is called inside wait_event_timeout). This has > > nothing to do with regmap. > > Here is my view of point: > Since IRQ setup

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Alexander Stein
On Thursday 26 May 2016 08:18:30, Meng Yi wrote: > Hi Alexander, > > > From your backtrace I guess wait_event_timeout is called in some atomic > > context (might_sleep(); is called inside wait_event_timeout). This has > > nothing to do with regmap. > > Here is my view of point: > Since IRQ setup

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
Hi Mark, > You've not specifically described the problem here - what are the endiannesses > of both the CPU and the device you're talking to? What specifically is the > endianess problem you are seeing, what are you seeing and what do you > expect to see? > The CPU is little endian and the

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
Hi Mark, > You've not specifically described the problem here - what are the endiannesses > of both the CPU and the device you're talking to? What specifically is the > endianess problem you are seeing, what are you seeing and what do you > expect to see? > The CPU is little endian and the

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
Hi Alexander, > From your backtrace I guess wait_event_timeout is called in some atomic > context (might_sleep(); is called inside wait_event_timeout). This has nothing > to do with regmap. > Here is my view of point: Since IRQ setup codes using regmap, and which is not setup properly, so

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
Hi Alexander, > From your backtrace I guess wait_event_timeout is called in some atomic > context (might_sleep(); is called inside wait_event_timeout). This has nothing > to do with regmap. > Here is my view of point: Since IRQ setup codes using regmap, and which is not setup properly, so

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Alexander Stein
On Wednesday 25 May 2016 10:25:29, Meng Yi wrote: > Hi Alexander, > Thanks for your reply. > > > Commit d761701c55a99598477f3cb25c03d939a7711e74 only has one child > > commit in my repo. Both touch only i915 related things. Please do a proper > > bisect and name the offending commit. On which

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Alexander Stein
On Wednesday 25 May 2016 10:25:29, Meng Yi wrote: > Hi Alexander, > Thanks for your reply. > > > Commit d761701c55a99598477f3cb25c03d939a7711e74 only has one child > > commit in my repo. Both touch only i915 related things. Please do a proper > > bisect and name the offending commit. On which

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Mark Brown
On Wed, May 25, 2016 at 09:59:39AM +, Meng Yi wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > I read out the value of relevant register using "CodeWarrior

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Mark Brown
On Wed, May 25, 2016 at 09:59:39AM +, Meng Yi wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > I read out the value of relevant register using "CodeWarrior

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
Hi Alexander, Thanks for your reply. > Commit d761701c55a99598477f3cb25c03d939a7711e74 only has one child > commit in my repo. Both touch only i915 related things. Please do a proper > bisect and name the offending commit. On which commit you got that > backtrace BTW? > From your backtrace I

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
Hi Alexander, Thanks for your reply. > Commit d761701c55a99598477f3cb25c03d939a7711e74 only has one child > commit in my repo. Both touch only i915 related things. Please do a proper > bisect and name the offending commit. On which commit you got that > backtrace BTW? > From your backtrace I

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
Hi Mark, > > Without any description of the problem it is difficult to comment. > There were some drivers that were abusing the API by hacking round things > that need fixing (the main one I've seen is reporting things as big endian > instead of native endian to cause two layers of translation

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
Hi Mark, > > Without any description of the problem it is difficult to comment. > There were some drivers that were abusing the API by hacking round things > that need fixing (the main one I've seen is reporting things as big endian > instead of native endian to cause two layers of translation

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Alexander Stein
Hi, On Wednesday 25 May 2016 08:58:31, Meng Yi wrote: > > On Tuesday 24 May 2016 23:20:02, Stefan Agner wrote: > > > On 2016-05-24 19:14, Meng Yi wrote: > > > > I found that its regmap endianness issue, so I want to replace the > > > > "regmap". > > > > > > Hm, replace with what? Note that we

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Alexander Stein
Hi, On Wednesday 25 May 2016 08:58:31, Meng Yi wrote: > > On Tuesday 24 May 2016 23:20:02, Stefan Agner wrote: > > > On 2016-05-24 19:14, Meng Yi wrote: > > > > I found that its regmap endianness issue, so I want to replace the > > > > "regmap". > > > > > > Hm, replace with what? Note that we

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Mark Brown
On Wed, May 25, 2016 at 02:14:09AM +, Meng Yi wrote: Please don't top post, reply in line with needed context. This allows readers to readily follow the flow of conversation and understand what you are talking about and also helps ensure that everything in the discussion is being addressed.

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Mark Brown
On Wed, May 25, 2016 at 02:14:09AM +, Meng Yi wrote: Please don't top post, reply in line with needed context. This allows readers to readily follow the flow of conversation and understand what you are talking about and also helps ensure that everything in the discussion is being addressed.

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
airl...@redhat.com; linux-kernel@vger.kernel.org; Mark > Brown <broo...@kernel.org> > Subject: Re: fsl-dcu not works on latest "drm-next" > > On Tuesday 24 May 2016 23:20:02, Stefan Agner wrote: > > On 2016-05-24 19:14, Meng Yi wrote: > > > I found that

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
Subject: Re: fsl-dcu not works on latest "drm-next" > > On Tuesday 24 May 2016 23:20:02, Stefan Agner wrote: > > On 2016-05-24 19:14, Meng Yi wrote: > > > I found that its regmap endianness issue, so I want to replace the > > > "regmap"

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Alexander Stein
On Tuesday 24 May 2016 23:20:02, Stefan Agner wrote: > On 2016-05-24 19:14, Meng Yi wrote: > > I found that its regmap endianness issue, so I want to replace the > > "regmap". > Hm, replace with what? Note that we need some kind of endianness > convertion since the IP is big endian on LS1021a and

Re: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Alexander Stein
On Tuesday 24 May 2016 23:20:02, Stefan Agner wrote: > On 2016-05-24 19:14, Meng Yi wrote: > > I found that its regmap endianness issue, so I want to replace the > > "regmap". > Hm, replace with what? Note that we need some kind of endianness > convertion since the IP is big endian on LS1021a and

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Stefan Agner
5:27 PM > To: 'dri-de...@lists.freedesktop.org' > <dri-de...@lists.freedesktop.org>; David Airlie <airl...@linux.ie>; > 'Stefan Agner' <ste...@agner.ch>; 'airl...@redhat.com' > <airl...@redhat.com> > Subject: fsl-dcu not works on latest "drm-next" &g

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Stefan Agner
03, 2016 5:27 PM > To: 'dri-de...@lists.freedesktop.org' > ; David Airlie ; > 'Stefan Agner' ; 'airl...@redhat.com' > > Subject: fsl-dcu not works on latest "drm-next" > > Hi, > > > I just tested the latest drm-next branch on Freescale/NXP ls1021a-twr, > and go

RE: fsl-dcu not works on latest "drm-next"

2016-05-24 Thread Meng Yi
anks, Meng - From: Meng Yi Sent: Tuesday, May 03, 2016 5:27 PM To: 'dri-de...@lists.freedesktop.org' <dri-de...@lists.freedesktop.org>; David Airlie <airl...@linux.ie>; 'Stefan Agner' <ste...@agner.ch>; 'airl...@redhat.com' <airl...@redhat.

RE: fsl-dcu not works on latest "drm-next"

2016-05-24 Thread Meng Yi
anks, Meng - From: Meng Yi Sent: Tuesday, May 03, 2016 5:27 PM To: 'dri-de...@lists.freedesktop.org' ; David Airlie ; 'Stefan Agner' ; 'airl...@redhat.com' Subject: fsl-dcu not works on latest "drm-next" Hi, I just tested the latest drm-next bra