From nobody Wed May 19 13:20:16 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 285AA846A8E for ; Wed, 19 May 2021 13:20:30 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FlYQQ0bh9z4Yg5 for ; Wed, 19 May 2021 13:20:30 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id E7C6CE0D1 for ; Wed, 19 May 2021 13:20:29 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f178.google.com with SMTP id y12so9992222qtx.11 for ; Wed, 19 May 2021 06:20:29 -0700 (PDT) X-Gm-Message-State: AOAM5301AdOqyY4/I6OlYw288joGpmGatKyLfSoAArCVrK6c4YS1Lo8W zuKznp6W3xbrI41iC1PjOr7khicFsvVDArRNEfU= X-Google-Smtp-Source: ABdhPJzbGnQBEP4qIW9yaLMTiXRDjLCI/IO5ma9laSe+TUQ+UYrLDoJSOTkLbQd9uE3m+F9IBl30l5sO5sAbfRvMwu0= X-Received: by 2002:ac8:6b0a:: with SMTP id w10mr11032993qts.60.1621430429515; Wed, 19 May 2021 06:20:29 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: http://lists.freebsd.org/arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kyle Evans Date: Wed, 19 May 2021 08:20:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bcm2835 To: kamalpr@gmail.com Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" On Wed, May 19, 2021 at 8:12 AM Kamal R. Prasad wrote: > On Wed, May 19, 2021 at 6:08 PM Kyle Evans wrote: > > > > On Wed, May 19, 2021 at 12:27 AM Kamal R. Prasad wrote: > > > > > > hello, > > > > > > in file > > > sys/arm/broadcom/bcm2835/bcm2835_sdhci.c > > > > > > there is a constant > > > SDHCI_QUIRK_BROKEN_TIMEOUT_VAL > > > can someone tell me why this was introduced and does it correspond to > > > anything in the datasheet? > > > > > > > Hi, > > > > This was added by gonzo@ back in r242321. It doesn't really correspond > > to anything in the datasheet, but before I committed r354560 that > > moved it around I did try to remove it and observed that it was still > > a problem with either the RPi3 or RPi4. > > > > Thanks, > > > > Kyle Evans > > Hi! > > can you tell me more on why removing it was a problem for rpi3 or > rpi4? i am trying to understand the significance of this #define. > > thanks > -kamal > You'll find better insight from the comment at its definition and implementation: http://bxr.su/FreeBSD/sys/dev/sdhci/sdhci.h#60 http://bxr.su/FreeBSD/sys/dev/sdhci/sdhci.c#1814 My very vague recollection is that the advertised timeout is too low, but it's probably an implementation issue. Thanks, Kyle Evans