Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755054Ab2FKPWS (ORCPT ); Mon, 11 Jun 2012 11:22:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40572 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369Ab2FKPWR (ORCPT ); Mon, 11 Jun 2012 11:22:17 -0400 Message-ID: <4FD60D22.5030107@redhat.com> Date: Mon, 11 Jun 2012 12:22:10 -0300 From: Mauro Carvalho Chehab User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Rob Herring CC: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Subject: Re: [PATCH 1/2] edac: add support for Calxeda highbank memory controller References: <1339020125-20198-1-git-send-email-robherring2@gmail.com> <1339020125-20198-2-git-send-email-robherring2@gmail.com> <4FCFDB12.3090403@redhat.com> <4FCFE028.10005@gmail.com> In-Reply-To: <4FCFE028.10005@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1508 Lines: 44 Em 06-06-2012 19:56, Rob Herring escreveu: > Mauro, > > On 06/06/2012 05:34 PM, Mauro Carvalho Chehab wrote: >> Hi Rob, >> >> Em 06-06-2012 19:02, Rob Herring escreveu: >>> From: Rob Herring >>> >>> Add support for memory controller on Calxeda Highbank platforms. Highbank >>> platforms support a single 4GB mini-DIMM with 1-bit correction and 2-bit >>> detection. >>> > > [snip] > >>> + >>> + layers[0].type = EDAC_MC_LAYER_CHIP_SELECT; >>> + layers[0].size = 1; >>> + layers[0].is_virt_csrow = true; >>> + layers[1].type = EDAC_MC_LAYER_CHANNEL; >>> + layers[1].size = 1; >>> + layers[1].is_virt_csrow = false; >>> + mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, >>> + sizeof(struct hb_mc_drvdata)); >> >> Hmm... I suspect that memories by DIMM chip select/channel at Calxeda, >> as it is using just 1 cs/channel. It probably makes more sense to add new layer >> type(s) to properly represent the way your memory controller addresses it, if >> Calxeda doesn't work with DIMMs. > > Not sure I follow. DIMMs are supported, but only a newer JEDEC form > factor (DDR3 72-bit mini DIMM). The h/w pretty much fixed to a single > 4GB DIMM. The controller is 1 72-bit channel. OK. Then, the mapping is correct. Regards, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/