From owner-freebsd-arm@freebsd.org Fri Mar 12 12:53:06 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 373ED57890B for ; Fri, 12 Mar 2021 12:53:06 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dxm2B0nGFz3p1C for ; Fri, 12 Mar 2021 12:53:05 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-ed1-x52d.google.com with SMTP id e7so7785796edu.10 for ; Fri, 12 Mar 2021 04:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:reply-to:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+/fMasCK7jhMJYFnpL2fyhwDcPOcI09rJyyIEU3Br8o=; b=LKAYsq5O2vaPrS4RE+IrBzyMo2NnBpxbmMOtVvrfIfvpDdeSPI8MXyl/HtM+k3BX8N ySsGvm1kLfqlTqBkye8Rzrv0n+G8ZaMHcynQJz2VXPC5HokIZDiSaCL5Y3jpjbBClqbC zxfbe/ZpS+flFV11x2SMiu3hXsL+KJA6TLq9Synrgl3YLFzEHJ+MRfrFLLzKVVD4gzpp kvKIlT0a2b7+2MkPU15KrZJM6CFSW/WvYncLHg3NKsACeDYYdDMLSnSaNGYBDokFdRgb EB1t4gU3lIXtgUIqRqZvdxTaPaVekfwOOXPCPORzGFxj6IwSj3OZ8h6ZqJiFsxR7q6C3 6WYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=+/fMasCK7jhMJYFnpL2fyhwDcPOcI09rJyyIEU3Br8o=; b=f03p373mmXqVEEwBZnZvxMRvAF//KK4t0JK7FTtDyV4UpPHpHXQ1qxEDJ45Oi2yfNl 782AVsjDDW5a8ubAozwIga89mniSKqdLHQnvdNch3zCQhl7dQ+JCOiOR/eiRplomvojq SarOsuJNzD3ErJxUVQS4SwiMTkHSsdKiZGukT7DaI0vjoqvtZQEQRnGrEvdxX36XKlrm c6Jy0bOUV5FD4Sgm9PfNeCkoqtF9KYkx1W/3KcFJ5T2uCRUjLg94NHOFVRtEHytvWI1q SQ9gOCkgRMUWWny30nfHZODmPGzENYbqviebfHv5bqGMaWU0DbIPquj5nMDpkfzMbhkI wBdA== X-Gm-Message-State: AOAM533Gq4zoGwBmPgTkaAIendwciXycDc5PyfwHuoC0rm24vxeSMtM+ P3kzVcQiN2yi/Nm1XvUwYMYO0PZ0Qk4= X-Google-Smtp-Source: ABdhPJx4HcUjT6AyNuS7P8RBICOZq+76713zC1Dtz2HfiFW2W8dTH/WudP6xgrP3W0dINgjMsR13NQ== X-Received: by 2002:a05:6402:4241:: with SMTP id g1mr4024957edb.331.1615553585057; Fri, 12 Mar 2021 04:53:05 -0800 (PST) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id h13sm2919247edz.71.2021.03.12.04.53.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Mar 2021 04:53:04 -0800 (PST) Sender: Michal Meloun From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: mmel@freebsd.org Subject: Re: problem with dwmmc ? panic's on bad filesystem... To: "Bjoern A. Zeeb" , =?UTF-8?Q?S=c3=b8ren_Schmidt?= Cc: Emmanuel Vadot , freebsd-arm References: <794EB96E-2F5D-4F41-BAD8-DEFDB9BDE530@gmail.com> <246a8c2f-bec7-2880-56f6-2baa677e4b2d@FreeBSD.org> <20210312110930.9091f4fb9cea65a6ca7933e0@bidouilliste.com> <33616974-30A2-41E5-B177-8259CC08F60D@gmail.com> Message-ID: <5c717a50-d18d-088d-97ef-0a8043e96e86@freebsd.org> Date: Fri, 12 Mar 2021 13:53:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Dxm2B0nGFz3p1C X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2021 12:53:06 -0000 On 12.03.2021 13:18, Bjoern A. Zeeb wrote: > On 12 Mar 2021, at 12:01, Søren Schmidt wrote: > >> On 12 Mar 2021, at 11.09, Emmanuel Vadot wrote: >>> >>> On Fri, 12 Mar 2021 09:47:40 +0100 >>> Søren Schmidt wrote: >>> >>>> On 11 Mar 2021, at 23.30, Jesper Schmitz Mouridsen >>>> wrote: >>>>> >>>>> >>>>> On 11.03.2021 21.29, Søren Schmidt wrote: >>>>>> Hi >>>>>> >>>>>> I have had this panic several times on rk3399 based systems when >>>>>> the filesystem has gone bad (and just needs a fsck). >>>>>> It doesn?t happen on Marvell a3720, so its not arm64 specific, >>>>>> more likely dwmmc specific or maybe the dma on the rk3399 ? >>>>>> >>>>>> 13-stable of today, but problem has been around for a long time.. >>>>>> >>>>> >>>>> >>>>> Check under known issues https://wiki.freebsd.org/arm/RockChip. >>>>> >>>>> Should be fixed in >>>>> https://cgit.freebsd.org/src/commit/?id=8727c174b0fe44766bb7ea765dac6d5f82818103 >>>>> >>>>> >>>>> But perhaps it is not included in stable/13 or it is not totally >>>>> fixed? >>>> >>>> That fix is indeed in stable13, so it looks like its not really >>>> fixed, or this is another problem... >>>> >>>> -- >>>> Søren Schmidt >>>> sos@deepcore.dk / sos@freebsd.org >>>> "So much code to hack, so little time" >>> >>> Seems like it's the same issue. >>> Your hitting EFBIG from bus_dmamap_load. >>> Does that happens everytime ? >> >> Yes it does. >> >>> Does that happens if you disable journaling or softupdate ? >> >> Journalling seems to be what triggers this error. >> >> The last (error) request contains 0 segs and a non %blocksize length >> if that helps. > > This sounded familiar;  I am not sure what happened to the comments from >  this:  https://reviews.freebsd.org/D26735 > > It was reincarnated to https://cgit.freebsd.org/src/commit/sys/arm64/arm64/busdma_bounce.c?id=f635cef2a4206fb4e077412c493f218a6a26a3daSøren, is the problem reproducible also on current ? If yes are you able to dump VA and size of buffer passed to last call to bus_dmamap_load? Michal