Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3188452lqp; Tue, 26 Mar 2024 02:02:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU67AHIn+qFaMLFls7h4RT1yTcvV3S7LfiTA6gRU8P5KHgH3PYSqeLpiPXM+V/EsO3NPMIOgZbyK9CXM5Q3dBjjdBkeqMg0ZqHlzLgtvw== X-Google-Smtp-Source: AGHT+IF33lXKeK8KI7TBtie1OLBqV2IRYG+fzrT44KdotTdBvzYX2bmkDREc/YyaaMVER/ffOcBk X-Received: by 2002:a17:906:c00f:b0:a47:20a1:5a4a with SMTP id e15-20020a170906c00f00b00a4720a15a4amr5627115ejz.23.1711443779101; Tue, 26 Mar 2024 02:02:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711443779; cv=pass; d=google.com; s=arc-20160816; b=I/O/9ta6cENxGrmN+1EDr6TJwJAnWV8MmUdccPzJkhGGfCyGlqRamaM3EC7OgTwX00 iOfAKO4WRfPHJ0pX5mL6V5q2hn+Jhopxa2ejxNfJdW674RCGR6UkCD6yLy2mxlSmbj1T ZitjesQW9B4GWxPVSc61zI4UxbaYCWh0wf4x8NdpgjnobSi2Ik3EdoNEPtpC0YDT+LZI kp5cSkk9T++zby8LqoYjNyEK1wqomfMMVlK7meBlrQsKF7McBUs3poi7dhNS6KvCXqUE Ky8F/QlsINrwxy7ZLy5CoYCtKsOFmcJ918ZWJv+Es5V7v7obJaKymHhEJQHJUdwMGCen P7zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yzBJ+RE0ObJu4tzDaXPeyG7KPbh0I4AxKy4YFku2jVY=; fh=DQfWcJ7a6lABpgAjlslbt+lALChD4jPOSQFW0XC7h54=; b=v3/ZDdpaY20Jboukr4NfKtijHCHalYhE3W5MyTqBIyx4N4nKynZmbOtagMD/jHaw03 EgrsfGCKcPS7XS086r6CMIzOnTE3M4RsdIlb4/OjcYCVY536tHESMQxAdRjr3CPYezKq w2/aL937dVPbuWcH1Mi87qQM5mqb+9Y/J4+ozqivvftE1vMTCAcjrH/ubZutW/6f61xb H/M6kleizIpvjyhcEHGL2Pez4KsT9TRVzClqzTYfIz+pV/9XPWnHtBNBFx9eBFFyVL2u 97YbmmvDgT8+iPTfe0Fz5LV5D8XXGSaWg7wNONZi38InCcka2WX+8tWznmQ2s3qCJqpK j8aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V5zDplU9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y27-20020a170906071b00b00a4defb6182asi636021ejb.39.2024.03.26.02.02.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V5zDplU9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-118605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B35881F3D0CB for ; Tue, 26 Mar 2024 09:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 415C16BFB5; Tue, 26 Mar 2024 09:01:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="V5zDplU9" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB4BD5C911; Tue, 26 Mar 2024 09:01:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711443696; cv=none; b=bktc5+uVGcQ5Sw6AYQ7FavQWjcf4uqhcfpMkoITDb5IhLhExI2MTuw4xFKNQ5/gio6KYe1ppNq2RCF/XlvoLPX28b+p1eTTNqxg3yarZExmabIj14ESkGYT18YvAa967QVSpInrG9jvAR6aS5b268KOld+40ZCusqXce6iuIHyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711443696; c=relaxed/simple; bh=OwV2DViqKNpY+wJYMRMqIvYxqDnYa84ECaPStIbjYhE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F7WE6Rj10yGqtUeayggufpOZLDqCYnel1A832xW/J55LHItdkP1gXp5ufPr7LFO6hnjonAl4OAFy5zBKDHaxJibTJKnZYnIzPiYH2kvRx5P9VSaGgB1SdyUUtYNUD//W/YZlL1Xl5JSYZGbf9D8l0928WN1AFuBqxE6+IJ9St64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=V5zDplU9; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711443695; x=1742979695; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OwV2DViqKNpY+wJYMRMqIvYxqDnYa84ECaPStIbjYhE=; b=V5zDplU9TjjbZoYddwNl6Kl2XajC3liLIYE0yzkDmyDqszjAIctzAWJw ZvWAKS+nVyWJ4J5ExX2+tE/BsuG0nZUakRogsK4k6b3ERtcnpkGYm62Bt TjqSQJaShlffO5szlPtl/Hv1U/GBXuF5odm+J6Ds9PChwUMGCSaWUoPHN CUD9/Nz7BSsgqmr8Ws+TJ3hv+JzB6w1RHhOh2/LgVPA86icv6o7xESx0/ yr0hXz/iGTNA0YgWlsSqOJJrrgfU5b1k/R9WCcHEM80xF8gYXmh+hERYu iv+OIqDMEV9SdSVLvOERXDrBGp37T1IGBnqQTAIm7USDp72aR15cpHXIC Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11024"; a="6343359" X-IronPort-AV: E=Sophos;i="6.07,155,1708416000"; d="scan'208";a="6343359" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 02:01:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,155,1708416000"; d="scan'208";a="20614518" Received: from yungchua-ws.ostc.intel.com (HELO yungchua-ws.intel.com) ([10.54.69.90]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 02:01:28 -0700 From: Bard Liao To: linux-sound@vger.kernel.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 5/7] soundwire: clarify maximum allowed address Date: Tue, 26 Mar 2024 09:01:20 +0000 Message-Id: <20240326090122.1051806-6-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326090122.1051806-1-yung-chuan.liao@linux.intel.com> References: <20240326090122.1051806-1-yung-chuan.liao@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Pierre-Louis Bossart The existing code sets the maximum address at 0x80000000, which is not completely accurate. The last 2 Gbytes are indeed reserved, but so are the 896 Mbytes just before. The maximum address which can be used with paging or BRA is 0x47FFFFFF per Table 131 of the SoundWire 1.2.1 specification. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- include/linux/soundwire/sdw_registers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/soundwire/sdw_registers.h b/include/linux/soundwire/sdw_registers.h index 138bec908c40..658b10fa5b20 100644 --- a/include/linux/soundwire/sdw_registers.h +++ b/include/linux/soundwire/sdw_registers.h @@ -13,7 +13,7 @@ #define SDW_REG_NO_PAGE 0x00008000 #define SDW_REG_OPTIONAL_PAGE 0x00010000 -#define SDW_REG_MAX 0x80000000 +#define SDW_REG_MAX 0x48000000 #define SDW_DPN_SIZE 0x100 #define SDW_BANK1_OFFSET 0x10 -- 2.34.1