UltraZed EV SOM: Interrupt Handler Not Triggering After Stop Command and Restart

I’m working on a project using the UltraZed EV SOM, and I’ve encountered an issue with interrupt handling in my custom kernel module.

Issue Description:

I have two video modes: “Normal” and “RAW”, and I have 12 interrupt handlers. Four of these interrupt handlers are used in both modes.

1. CASE

When I start RAW recording, the dru_irq_vid11 interrupt handler works as expected and records successfully. However, if I start normal recording and then switch back to RAW recording, the dru_irq_vid11 interrupt handler does not trigger at all.

2. CASE

  1. Initially, when I start a normal recording, the dru_irq_vid11 interrupt handler works as expected.
  2. After sending a stopall command and then initiating a RAW recording, the dru_irq_vid11 interrupt handler does not trigger at all.
  3. When the interrupt handler is supposed to trigger, it behaves as if no data is being received.

Debugging Steps Taken:

  1. Verified that the dru_irq_vid11 handler is correctly registered and enabled.
  2. Checked the video_mode and VID15_ENABLE values, and they appear correct.
  3. Ensured that the stopall command is functioning correctly.
/*init dru interrupt VID11*/
printk("Geldim, Gördüm, Gidiyorum. n");
        r_irq = platform_get_resource(pdev, IORESOURCE_IRQ, 10);
    
        if (!r_irq) {
            dev_err(&pdev->dev, "No IRQ VID11 resource defined.n");
            return -ENXIO;
        }
    dru_dev->irq = r_irq->start;
        printk("IRQ VID11 registered at %dn", r_irq->start);
        ret = request_irq(dru_dev->irq, dru_irq_vid11,IRQF_TRIGGER_RISING, "dru_irq_vid11", dev);

    if (ret) {
        dev_err(dev, "Failed to request interrupt VID11: %dn", ret);
        return ret;
        }
    printk("ret Value : %dn",ret);
    printk("dev Value : %dn",dev);
    ret=0;
static irqreturn_t dru_irq_vid11(int irq, void *dev_id)
{
    struct device *dev = dev_id;
    int num;
    int vid_mode=readl(video_mode);
    num = vid_mode & VID15_ENABLE;


    printk("Reach -2- n");
    printk(KERN_INFO "vid_mode Value : %dn", vid_mode);
    printk(KERN_INFO "num Value : %dn", num);
    
    int vid11_buffercount=readl(base_part3buffercount);
    int vid15_buffercount=readl(base_part4buffercount);

    if(num != VID15_ENABLE){
        vid11_buffercount = (vid11_buffercount & 0x0000fffff) >> 16;
        dev_err(dev, "VID11 Frame Count: %dn",vid11_buffercount);
        write_mchar_vid11(dev,vid11_buffercount);   
    }
    else{
        vid15_buffercount = (vid15_buffercount & 0x0000fffff) >> 16;
        dev_err(dev, "VID15 Frame Count: %dn",vid15_buffercount);
        write_mchar_vid15(dev,vid15_buffercount);
    }

    return IRQ_HANDLED;
}

Debugging Steps Taken:

  1. Verified that the dru_irq_vid11 handler is correctly registered and enabled.
  2. Checked the video_mode and VID15_ENABLE values, and they appear correct.
  3. Ensured that the stopall command is functioning correctly.

I started by verifying that the interrupt handler (dru_irq_vid11) was correctly registered and enabled. I also checked that the video_mode and VID15_ENABLE values were correct. After sending the stopall command, I expected the dru_irq_vid11 handler to trigger again when I initiated RAW recording. However, the handler did not trigger at all, even though the values appeared correct and the system behaved as if no data was being received. I added debug prints to confirm the handler wasn’t being called, and ensured that all memory addresses and register values were correct.

New contributor

ziya elri is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật