From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDF5EC88CB4 for ; Mon, 12 Jun 2023 14:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237724AbjFLOVY (ORCPT ); Mon, 12 Jun 2023 10:21:24 -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-Google-Smtp-Source: ACHHUZ4dL2M4zdpF8VCYq+IUPr3A/r6UbrjnzX6erX0UGLi2xr9QdhFRm3iUkJrNSNKf/SLO9K+ISaww1BQ8CkGPnR0= 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" 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