From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751999AbbEZSrf (ORCPT ); Tue, 26 May 2015 14:47:35 -0400 Received: from mail-qg0-f42.google.com ([209.85.192.42]:36369 "EHLO mail-qg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbbEZSrc (ORCPT ); Tue, 26 May 2015 14:47:32 -0400 Date: Tue, 26 May 2015 14:47:28 -0400 From: Tejun Heo To: Gregory CLEMENT Cc: Hans de Goede , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Thomas Petazzoni , Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, Lior Amsalem , Tawfik Bayouk , Nadav Haklai , stable@vger.kernel.org Subject: Re: [PATCH] ata: ahci_mvebu: Fix wrongly set base address for the MBus window setting Message-ID: <20150526184728.GJ7099@htj.duckdns.org> References: <1432658843-27622-1-git-send-email-gregory.clement@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432658843-27622-1-git-send-email-gregory.clement@free-electrons.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2015 at 06:47:23PM +0200, Gregory CLEMENT wrote: > From: Nadav Haklai > > According to the Armada 38x datasheet, the window base address > registers value is set in bits [31:4] of the register and corresponds > to the transaction address bits [47:20]. > > Therefore, the 32bit base address value should be shifted right by > 20bits and left by 4bits, resulting in 16 bit shift right. > > The bug as not been noticed yet because if the memory available on > the platform is less than 2GB, then the base address is zero. > > [gregory.clement@free-electrons.com: add extra-explanation] > > Fixes: a3464ed2f14 (ata: ahci_mvebu: new driver for Marvell Armada 380 > AHCI interfaces) > Signed-off-by: Nadav Haklai > Reviewed-by: Omri Itach > Signed-off-by: Gregory CLEMENT > Cc: Applied to libata/for-4.1-fixes. Thank you. -- tejun