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 28606C636CC for ; Tue, 7 Feb 2023 09:25:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbjBGJZW (ORCPT ); Tue, 7 Feb 2023 04:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjBGJZV (ORCPT ); Tue, 7 Feb 2023 04:25:21 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 207F9103 for ; Tue, 7 Feb 2023 01:25:19 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id j32-20020a05600c1c2000b003dc4fd6e61dso12657997wms.5 for ; Tue, 07 Feb 2023 01:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=0Y23lV7lH3PbjCfdQZUWDq9NFumhrpeHPeQ25oLo9lY=; b=rhJpCaong/2Uo1g0AsdV5ZAHpyhC7hZFSLxsh0mqiBcPkpo013pWEqEStTNyyzY03F OivEdnW1sNmxH4XgSPBG06JAEYig3bkmxlmvqt88xMFpOU314L+egiYfR9FURo+wqyT5 yuCu7xwtnVEOnlACkAczxvdhbJdZXKCyVnaQY7syx+QWSOgzHRCS5N0oFbL2TySoOWKU w4pf9xh84RtNdaXKFFIpUKdkpxmMgU8w5yVChvDDy/wM0t+jWa2dCABVGwtDx/yeuezj nxrhawXmU0MN7nxou1M5v7pLOe6AK9uOo0PsfTpeiez4HAi/ibsDKNWk3G354JNo0LPO b0zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0Y23lV7lH3PbjCfdQZUWDq9NFumhrpeHPeQ25oLo9lY=; b=3NYyYCyEM7du/eOHp2cLozXhPr7XWAgLZ0+x1ZaXxhM/T448T7Ac2SscxENQtlPzsv qpdYHhBnK+OHwjTV8e+NL8j9M9VB+WCxe7/b/9//puHkQKrVZFdgKWtdQFiXF+K05aQt Z+oU43YPmrKx04B+Jp862tN1SD7wEhhDKbaXLZIZoH4LiBuxXWghQZS61Csziq9hZ3jZ N6hAtBj/E6ZMn7HNweLAtFZsVuy1b0NUu1fY1IpYaB+f72oeGFiId7o+ZfNVYas178R6 5xTQnZU7gwusfa3XF1RfpgK9ORlWPUfUVF19HzGB2N9s8d1amNuvEo8aWP5ZqPMpj2n6 3hxw== X-Gm-Message-State: AO0yUKVWEsmJtyeD8X6TRXr7MWJRg00Q5yX3wtQdoRi4zDnUiAzyh/VT cgRCRPHjEeKd4pO+6d914GHVvw== X-Google-Smtp-Source: AK7set+O3eYULAiOA3gTJI4M0T6vipBndxV2LKvLjIoxUkFTxmd/QCTl/UZPlsIgOC1/cDyyNjEDPQ== X-Received: by 2002:a05:600c:16c8:b0:3db:3e8:feca with SMTP id l8-20020a05600c16c800b003db03e8fecamr1508866wmn.15.1675761917693; Tue, 07 Feb 2023 01:25:17 -0800 (PST) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id e7-20020adfdbc7000000b002425be3c9e2sm9945900wrj.60.2023.02.07.01.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 01:25:17 -0800 (PST) References: <84d40502-fe1a-ef61-e945-9c581557f528@gmail.com> <1jedrg6mkl.fsf@starbuckisacylon.baylibre.com> <0bc74947-8522-d924-de21-a1ebb6814364@linaro.org> User-agent: mu4e 1.8.10; emacs 28.2 From: Jerome Brunet To: neil.armstrong@linaro.org, Da Xue Cc: Heiner Kallweit , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Martin Blumenstingl , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "open list:ARM/Amlogic Meson..." Subject: Re: [PATCH v2] arm64: dts: amlogic: Make mmc host controller interrupts level-sensitive Date: Tue, 07 Feb 2023 10:18:03 +0100 In-reply-to: <0bc74947-8522-d924-de21-a1ebb6814364@linaro.org> Message-ID: <1jfsbh3k03.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue 07 Feb 2023 at 09:22, neil.armstrong@linaro.org wrote: > On 03/02/2023 09:03, Da Xue wrote: >> On Fri, Jan 27, 2023 at 10:10 AM Jerome Brunet wrote: >>> >>> >>> On Fri 27 Jan 2023 at 14:02, Heiner Kallweit wrote: >>> >>>> On 27.01.2023 08:59, Neil Armstrong wrote: >>>>> Hi, >>>>> >>>>> On 26/01/2023 15:03, Heiner Kallweit wrote: >>>>>> The usage of edge-triggered interrupts lead to lost interrupts under load, >>>>>> see [0]. This was confirmed to be fixed by using level-triggered >>>>>> interrupts. >>>>>> The report was about SDIO. However, as the host controller is the same >>>>>> for SD and MMC, apply the change to all mmc controller instances. >>>>> >>>>> Thanks, I applied it in for-next so it runs on the CI tests. >>>>> >>>>>> >>>>>> [0] https://www.spinics.net/lists/linux-mmc/msg73991.html >>>>>> >>>>>> Fixes: 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi") >>>>> >>>>> I think we should find a better Fixes or perhaps split in 3 so it targets the >>>>> right commit adding the nodes for each family. >>>>> >>>> This would be the cleanest option, right. Practically it shouldn't make >>>> much of a difference. The chosen commit is from 2019, SDIO interrupt >>>> support has been added just recently, and regarding MMC/SD it seems no >>>> problems caused by edge-triggered interrupts are known. >>> >>> ... Well, I wonder is this might be linked to instabilities seen with >>> very high speed mode (such as SDR104) and DDR modes. We have seen quite >>> a lot of those over the years. In any case, if it helps stabilize the >>> MMC on amlogic, it would be great if it can be picked up by stable. >> On S905X, I'm still getting SDR104 failures with this change at both >> 208MHz and 150MHz so maybe not completely. >> [ 9.071641] mmc1: tuning execution failed: -5 >> [ 9.579765] mmc1: tuning execution failed: -5 >> [ 9.761580] mmc1: tuning execution failed: -5 >> [ 9.871836] mmc1: tuning execution failed: -5 > > Are these the same before the change ? or did those appear with the change ? This is a change Da is carrying in his tree. LePotato is limited to high speed mode @50Mhz in upstream due to previous instabilities with the SDR modes The error above shows a systematic failure to find a valid SDR tuning. It is actually a lot better than an unstable success. IMO, It's another hint that we need to look at high speed modes again with this change. > >> >>> >>>> >>>>> If the test doesn't report any breakage, I'll probably ask you that. >>>>> >>>> Sure. >>>> >>>>> Neil >>>>> >>>> Heiner >>> >>> >>> _______________________________________________ >>> linux-amlogic mailing list >>> linux-amlogic@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-amlogic