From nobody Thu Apr 21 18:34:13 2022 X-Original-To: hardware@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 03A3C198CE0E for ; Thu, 21 Apr 2022 18:34:35 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkmRG03lpz4rgS for ; Thu, 21 Apr 2022 18:34:33 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-e2fa360f6dso6242636fac.2 for ; Thu, 21 Apr 2022 11:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JlWd1on1PMIqeOqsZOn6ZQ7fRu4HlPRf/QpN7H3g1FQ=; b=FmqlzukSyMB4CSCtwU0M5a0hKb/AZkYlptdkGQNCDl/itHvj8mQfhG5VQJQ/dTnh/z 6g3Hjebe8Ui4E+PJyrInKnIzBXWYJrxGVU8rSWEIqTqqZLST+YVzLxl7c7cQC/q4U3R4 tvDxaQGKaqGhn5/4qVV16RDzy5iIHphKBivtM+p1veF4Ln2kpat524vkf1/Dcg3noAgU mTa5XNk8lofcTVDsl/6B0e82UxlxCftN1k2ofLZ4K5wSc9mRLkkmUQ45PSizEDPG9zBo gpTMVmMzDLEJRYLZqkKF5q08X2scczpHbWeYKQspWre/aiAqueNiQU7+kUXKxaD9B/6u wFeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JlWd1on1PMIqeOqsZOn6ZQ7fRu4HlPRf/QpN7H3g1FQ=; b=1QKSv4n7qNiLC8Q5eGsJw7W0yYzRTC27L9ZD7hgDX78KmcPGTt7jrnY1BUkj7y5Pcp FVZL5AjHlUZofPqicgEoeq2D4Vmw0+Vj60Yg/f1s0F0uSTU47Q45cCEsG1wo/DFsI7TO k/obdj5Yd+cr10bsRl5xxfojG07BkrbuWMgdGGdI4i4T3/AvE+e+4VjBQnKaMMuNZ9zx DccyBS6dIY5tC2SVBjn7d+THiYH2AKkCyKW5eJ2iUD92ex+IstvVqnEFlb9uJKSyL+GF 2Oeu+YRAx5vG3tawaSPTd1i5YSfwLFVEfX16ykHX4A1oResfAaT8fqtxnLHukUIYL/Nx BFnA== X-Gm-Message-State: AOAM532QkAltvhbpmh9ZelvMRoW4zv0RSYSBTyTNxIYumUAnykNcf/vf df1KKI4jBbxPwNZ3YgQmxlyxR6UViN4f8mFDf7U= X-Google-Smtp-Source: ABdhPJzN5x+ubWxTCC1Mk/GB2QAhaoWSJJxOKamXiGIGs0QaNVduXAVz1tKv32vXC4GPKIt82GOh1g== X-Received: by 2002:a05:6870:891f:b0:e1:ec98:3c59 with SMTP id i31-20020a056870891f00b000e1ec983c59mr366667oao.295.1650566067193; Thu, 21 Apr 2022 11:34:27 -0700 (PDT) Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com. [209.85.160.41]) by smtp.gmail.com with ESMTPSA id q11-20020a056830018b00b0060470f9f5e3sm7014762ota.51.2022.04.21.11.34.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Apr 2022 11:34:25 -0700 (PDT) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-e2442907a1so6213734fac.8 for ; Thu, 21 Apr 2022 11:34:25 -0700 (PDT) X-Received: by 2002:a05:6870:9589:b0:dc:4640:ef89 with SMTP id k9-20020a056870958900b000dc4640ef89mr4397171oao.175.1650566065610; Thu, 21 Apr 2022 11:34:25 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <77ae0110-0b36-8c00-c40e-efd110843f60@Chaos1.DE> In-Reply-To: <77ae0110-0b36-8c00-c40e-efd110843f60@Chaos1.DE> From: Tomek CEDRO Date: Thu, 21 Apr 2022 20:34:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESOLVED] Re: timeouts on USB ISP programmer To: Axel Rau Cc: hardware@freebsd.org, Hans Peter Petter Selasky Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KkmRG03lpz4rgS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=FmqlzukS; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2001:4860:4864:20::2d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.27 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.984]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.98)[-0.983]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2d:from,209.85.160.41:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Apr 21, 2022 at 7:05 PM Axel Rau wrote: > With the trace, recorded by Joerg Wunsch (author of avrdude), > Hans found the implementation bug in the device. > He wrote to Joerg: > ==== > I see from the Ellisys .png's what is wrong. The device doesn't support > resetting the data-toogle (CLEAR ENDPOINT HALT) which is a mandatory USB > control endpoint command. So the USB stack tries a couple of times and then > gives up and resets the device! > > The device is not USB.org class compliant! :-( > > Probably setting: > > sysctl hw.usb.no_cs_fail=1 > > may help. > ==== > Indeed with this setting the device works perfectly: > (..) > diamex.de has been notified about the bug. > > Man thanks to all, who responded, especially Hans and Tomek, > Axel WOW! That was quite a journey! Thanks for the sysctl hint this may come handy! :-) I just wonder if this is the Diamex-only problem or all STK500v2 interfaces.. maybe they are just using public firmware on their own hardware.. in that case all STK500v2 devices could be affected :-) Hans is also my hero, I am rooting for the battle against some XHCI controller on ARM hardware on the freebsd-usb list, man, patches are already in the kernel :-) :-) Have fun and take care! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info