From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Burton Date: Fri, 27 May 2016 15:54:06 +0100 Subject: [U-Boot] [PATCH 1/3] MIPS: Move cache sizes to Kconfig In-Reply-To: <57485C47.8090407@denx.de> References: <20160526155850.25412-1-paul.burton@imgtec.com> <20160526155850.25412-2-paul.burton@imgtec.com> <57471FFE.50505@denx.de> <20160527103634.GB10442@NP-P-BURTON> <57485A7A.3050805@denx.de> <20160527143458.GA23805@NP-P-BURTON> <57485C47.8090407@denx.de> Message-ID: <20160527145406.GC23805@NP-P-BURTON> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, May 27, 2016 at 04:40:07PM +0200, Marek Vasut wrote: > > Hi Marek, > > Hi! Hi again Marek :) > > We're already using the cache size auto-detection on Malta, and on 2 > > other FPGA-based boards internally. I've submitted v2 which preserves > > CONFIG_SYS_CACHELINE_SIZE as a synonym of ARCH_DMA_MINALIGN for the > > drivers that are still using it. > > That's a good workaround for now. Would you be interested in fixing this > runtime cache configuration properly ? We use the runtime cache size detection on Malta, on SEAD3 & on Boston. The latter 2 aren't upstream yet of course, but all 3 are FPGA-based platforms used to develop, test & showcase new CPUs. As such the CPU (& by association the cache) can change just by flashing a new bitfile to the board, and it's very convenient for a single build of U-Boot to work regardless of the bitfile in use. It all works fine so long as drivers are well behaved, and nothing on any of those platforms uses CONFIG_SYS_CACHELINE_SIZE. I'm not sure there's anything to fix really apart from drivers should possibly move to use ARCH_DMA_MINALIGN, but I wouldn't feel comfortable doing a global replacement as I don't have a way to test many boards for other architectures. > Off-topic: Is malta that mipsfpga or is that something else ? > Can I synthesise that mipsfpga into some altera FPGA ? If so, which one > is a good pick ? I don't know much about the MIPSfpga project to be honest, but I can forward your question to someone who does. Thanks, Paul