Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5615366rwd; Mon, 12 Jun 2023 07:29:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mM+Hc9dZbu4ohChovx6KOfMYte6f9Kgp8gTiT0xZWEL4wOuBi3+m4/krCaEC3+P5jgnl6 X-Received: by 2002:a17:906:ee84:b0:965:6b9e:7ded with SMTP id wt4-20020a170906ee8400b009656b9e7dedmr8075939ejb.42.1686580151368; Mon, 12 Jun 2023 07:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686580151; cv=none; d=google.com; s=arc-20160816; b=m5Q75aFgRTpErV3WLIosAWJgH3omfUZdaQC/NVmPnjrTFoYi8VJWSvoPMeb7p2vWbd JrKnbapOYOVa4Hk2K5aBYw9FAB4yuK4vp42P8zIG2r8FTENHjj/Ti+JH6suqGpT+YUg1 vcYpeDMQSu0reuj0SxWelRx+FFmwHZ03sib1ogtW90HgrSIeRxQIiUY5/hgg3xkh90n8 vMws2YmX0sNwZom1ISV9JKC53B58hPAAY51LFF4QqZeRfe0dkluZ6BDxuR+UwYcQzrCT P4tmeknsMGvA+aQiV6SNFIhGftWrM4YD1iNwhwpJeH+e18sGBTMdTpArvM7FETRixnTw xNqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ls3j9MtBWNjJOSq/J3gcbrvP/tYri/hNMC8Wg4iBfps=; b=0tfXx5c2bz+JP4Pl/4FYCsO9HuvfwDx0nJfA4MlQQFvDUgzQWLxesZrOUQUO6XFB5S usO2EWN+4zKt3nRtGNifJS84iECkV2lU/TDOMCIaUJSm2Ob14klHKttNhPL43uEKN4ds 5wcfjFc0V3JR/sqsxheGrP8ba9CtQwdrBaOIjxjyq2gv5LSI7krAkrorOZVncIDukVdd sI0FZi7Bwi++cQkm/zBBadYDF7Hxw71WNkYIHY3hoeVi/sGKMrIy29eley4mK1zlLVDo UY12jnvSQ4xErhPB2g3F883u0/N49fF+o1CRHCybphasEvqGeoiTTF7ALW1lUgVK906a 4zeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cxGXGTs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb4-20020a170906edc400b00977cd200be3si1880296ejb.706.2023.06.12.07.28.46; Mon, 12 Jun 2023 07:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cxGXGTs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238238AbjFLOVX (ORCPT + 99 others); Mon, 12 Jun 2023 10:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240114AbjFLOUu (ORCPT ); Mon, 12 Jun 2023 10:20:50 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9A04486 for ; Mon, 12 Jun 2023 07:18:29 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1b3a6469623so11724265ad.3 for ; Mon, 12 Jun 2023 07:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686579414; x=1689171414; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ls3j9MtBWNjJOSq/J3gcbrvP/tYri/hNMC8Wg4iBfps=; b=cxGXGTs6Y3ySbrFX653AO+SW2J0hZ0DfCitImPkMyn4nUQ+JaIzLgtJ790NFCiArEB zBjcageqV28JV13ZHsf8hZtqa/v3LZwIGOm0BEQkGxpQYYad3TH2hm5uuRrpgBWUaGPA Gx/DKr7kpGk9cdpTT8ibLGYVA/iRfPjBtGKdedOmyMux0QqNCppIlZI4wUVQ4Rhpm6CB N6x6ltxBCWjqtt2C97sDzwHiQh/sPMbhFQEHJ7pXPAPb6GWeUqc1YYdlhVhS85+tELY9 G8o/1KyKfLRF6DZOH7sSwrLThSbTxrraR6yTHKdpaSbJ8AXhRmG27BR7WKV2DFHWHaUr NseA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686579414; x=1689171414; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ls3j9MtBWNjJOSq/J3gcbrvP/tYri/hNMC8Wg4iBfps=; b=UiyCUE1rHKldPLKMfJwq7fTbMPJ5nU8g6UtjzXOB2PapRguMdsY2bEsGW76swUO+fd cVqhq1lFbvE551dDGnpqlsl1YDt289YNAIcODKy25hVdp2QRl+5x3jMDSPbKQAT7GeAr 4r0KubTZDEJSgQOE9zClmkyh6t7P2X2eHFDBjuZmrFqu5K6MUlshzl2ecCgmFJsfe2Gs sGkL2Xbd8DCzLdciu3Uu1COEBTc6Vx/+U7kUml4oLXE7Zay5jWXiz1S/4E/KqnNx9Qnt yyOrsLyZI+KYqPSxTZOlKt8w5JHZ5wUl+kG535+pKh71f5Ka48FmtcezVHzMg6AsfPmG UDkQ== X-Gm-Message-State: AC+VfDxiPIZzA1vDleOZ4ZhUPFmsTzCY99RsU5WrlO9gZyNHduBzfJay ovv6ASKw6UEySiSLdGQ6ShGvvgmsYHQl5mg+a0j5rQ== X-Received: by 2002:a17:902:f54e:b0:1aa:e5cd:647a with SMTP id h14-20020a170902f54e00b001aae5cd647amr8370740plf.23.1686579414496; Mon, 12 Jun 2023 07:16:54 -0700 (PDT) MIME-Version: 1.0 References: <20230523111114.18124-1-chevron_li@126.com> In-Reply-To: From: Ulf Hansson Date: Mon, 12 Jun 2023 16:16:18 +0200 Message-ID: Subject: Re: [PATCH V1 1/1] mmc: sdhci: fix DMA configure compatibility issue when 64bit DMA mode is used. To: "Chevron Li (WH)" Cc: Chevron Li , "adrian.hunter@intel.com" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Shirley Her(SC)" , "XiaoGuang Yu (WH)" , "Shaper Liu (WH)" , "Justin Wang (WH)" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Jun 2023 at 03:58, Chevron Li (WH) wrote: > > Hi, Ulf, > > Yes, this patch fixes a real problem. > > BR, > Chevron > > > -----Original Message----- > > From: Ulf Hansson > > Sent: Thursday, June 8, 2023 23:53 > > To: Chevron Li > > Cc: adrian.hunter@intel.com; linux-mmc@vger.kernel.org; linux- > > kernel@vger.kernel.org; Shirley Her(SC) ; > > XiaoGuang Yu (WH) ; Shaper Liu (WH) > > ; Justin Wang (WH) > > ; Chevron Li (WH) > > > > Subject: Re: [PATCH V1 1/1] mmc: sdhci: fix DMA configure compatibility issue > > when 64bit DMA mode is used. > > > > On Tue, 23 May 2023 at 13:12, Chevron Li wrote: > > > > > > From: Chevron Li > > > > > > Bayhub SD host has hardware limitation: > > > 1.The upper 32bit address is inhibited to be written at SD Host Register > > > [03E][13]=0 (32bits addressing) mode, is admitted to be written only at > > > SD Host Register [03E][13]=1 (64bits addressing) mode. > > > 2.Because of above item#1, need to configure SD Host Register [03E][13] to > > > 1(64bits addressing mode) before set 64bit ADMA system address's higher > > > 32bits SD Host Register [05F~05C] if 64 bits addressing mode is used. > > > > > > The hardware limitation is reasonable for below reasons: > > > 1.Normal flow should set DMA working mode first, then do > > > DMA-transfer-related configuration, such as system address. > > > 2.The hardware limitation may avoid the software to configure wrong higher > > > 32bit address at 32bits addressing mode although it is redundant. > > > > > > The change that set 32bits/64bits addressing mode before set ADMA > > address, > > > has no side-effect to other host IPs for below reason: > > > The setting order is reasonable and standard: DMA Mode setting first and > > > then DMA address setting. It meets all DMA setting sequence. > > > > > > Signed-off-by: Chevron Li > > > > Applied for next, thanks! > > > > Is this material for stable kernels too, as it fixes a real problem, no? > Yes, it fixes a real problem. Okay, I have amended the patch by adding a stable tag to it! [...] Kind regards Uffe