[patch] armv7/imx/imxesdhc.c: add imxesdhc_dump_regs

2015-11-06 Thread kremlin
Hello, This patch adds a debugging function dumping the contents of all registers implicated in the armv7/imx specific sd/mmc controller. It only prints if the kernel is built with option SDHC_DEBUG and a call is inserted somewhere. I am trying to fix the outstanding bug causing the imxesdhc

Re: [patch] fix sdmmc bug affecting strictly sector-addressable eMMC chips

2015-09-09 Thread kremlin
This message is in response to this previous discussion: http://marc.info/?l=openbsd-tech=144074914604130 >> Since sector mode is supported by the host software, shouldn't we >> always set the MMC_OCR_SECTOR_MODE bit and check the returned OCR >> value to see if the card also supports sector

[patch] fix sdmmc bug affecting strictly sector-addressable eMMC chips

2015-08-28 Thread kremlin
Hello, This patch fixes a bug affecting certain 'BeagleBone Black' devices which prevents the onboard eMMC chip from initializing. It has been discussed previously but was misattributed to manufacturers bumping its size from 2GB - 4GB: http://marc.info/?l=openbsd-techm=141122894126274w=2 Some

Re: [patch] fix sdmmc bug affecting strictly sector-addressable eMMC chips

2015-08-28 Thread ian kremlin
Nice work! I wonder why you chose to be so conservative (or arbitrary) about the after 50 failed attempts condition. :) My reasoning is that after 50 failed CMD1s, either two things are the case: The card will only initialize with the sector bit set, or it is a high capacity device taking a

[patch] armv7/omap/ommmc.c: add ommmc_dump_regs

2015-08-17 Thread kremlin
armv7 kernel will fail to compile with -DSDHC_DEBUG as it lacks a definition for ommc_dump_regs, so add it. I previously mailed this patch a while ago[1], but my mail client fudged tabs/whitespace, here is a working patch. Ian [1] http://marc.info/?l=openbsd-techm=143580188423401w=2 Index:

Re: [patch] armv7 option SDHC_DEBUG support

2015-08-16 Thread ian kremlin
My mail client seems to have screwed up the tabs/whitespace, you can find a working patch here: http://ce.gl/ommmc.patch.txt Ian On Wed, Jul 1, 2015 at 8:50 PM, ian kremlin i...@kremlin.cc wrote: Hi Compiling an armv7 kernel with option SDHC_DEBUG fails as there is no definition

[patch] armv7 option SDHC_DEBUG support

2015-07-01 Thread ian kremlin
Hi Compiling an armv7 kernel with option SDHC_DEBUG fails as there is no definition of the ommmc_dump_regs function, so add it. Tested on real hardware (Beaglebone Black): ommmc0 at omap0 ommmc0: SYSCONFIG: 0x2015 SYSSTATUS: 0x0001 CSRE: 0x ommmc0: SYSTEST: 0x

Compiling ports tree on older architecture question

2015-04-04 Thread ian kremlin
Hello tech! A friend is borrowing one of my machines to build the entire pkgsrc tree, a task that entails compiling more than 15k individual programs. This has taken 3 days, even on my modern and prepared amd64 machine! (to my surprise). This has me curious: Every OpenBSD release includes an

Re: radeondrm testers wanted for 3.8.13.27 fixes

2014-08-05 Thread ian kremlin
is the connector: http://kremlin.cc/edp1.jpg a slightly clearer shot: https://kremlin.cc/edp2.jpg On Wed, Jul 30, 2014 at 8:27 PM, ian kremlin i...@kremlin.cc wrote: On Mon, Jul 28, 2014 at 7:14 AM, Jonathan Gray j...@jsg.id.au wrote: I'm looking for a few people to test some additional radeondrm fixes

Re: radeondrm testers wanted for 3.8.13.27 fixes

2014-07-30 Thread ian kremlin
On Mon, Jul 28, 2014 at 7:14 AM, Jonathan Gray j...@jsg.id.au wrote: I'm looking for a few people to test some additional radeondrm fixes from the recently released Linux 3.8.13.27: https://lkml.org/lkml/2014/7/25/621 i was able to patch and build without incident on a current source tree. i'm