Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1550975

Re: [PATCH] MIPS: NI 169445 board support

From Nathan Sullivan <nathan.sullivan@ni.com>
Newsgroups linux.kernel
Subject Re: [PATCH] MIPS: NI 169445 board support
Date 2017-01-04 17:40 +0100
Message-ID <sVWLv-79z-15@gated-at.bofh.it> (permalink)
References <sJYSJ-6cO-5@gated-at.bofh.it> <sVWLv-79z-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Dec 20, 2016 at 05:34:34PM +0100, Ralf Baechle wrote:
> On Fri, Dec 02, 2016 at 09:42:09AM -0600, Nathan Sullivan wrote:
> > Date:   Fri, 2 Dec 2016 09:42:09 -0600
> > From: Nathan Sullivan <nathan.sullivan@ni.com>
> > To: ralf@linux-mips.org, mark.rutland@arm.com, robh+dt@kernel.org
> > CC: linux-mips@linux-mips.org, devicetree@vger.kernel.org,
> >  linux-kernel@vger.kernel.org, Nathan Sullivan <nathan.sullivan@ni.com>
> > Subject: [PATCH] MIPS: NI 169445 board support
> > Content-Type: text/plain
> > 
> > Support the National Instruments 169445 board.
> 
> Nathan,
> 
> I assume you're going to repost the changes Rob asked for in
> https://patchwork.linux-mips.org/patch/14641/#26924 and resubmit?
> 
> Thanks,
> 
>   Ralf

Hmm, I found the issue with the generic MIPS config and dwc_eth_qos.  The NIC
driver attempts to cache align a descriptor ring using the ___cacheline_aligned
attribute on the descriptor struct, in combination with a "skip" feature in
hardware.  However, the skip feature only has a three bit field, and the generic
MIPS config selects MIPS_L1_CACHE_SHIFT_7.  So, the line size is 128, and with a
64-bit bus, that means the NIC descriptor skip field would need to be set to
14 to align the 16-byte descriptors...

I guess it makes sense for a generic MIPS kernel to align everything for 128 byte
cache lines, and for me to fix the dwc_eth_qos driver to handle cases where the
line size is too big for the hardware skip feature, right?

Thanks,

   Nathan

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] MIPS: NI 169445 board support Nathan Sullivan <nathan.sullivan@ni.com> - 2017-01-04 17:40 +0100
  Re: Re: [PATCH] MIPS: NI 169445 board support Niklas Cassel <niklas.cassel@axis.com> - 2017-01-05 19:40 +0100
    Re: [PATCH] MIPS: NI 169445 board support Joao Pinto <Joao.Pinto@synopsys.com> - 2017-01-05 19:40 +0100
      Re: [PATCH] MIPS: NI 169445 board support Nathan Sullivan <nathan.sullivan@ni.com> - 2017-01-05 19:50 +0100
        Re: [PATCH] MIPS: NI 169445 board support Joao Pinto <Joao.Pinto@synopsys.com> - 2017-01-05 20:00 +0100

csiph-web