Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753273Ab0HWGCq (ORCPT ); Mon, 23 Aug 2010 02:02:46 -0400 Received: from cantor.suse.de ([195.135.220.2]:52730 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031Ab0HWGCo (ORCPT ); Mon, 23 Aug 2010 02:02:44 -0400 Date: Mon, 23 Aug 2010 08:02:42 +0200 Message-ID: From: Takashi Iwai To: Zhenyu Wang Cc: Eric Anholt , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] agp/intel: Fix dma mask for Sandybridge In-Reply-To: <20100823054303.GC29442@zhen-devel.sh.intel.com> References: <20100823013507.GA29442@zhen-devel.sh.intel.com> <20100823054303.GC29442@zhen-devel.sh.intel.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1258 Lines: 43 At Mon, 23 Aug 2010 13:43:03 +0800, Zhenyu Wang wrote: > > On 2010.08.23 07:29:29 +0200, Takashi Iwai wrote: > > > Sandybridge can do 40-bit dma mask. This has been fixed upstream now. > > > > Could you point where is the upstream GIT tree and the corresponding > > commit id? > > > > Linus's tree: > > commit 877fdacf8291d7627f339885b5ae52c2f6061734 > Author: Zhenyu Wang > Date: Thu Aug 19 09:46:13 2010 +0800 > > agp/intel: set 40-bit dma mask on Sandybridge > > Signed-off-by: Zhenyu Wang > Signed-off-by: Eric Anholt Thanks. But, isn't it better to add .dma_mask field to struct agp_bridge_driver? Also, I don't understand the logic of 40bit addr calculation: > static unsigned long intel_gen6_mask_memory(struct agp_bridge_data *bridge, > dma_addr_t addr, int type) > { > /* Shift high bits down */ > addr |= (addr >> 28) & 0xff; Isn't it 0xff0? Takashi -- 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/